Report this

What is the reason for this report?

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

Posted on March 20, 2019

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-starterkit_web and reaction_reaction).

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

<^> web_1 | yarn install v1.13.0 web_1 | [1/4] Resolving packages… web_1 | [2/4] Fetching packages… web_1 | info There appears to be trouble with your network connection. Retrying… web_1 | 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. web_1 | [3/4] Linking dependencies… web_1 | warning " > react-tracking@5.6.0" has unmet peer dependency “core-js@2.x”. web_1 | [4/4] Building fresh packages… web_1 | warning Ignored scripts due to flag. web_1 | Done in 59.00s. web_1 | Creating hydra client…OK: hydra client already exists web_1 | yarn run v1.13.0 web_1 | $ NODE_ENV=development node ./src/server.js web_1 | [9:40:33 AM] Compiling server web_1 | [9:40:37 AM] Compiling client web_1 | > Using external babel configuration web_1 | > Location: “/usr/local/src/reaction-app/.babelrc” web_1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/local/src/reaction-app/build’ web_1 | at Object.mkdirSync (fs.js:752:3) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:71:13) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at Function.sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at /usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26 web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4911:15 web_1 | at baseForOwn (/usr/local/src/node_modules/lodash/lodash.js:2996:24) web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4880:18 web_1 | at Function.forEach (/usr/local/src/node_modules/lodash/lodash.js:9344:14) web_1 | at handleAfterEmit (/usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24) web_1 | at _err1 (eval at create (/usr/local/src/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1) web_1 | at /usr/local/src/node_modules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18 web_1 | (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. web_1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/local/src/reaction-app/build’ web_1 | at Object.mkdirSync (fs.js:752:3) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:71:13) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at Function.sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at /usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26 web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4911:15 web_1 | at baseForOwn (/usr/local/src/node_modules/lodash/lodash.js:2996:24) web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4880:18 web_1 | at Function.forEach (/usr/local/src/node_modules/lodash/lodash.js:9344:14) web_1 | at handleAfterEmit (/usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24) web_1 | at _err1 (eval at create (/usr/local/src/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1) web_1 | at /usr/local/src/node_modules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18 web_1 | (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. web_1 | yarn install v1.13.0 web_1 | [1/4] Resolving packages… web_1 | success Already up-to-date. web_1 | Done in 2.08s. web_1 | Creating hydra client…OK: hydra client already exists web_1 | yarn run v1.13.0 web_1 | $ NODE_ENV=development node ./src/server.js web_1 | [9:42:13 AM] Compiling server web_1 | [9:42:15 AM] Compiling client web_1 | > Using external babel configuration web_1 | > Location: “/usr/local/src/reaction-app/.babelrc” web_1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/local/src/reaction-app/build’ web_1 | at Object.mkdirSync (fs.js:752:3) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:71:13) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at Function.sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at /usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26 web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4911:15 web_1 | at baseForOwn (/usr/local/src/node_modules/lodash/lodash.js:2996:24) web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4880:18 web_1 | at Function.forEach (/usr/local/src/node_modules/lodash/lodash.js:9344:14) web_1 | at handleAfterEmit (/usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24) web_1 | at _err1 (eval at create (/usr/local/src/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1) web_1 | at /usr/local/src/node_modules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18 web_1 | (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. web_1 | (node:70) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir ‘/usr/local/src/reaction-app/build’ web_1 | at Object.mkdirSync (fs.js:752:3) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:71:13) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at Function.sync (/usr/local/src/node_modules/mkdirp/index.js:77:24) web_1 | at /usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26 web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4911:15 web_1 | at baseForOwn (/usr/local/src/node_modules/lodash/lodash.js:2996:24) web_1 | at /usr/local/src/node_modules/lodash/lodash.js:4880:18 web_1 | at Function.forEach (/usr/local/src/node_modules/lodash/lodash.js:9344:14) web_1 | at handleAfterEmit (/usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24) web_1 | at _err1 (eval at create (/usr/local/src/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1) web_1 | at /usr/local/src/node_modules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18 web_1 | (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. web_1 | yarn install v1.13.0 web_1 | [1/4] Resolving packages… web_1 | success Already up-to-date. web_1 | Done in 1.25s. web_1 | Operation timed out web_1 | Creating hydra client…reaction-next-starterkit_web_1 exited with code 1

<^>

Need help.

Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.