Planka Container constantly restarting on Raspberry Pi 4 #414

Open
opened 2026-02-04 19:06:10 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @marvin-nerlich on GitHub (Feb 14, 2024).

I followed the steps of the manual but unfortunately the freshly downloaded container won't stay up for more than a few seconds.

docker logs planka-planka-1 prints the following:

Node.js v18.19.0
/app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/sharp.js:114
  throw new Error(help.join('\n'));
        ^

Error: Could not load the "sharp" module using the linuxmusl-arm runtime
Possible solutions:
- Manually install libvips >= 8.15.1
- Add experimental WebAssembly-based dependencies:
    npm install --cpu=wasm32 sharp
    npm install @img/sharp-wasm32
- Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (/app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/sharp.js:114:9)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/constructor.js:10:1)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)

I also wasn't able to manually install the needed packages because of the restart of the container.

Originally created by @marvin-nerlich on GitHub (Feb 14, 2024). I followed the steps of the manual but unfortunately the freshly downloaded container won't stay up for more than a few seconds. `docker logs planka-planka-1` prints the following: ``` Node.js v18.19.0 /app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/sharp.js:114 throw new Error(help.join('\n')); ^ Error: Could not load the "sharp" module using the linuxmusl-arm runtime Possible solutions: - Manually install libvips >= 8.15.1 - Add experimental WebAssembly-based dependencies: npm install --cpu=wasm32 sharp npm install @img/sharp-wasm32 - Consult the installation documentation: See https://sharp.pixelplumbing.com/install at Object.<anonymous> (/app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/sharp.js:114:9) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object.<anonymous> (/app/node_modules/.pnpm/sharp@0.33.2/node_modules/sharp/lib/constructor.js:10:1) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) ``` I also wasn't able to manually install the needed packages because of the restart of the container.
OVERLORD added the help wanted label 2026-02-04 19:06:10 +03:00
Author
Owner

@marvin-nerlich commented on GitHub (Feb 18, 2024):

Solved the issue:
The problem was the unsupported 32 bit kernel.
I upgraded (reinstalled) Raspbian and the container starts normally.
Unfortunately, the web interface does not show any content. Just the following error message appears in the brwoser console:

grafik

The compose file:

version: '3'

services:
  planka:
    image: ghcr.io/plankanban/planka:latest
    restart: on-failure
    volumes:
      - /data/planka/user-avatars:/app/public/user-avatars
      - /data/planka/project-background-images:/app/public/project-background-images
      - /data/planka/attachments:/app/private/attachments
    ports:
      - 16900:1337
    environment:
      - BASE_URL=http://localhost:16900
      - DATABASE_URL=postgresql://postgres@postgres/planka
      - SECRET_KEY=[key]

      # - TRUST_PROXY=0
      # - TOKEN_EXPIRES_IN=365 # In days

      # related: https://github.com/knex/knex/issues/2354
      # As knex does not pass query parameters from the connection string we
      # have to use environment variables in order to pass the desired values, e.g.
      # - PGSSLMODE=<value>

      # Configure knex to accept SSL certificates
      # - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false

      - DEFAULT_ADMIN_EMAIL=[mail] # Do not remove if you want to prevent this user from being edited/deleted
      - DEFAULT_ADMIN_PASSWORD=[pin]
      - DEFAULT_ADMIN_NAME=[name]
      - DEFAULT_ADMIN_USERNAME=[name]

      # - OIDC_ISSUER=
      # - OIDC_CLIENT_ID=
      # - OIDC_CLIENT_SECRET=
      # - OIDC_SCOPES=openid email profile
      # - OIDC_ADMIN_ROLES=admin
      # - OIDC_EMAIL_ATTRIBUTE=email
      # - OIDC_NAME_ATTRIBUTE=name
      # - OIDC_USERNAME_ATTRIBUTE=preferred_username
      # - OIDC_ROLES_ATTRIBUTE=groups
      # - OIDC_IGNORE_USERNAME=true
      # - OIDC_IGNORE_ROLES=true
      # - OIDC_ENFORCED=true
    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:
@marvin-nerlich commented on GitHub (Feb 18, 2024): Solved the issue: The problem was the unsupported 32 bit kernel. I upgraded (reinstalled) Raspbian and the container starts normally. Unfortunately, the web interface does not show any content. Just the following error message appears in the brwoser console: ![grafik](https://github.com/plankanban/planka/assets/58145791/d5e85c4a-b498-4a7d-a280-24c56e54d054) The compose file: ``` version: '3' services: planka: image: ghcr.io/plankanban/planka:latest restart: on-failure volumes: - /data/planka/user-avatars:/app/public/user-avatars - /data/planka/project-background-images:/app/public/project-background-images - /data/planka/attachments:/app/private/attachments ports: - 16900:1337 environment: - BASE_URL=http://localhost:16900 - DATABASE_URL=postgresql://postgres@postgres/planka - SECRET_KEY=[key] # - TRUST_PROXY=0 # - TOKEN_EXPIRES_IN=365 # In days # related: https://github.com/knex/knex/issues/2354 # As knex does not pass query parameters from the connection string we # have to use environment variables in order to pass the desired values, e.g. # - PGSSLMODE=<value> # Configure knex to accept SSL certificates # - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false - DEFAULT_ADMIN_EMAIL=[mail] # Do not remove if you want to prevent this user from being edited/deleted - DEFAULT_ADMIN_PASSWORD=[pin] - DEFAULT_ADMIN_NAME=[name] - DEFAULT_ADMIN_USERNAME=[name] # - OIDC_ISSUER= # - OIDC_CLIENT_ID= # - OIDC_CLIENT_SECRET= # - OIDC_SCOPES=openid email profile # - OIDC_ADMIN_ROLES=admin # - OIDC_EMAIL_ATTRIBUTE=email # - OIDC_NAME_ATTRIBUTE=name # - OIDC_USERNAME_ATTRIBUTE=preferred_username # - OIDC_ROLES_ATTRIBUTE=groups # - OIDC_IGNORE_USERNAME=true # - OIDC_IGNORE_ROLES=true # - OIDC_ENFORCED=true 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: ```
Author
Owner

@daniel-hiller commented on GitHub (Feb 27, 2024):

Hi Marvin,

are you opening Planka on the Pi itself, or from a remote Computer?

If you want to access Planka from a remote Computer, you have to put the Ip of the Pi into the BASE_URL variable
Something like this http://192.168.0.100:16900

@daniel-hiller commented on GitHub (Feb 27, 2024): Hi Marvin, are you opening Planka on the Pi itself, or from a remote Computer? If you want to access Planka from a remote Computer, you have to put the Ip of the Pi into the BASE_URL variable Something like this http://192.168.0.100:16900
Author
Owner

@UhlhornHH commented on GitHub (Jul 29, 2024):

I have the same problem. My base URL says: - BASE_URL=http://planka.local I am using port 80.
This then runs for a few hours and then it constantly restarts.

How do I get a log file from Planka? The file /app/logs/planka.log in the container is empty.

@UhlhornHH commented on GitHub (Jul 29, 2024): I have the same problem. My base URL says: `- BASE_URL=http://planka.local` I am using port 80. This then runs for a few hours and then it constantly restarts. How do I get a log file from Planka? The file `/app/logs/planka.log` in the container is empty.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#414