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 when running docker-compose up #1

Open
t-persson opened this issue Dec 11, 2019 · 3 comments
Open

Error when running docker-compose up #1

t-persson opened this issue Dec 11, 2019 · 3 comments

Comments

@t-persson
Copy link

Description

When running "docker-compose up" I get an error when building:

docker-compose up
/bin/sh: /tmp/_MEIwKK0ff/libtinfo.so.5: no version information available (required by /bin/sh)
Creating network "simpleeventsender_default" with the default driver
Creating volume "simpleeventsender_mongodb_data" with local driver
Creating volume "simpleeventsender_rabbitmqdata" with local driver
Pulling rabbitmq (rabbitmq:3.7-management)...
3.7-management: Pulling from library/rabbitmq
7ddbc47eeb70: Already exists
c1bbdc448b72: Already exists
8c3b70e39044: Already exists
45d437916d57: Already exists
916459a32f87: Pull complete
4987fa1cb144: Pull complete
d3294ff2c0a8: Pull complete
406f5e6fcfa0: Pull complete
b05aaa15c38e: Pull complete
bc2fb2d60176: Pull complete
aa0f9df2e3e0: Pull complete
650a72f684b3: Pull complete
Digest: sha256:244eaab4d838472e42f64abf7e616fdc8611858ab67dd9b2f9aaa54c490e8542
Status: Downloaded newer image for rabbitmq:3.7-management
Building app
Step 1/6 : FROM node:10
10: Pulling from library/node
844c33c7e6ea: Pull complete
ada5d61ae65d: Pull complete
f8427fdf4292: Pull complete
f025bafc4ab8: Pull complete
7a9577c07934: Pull complete
9b4289f800f5: Pull complete
9b8b4aee1f5f: Pull complete
44594f2195cd: Pull complete
b0d47c2d812b: Pull complete
Digest: sha256:be69034700545030c110f67ae22e0584ddd59eeb2af81e4bd7f16f3ba5fa93a6
Status: Downloaded newer image for node:10
---> d5680e53a228
Step 2/6 : WORKDIR /simple_event_sender
---> Running in b02cbc2eb8ad
Removing intermediate container b02cbc2eb8ad
---> 6a500f117e5b
Step 3/6 : COPY package*.json ./
---> 7c2a85fc25e3
Step 4/6 : RUN npm install
---> Running in 5c780498fdc5
npm WARN [email protected] No description

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-12-11T09_17_03_197Z-debug.log
ERROR: Service 'app' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

Motivation

Installation guide should work :)

Exemplification

Stuff works

Benefits

Stuff works

Possible Drawbacks

None

@karlsoderback
Copy link
Collaborator

It appears that the npm install stage of building your docker is failing for some reason, never seen this before. Does the same thing happen if you run npm install manually in root of the project directory without running docker?

@t-persson
Copy link
Author

"npm install" works just fine. Just a problem with the docker compose command

@e-pettersson-ericsson
Copy link
Member

I had a similar issue, although I got different errors when using: docker-compose up:

simple_event_sender | npm ERR!     /root/.npm/_logs/2020-01-02T14_59_10_334Z-debug.log
simple_event_sender exited with code 1
simple_event_sender | 
simple_event_sender | > [email protected] start /simple_event_sender
simple_event_sender | > node server.js
simple_event_sender | 
simple_event_sender | internal/modules/cjs/loader.js:638
simple_event_sender |     throw err;
simple_event_sender |     ^
simple_event_sender | 
simple_event_sender | Error: Cannot find module 'cors'
simple_event_sender |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
simple_event_sender |     at Function.Module._load (internal/modules/cjs/loader.js:562:25)
simple_event_sender |     at Module.require (internal/modules/cjs/loader.js:692:17)
simple_event_sender |     at require (internal/modules/cjs/helpers.js:25:18)
simple_event_sender |     at Object.<anonymous> (/simple_event_sender/server.js:14:12)
simple_event_sender |     at Module._compile (internal/modules/cjs/loader.js:778:30)
simple_event_sender |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
simple_event_sender |     at Module.load (internal/modules/cjs/loader.js:653:32)
simple_event_sender |     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
simple_event_sender |     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
simple_event_sender | npm ERR! code ELIFECYCLE
simple_event_sender | npm ERR! errno 1
simple_event_sender | npm ERR! [email protected] start: `node server.js`
simple_event_sender | npm ERR! Exit status 1
simple_event_sender | npm ERR! 
simple_event_sender | npm ERR! Failed at the [email protected] start script.
simple_event_sender | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
simple_event_sender | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
simple_event_sender | 
simple_event_sender | npm ERR! A complete log of this run can be found in:
simple_event_sender | npm ERR!     /root/.npm/_logs/2020-01-02T14_59_12_416Z-debug.log
simple_event_sender exited with code 1

By running npm install manually in the repository root and then trying docker-compose up again the app starts.
I'm not a node expert but perhaps this can help troubleshooting the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants