-
Notifications
You must be signed in to change notification settings - Fork 193
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
Permission denied error (??) on Ubuntu 18.04.3 (LTS) x64 #91
Comments
Found this out: cd example-storefront
docker-compose logs -f Then open another window and do: curl http://localhost:4000 I will get the following error on the first window: web_1 | > Building page: /productGrid
web_1 | WAIT Compiling...7:49:47 PM
web_1 |
web_1 | [7:49:48 PM] Compiling server
web_1 | [7:49:48 PM] Compiling client
web_1 | [7:49:49 PM] Compiled client in 1s
web_1 | DONE Compiled successfully in 1509ms7:49:49 PM
web_1 |
web_1 | [7:49:49 PM] Compiled server in 2s
web_1 | Unable to access the GraphQL API. Is it running and accessible at http://reaction.api.reaction.localhost:3000/graphql-beta from the Storefront UI server?
web_1 | { Error: Network error: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000
web_1 | at new ApolloError (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:99:32)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:978:45
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1345:21
web_1 | at Array.forEach (<anonymous>)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1344:22
web_1 | at Map.forEach (<anonymous>)
web_1 | at QueryManager.broadcastQueries (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1339:26)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:928:35
web_1 | at process._tickCallback (internal/process/next_tick.js:68:7)
web_1 | graphQLErrors: [],
web_1 | networkError:
web_1 | { FetchError: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000
web_1 | at ClientRequest.<anonymous> (/usr/local/src/app/node_modules/node-fetch/index.js:133:11)
web_1 | at ClientRequest.emit (events.js:198:13)
web_1 | at Socket.socketErrorListener (_http_client.js:392:9)
web_1 | at Socket.emit (events.js:198:13)
web_1 | at emitErrorNT (internal/streams/destroy.js:91:8)
web_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
web_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
web_1 | name: 'FetchError',
web_1 | message:
web_1 | 'request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000',
web_1 | type: 'system',
web_1 | errno: 'ENOTFOUND',
web_1 | code: 'ENOTFOUND' },
web_1 | message:
web_1 | 'Network error: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000',
web_1 | extraInfo: undefined }
web_1 | Unable to access the GraphQL API. Is it running and accessible at http://reaction.api.reaction.localhost:3000/graphql-beta from the Storefront UI server?
web_1 | { Error: Network error: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000
web_1 | at new ApolloError (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:99:32)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:978:45
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1345:21
web_1 | at Array.forEach (<anonymous>)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1344:22
web_1 | at Map.forEach (<anonymous>)
web_1 | at QueryManager.broadcastQueries (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1339:26)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:928:35
web_1 | at process._tickCallback (internal/process/next_tick.js:68:7)
web_1 | graphQLErrors: [],
web_1 | networkError:
web_1 | { FetchError: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000
web_1 | at ClientRequest.<anonymous> (/usr/local/src/app/node_modules/node-fetch/index.js:133:11)
web_1 | at ClientRequest.emit (events.js:198:13)
web_1 | at Socket.socketErrorListener (_http_client.js:392:9)
web_1 | at Socket.emit (events.js:198:13)
web_1 | at emitErrorNT (internal/streams/destroy.js:91:8)
web_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
web_1 | at process._tickCallback (internal/process/next_tick.js:63:19)
web_1 | name: 'FetchError',
web_1 | message:
web_1 | 'request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000',
web_1 | type: 'system',
web_1 | errno: 'ENOTFOUND',
web_1 | code: 'ENOTFOUND' },
web_1 | message:
web_1 | 'Network error: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000',
web_1 | extraInfo: undefined }
web_1 | Unable to access the GraphQL API. Is it running and accessible at http://reaction.api.reaction.localhost:3000/graphql-beta from the Storefront UI server?
web_1 | (node:72) UnhandledPromiseRejectionWarning: Error: Network error: request to http://reaction.api.reaction.localhost:3000/graphql-beta failed, reason: getaddrinfo ENOTFOUND reaction.api.reaction.localhost reaction.api.reaction.localhost:3000
web_1 | at new ApolloError (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:99:32)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:978:45
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1345:21
web_1 | at Array.forEach (<anonymous>)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1344:22
web_1 | at Map.forEach (<anonymous>)
web_1 | at QueryManager.broadcastQueries (/usr/local/src/app/node_modules/apollo-client/bundle.umd.js:1339:26)
web_1 | at /usr/local/src/app/node_modules/apollo-client/bundle.umd.js:928:35
web_1 | at process._tickCallback (internal/process/next_tick.js:68:7)
web_1 | (node:72) 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: 9) |
How much ram are you running with? |
In order to make sure i started a new machine with 4GB RAM, installed virtual box manager and followed the instructions found here, which basically is: docker-machine stop
VBoxManage modifyvm default --cpus 2
VBoxManage modifyvm default --memory 4096
docker-machine start Once done that, i cloned the repo again and did execute root@reaction-commerce:~/reaction-platform# make
Error response from daemon: network with name auth.reaction.localhost already exists
Error response from daemon: network with name api.reaction.localhost already exists
Error response from daemon: network with name streams.reaction.localhost already exists
Running pre-build hook script for reaction-hydra.
reaction-hydra post-project-start script invoked.
postgres uses an image, skipping
... Once that finished i did root@reaction-commerce:~/reaction-platform# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
babf278c2b00 reactioncommerce/node-dev:10.16.3-v2 "tini -- /usr/local/…" 2 minutes ago Up 2 minutes 0.0.0.0:4000->4000/tcp example-storefront_web_1
0c9d53ea777f mongo:3.6.3 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:27017->27017/tcp reaction_mongo_1
bafeb0190e2b oryd/hydra:v1.0.0-beta.9-alpine "hydra serve all --d…" 7 minutes ago Up 7 minutes 0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp reaction-hydra_hydra_1
5a1904cf58dd postgres:10.3 "docker-entrypoint.s…" 7 minutes ago Up 7 minutes 0.0.0.0:32768->5432/tcp reaction-hydra_postgres_1 i can then do CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
babf278c2b00 reactioncommerce/node-dev:10.16.3-v2 "tini -- /usr/local/…" 6 minutes ago Up 2 seconds 0.0.0.0:4000->4000/tcp example-storefront_web_1
33dbd91f7df3 reaction_reaction "bash -c 'time meteo…" 7 minutes ago Up 4 seconds 0.0.0.0:3000->3000/tcp, 0.0.0.0:9229->9229/tcp reaction_reaction_1
0c9d53ea777f mongo:3.6.3 "docker-entrypoint.s…" 7 minutes ago Up 6 seconds 0.0.0.0:27017->27017/tcp reaction_mongo_1
bafeb0190e2b oryd/hydra:v1.0.0-beta.9-alpine "hydra serve all --d…" 11 minutes ago Up 8 seconds 0.0.0.0:4444-4445->4444-4445/tcp, 0.0.0.0:5555->5555/tcp reaction-hydra_hydra_1
5a1904cf58dd postgres:10.3 "docker-entrypoint.s…" 11 minutes ago Up 11 seconds 0.0.0.0:32769->5432/tcp reaction-hydra_postgres_1 Looking at Check the "permission denied" error..
|
That permission error makes me think that there are some file permissions that need to be changed on your machine in order for @willopez have you installed on Ubuntu before? |
@hems change the ownership of the reaction installation directory like so:
and also set the permissions of the same directory like so:
and then restart the Docker service by executing:
|
@willopez thanks for your suggestion, i tried changing the permissions all around but still go that error. reaction_1 |
reaction_1 | added 4 packages from 2 contributors in 40.219s
reaction_1 |
reaction_1 | real 0m41.274s
reaction_1 | user 0m37.360s
reaction_1 | sys 0m3.790s
reaction_1 | MongoDB replica set initialized and ready.
reaction_1 | (node:47) ExperimentalWarning: The ESM module loader is experimental.
reaction_1 | Setting up plugin imports...
reaction_1 |
reaction_1 | Failed to reset plugins file at /opt/reaction/src/client/plugins.js
reaction_reaction_1 exited with code 1 i suspect that error is inside the container on docker so chown and chmod wouldn't change much ? or maybe i have to rebuild an image because of those permission changes? any ideas? |
try rebuilding the image |
will do by using |
you should only need to remove the Reaction image:
and then |
I tried previously with system prune then make and it did not see to work, I'm doing now only he reaction folder, hopefully, it will not yield the error. |
unfortunately, ended up with the same error. reaction_1 | npm WARN saveError EACCES: permission denied, open '/opt/reaction/src/package-lock.json.1752014446'
reaction_1 | npm WARN @apollo/react-common@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @apollo/react-components@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @apollo/react-hoc@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @apollo/react-hooks@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @apollo/react-testing@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/catalyst@1.12.0 requires a peer of prop-types@~15.6.2 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/catalyst@1.12.0 requires a peer of react-dom@~16.9.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN mdi-material-ui@5.8.0 requires a peer of @material-ui/core@^1.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/components@0.67.2 requires a peer of react@~16.9.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/components@0.67.2 requires a peer of reacto-form@~1.4.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/components@0.67.2 requires a peer of styled-components@~3.3.3 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN @reactioncommerce/eslint-config@2.1.0 requires a peer of eslint-plugin-promise@>=4 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN apollo-graphql@0.3.3 requires a peer of graphql@^14.2.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN eslint-plugin-import@2.12.0 requires a peer of eslint@2.x - 4.x but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN eslint-plugin-jsx-a11y@6.1.1 requires a peer of eslint@^3 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN eslint-plugin-react@7.8.2 requires a peer of eslint@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN graphql-iso-date@3.5.0 requires a peer of graphql@^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN graphql-relay@0.5.5 requires a peer of graphql@^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN graphql-tag@2.9.2 requires a peer of graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN react-addons-test-utils@15.6.2 requires a peer of react-dom@^15.4.2 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN react-apollo@3.0.0 requires a peer of graphql@^14.3.1 but none is installed. You must install peer dependencies yourself.
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-runtime/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-runner/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-haste-map/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-config/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@jest/test-sequencer/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@jest/reporters/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@jest/environment/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@jest/core/node_modules/fsevents):
reaction_1 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
reaction_1 |
reaction_1 | added 4 packages from 2 contributors in 32.032s
reaction_1 |
reaction_1 | real 0m33.550s
reaction_1 | user 0m31.990s
reaction_1 | sys 0m3.287s
mongo_1 | 2020-01-08T23:34:04.657+0000 I NETWORK [listener] connection accepted from 172.25.0.3:39716 #1 (1 connection now open)
mongo_1 | 2020-01-08T23:34:04.665+0000 I NETWORK [conn1] received client metadata from 172.25.0.3:39716 conn: { driver: { name: "nodejs", version: "3.1.13" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.15.0-66-generic" }, platform: "Node.js v8.11.4, LE, mongodb-core: 3.1.11" }
mongo_1 | 2020-01-08T23:34:04.676+0000 I REPL [conn1] replSetInitiate admin command received from client
reaction_1 | MongoDB replica set initialized and ready.
mongo_1 | 2020-01-08T23:34:04.683+0000 I NETWORK [conn1] end connection 172.25.0.3:39716 (0 connections now open)
reaction_1 | (node:47) ExperimentalWarning: The ESM module loader is experimental.
reaction_1 | Setting up plugin imports...
reaction_1 |
reaction_1 | Failed to reset plugins file at /opt/reaction/src/client/plugins.js |
it looks like somehow, perhaps you are installing reaction as a And then run the Reaction platform installation from the beginning, make sure you prune your entire Docker system to avoid any issues, |
I actually ran in to the same problem a couple days ago. The system runs perfectly on my Mac, but fails to build and run properly on my ubuntu server. And here's another I ran across while building reaction.
It just occurs to me that there might be a problem with the mongodb installation that causes this problem. |
@mikelxc |
This shouldn't be an issue with the latest version. Please re-open if someone is still encountering this. |
Prerequisites
Are you running the latest version?
^ as per documentation, i simply run
git clone git@github.com:reactioncommerce/reaction-platform.git
Did you search the issue queue for existing issue? [Search issues]
yes
Issue Description
I created a droplet on Digital Ocean, using Ubuntu 18.04.3 (LTS) x64 once i execute
docker ps
i can see the following images running:On the documentation it says i should have
example-storefront_web
running, but it's not running aftermake
.Steps to Reproduce
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
The text was updated successfully, but these errors were encountered: