Error running local server
See original GitHub issueContext
Trying to run the local docker server and getting npm error
Expected Behavior
Expected behavior is to have a running local server
Actual Behavior
Building server
Step 1/7 : FROM gcr.io/google_appengine/nodejs
---> 6a09807598e8
Step 2/7 : RUN install_node v8.11.1 && apt update && apt dist-upgrade -y && apt install -y mysql-client
---> Using cache
---> 17970a2b50be
Step 3/7 : WORKDIR /app/
---> Using cache
---> 3edcee9a4b05
Step 4/7 : COPY . /app/
---> Using cache
---> ad612aeac03e
Step 5/7 : RUN npm cache verify && bin/install
---> Running in 406492d6e37f
npm ERR! stream.push() after EOF
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-07-03T19_39_56_468Z-debug.log
ERROR: Service 'server' failed to build: The command '/bin/sh -c npm cache verify && bin/install' returned a non-zero code: 1
Possible Fix
Steps to Reproduce
- Cloned repo and checkout master
- Follow readme and run
docker-compose -f deployments/local/docker-compose.yml up -d
Context
Your Environment
- Environment name and version (e.g. Chrome 39, etc): Docker Engine 18.09.2
- Operating System and version (desktop or mobile): MacOs
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Localhost Refused to Connect Error: 5 Confirmed Ways to Fix It
Localhost refused to connect error can be caused by an incorrectly configured port, insufficient permissions, or an inoperative web server.
Read more >Wamp Server Error [Local Server - 2 of 3 services running]
Check if MySQL is open, close it. Go to task manager and end process tree. Now restart wampserver. And then the MySQL (when...
Read more >Error running local server: GCLOUD: agent library failed to init ...
The issue seems to have been introduced in gcloud version 241.0.0 . The command to start the local server runs successfully after downgrading...
Read more >Wamp Server Error [Local Server - 2 of 3 services running]
Wamp Server Error [ Local Server - 2 of 3 services running ]
Read more >'Starting Tomcat Server at localhost' has encountered a problem
Several ports 8005,8080 required by Tomcat v10.0 server at localhost are already in use. The server may already be running in another ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @atodd
Sounds good. Feel free to ask me if you have any questions. My email address is in all the commit messages:-)
Also I can point you at the demo server if you want to have a look at OSMod in action.
Since you are running this product in local machine… you should not use base image FROM gcr.io/google_appengine/nodejs. Change to use base image: nodejs only. Here is my Dockerfile FROM nodejs
RUN apt update && apt dist-upgrade -y && apt install -y mysql-client
WORKDIR /app/ COPY . /app/
RUN npm cache verify && bin/install
EXPOSE 80 80
CMD bin/run