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.

Unable to run link-warden through docker-compose

See original GitHub issue

I followed the steps from README.md and tried to run it through docker-compose The only thing I modified in docker-compose.yml is

    ports:
      - 13000:3000

as I have another app using 3000 port

Once it’s up, I can see link-warden and link-warden-api keep restarting

docker ps | grep link-warden
19f293c1d366   link-warden_link-warden        "docker-entrypoint.s…"   35 seconds ago       Restarting (127) 4 seconds ago                                                                                                                                                                               link-warden_link-warden_1
a75e107d1c1b   link-warden_link-warden-api    "docker-entrypoint.s…"   About a minute ago   Restarting (1) 8 seconds ago                                                                                                                                                                                 link-warden_link-warden-api_1
58b51a340f39   mongo                          "docker-entrypoint.s…"   About a minute ago   Up About a minute                0.0.0.0:27017->27017/tcp, :::27017->27017/tcp                                                                                                                               link-warden_mongo_1

By checking the logs:

api docker log

    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/node/server.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1112:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:834:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/node/server.js' ]
}

Node.js v18.4.0
node:internal/modules/cjs/loader:949

  throw err;
  ^

Error: Cannot find module 'express'
Require stack:
- /home/node/server.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:946:15)
    at Module._load (node:internal/modules/cjs/loader:787:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/node/server.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1112:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:834:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/node/server.js' ]
}

link-warden log


> link-warden@0.1.0 go
> react-scripts start

/tmp/go65699788867.sh: line 2: react-scripts: not found

Did I miss anything to config?

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
moeenaslamcommented, Jul 18, 2022

You have to run it with docker compose instead of docker-compose. To run, use docker compose up. This project uses docker compose V2 and I can say that if you execute docker-compose -v, it will show you version 1.xx.xx whereas now docker comes with compose v2.

0reactions
Daniel31x13commented, Jul 19, 2022

Hello @nevertomorrow, Sorry to be unresponsive. I applied the changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when trying to run docker-compose up. "oci runtime error ...
I am using a pretty vanilla install of Docker for Mac, and I can't remember doing anything that would require this permission level...
Read more >
docker-compose unable to connect to container in build process
I try i setup a Shopware Docker Container for development. I setup a Dockerfile for the Shopware initialize process but every time i...
Read more >
Docker run error: website can't be open, server error
First you have hard coded the path: /Desktop/pexonhwdockerfilekopie/app.py into your docker-compose.yml file. That path does not exist on my ...
Read more >
Develop a go app with docker compose - FireHydrant
Open this folder in your editor of choice, and we'll get started setting up our development environment. Our Dockerfile. Using Docker Compose ......
Read more >
Setting up using Docker - Troubleshooting - Mattermost Forum
I am making a Mattermost server and doing it via Docker-Compose. I am getting the following error message. Error: failed to load ......
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