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: Cannot find module '/app/server.js' #80

Open
raclariu opened this issue Jun 14, 2024 · 5 comments
Open

Error: Cannot find module '/app/server.js' #80

raclariu opened this issue Jun 14, 2024 · 5 comments
Assignees
Labels

Comments

@raclariu
Copy link

My Compose

  dweebui:
    container_name: dweebui
    image: lllllllillllllillll/dweebui:v0.60
    environment:
      PORT: 8319
      SECRET: MrWiskers
      HTTPS: false
    restart: unless-stopped
    ports:
      - 8319:8000
    volumes:
      - /dkr/config/dweebui:/app
      # Docker socket
      - /var/run/docker.sock:/var/run/docker.sock

Cannot connect to gui, logs show me this error

Node.js v21.6.2
node:internal/modules/cjs/loader:1152
�
  throw err;
  ^
Error: Cannot find module '/app/server.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
    at Module._load (node:internal/modules/cjs/loader:990:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
@lllllllillllllillll
Copy link
Owner

lllllllillllllillll commented Jun 15, 2024

Just updated lllllllillllllillll/dweebui:v0.60-dev. Let me know if that works.

edit: It didn't. Working on fixing it.

@lllllllillllllillll
Copy link
Owner

I still need to make changes to persist data.
You can change it to - /dkr/config/dweebui:/app/config or just remove the volume for now.

@raclariu
Copy link
Author

I've tried with /app/config, still the same. It's something on my end? Is the config wrong in any way? Thanks for looking into it.

@lllllllillllllillll
Copy link
Owner

lllllllillllllillll commented Jun 16, 2024

I've uploaded an image with the 'latest' tag, so the version can get left out now.

version: "3.9"
services:
dweebui:
container_name: dweebui
image: lllllllillllllillll/dweebui
environment:
PORT: 8000
SECRET: MrWiskers
restart: unless-stopped
ports:
- 8000:8000
volumes:
- ./config:/app/config
# Docker socket
- /var/run/docker.sock:/var/run/docker.sock`

Try deleting the dweebui image and volume.

I usually use docker compose down --rmi all --volumes

@lllllllillllllillll lllllllillllllillll self-assigned this Jun 25, 2024
@lllllllillllllillll
Copy link
Owner

lllllllillllllillll commented Aug 30, 2024

related issue: #104

Make sure to use a docker volume instead of a bind mount.

version: "3.9"
services:
  dweebui:
    container_name: dweebui
    image: lllllllillllllillll/dweebui
    environment:
      PORT: 8000
      SECRET: MrWiskers
    restart: unless-stopped
    ports:
      - 8093:8000
    volumes:
      - dweebui:/app
      - /var/run/docker.sock:/var/run/docker.sock

volumes:
  dweebui:

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

No branches or pull requests

2 participants