plankanban / planka

The realtime kanban board for workgroups built with React and Redux.
https://planka.app
GNU Affero General Public License v3.0
7.98k stars 741 forks source link

Planka not logging #738

Closed fcremer closed 1 month ago

fcremer commented 6 months ago

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:

Additional context:

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

mylesagray commented 4 months ago

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

ipod86 commented 2 months ago

Same here

vitobotta commented 2 months ago

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

ipod86 commented 2 months ago

Maybe something from here will help

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

fcremer commented 1 month ago

Changing permission on the folder fixed it. Thanks you!