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

Unable to run using Docker #105

Closed
dev-nicolaos opened this issue Jul 23, 2023 · 4 comments
Closed

Unable to run using Docker #105

dev-nicolaos opened this issue Jul 23, 2023 · 4 comments

Comments

@dev-nicolaos
Copy link
Contributor

Environment

  • Fedora Linux 38 (Workstation Edition)
  • Docker Desktop v4.21.0

Steps to Reproduce

Expected Behavior

Gathio starts successfully and is available on http://localhost:3000

Actual Behavior

The mongo container runs starts successfully, but the gathio container stops almost immediately after starting. Using docker desktop to inspect the logs for the gathio container reveals the following error:

 > [email protected] start /app
2023-07-23 08:56:19 > node dist/start.js
2023-07-23 08:56:19 
2023-07-23 08:56:19 node:internal/modules/cjs/loader:1080
2023-07-23 08:56:19   throw err;
2023-07-23 08:56:19   ^
2023-07-23 08:56:19 
2023-07-23 08:56:19 Error: Cannot find module '/app/dist/start.js'
2023-07-23 08:56:19     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
2023-07-23 08:56:19     at Module._load (node:internal/modules/cjs/loader:922:27)
2023-07-23 08:56:19     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
2023-07-23 08:56:19     at node:internal/main/run_main_module:23:47 {
2023-07-23 08:56:19   code: 'MODULE_NOT_FOUND',
2023-07-23 08:56:19   requireStack: []
2023-07-23 08:56:19 }
2023-07-23 08:56:19 
2023-07-23 08:56:19 Node.js v18.17.0
2023-07-23 08:56:19  ELIFECYCLE  Command failed with exit code 1.

Notes

It may also be helpful to add a note in the docker installation docs for those like me who don't use docker all the time that docker needs to be started before running the docker-compose ... command. If you try to run it before that you get this big cryptic error about python not being able to find some file or directory.

@lowercasename
Copy link
Owner

I can confirm this has been fixed after merging PRs by @dev-nicolaos and @dariusk, thanks both. I also had to make a small change to the Dockerfile to get around a tsc issue.

@TobiasDax
Copy link

Just to budd in here… this is not working for me, I went through the exact same steps as OP and hab the same results, got cloned today so should be the latest release.

Would love to spin up an instance of this but I seem to be stuck here

@lowercasename
Copy link
Owner

Could you share some logs from Docker? Are you seeing exactly the same error message?

@TobiasDax
Copy link


stdout
all values are hidden
stdout
> [email protected] start /app
stdout
> node dist/start.js
stdout
all values are hidden
stderr
node:internal/modules/cjs/loader:1148
stderr
  throw err;
stderr
  ^
stderr
all values are hidden
stderr
Error: Cannot find module '/app/dist/start.js'
stderr
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
stderr
    at Module._load (node:internal/modules/cjs/loader:986:27)
stderr
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
stderr
    at node:internal/main/run_main_module:28:49 {
stderr
  code: 'MODULE_NOT_FOUND',
stderr
  requireStack: []
stderr
}
stderr
all values are hidden
stderr
Node.js v20.15.1
stdout
 ELIFECYCLE  Command failed with exit code 1.
19.07.2024
00:16:13

Sorry, on mobile atm so formatting might be off. I will fix it tomorrow if it’s to bad.
I just cloned the repo, edited the config to get the right Mongodb connection and ran docker compose

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