Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code: 'ERR_OSSL_EVP_UNSUPPORTED' in latest docker build #1364

Open
davidhalldor opened this issue Dec 4, 2021 · 1 comment
Open

Error code: 'ERR_OSSL_EVP_UNSUPPORTED' in latest docker build #1364

davidhalldor opened this issue Dec 4, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@davidhalldor
Copy link

davidhalldor commented Dec 4, 2021

Describe the bug
Can't run Docker image hicetnunc-ui@0.1.0 after build

Screenshots

  • screenshots of your minting process
  • screenshots of profiles affected
  • screenshots of the browser console (in chrome windows, press ctrl + shift + j to open the developer console)
  • screenshot from docker app
    image

To Reproduce
Steps to reproduce the behavior:

  1. cli cmd 1
docker image build -t hicetnunc:1.0
  1. cli cmd 2
docker run -it -p 3000:3000 hicetnunc:1.0
  1. cli stdout error
Starting the development server...

/usr/src/app/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/usr/src/app/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/usr/src/app/node_modules/webpack/lib/NormalModule.js:417:16)
    at /usr/src/app/node_modules/webpack/lib/NormalModule.js:452:10
    at /usr/src/app/node_modules/webpack/lib/NormalModule.js:323:13
    at /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /usr/src/app/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 v17.2.0

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS:
    ProductName:	macOS
    ProductVersion:	12.0.1
    BuildVersion:	21A559
@davidhalldor davidhalldor added the bug Something isn't working label Dec 4, 2021
@skenaja
Copy link
Collaborator

skenaja commented Dec 4, 2021

My guess is that node:latest has something in it that doesn't work with the code. The README says to use node 12, so maybe set the Dockerfile to use an older version of node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants