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

Planka not logging #738

Open
fcremer opened this issue May 3, 2024 · 1 comment
Open

Planka not logging #738

fcremer opened this issue May 3, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@fcremer
Copy link

fcremer commented 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

@meltyshev meltyshev added the help wanted Extra attention is needed label May 3, 2024
@mylesagray
Copy link

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

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