Reaction-next-starterkit_web_1 exited with code 1 - Reaction commerce

March 20, 2019 646 views
Deployment Ubuntu 18.04

Hi everyone,

I’m trying to install “Reaction commerce” (https://docs.reactioncommerce.com/docs/installation-reaction-platform) in last 2 days but unable to get start service. All of the 5 services started but after 15-20 second 2 services shut down (reaction-next-starterkitweb and reactionreaction).

Here is the log for “reaction-next-starterkit_web” :

<^>
web1 | yarn install v1.13.0
web
1 | [¼] Resolving packages…
web1 | [2/4] Fetching packages…
web
1 | info There appears to be trouble with your network connection. Retrying…
web1 | info fsevents@1.2.7: The platform “linux” is incompatible with this module.
web
1 | info “fsevents@1.2.7” is an optional dependency and failed compatibility check. Excluding it from installation.
web1 | [¾] Linking dependencies…
web
1 | warning “ > react-tracking@5.6.0” has unmet peer dependency “core-js@2.x”.
web1 | [4/4] Building fresh packages…
web
1 | warning Ignored scripts due to flag.
web1 | Done in 59.00s.
web
1 | Creating hydra client…OK: hydra client already exists
web1 | yarn run v1.13.0
web
1 | $ NODEENV=development node ./src/server.js
web
1 | [9:40:33 AM] Compiling server
web1 | [9:40:37 AM] Compiling client
web
1 | > Using external babel configuration
web1 | > Location: “/usr/local/src/reaction-app/.babelrc”
web
1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ’/usr/local/src/reaction-app/build’
web1 | at Object.mkdirSync (fs.js:752:3)
web
1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:71:13)
web
1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web
1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web
1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web
1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web
1 | at Function.sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web
1 | at /usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26
web
1 | at /usr/local/src/nodemodules/lodash/lodash.js:4911:15
web
1 | at baseForOwn (/usr/local/src/nodemodules/lodash/lodash.js:2996:24)
web
1 | at /usr/local/src/nodemodules/lodash/lodash.js:4880:18
web
1 | at Function.forEach (/usr/local/src/nodemodules/lodash/lodash.js:9344:14)
web
1 | at handleAfterEmit (/usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24)
web
1 | at err1 (eval at create (/usr/local/src/nodemodules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1)
web1 | at /usr/local/src/nodemodules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18
web1 | (node:70) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
web
1 | (node:70) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
web1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ’/usr/local/src/reaction-app/build’
web
1 | at Object.mkdirSync (fs.js:752:3)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:71:13)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at Function.sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at /usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4911:15
web1 | at baseForOwn (/usr/local/src/nodemodules/lodash/lodash.js:2996:24)
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4880:18
web1 | at Function.forEach (/usr/local/src/nodemodules/lodash/lodash.js:9344:14)
web1 | at handleAfterEmit (/usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24)
web1 | at _err1 (eval at create (/usr/local/src/nodemodules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1)
web1 | at /usr/local/src/nodemodules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18
web1 | (node:70) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
web
1 | Done in 15.20s.
web1 | yarn install v1.13.0
web
1 | [¼] Resolving packages…
web1 | success Already up-to-date.
web
1 | Done in 2.08s.
web1 | Creating hydra client…OK: hydra client already exists
web
1 | yarn run v1.13.0
web1 | $ NODEENV=development node ./src/server.js
web1 | [9:42:13 AM] Compiling server
web
1 | [9:42:15 AM] Compiling client
web1 | > Using external babel configuration
web
1 | > Location: “/usr/local/src/reaction-app/.babelrc”
web1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ’/usr/local/src/reaction-app/build’
web
1 | at Object.mkdirSync (fs.js:752:3)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:71:13)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at Function.sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at /usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4911:15
web1 | at baseForOwn (/usr/local/src/nodemodules/lodash/lodash.js:2996:24)
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4880:18
web1 | at Function.forEach (/usr/local/src/nodemodules/lodash/lodash.js:9344:14)
web1 | at handleAfterEmit (/usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24)
web1 | at _err1 (eval at create (/usr/local/src/nodemodules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1)
web1 | at /usr/local/src/nodemodules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18
web1 | (node:70) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
web
1 | (node:70) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
web1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ’/usr/local/src/reaction-app/build’
web
1 | at Object.mkdirSync (fs.js:752:3)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:71:13)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at Function.sync (/usr/local/src/nodemodules/mkdirp/index.js:77:24)
web1 | at /usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4911:15
web1 | at baseForOwn (/usr/local/src/nodemodules/lodash/lodash.js:2996:24)
web1 | at /usr/local/src/nodemodules/lodash/lodash.js:4880:18
web1 | at Function.forEach (/usr/local/src/nodemodules/lodash/lodash.js:9344:14)
web1 | at handleAfterEmit (/usr/local/src/nodemodules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24)
web1 | at _err1 (eval at create (/usr/local/src/nodemodules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1)
web1 | at /usr/local/src/nodemodules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18
web1 | (node:70) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
web
1 | Done in 23.41s.
web1 | yarn install v1.13.0
web
1 | [¼] Resolving packages…
web1 | success Already up-to-date.
web
1 | Done in 1.25s.
web1 | Operation timed out
web
1 | Creating hydra client…reaction-next-starterkitweb1 exited with code 1

<^>

Need help.

Thanks

1 Answer

Greetings!

I tested this myself and wanted to share my findings as well. After performing the installation steps, I ended up with three running containers:

mongo:3.6.3
oryd/hydra:v1.0.0-beta.9-alpine
postgres:10.3

These two ended up not running:

reaction-next-starterkit_web
reaction_reaction

The first one presented this log:

error Could not write file “/usr/local/src/reaction-app/yarn-error.log”: “EACCES: permission denied, open ’/usr/local/src/reaction-app/yarn-error.log’” error An unexpected error occurred: “https://registry.yarnpkg.com/brcast/-/brcast-3.0.1.tgz: EACCES: permission denied, open ’/home/node/.cache/yarn-offline-mirror/brcast-3.0.1.tgz’”. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

The second, this:

Failed to reset plugins file at /opt/reaction/src/client/plugins.js

I recommend reporting these to the maintainers of the repo here:
https://github.com/reactioncommerce/reaction-platform/issues

I did find a discussion on at least the first container that failed, with an offered solution, here:
https://github.com/reactioncommerce/reaction-platform/issues/54

Jarland

Have another answer? Share your knowledge.