Closed Athov closed 1 year ago
I am experiencing the same issue here.
Update, I pulled the changes and the docker started but when I do ./psh.phar install I get this:
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 module.exports (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:471:10)
at /app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:503:5
at /app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/webpack/lib/NormalModule.js:358:12
at /app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /app/vendor/shopware/platform/src/Administration/Resources/app/administration/node_modules/babel-loader/lib/index.js:59:71 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.12.1
Execution aborted, a subcommand failed!
Hello, it seems to be related to webpack and the node version included into the docker container (v18). Eg: https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported
Downgrading to node v16 (which is the version required by Administration, for example), solves the problem.
To do that I edited this file changing 18 with 16: https://github.com/shopware/development/blob/trunk/dev-ops/docker/containers/app/Dockerfile#L14
Waiting for a better fix, this should work.
PHP Version
7.4
Shopware Version
6.4.17.2
Expected behaviour
Running ./psh.phar docker:start, should build and start docker containers.
Actual behaviour
Running ./psh.phar docker:start, throws an error, npm: command not found
How to reproduce
git clone https://github.com/shopware/development.git
cd development
./psh.phar docker:start