louislam / dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
https://dockge.kuma.pet
MIT License
13.08k stars 372 forks source link

paperless-ngx: running stack is shown as inactive #474

Open JarlMorgennebel opened 7 months ago

JarlMorgennebel commented 7 months ago

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

🛡️ Security Policy

Description

paperless-ngx is up and running fine. DockGE reports the stack as inactive, even when restarted from command line.

root@wyse-5070-wan-docker:/opt/stacks/paperless-ngx# cat compose.yml 
version: "3.4"
services:
  broker:
    image: docker.io/library/redis:6.0
    restart: unless-stopped
    volumes:
      - ./redis_data:/data

  db:
    image: docker.io/library/postgres:13
    restart: unless-stopped
    volumes:
      - ./postgres_data:/var/lib/postgresql/data
    environment:
      POSTGRES_DB: paperless
      POSTGRES_USER: paperless
      POSTGRES_PASSWORD: paperless

  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    restart: unless-stopped
    depends_on:
      - db
      - broker
      - gotenberg
      - tika
    ports:
      - 8000:8000
        #    healthcheck:
        #      test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"]
        #      interval: 30s
        #      timeout: 10s
        #      retries: 5
    volumes:
      - ./paperless_data:/usr/src/paperless/data
      - ./paperless_media:/usr/src/paperless/media
      - ./paperless_export:/usr/src/paperless/export
      - ./paperless_consume:/usr/src/paperless/consume
    env_file: docker-compose.env
    environment:
      PAPERLESS_REDIS: redis://broker:6379
      PAPERLESS_DBHOST: db
      PAPERLESS_TIKA_ENABLED: 1
      PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
      PAPERLESS_TIKA_ENDPOINT: http://tika:9998

  gotenberg:
    image: docker.io/gotenberg/gotenberg:7.4
    restart: unless-stopped
    command:
      - "gotenberg"
      - "--chromium-disable-routes=true"

  tika:
    image: ghcr.io/paperless-ngx/tika:latest
    restart: unless-stopped

volumes:
  paperless_data:
  paperless_media:
  postgres_dataa:
  redis_data:

👟 Reproduction steps

docker-compose up -d Wait 60 secs

👀 Expected behavior

Stack status shown as active as all other stacks

😓 Actual Behavior

Stack status shown as inactive as only exception

Dockge Version

1.4.2

💻 Operating System and Arch

Devuan Daedalus (Debian without systemd)

🌐 Browser

Vivaldi

🐋 Docker Version

docker 20.10.24+dfsg1

🟩 NodeJS Version

No response

📝 Relevant log output

root@wyse-5070-wan-docker:/opt/stacks/paperless-ngx# docker ps | grep paper
03d2cd7586e9   ghcr.io/paperless-ngx/paperless-ngx:latest   "/sbin/docker-entryp…"   15 minutes ago   Up 15 minutes (healthy)   0.0.0.0:8000->8000/tcp                        paperless_webserver_1
2a1dde83983a   ghcr.io/paperless-ngx/tika:latest            "/bin/sh -c 'exec ja…"   15 minutes ago   Up 15 minutes             9998/tcp                                      paperless_tika_1
45fe588780d1   postgres:13                                  "docker-entrypoint.s…"   15 minutes ago   Up 15 minutes             5432/tcp                                      paperless_db_1
424cd693d10c   redis:6.0                                    "docker-entrypoint.s…"   15 minutes ago   Up 15 minutes             6379/tcp                                      paperless_broker_1
c0f45ce8ced7   gotenberg/gotenberg:7.4                      "/usr/bin/tini -- go…"   15 minutes ago   Up 15 minutes             3000/tcp                                      paperless_gotenberg_1
JarlMorgennebel commented 7 months ago
Bildschirmfoto 2024-04-01 um 12 20 23
djismgaming commented 7 months ago

Have you tried without the version: "3.4" line? It has been removed from compose anyways.

pusi77 commented 7 months ago

I have the same problem, removing the version line does not fix it. I also see a "paperless" stack active, but not managed by dockge (and I have no other paperless stack):

Screenshot 2024-04-06 at 22 56 54
JarlMorgennebel commented 7 months ago

Same here.

No change on the version-line, seeing an additional paperless stack which changes status as well.

truthsword commented 7 months ago

Not an issue here

JarlMorgennebel commented 7 months ago

Is this paperless or Paperless-ngx?

⁣BlueMail for Android herunterladen ​

Am 9. Apr. 2024, 17:28, um 17:28, truthsword @.***> schrieb:

Not an issue here

-- Reply to this email directly or view it on GitHub: https://github.com/louislam/dockge/issues/474#issuecomment-2045482426 You are receiving this because you authored the thread.

Message ID: @.***>

truthsword commented 7 months ago

Is this paperless or Paperless-ngx?

ngx ... same as the thread

Your compose file seems off. Maybe that's the source of your issue.

xtr3-m3 commented 7 months ago

I changed the name in the .env file COMPOSE_PROJECT_NAME=paperless in my docker-compose folder from paperless to paperless-ngx (thats the name of my container in the docker-compose.yml). After deleting the containers and new docker compose up -d its fine now in dockge!

truthsword commented 7 months ago

Just FYI... but you have other issues ... for some reason you have defined docker volumes (which aren't used) while you also have defined bind mount volumes. You also have a type on a docker volume, but as that presumably is not used, it is just noise. A check of your compose file using docker compose config should have flagged these things. Good luck.

xtr3-m3 commented 7 months ago

Yes , i had unused docker volumes. I removed them now and reverted the .env back to paperless and created new containers. Same Output with the inactive paperless-ngx in dockge. I changed it back to paperless-ngx in the .env and its now working again. At least i have a cleaner compose file now..

basnappl commented 1 month ago

I had this issue and the problem was that the folder names for my stacks were capitalized (e.g., "Immich"). Renaming them to start with lower-case letters solved the problem. ::shrug::