GUI start fails in fresh delevop installation
On a fresh dev-installation of nomad, yarn start
of gui fails:
Starting the development server...
/home/fabian/code/nomad/gui/node_modules/react-scripts/scripts/start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (/home/fabian/code/nomad/gui/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/fabian/code/nomad/gui/node_modules/webpack/lib/NormalModule.js:417:16)
at /home/fabian/code/nomad/gui/node_modules/webpack/lib/NormalModule.js:452:10
at /home/fabian/code/nomad/gui/node_modules/webpack/lib/NormalModule.js:323:13
at /home/fabian/code/nomad/gui/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /home/fabian/code/nomad/gui/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/fabian/code/nomad/gui/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/fabian/code/nomad/gui/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v21.6.2
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Workaround:
export NODE_OPTIONS=--openssl-legacy-provider
- afterwards
yarn start
starts the GUI properly:
Compiled successfully!
You can now view nomad-fair-gui in the browser.
Local: http://localhost:3000/fairdi/nomad/latest/gui
On Your Network: http://192.168.178.167:3000/fairdi/nomad/latest/gui
Note that the development build is not optimized.
To create a production build, use yarn build.
Steps to reproduce:
- installation of nomad according to doc (set and activate pyenv, run setup script, start docker containers, run appworker)
- build gui with
yarn
and start it withyarn start