No registration possible

Hello,
I created a whole new installation, but I can’t register, or if I created a user via the CLI, I can’t log in.

docker-compose:

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_PUBLICURL: http://<the public ip or host where Vikunja is reachable>
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: changeme
      VIKUNJA_DATABASE_TYPE: postgres
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: <a super secure random secret>
    ports:
      - 3456:3456
    volumes:
      - /opt/vikunja/files:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped
  db:
    image: postgres:17
    environment:
      POSTGRES_PASSWORD: changeme
      POSTGRES_USER: vikunja
    volumes:
      - /opt/vikunja/db:/var/lib/postgresql/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER"]
      interval: 2s
      start_period: 30s

Logs server:

db-1  | 2025-08-26 06:03:11.262 UTC [1] LOG:  starting PostgreSQL 17.6 (Debian 17.6-1.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
db-1  | 2025-08-26 06:03:11.264 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db-1  | 2025-08-26 06:03:11.264 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db-1  | 2025-08-26 06:03:11.269 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1  | 2025-08-26 06:03:11.278 UTC [63] LOG:  database system was shut down at 2025-08-26 06:03:11 UTC
db-1  | 2025-08-26 06:03:11.287 UTC [1] LOG:  database system is ready to accept connections
vikunja-1  | time=2025-08-26T06:03:15.765Z level=INFO msg="No config file found, using default or config from environment variables."
vikunja-1  | time=2025-08-26T06:03:15.766Z level=INFO msg="Running migrations…"
vikunja-1  | time=2025-08-26T06:03:16.045Z level=INFO msg="Ran all migrations successfully."
vikunja-1  | time=2025-08-26T06:03:16.050Z level=INFO msg="Mailer is disabled, not sending reminders per mail"
vikunja-1  | time=2025-08-26T06:03:16.050Z level=INFO msg="Mailer is disabled, not sending overdue per mail"
vikunja-1  | time=2025-08-26T06:03:16.052Z level=INFO msg="Vikunja version v1.0.0-rc1"
vikunja-1  | ⇨ http server started on [::]:3456
vikunja-1  | time=2025-08-26T06:04:06.995Z level=INFO msg="GET /" component=http status=200 remote_ip=xxx latency=1.294232ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.111Z level=INFO msg="GET /assets/index-DZd056YX.css" component=http status=200 remote_ip=xxx latency=35.601069ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.136Z level=INFO msg="GET /assets/index-E9iI11Ft.js" component=http status=200 remote_ip=xxx latency=82.255299ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.155Z level=INFO msg="GET /assets/OpenSans_wght__e4849d7d-Ce425S3K.woff2" component=http status=200 remote_ip=xxx latency=1.503702ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.245Z level=INFO msg="GET /assets/de-DE-ChfMY_E3.js" component=http status=200 remote_ip=xxx latency=5.472047ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.267Z level=INFO msg="GET /images/icons/apple-touch-icon-180x180.png" component=http status=200 remote_ip=xxx latency=295.948µs user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.271Z level=INFO msg="GET /favicon.ico" component=http status=200 remote_ip=xxx latency=1.768958ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.284Z level=INFO msg="GET /assets/de-BL6tXn3K.js" component=http status=200 remote_ip=xxx latency=139.79µs user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.325Z level=INFO msg="GET /api/v1/info" component=http status=200 remote_ip=xxx latency=224.031µs user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.338Z level=INFO msg="GET /assets/llama-nightscape-mKZQPxXM.jpg" component=http status=200 remote_ip=xxx latency=3.514403ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.402Z level=INFO msg="GET /assets/Quicksand_wght__6d82d68f-Di7i6vOW.woff2" component=http status=200 remote_ip=xxx latency=1.694099ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.409Z level=INFO msg="GET /assets/llama-Cg7SOh2S.svg?url" component=http status=200 remote_ip=xxx latency=256.111µs user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:07.425Z level=INFO msg="GET /assets/no-auth-image-Cmfcl6fh.jpg" component=http status=200 remote_ip=xxx latency=22.675006ms user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"
vikunja-1  | time=2025-08-26T06:04:36.499Z level=INFO msg="POST /api/v1/register" component=http status=401 remote_ip=xxx latency=36.57µs user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0"

Same for me. Tried running it directly in CLI, docker and systemd.

Same here. Tried with postgres db. maria db, and with the default docker compose fle from the walkthrough. User cannot be created from browser. It cn be created using CLI, but then cannot log in … Error 401 in logs

Solved this problem by using an elder Version vikunja/vikunja:0.24.6
Seems to be a bug in v 1.0RC0 and v 1.0RC1
https://hub.docker.com/r/vikunja/vikunja

For a fresh installation make sure, you delete the database. This does not solve problems of updated existing installations

Welcome! :waving_hand:

You’ll need to set a publicurl in the config: Configuration options

This is a recent change in release candidates, therefore the docs are not up to date.

The problem was with folder permissions and ownership. My CheckMK monitoring agent had scanned the target folder and automatically changed its ownership during the scan. This caused access issues that prevented the instance from working properly.

Solution:

  • Verified the public URL configuration was correct
  • Most importantly: Restored the correct folder permissions and ownership
  • The instance is now working as expected

THIS is what worked for me!
I was using image: vikunja/vikunja:latest and I could not register first user.

As soon as I changed this line to image: vikunja/vikunja:0.24.6 it all worked immediately!