cancel
Showing results for 
Search instead for 
Did you mean: 

Error while deploying new version of MDK APP from SAP BAS

gpic-ahmed-96
Explorer
0 Kudos
656

Dear All,

We are facing this error while deploying new version of our MDK APP from SAP BAS.

It's working fine yesterday we started facing this issue.

It seems it's about node version, the logs are below.

node:internal/crypto/hash:71

this[kHandle] = new _Hash(algorithm, xofLen);

^

Error: error:0308010C:digital envelope routines::unsupported

at new Hash (node:internal/crypto/hash:71:19)

at Object.createHash (node:crypto:133:10)

at BulkUpdateDecorator.hashFactory (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/util/createHash.js:145:18)

at BulkUpdateDecorator.update (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/util/createHash.js:46:50)

at RawSource.updateHash (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack-sources/lib/RawSource.js:64:8)

at NormalModule._initBuildHash (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:870:17)

at handleParseResult (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:936:10)

at /home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:1028:4

at processResult (/home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:745:11)

at /home/user/.node_modules_global/lib/node_modules/@sap/mdk-tools/node_modules/webpack/lib/NormalModule.js:809:5 {

opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],

library: 'digital envelope routines',

reason: 'unsupported',

code: 'ERR_OSSL_EVP_UNSUPPORTED'

}

Node.js v18.14.2

Accepted Solutions (1)

Accepted Solutions (1)

zhen-kun_li
Product and Topic Expert
Product and Topic Expert

From your log, seems you installed a global mdk-tools before, and the version is older than 1.5.0.

So, the solution is to disable the global installed mdk-tools, or update the global mdk-tools if you want a global one.

solution-1: disable global mdk-tools

1. open terminal, input " which mdk" to find the link folder

2. goto the link folder, rename or remove the mdk file.

3. the expect result is: input "mdk" in terminal, it should return "command not found"

solution-2: update global mdk-tools

npm i -g @sap/mdk-tools

Regards,

Zhen-kun

gpic-ahmed-96
Explorer
0 Kudos

Hi Zhen-kun Li,

I did not installed a global mdk-tools .

But I will try your solutions

gpic-ahmed-96
Explorer
0 Kudos

Hi Zhen-kun Li,

I don't recall installing a global mdk-tools.

but I tried your first solution and a it shows a path, I change the file name and the deployment works.

Thank you very much.

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

gpic-ahmed-96

What region your BAS and Mobile Services are running in? e.g., eu10, us10

I just tested in eu10, us10-001 and deployment worked fine.

Can you try after restarting your dev space?

gpic-ahmed-96
Explorer
0 Kudos

we are running on eu10.

And I did restart the dev space the error is the same.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

gpic-ahmed-96

As we couldn't reproduce the issue, I will suggest you to open a support ticket with all these details (component MOB-MDK)

gpic-ahmed-96
Explorer
0 Kudos

I saw that it's a common issue in node v18 can I change the node version in BAS?

Also they mentioned that this command will solve the issue in project folder but it doesn't seem to work in BAS

export NODE_OPTIONS=--openssl-legacy-provider