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

[Bug]: planka not writing logs #989

Open
WirtsLegs opened this issue Jan 11, 2025 · 1 comment
Open

[Bug]: planka not writing logs #989

WirtsLegs opened this issue Jan 11, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@WirtsLegs
Copy link

WirtsLegs commented Jan 11, 2025

Where is the problem occurring?

Docker Swarm deployment

What browsers are you seeing the problem on?

N/A

Current behaviour

planka.log is created but remains empty regardless of if it is mounted to the host or internal to the container, suspect the lack of logs is somehow tied to OIDC being enabled as I was getting some logs via docker logs command prior to enabling it, since enabling that docker logs returns nothing and planka.log is empty

Desired behaviour

planka.log should contain logs

Steps to reproduce

Stand up planka on docker swarm with the following compose (note sensitive bits obviously redacted)

services:
  planka:
    image: ghcr.io/plankanban/planka:latest
    restart: on-failure
    volumes:
      - /mnt/appdata/planka/user-avatars:/app/public/user-avatars
      - /mnt/appdata/planka/project-background-images:/app/public/project-background-images
      - /mnt/appdata/planka/attachments:/app/private/attachments
      - /mnt/appdata/planka/logs:/app/logs
    ports:
      - 3948:1337
    environment:
      - BASE_URL=<baseurl>
      - DATABASE_URL=postgresql://postgres@postgres/planka
      - SECRET_KEY=<secret>
      - OIDC_ISSUER=<issuer url>
      - OIDC_CLIENT_ID=planka
      - OIDC_CLIENT_SECRET=<secret>
      - OIDC_ADMIN_ROLES=Admins
      - OIDC_SCOPES=openid email profile
      - OIDC_IGNORE_ROLES=false
    depends_on:
      - postgres

  postgres:
    image: postgres:16-alpine
    restart: on-failure
    volumes:
      - /mnt/appdata/planka/db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=planka
      - POSTGRES_HOST_AUTH_METHOD=trust
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
      interval: 10s
      timeout: 5s
      retries: 5

Other information

I have seen #738 and #850

in both cases the issue was resolved via chowning the log folder, I have attempted to mount to a directory and ensured it was owned by 1000:1000 with no change. The planka.log file is being created so it has access but the file remains empty.

@Knatschsack
Copy link

Same for me with docker compose. Can see docker logs and docker compose logs for planka database but no output for planka webservice. the logfile in the container exists but remains empty.

@meltyshev meltyshev added the help wanted Extra attention is needed label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants