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

Compose files not seen #250

Closed
2 tasks done
Aviortheking opened this issue Dec 6, 2023 · 6 comments
Closed
2 tasks done

Compose files not seen #250

Aviortheking opened this issue Dec 6, 2023 · 6 comments
Labels
bug Something isn't working need-reproduce-steps

Comments

@Aviortheking
Copy link

Aviortheking commented Dec 6, 2023

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I have no compose files seen + it seems that it stop detecting state of compose
image
the token shown in my compose is out of date

👟 Reproduction steps

  • create a docker-compose.yml out of the /opt/stacks folder file with
version: "3.3"
services:
  uptime-kuma:
    restart: unless-stopped
    volumes:
      - ./data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock:ro
    image: louislam/uptime-kuma:1
    networks:
      - coolify-infra
    labels:
      - traefik.enable=true
      - traefik.http.routers.uptime-kuma.rule=Host(`uptime.dzeio.com`)
      - traefik.http.services.uptime-kuma.loadbalancer.server.port=3001
      - traefik.http.routers.uptime-kuma.tls.certresolver=letsencrypt
  • run docker-compose up -d
  • run docker-compose stop
  • delete the docker-compose.yml file

I think you have to create a compose file an up it once, stop it and delete the compose file
(out of dockge stacks folder)

as the container 491e4c1cac31a1be74020030eb10e5d259a2a820a501ab10e1b8223b36e642f7 was made in another folder but the compose file is not present anymore (also the container is down)

👀 Expected behavior

we should be able to see the list of stacks and manipulate active containers

😓 Actual Behavior

we don't see the list of stacks and can't manipulate active composes

Dockge Version

1.3.2

💻 Operating System and Arch

Linux SRV1 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux

🌐 Browser

Firefox 119.0.1

🐋 Docker Version

Docker version 20.10.24+dfsg1, build 297e128

🟩 NodeJS Version

No response

📝 Relevant log output

dockge_1  |     at process.unexpectedErrorHandler (/app/backend/dockge-server.ts:76:21)
dockge_1  |     at process.emit (node:events:514:28)
dockge_1  |     at process.emit (/pnpm/global/5/.pnpm/[email protected]/node_modules/tsx/dist/suppress-warnings.cjs:1:472)
dockge_1  |     at emit (node:internal/process/promises:149:20)
dockge_1  |     at processPromiseRejections (node:internal/process/promises:283:27)
dockge_1  |     at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
dockge_1  | If you keep encountering errors, please report to https://github.com/louislam/dockge
dockge_1  | Trace: Error: Process exited with code 1
dockge_1  |     at ChildProcess.done (/app/node_modules/.pnpm/[email protected]/node_modules/promisify-child-process/index.cjs:70:19)
dockge_1  |     at ChildProcess.emit (node:events:514:28)
dockge_1  |     at ChildProcess.emit (node:domain:489:12)
dockge_1  |     at maybeClose (node:internal/child_process:1091:16)
dockge_1  |     at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
dockge_1  |   code: 1,
dockge_1  |   signal: null,
dockge_1  |   stdout: '',
dockge_1  |   stderr: 'No label "com.docker.compose.project.config_files" set on container "491e4c1cac31a1be74020030eb10e5d259a2a820a501ab10e1b8223b36e642f7" of compose project\n'
dockge_1  | }
@Aviortheking Aviortheking added the bug Something isn't working label Dec 6, 2023
@louislam
Copy link
Owner

louislam commented Dec 6, 2023

The reproduce steps is not clear and don't quite understand, because you said you deleted the compose file.

Isn't expected? because you deleted the compose file and won't able to show in the list.

@Aviortheking
Copy link
Author

another explanation :

  • create a docker-compose.yml out of the /opt/stacks folder file with
version: "3.3"
services:
  uptime-kuma:
    restart: unless-stopped
    volumes:
      - ./data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock:ro
    image: louislam/uptime-kuma:1
    networks:
      - coolify-infra
    labels:
      - traefik.enable=true
      - traefik.http.routers.uptime-kuma.rule=Host(`uptime.dzeio.com`)
      - traefik.http.services.uptime-kuma.loadbalancer.server.port=3001
      - traefik.http.routers.uptime-kuma.tls.certresolver=letsencrypt
  • run docker-compose up -d
  • run docker-compose stop
  • delete the docker-compose.yml file

You will have a stopped container with a non existing compose file

@Aviortheking
Copy link
Author

Aviortheking commented Dec 6, 2023

I'm not quite sure why it happens, but the containers linked to the errors are containers that had their lifecycle like above

@louislam
Copy link
Owner

louislam commented Dec 6, 2023

If you want to delete a stack, you must use docker compose down, stop is not OK. You should check docker compose docs if you have any questions.

It is a docker question, not a bug.

@louislam louislam closed this as completed Dec 6, 2023
@Aviortheking
Copy link
Author

welp the containers were bassically stopped because they were meant to be restarted so we didn't want to have networks and all removed

@Aviortheking
Copy link
Author

but even so, stopped containers should not crash Dockge compose recognition, it should skip them at least I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-reproduce-steps
Projects
None yet
Development

No branches or pull requests

2 participants