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

PiGallery2 stopped working - health issue - docker update ? #894

Open
niawag opened this issue Apr 24, 2024 · 3 comments
Open

PiGallery2 stopped working - health issue - docker update ? #894

niawag opened this issue Apr 24, 2024 · 3 comments

Comments

@niawag
Copy link

niawag commented Apr 24, 2024

Hi, I'm using PiGallery2 with docker (latest-alpine) on a x86_64 plateform with Ubuntu 22.04. I updated my docker version to version 26.1.0, build 9714adc (latest deb available) and compose to v2.26.1 and the update seems to have broken PiGallery2.
Here is my compose section:

pigallery2:
    image: bpatrik/pigallery2:latest-alpine
    container_name: pigallery2
    environment:
      - NODE_ENV=production 
      - TZ=Europe/Paris
      - PUID=1026
     - PGID=100
    networks:
      - t2_proxy
    security_opt:
      - no-new-privileges:true
    restart: always
    volumes:
      - "./pigallery2/config:/app/data/config"
      - "./pigallery2/db-data:/app/data/db"
      - "/mnt/photo:/app/data/images:ro"
      - "./pigallery2/tmp:/app/data/tmp"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.pigall-rtr.entrypoints=https"
      - "traefik.http.routers.pigall-rtr.rule=Host(`pigall.mydomain.wtf`)"
      - "traefik.http.routers.pigall-rtr.tls=true"
      - "traefik.http.routers.pigall-rtr.service=pigall-svc"
      - "traefik.http.services.pigall-svc.loadbalancer.server.port=80"
      - "traefik.http.routers.pigall-rtr.middlewares=localip"

The debug logs seems OK

I tried with edge-alpine and lastest images, same issue.
Is there someone else affected by this bug ? Is there anything I can do to help fixing that bug ?

@niawag
Copy link
Author

niawag commented Apr 24, 2024

After some testing, it seems the latest docker version is responsible. I downgraded the following packages to these versions:

docker-ce=5:25.0.5-1~ubuntu.22.04~jammy
docker-ce-cli=5:25.0.5-1~ubuntu.22.04~jammy
docker-compose-plugin=2.25.0-1~ubuntu.22.04~jammy

(using sudo apt install docker-ce=5:25.0.5-1~ubuntu.22.04~jammy and so on)
And PiGallery is up and running. (tested with docker 26.0.2-1, not working either)

I have a lot of differents containers running on that server, all the others were running fine on the latest docker version so it must be something specific to PiGallery

@bpatrik
Copy link
Owner

bpatrik commented Apr 26, 2024

yeah those logs does not tell much.
I have't run into this issue yet, so I cant really comment.

i see that a worker thread is trying to come up. You can disable threading in the config. Its deprecated. Maybe that makes a difference.

@niawag
Copy link
Author

niawag commented Apr 29, 2024

I think it's related to Traefik + docker 26 + healthcheck adress.
PiGallery is unhealthy because of changes made to docker 26 (or another reason) --> traefik does not create the router

I had a similar problem with another container (Filebrowser) and I solved it using that thread: filebrowser/filebrowser#3119 (comment)

I've disabled the healthcheck in my compose file and all is working with docker 26.1:

  healthcheck:
    disable: true

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

2 participants