You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am seeing an error when I try to upload a specific config in my local environment.
This is the error when I try to execute cht --local
INFO Packaging contact-summary
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:130:10)
at module.exports (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/util/createHash.js:169:42)
at ConcatenatedModule._createIdentifier (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/optimize/ConcatenatedModule.js:563:16)
at new ConcatenatedModule (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/optimize/ConcatenatedModule.js:445:27)
at /usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/optimize/ModuleConcatenationPlugin.js:250:26
at SyncBailHook.eval [as call] (eval at create (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)
at SyncBailHook.lazyCompileHook (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/Hook.js:154:20)
at /usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/Compilation.js:1351:37
at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.seal (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/Compilation.js:1342:27)
at /usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/Compiler.js:675:18
at /usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/webpack/lib/Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
at AsyncSeriesHook.lazyCompileHook (/usr/local/Cellar/node@16/16.20.1_1/lib/node_modules/cht-conf/node_modules/tapable/lib/Hook.js:154:20) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
If I export the NODE_OPTIONS to the following value, the issue is "fixed"
Hi @tatilepizs! I was able to load the config in my local cht without exporting the NODE_OPTIONS variable. And without any errors. Environment
node: v16.17.1
cht-conf: INFO 3.20.0
cht-core: ~4.5.0
OS: macOS Sonoma version 14.0, intel
I use the Dev environment setup export COUCH_NODE_NAME=nonode@nohost export COUCH_URL=http://medic:password@localhost:5984/medic
Couchdb setup
Run: npm run build-dev-watch npm run dev-api npm run dev-sentinel
Cloned the config repository: git clone https://github.com/medic/config-moh-mali-chw.git
Run npm ci inside config-moh-mali-chw directory
Run cht --url=http://medic:password@localhost:5988/
After a while i finally got INFO All actions completed. in the logs.
And my instance looks like this:
Describe the bug
I am seeing an error when I try to upload a specific config in my local environment.
This is the error when I try to execute
cht --local
If I export the
NODE_OPTIONS
to the following value, the issue is "fixed"export NODE_OPTIONS=--openssl-legacy-provider
Expected behavior
The config should be uploaded without any problem. It is working fine for other people using linux for example.
Logs
NA
Screenshots
NA
Environment
v16.20.1
INFO 3.20.0
~4.5.0
macOS Sonoma version 14.1.1, intel
The text was updated successfully, but these errors were encountered: