question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running local server

See original GitHub issue

Context

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

  1. Cloned repo and checkout master
  2. 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:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
RufusHamadecommented, Jul 11, 2019

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.

0reactions
minhlt9196commented, Mar 12, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found