Planka not logging #493

Closed
opened 2026-02-04 19:55:15 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @fcremer on GitHub (May 3, 2024).

Hello,

I am currently hosting Planka using Docker and have configured it with a docker-compose.yml file. I attempted to enable logging by adding a writable volume mapped to /app/logs and restarted the container. Unfortunately, Planka does not start logging.

Steps to reproduce:

  1. Add a writable volume in docker-compose.yml to /app/logs:
version: '3'

services:
  planka:
    image: ghcr.io/plankanban/planka:latest
    restart: on-failure
    volumes:
      - user-avatars:/app/public/user-avatars
      - project-background-images:/app/public/project-background-images
      - attachments:/app/private/attachments
      - logs:/app/logs
    ports:
      - 80:1337
    environment:
      - BASE_URL=https://xxxxx
      - DATABASE_URL=postgresql://postgres@postgres/planka
      - SECRET_KEY=xxxx



      - DEFAULT_ADMIN_EMAIL=xxxxx
      - DEFAULT_ADMIN_PASSWORD=xxxx
      - DEFAULT_ADMIN_NAME=xxxxx
      - DEFAULT_ADMIN_USERNAME=xxxxx
    depends_on:
      postgres:
        condition: service_healthy

  postgres:
    image: postgres:14-alpine
    restart: on-failure
    volumes:
      - 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

volumes:
  user-avatars:
  project-background-images:
  attachments:
  db-data:
  logs:
  1. Restart the Planka container.

Expected behavior:
I expected to see logs being written to planka.log within the mounted /app/logs directory.

Actual behavior:
No logs are being written to planka.log. The volume is mounted successfully and is writable, as verified by connecting to the container.

Environment:

  • Planka version: 1.17.2 (but same on older versions)
  • Docker version: 26.0.0 linux/arm64

Additional context:

  • Docker logs are also not showing any relevant output that might explain why logging isn't happening.
  • I have checked the permissions of the /app/logs directory and confirmed it is writable.

Could you provide any guidance on how to further investigate this issue or if there are additional configurations I might be missing?

Best regards,
Fabian

Originally created by @fcremer on GitHub (May 3, 2024). Hello, I am currently hosting Planka using Docker and have configured it with a docker-compose.yml file. I attempted to enable logging by adding a writable volume mapped to `/app/logs` and restarted the container. Unfortunately, Planka does not start logging. **Steps to reproduce**: 1. Add a writable volume in `docker-compose.yml` to `/app/logs`: ``` version: '3' services: planka: image: ghcr.io/plankanban/planka:latest restart: on-failure volumes: - user-avatars:/app/public/user-avatars - project-background-images:/app/public/project-background-images - attachments:/app/private/attachments - logs:/app/logs ports: - 80:1337 environment: - BASE_URL=https://xxxxx - DATABASE_URL=postgresql://postgres@postgres/planka - SECRET_KEY=xxxx - DEFAULT_ADMIN_EMAIL=xxxxx - DEFAULT_ADMIN_PASSWORD=xxxx - DEFAULT_ADMIN_NAME=xxxxx - DEFAULT_ADMIN_USERNAME=xxxxx depends_on: postgres: condition: service_healthy postgres: image: postgres:14-alpine restart: on-failure volumes: - 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 volumes: user-avatars: project-background-images: attachments: db-data: logs: ``` 2. Restart the Planka container. **Expected behavior**: I expected to see logs being written to `planka.log` within the mounted `/app/logs` directory. **Actual behavior**: No logs are being written to `planka.log`. The volume is mounted successfully and is writable, as verified by connecting to the container. **Environment**: - Planka version: 1.17.2 (but same on older versions) - Docker version: 26.0.0 linux/arm64 **Additional context**: - Docker logs are also not showing any relevant output that might explain why logging isn't happening. - I have checked the permissions of the `/app/logs` directory and confirmed it is writable. Could you provide any guidance on how to further investigate this issue or if there are additional configurations I might be missing? Best regards, Fabian
OVERLORD added the help wanted label 2026-02-04 19:55:15 +03:00
Author
Owner

@mylesagray commented on GitHub (Jun 11, 2024):

Seeing the same, log volume mapped or not - in production or development mode there are no logs to volume or stdout.

@mylesagray commented on GitHub (Jun 11, 2024): Seeing the same, log volume mapped or not - in production or development mode there are no logs to volume or stdout.
Author
Owner

@ipod86 commented on GitHub (Aug 15, 2024):

Same here

@ipod86 commented on GitHub (Aug 15, 2024): Same here
Author
Owner

@vitobotta commented on GitHub (Aug 31, 2024):

Just came to say the same. There is no information in the log file at all for me.

@vitobotta commented on GitHub (Aug 31, 2024): Just came to say the same. There is no information in the log file at all for me.
Author
Owner

@ipod86 commented on GitHub (Aug 31, 2024):

Maybe something from here will help

https://github.com/plankanban/planka/issues/850

@ipod86 commented on GitHub (Aug 31, 2024): Maybe something from here will help https://github.com/plankanban/planka/issues/850
Author
Owner

@fcremer commented on GitHub (Sep 8, 2024):

Changing permission on the folder fixed it. Thanks you!

@fcremer commented on GitHub (Sep 8, 2024): Changing permission on the folder fixed it. Thanks you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#493