Installation Issues Synology / Portainer / Vikunja

Dear Vikunja community,

I would like to get Vikunja running on my Synology NAS with the help of “Portainer”. I’ve been trying for several days now, I’ve had to read through the docs completely several times, but I still can’t do it because I probably don’t know enough about Docker and co.

version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_PUBLICURL: http://********.synology.me
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: changeme
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: <a super secure random secret>
    ports:
      - 3456:3456
    volumes:
      - ./files:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: supersecret
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: changeme
      MYSQL_DATABASE: vikunja
    volumes:
      - ./db:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
      interval: 2s
      start_period: 30s

This is my compose file i copy from the docs and paste it in Portainer in the webeditor to deploy a new stack.

Before that i already created 2 folders in the “docker” folder as the docs describes:

***File1

If i now want to deploy the stack i get the following error:

***File2

Can anybody help me pls to setup Vikunja to my Synology NAS?
Thank u very very much in advanced guys!

Best regards
Aiparo

***File1

***File2
image

On the database container, you’re trying to mount the folder called db but you have created the folder mariadb:

volumes:
      - ./db:/var/lib/mysql

This doesn’t work for two reasons:

a) it is a relative path, which according to your second screenshot is /data/compose/5/
b) it should be mariadb

I suggest using an absolute path to your mariadb folder, not sure what the easiest way is on Synology to display that though. Something like that:

volumes:
      - /volumes/Volume1/mariadb:/var/lib/mysql

But again, this absolute path is wrong with almost 100% certainty, you’ll need to find that on the Synology. The same change then needs to be done for the Vikunja container as well.

Hey, thank u for the reply.
Yes u are completly right, my paths are wrong… i change it to the right ones.
My new composer file:

version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_PUBLICURL: http://*********.synology.me:3456
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: changeme
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: <a super secure random secret>
    ports:
      - 3456:3456
    volumes:
      - /volume1/docker/vikunja:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: supersecret
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: changeme
      MYSQL_DATABASE: vikunja
    volumes:
      - /volume1/docker/mariadb:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
      interval: 2s
      start_period: 30s

The paths are correct now.
But if i want to deploy the stack again, i get the following error.
(Full error message):

failed to deploy a stack: db Pulling vikunja Pulling 3713021b0277 Pulling fs layer b7ed4502c671 Pulling fs layer ccee233ae035 Pulling fs layer 0c8d32e87829 Pulling fs layer 257a4184da5c Pulling fs layer 079eb852aa15 Pulling fs layer c6b6414a516a Pulling fs layer 96faa6efb673 Pulling fs layer 0c8d32e87829 Waiting 257a4184da5c Waiting 079eb852aa15 Waiting c6b6414a516a Waiting 96faa6efb673 Waiting b7ed4502c671 Downloading [====================> ] 688B/1.718kB b7ed4502c671 Downloading [==================================================>] 1.718kB/1.718kB b7ed4502c671 Verifying Checksum b7ed4502c671 Download complete 5c28d52ae6cb Pulling fs layer e9778326363f Pulling fs layer 03ef4462690a Pulling fs layer 5c28d52ae6cb Waiting e9778326363f Waiting 03ef4462690a Waiting 3713021b0277 Downloading [> ] 311.3kB/29.53MB ccee233ae035 Downloading [> ] 59.53kB/5.648MB 3713021b0277 Downloading [==> ] 1.231MB/29.53MB ccee233ae035 Downloading [=====> ] 572.7kB/5.648MB ccee233ae035 Downloading [============> ] 1.424MB/5.648MB 3713021b0277 Downloading [===> ] 1.85MB/29.53MB ccee233ae035 Downloading [===================> ] 2.214MB/5.648MB 3713021b0277 Downloading [====> ] 2.468MB/29.53MB ccee233ae035 Downloading [=========================> ] 2.87MB/5.648MB 0c8d32e87829 Downloading [==================================================>] 116B/116B 0c8d32e87829 Verifying Checksum 0c8d32e87829 Download complete ccee233ae035 Downloading [================================> ] 3.656MB/5.648MB 3713021b0277 Downloading [=====> ] 3.087MB/29.53MB ccee233ae035 Downloading [=======================================> ] 4.434MB/5.648MB 3713021b0277 Downloading [======> ] 3.693MB/29.53MB ccee233ae035 Downloading [==============================================> ] 5.217MB/5.648MB ccee233ae035 Verifying Checksum ccee233ae035 Download complete 3713021b0277 Downloading [=======> ] 4.315MB/29.53MB 257a4184da5c Downloading [==================================================>] 335B/335B 257a4184da5c Verifying Checksum 257a4184da5c Download complete 3713021b0277 Downloading [=========> ] 5.548MB/29.53MB 3713021b0277 Downloading [===========> ] 6.773MB/29.53MB 3713021b0277 Downloading [=============> ] 8.018MB/29.53MB 3713021b0277 Downloading [===============> ] 9.251MB/29.53MB 079eb852aa15 Downloading [> ] 531.7kB/87.37MB c6b6414a516a Downloading [=========> ] 720B/3.611kB c6b6414a516a Downloading [==================================================>] 3.611kB/3.611kB c6b6414a516a Verifying Checksum c6b6414a516a Download complete 079eb852aa15 Downloading [> ] 1.596MB/87.37MB 3713021b0277 Downloading [================> ] 9.874MB/29.53MB 3713021b0277 Downloading [=================> ] 10.48MB/29.53MB 079eb852aa15 Downloading [=> ] 2.677MB/87.37MB 3713021b0277 Downloading [==================> ] 10.79MB/29.53MB 079eb852aa15 Downloading [==> ] 3.754MB/87.37MB 3713021b0277 Downloading [===================> ] 11.41MB/29.53MB 079eb852aa15 Downloading [==> ] 4.827MB/87.37MB 96faa6efb673 Downloading [====> ] 688B/8.34kB 96faa6efb673 Download complete 3713021b0277 Downloading [===================> ] 11.72MB/29.53MB 079eb852aa15 Downloading [===> ] 5.905MB/87.37MB 3713021b0277 Downloading [====================> ] 12.03MB/29.53MB 079eb852aa15 Downloading [===> ] 6.974MB/87.37MB 3713021b0277 Downloading [====================> ] 12.33MB/29.53MB 079eb852aa15 Downloading [====> ] 8.035MB/87.37MB 3713021b0277 Downloading [=====================> ] 12.64MB/29.53MB 5c28d52ae6cb Downloading [==================================================>] 117B/117B 5c28d52ae6cb Verifying Checksum 5c28d52ae6cb Download complete 5c28d52ae6cb Extracting [==================================================>] 117B/117B 079eb852aa15 Downloading [=====> ] 9.112MB/87.37MB 3713021b0277 Downloading [=====================> ] 12.95MB/29.53MB 079eb852aa15 Downloading [=====> ] 10.17MB/87.37MB 3713021b0277 Downloading [======================> ] 13.26MB/29.53MB 079eb852aa15 Downloading [======> ] 11.24MB/87.37MB 5c28d52ae6cb Extracting [==================================================>] 117B/117B 079eb852aa15 Downloading [=======> ] 12.31MB/87.37MB 3713021b0277 Downloading [======================> ] 13.57MB/29.53MB 079eb852aa15 Downloading [=======> ] 13.38MB/87.37MB e9778326363f Downloading [> ] 360.4kB/35.66MB 079eb852aa15 Downloading [=======> ] 13.92MB/87.37MB e9778326363f Downloading [=> ] 1.088MB/35.66MB 3713021b0277 Downloading [=======================> ] 13.88MB/29.53MB e9778326363f Downloading [==> ] 1.809MB/35.66MB 079eb852aa15 Downloading [========> ] 14.46MB/87.37MB 5c28d52ae6cb Pull complete e9778326363f Downloading [===> ] 2.53MB/35.66MB 079eb852aa15 Downloading [========> ] 15MB/87.37MB e9778326363f Downloading [====> ] 3.259MB/35.66MB 3713021b0277 Downloading [========================> ] 14.18MB/29.53MB e9778326363f Downloading [=====> ] 3.619MB/35.66MB 079eb852aa15 Downloading [========> ] 15.54MB/87.37MB e9778326363f Downloading [========> ] 5.79MB/35.66MB 3713021b0277 Downloading [========================> ] 14.49MB/29.53MB 079eb852aa15 Downloading [==========> ] 17.71MB/87.37MB e9778326363f Downloading [=========> ] 6.511MB/35.66MB 079eb852aa15 Downloading [==========> ] 18.24MB/87.37MB 3713021b0277 Downloading [=========================> ] 14.81MB/29.53MB e9778326363f Downloading [==========> ] 7.244MB/35.66MB 079eb852aa15 Downloading [===========> ] 19.3MB/87.37MB e9778326363f Downloading [===========> ] 7.965MB/35.66MB 3713021b0277 Downloading [=========================> ] 15.12MB/29.53MB e9778326363f Downloading [============> ] 8.686MB/35.66MB 079eb852aa15 Downloading [===========> ] 20.38MB/87.37MB 3713021b0277 Downloading [==========================> ] 15.43MB/29.53MB e9778326363f Downloading [=============> ] 9.415MB/35.66MB 079eb852aa15 Downloading [===========> ] 20.92MB/87.37MB e9778326363f Downloading [==============> ] 10.14MB/35.66MB 079eb852aa15 Downloading [============> ] 21.46MB/87.37MB 3713021b0277 Downloading [==========================> ] 15.74MB/29.53MB e9778326363f Downloading [===============> ] 10.87MB/35.66MB 079eb852aa15 Downloading [============> ] 22MB/87.37MB e9778326363f Downloading [================> ] 11.59MB/35.66MB 079eb852aa15 Downloading [============> ] 22.54MB/87.37MB 3713021b0277 Downloading [===========================> ] 16.05MB/29.53MB e9778326363f Downloading [=================> ] 12.32MB/35.66MB 079eb852aa15 Downloading [=============> ] 23.08MB/87.37MB 3713021b0277 Downloading [===========================> ] 16.36MB/29.53MB e9778326363f Downloading [==================> ] 13.06MB/35.66MB 079eb852aa15 Downloading [=============> ] 23.62MB/87.37MB e9778326363f Downloading [===================> ] 13.78MB/35.66MB 079eb852aa15 Downloading [=============> ] 24.15MB/87.37MB 3713021b0277 Downloading [============================> ] 16.67MB/29.53MB e9778326363f Downloading [====================> ] 14.5MB/35.66MB 079eb852aa15 Downloading [==============> ] 24.69MB/87.37MB e9778326363f Downloading [=====================> ] 15.23MB/35.66MB 3713021b0277 Downloading [============================> ] 16.98MB/29.53MB 079eb852aa15 Downloading [==============> ] 25.23MB/87.37MB e9778326363f Downloading [======================> ] 15.96MB/35.66MB 3713021b0277 Downloading [=============================> ] 17.3MB/29.53MB 079eb852aa15 Downloading [==============> ] 25.75MB/87.37MB e9778326363f Downloading [=======================> ] 16.68MB/35.66MB e9778326363f Downloading [========================> ] 17.4MB/35.66MB 079eb852aa15 Downloading [===============> ] 26.29MB/87.37MB 3713021b0277 Downloading [=============================> ] 17.61MB/29.53MB e9778326363f Downloading [=========================> ] 18.12MB/35.66MB 079eb852aa15 Downloading [===============> ] 26.84MB/87.37MB 3713021b0277 Downloading [==============================> ] 17.91MB/29.53MB e9778326363f Downloading [==========================> ] 18.85MB/35.66MB 079eb852aa15 Downloading [===============> ] 27.37MB/87.37MB e9778326363f Downloading [===========================> ] 19.59MB/35.66MB 3713021b0277 Downloading [==============================> ] 18.22MB/29.53MB 079eb852aa15 Downloading [===============> ] 27.9MB/87.37MB e9778326363f Downloading [============================> ] 20.31MB/35.66MB e9778326363f Downloading [=============================> ] 21.04MB/35.66MB 079eb852aa15 Downloading [================> ] 28.44MB/87.37MB 3713021b0277 Downloading [===============================> ] 18.53MB/29.53MB e9778326363f Downloading [==============================> ] 21.76MB/35.66MB 079eb852aa15 Downloading [================> ] 28.98MB/87.37MB e9778326363f Downloading [===============================> ] 22.48MB/35.66MB 3713021b0277 Downloading [===============================> ] 18.83MB/29.53MB e9778326363f Downloading [================================> ] 23.2MB/35.66MB 079eb852aa15 Downloading [================> ] 29.51MB/87.37MB 3713021b0277 Downloading [================================> ] 19.14MB/29.53MB 3713021b0277 Downloading [================================> ] 19.44MB/29.53MB e9778326363f Downloading [=================================> ] 23.94MB/35.66MB 079eb852aa15 Downloading [=================> ] 30.05MB/87.37MB e9778326363f Downloading [====================================> ] 25.75MB/35.66MB 3713021b0277 Downloading [=================================> ] 19.75MB/29.53MB 079eb852aa15 Downloading [=================> ] 31.13MB/87.37MB e9778326363f Downloading [=====================================> ] 26.47MB/35.66MB e9778326363f Downloading [======================================> ] 27.2MB/35.66MB 3713021b0277 Downloading [=================================> ] 20.06MB/29.53MB 079eb852aa15 Downloading [==================> ] 31.67MB/87.37MB e9778326363f Downloading [=======================================> ] 27.95MB/35.66MB 079eb852aa15 Downloading [==================> ] 32.21MB/87.37MB 3713021b0277 Downloading [==================================> ] 20.38MB/29.53MB e9778326363f Downloading [========================================> ] 28.69MB/35.66MB 079eb852aa15 Downloading [==================> ] 32.75MB/87.37MB 3713021b0277 Downloading [===================================> ] 20.69MB/29.53MB e9778326363f Downloading [=========================================> ] 29.41MB/35.66MB 079eb852aa15 Downloading [===================> ] 33.29MB/87.37MB 3713021b0277 Downloading [===================================> ] 21MB/29.53MB e9778326363f Downloading [==========================================> ] 30.13MB/35.66MB 079eb852aa15 Downloading [===================> ] 33.83MB/87.37MB 3713021b0277 Downloading [====================================> ] 21.31MB/29.53MB e9778326363f Downloading [===========================================> ] 30.85MB/35.66MB 079eb852aa15 Downloading [===================> ] 34.36MB/87.37MB 3713021b0277 Downloading [====================================> ] 21.62MB/29.53MB e9778326363f Downloading [============================================> ] 31.59MB/35.66MB 079eb852aa15 Downloading [===================> ] 34.9MB/87.37MB 3713021b0277 Downloading [=====================================> ] 21.93MB/29.53MB 3713021b0277 Downloading [=====================================> ] 22.23MB/29.53MB 079eb852aa15 Downloading [====================> ] 35.44MB/87.37MB e9778326363f Downloading [=============================================> ] 32.32MB/35.66MB 3713021b0277 Downloading [======================================> ] 22.54MB/29.53MB 079eb852aa15 Downloading [====================> ] 35.98MB/87.37MB e9778326363f Downloading [==============================================> ] 33.04MB/35.66MB 3713021b0277 Downloading [=======================================> ] 23.15MB/29.53MB 079eb852aa15 Downloading [====================> ] 36.52MB/87.37MB e9778326363f Downloading [===============================================> ] 33.76MB/35.66MB 3713021b0277 Downloading [=======================================> ] 23.46MB/29.53MB 079eb852aa15 Downloading [=====================> ] 37.05MB/87.37MB e9778326363f Downloading [================================================> ] 34.49MB/35.66MB 3713021b0277 Downloading [========================================> ] 23.77MB/29.53MB 079eb852aa15 Downloading [=====================> ] 37.59MB/87.37MB e9778326363f Downloading [=================================================> ] 35.21MB/35.66MB e9778326363f Verifying Checksum e9778326363f Download complete 3713021b0277 Downloading [=========================================> ] 24.38MB/29.53MB 079eb852aa15 Downloading [=====================> ] 38.13MB/87.37MB 3713021b0277 Downloading [==========================================> ] 25MB/29.53MB 079eb852aa15 Downloading [======================> ] 38.66MB/87.37MB 3713021b0277 Downloading [===========================================> ] 25.61MB/29.53MB 079eb852aa15 Downloading [======================> ] 39.73MB/87.37MB 3713021b0277 Downloading [============================================> ] 26.22MB/29.53MB 03ef4462690a Downloading [> ] 1.369kB/119.9kB e9778326363f Extracting [> ] 360.4kB/35.66MB 03ef4462690a Verifying Checksum 03ef4462690a Download complete 3713021b0277 Downloading [=============================================> ] 26.85MB/29.53MB 079eb852aa15 Downloading [=======================> ] 40.79MB/87.37MB e9778326363f Extracting [===> ] 2.163MB/35.66MB 3713021b0277 Downloading [==============================================> ] 27.47MB/29.53MB 3713021b0277 Downloading [================================================> ] 28.4MB/29.53MB e9778326363f Extracting [=====> ] 3.604MB/35.66MB 079eb852aa15 Downloading [=======================> ] 41.88MB/87.37MB 3713021b0277 Downloading [=================================================> ] 29.33MB/29.53MB 3713021b0277 Verifying Checksum 3713021b0277 Download complete 079eb852aa15 Downloading [========================> ] 43.49MB/87.37MB e9778326363f Extracting [=======> ] 5.046MB/35.66MB e9778326363f Extracting [=========> ] 6.849MB/35.66MB 079eb852aa15 Downloading [=========================> ] 45.12MB/87.37MB e9778326363f Extracting [===========> ] 8.29MB/35.66MB 079eb852aa15 Downloading [==========================> ] 46.73MB/87.37MB e9778326363f Extracting [=============> ] 9.732MB/35.66MB 079eb852aa15 Downloading [===========================> ] 47.8MB/87.37MB 3713021b0277 Extracting [> ] 327.7kB/29.53MB e9778326363f Extracting [===============> ] 11.17MB/35.66MB 3713021b0277 Extracting [==> ] 1.638MB/29.53MB 079eb852aa15 Downloading [============================> ] 49.42MB/87.37MB 079eb852aa15 Downloading [============================> ] 50.5MB/87.37MB 3713021b0277 Extracting [====> ] 2.621MB/29.53MB 079eb852aa15 Downloading [=============================> ] 52.1MB/87.37MB 3713021b0277 Extracting [=======> ] 4.26MB/29.53MB e9778326363f Extracting [================> ] 11.53MB/35.66MB 079eb852aa15 Downloading [==============================> ] 52.63MB/87.37MB 3713021b0277 Extracting [=========> ] 5.571MB/29.53MB e9778326363f Extracting [==================> ] 12.98MB/35.66MB 3713021b0277 Extracting [===========> ] 6.554MB/29.53MB e9778326363f Extracting [====================> ] 14.42MB/35.66MB e9778326363f Extracting [=====================> ] 15.14MB/35.66MB 079eb852aa15 Downloading [===============================> ] 54.25MB/87.37MB 3713021b0277 Extracting [============> ] 7.537MB/29.53MB 079eb852aa15 Downloading [================================> ] 56.94MB/87.37MB 3713021b0277 Extracting [=============> ] 8.192MB/29.53MB 3713021b0277 Extracting [================> ] 9.503MB/29.53MB 079eb852aa15 Downloading [================================> ] 57.48MB/87.37MB e9778326363f Extracting [======================> ] 15.86MB/35.66MB 3713021b0277 Extracting [=================> ] 10.49MB/29.53MB e9778326363f Extracting [========================> ] 17.3MB/35.66MB 3713021b0277 Extracting [===================> ] 11.8MB/29.53MB 079eb852aa15 Downloading [==================================> ] 60.17MB/87.37MB 079eb852aa15 Downloading [====================================> ] 64.47MB/87.37MB e9778326363f Extracting [========================> ] 17.66MB/35.66MB 079eb852aa15 Downloading [=====================================> ] 66.07MB/87.37MB 3713021b0277 Extracting [====================> ] 12.12MB/29.53MB e9778326363f Extracting [==========================> ] 18.74MB/35.66MB 3713021b0277 Extracting [======================> ] 13.11MB/29.53MB 079eb852aa15 Downloading [======================================> ] 67.67MB/87.37MB 3713021b0277 Extracting [========================> ] 14.75MB/29.53MB 079eb852aa15 Downloading [=======================================> ] 69.8MB/87.37MB 079eb852aa15 Downloading [========================================> ] 71.41MB/87.37MB e9778326363f Extracting [===========================> ] 19.82MB/35.66MB e9778326363f Extracting [==============================> ] 21.99MB/35.66MB 079eb852aa15 Downloading [=========================================> ] 73.02MB/87.37MB 3713021b0277 Extracting [===========================> ] 16.38MB/29.53MB e9778326363f Extracting [================================> ] 23.07MB/35.66MB 3713021b0277 Extracting [==============================> ] 18.02MB/29.53MB 079eb852aa15 Downloading [==========================================> ] 74.09MB/87.37MB e9778326363f Extracting [=================================> ] 24.15MB/35.66MB 3713021b0277 Extracting [=================================> ] 19.66MB/29.53MB 079eb852aa15 Downloading [===========================================> ] 75.71MB/87.37MB 3713021b0277 Extracting [===================================> ] 20.97MB/29.53MB 079eb852aa15 Downloading [============================================> ] 78.4MB/87.37MB 3713021b0277 Extracting [====================================> ] 21.3MB/29.53MB e9778326363f Extracting [====================================> ] 26.31MB/35.66MB 079eb852aa15 Downloading [=============================================> ] 79.48MB/87.37MB 3713021b0277 Extracting [======================================> ] 22.94MB/29.53MB e9778326363f Extracting [=========================================> ] 29.56MB/35.66MB 079eb852aa15 Downloading [==============================================> ] 81.1MB/87.37MB 3713021b0277 Extracting [=========================================> ] 24.58MB/29.53MB 079eb852aa15 Downloading [===============================================> ] 82.7MB/87.37MB e9778326363f Extracting [==============================================> ] 33.16MB/35.66MB e9778326363f Extracting [==================================================>] 35.66MB/35.66MB 079eb852aa15 Downloading [================================================> ] 84.32MB/87.37MB 079eb852aa15 Downloading [================================================> ] 84.86MB/87.37MB 079eb852aa15 Verifying Checksum 079eb852aa15 Download complete 3713021b0277 Extracting [===========================================> ] 25.56MB/29.53MB 3713021b0277 Extracting [==============================================> ] 27.2MB/29.53MB 3713021b0277 Extracting [===============================================> ] 28.18MB/29.53MB e9778326363f Pull complete 3713021b0277 Extracting [=================================================> ] 29.16MB/29.53MB 3713021b0277 Extracting [==================================================>] 29.53MB/29.53MB 03ef4462690a Extracting [=============> ] 32.77kB/119.9kB 03ef4462690a Extracting [===========================> ] 65.54kB/119.9kB 03ef4462690a Extracting [==================================================>] 119.9kB/119.9kB 3713021b0277 Pull complete b7ed4502c671 Extracting [==================================================>] 1.718kB/1.718kB 03ef4462690a Pull complete b7ed4502c671 Extracting [==================================================>] 1.718kB/1.718kB b7ed4502c671 Pull complete ccee233ae035 Extracting [> ] 65.54kB/5.648MB ccee233ae035 Extracting [=====> ] 589.8kB/5.648MB ccee233ae035 Extracting [===================> ] 2.228MB/5.648MB ccee233ae035 Extracting [===================================> ] 3.998MB/5.648MB ccee233ae035 Extracting [=======================================> ] 4.456MB/5.648MB vikunja Pulled ccee233ae035 Extracting [=========================================> ] 4.653MB/5.648MB ccee233ae035 Extracting [==========================================> ] 4.85MB/5.648MB ccee233ae035 Extracting [==================================================>] 5.648MB/5.648MB ccee233ae035 Pull complete 0c8d32e87829 Extracting [==================================================>] 116B/116B 0c8d32e87829 Extracting [==================================================>] 116B/116B 0c8d32e87829 Pull complete 257a4184da5c Extracting [==================================================>] 335B/335B 257a4184da5c Extracting [==================================================>] 335B/335B 257a4184da5c Pull complete 079eb852aa15 Extracting [> ] 557.1kB/87.37MB 079eb852aa15 Extracting [=> ] 2.228MB/87.37MB 079eb852aa15 Extracting [=> ] 2.785MB/87.37MB 079eb852aa15 Extracting [==> ] 4.456MB/87.37MB 079eb852aa15 Extracting [===> ] 6.128MB/87.37MB 079eb852aa15 Extracting [====> ] 7.799MB/87.37MB 079eb852aa15 Extracting [=====> ] 9.47MB/87.37MB 079eb852aa15 Extracting [======> ] 10.58MB/87.37MB 079eb852aa15 Extracting [=======> ] 12.26MB/87.37MB 079eb852aa15 Extracting [=======> ] 13.93MB/87.37MB 079eb852aa15 Extracting [=========> ] 16.15MB/87.37MB 079eb852aa15 Extracting [==========> ] 18.38MB/87.37MB 079eb852aa15 Extracting [===========> ] 20.05MB/87.37MB 079eb852aa15 Extracting [============> ] 21.73MB/87.37MB 079eb852aa15 Extracting [=============> ] 23.4MB/87.37MB 079eb852aa15 Extracting [==============> ] 24.51MB/87.37MB 079eb852aa15 Extracting [==============> ] 26.18MB/87.37MB 079eb852aa15 Extracting [===============> ] 27.3MB/87.37MB 079eb852aa15 Extracting [================> ] 28.97MB/87.37MB 079eb852aa15 Extracting [=================> ] 30.64MB/87.37MB 079eb852aa15 Extracting [==================> ] 32.31MB/87.37MB 079eb852aa15 Extracting [===================> ] 33.98MB/87.37MB 079eb852aa15 Extracting [====================> ] 35.65MB/87.37MB 079eb852aa15 Extracting [=====================> ] 36.77MB/87.37MB 079eb852aa15 Extracting [=====================> ] 38.44MB/87.37MB 079eb852aa15 Extracting [======================> ] 39.55MB/87.37MB 079eb852aa15 Extracting [=======================> ] 41.22MB/87.37MB 079eb852aa15 Extracting [========================> ] 42.89MB/87.37MB 079eb852aa15 Extracting [=========================> ] 44.01MB/87.37MB 079eb852aa15 Extracting [==========================> ] 45.68MB/87.37MB 079eb852aa15 Extracting [===========================> ] 47.35MB/87.37MB 079eb852aa15 Extracting [============================> ] 49.58MB/87.37MB 079eb852aa15 Extracting [============================> ] 50.14MB/87.37MB 079eb852aa15 Extracting [=============================> ] 50.69MB/87.37MB 079eb852aa15 Extracting [==============================> ] 52.92MB/87.37MB 079eb852aa15 Extracting [===============================> ] 54.59MB/87.37MB 079eb852aa15 Extracting [================================> ] 56.26MB/87.37MB 079eb852aa15 Extracting [=================================> ] 57.93MB/87.37MB 079eb852aa15 Extracting [=================================> ] 59.05MB/87.37MB 079eb852aa15 Extracting [==================================> ] 60.72MB/87.37MB 079eb852aa15 Extracting [===================================> ] 62.39MB/87.37MB 079eb852aa15 Extracting [=====================================> ] 65.18MB/87.37MB 079eb852aa15 Extracting [=====================================> ] 66.29MB/87.37MB 079eb852aa15 Extracting [======================================> ] 67.4MB/87.37MB 079eb852aa15 Extracting [=======================================> ] 69.07MB/87.37MB 079eb852aa15 Extracting [========================================> ] 70.19MB/87.37MB 079eb852aa15 Extracting [========================================> ] 71.3MB/87.37MB 079eb852aa15 Extracting [=========================================> ] 72.97MB/87.37MB 079eb852aa15 Extracting [==========================================> ] 74.65MB/87.37MB 079eb852aa15 Extracting [===========================================> ] 76.87MB/87.37MB 079eb852aa15 Extracting [============================================> ] 78.54MB/87.37MB 079eb852aa15 Extracting [=============================================> ] 80.22MB/87.37MB 079eb852aa15 Extracting [==============================================> ] 81.33MB/87.37MB 079eb852aa15 Extracting [===============================================> ] 83MB/87.37MB 079eb852aa15 Extracting [================================================> ] 84.12MB/87.37MB 079eb852aa15 Extracting [================================================> ] 85.23MB/87.37MB 079eb852aa15 Extracting [=================================================> ] 86.34MB/87.37MB 079eb852aa15 Extracting [=================================================> ] 86.9MB/87.37MB 079eb852aa15 Extracting [==================================================>] 87.37MB/87.37MB 079eb852aa15 Pull complete c6b6414a516a Extracting [==================================================>] 3.611kB/3.611kB c6b6414a516a Extracting [==================================================>] 3.611kB/3.611kB c6b6414a516a Pull complete 96faa6efb673 Extracting [==================================================>] 8.34kB/8.34kB 96faa6efb673 Extracting [==================================================>] 8.34kB/8.34kB 96faa6efb673 Pull complete db Pulled Network vikunja_default Creating Network vikunja_default Created Container vikunja-db-1 Creating Container vikunja-db-1 Created Container vikunja-vikunja-1 Creating Container vikunja-vikunja-1 Created Container vikunja-db-1 Starting Container vikunja-db-1 Started Container vikunja-db-1 Waiting Container vikunja-db-1 Error dependency failed to start: container vikunja-db-1 is unhealthy

better view without downloading and extracting logs:

failed to deploy a stack:
...
Pull complete db 
Pulled Network vikunja_default 
Creating Network vikunja_default 
Created Container vikunja-db-1 
Creating Container vikunja-db-1 
Created Container vikunja-vikunja-1 
Creating Container vikunja-vikunja-1 
Created Container vikunja-db-1 
Starting Container vikunja-db-1 
Started Container vikunja-db-1 
Waiting Container vikunja-db-1 
Error dependency failed to start: container vikunja-db-1 is unhealthy

What can i do now? Whats the Problem here.
Thank u very much in advanced for u help!

best regards from Germany
Aiparo

It looks like the MariaDB container isn’t starting up properly. What do the logs of the container say?

Where do i find the Log of the Container? Because the deployment wasnt successful, it didnt created any Container.

I’m not familiar with Synology too much, but there certainly IS a container. At least for the database it will be there.

Unfortunattly not, because of the error i get while the deployment, it does not deploy any container out of the composer file.

What can we do now to fix the problem? Any ideas? :frowning:

The container is there. It may not be shown in Portainer, but it will certainly run on the box. It is reported to be unhealthy, so you’d need to access the container logs and figure out why.

There is a UI on Synology, apparently you can also SSH into the box and manage the containers manually.

Useful commands are:

docker ps  # list running containers
docker ps -a  # list all containers, including stopped
docker logs [-f] <container-id>  # Show logs of a container

In the docker synology UI there arent more containers as in portainer.

With SSH i never really worked with it before… after i logged in, where do i have to navigate to run the commands? Do i have to navigate to a specific path? Or can i easily run it after i logged in to the terminal?

Thanks for u help, i hope we get Vikunja to run… :slight_smile:

There isnt any container, i check it via putty with ur commands.
The shown mariadb is from bookstack_db as u can see and not for Vikunja, so the deployment created nothing.

I dont know why but the composer deployment now worked… i think with the free version for docker hub u only can get 100 pulls per 6hours i get the paid option for 7$ and now it worked… but i get the following logs from the vikunja-db-1 container:

2024-08-08 17:01:27 0 [Note] mariadbd: ready for connections.
Version: '10.11.8-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-08-08 17:01:27 3 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:29 4 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:30 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:32 6 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:34 7 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:35 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:37 9 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:39 10 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:39 11 [Warning] Aborted connection 11 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:41 12 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:44 13 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:44 14 [Warning] Aborted connection 14 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:46 15 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:48 16 [Warning] Aborted connection 16 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:49 17 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:51 18 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:53 19 [Warning] Aborted connection 19 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:01:53 20 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:56 21 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:58 22 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:01:58 23 [Warning] Aborted connection 23 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:02:00 24 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:03 25 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:05 26 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:07 27 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:07 28 [Warning] Aborted connection 28 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:02:10 29 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:12 30 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:14 31 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:16 32 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:19 33 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:21 34 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:23 35 [Warning] Aborted connection 35 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:02:23 36 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:26 37 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:28 38 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:30 39 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:32 40 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:35 41 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:37 42 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:39 43 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:41 44 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:43 45 [Warning] Aborted connection 45 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:02:44 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
2024-08-08 17:02:44 0 [Note] InnoDB: FTS optimize thread exiting.
2024-08-08 17:02:44 0 [Note] InnoDB: Starting shutdown...
2024-08-08 17:02:44 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2024-08-08 17:02:44 0 [Note] InnoDB: Buffer pool(s) dump completed at 240808 17:02:44
2024-08-08 17:02:47 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-08-08 17:02:47 0 [Note] InnoDB: Shutdown completed; log sequence number 47012; transaction id 15
2024-08-08 17:02:48 0 [Note] mariadbd: Shutdown complete
2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.8+maria~ubu2204 started.
2024-08-08 17:02:53+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup/emory:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
6:freezer:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
5:devices:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
4:cpuset:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
3:cpuacct:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
2:cpu:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
1:blkio:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525/memory.pressure not writable, functionality unavailable to MariaDB
2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.8+maria~ubu2204 started.
2024-08-08 17:02:54+00:00 [Note] [Entrypoint]: MariaDB upgrade information missing, assuming required
2024-08-08 17:02:54+00:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade or creating healthcheck users) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
2024-08-08 17:02:54 0 [Note] Starting MariaDB 10.11.8-MariaDB-ubu2204 source revision 3a069644682e336e445039e48baae9693f9a08ee as process 1
2024-08-08 17:02:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-08-08 17:02:54 0 [Note] InnoDB: Number of transaction pools: 1
2024-08-08 17:02:54 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-08-08 17:02:54 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
2024-08-08 17:02:54 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
2024-08-08 17:02:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-08-08 17:02:54 0 [Note] InnoDB: Completed initialization of buffer pool
2024-08-08 17:02:54 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2024-08-08 17:02:54 0 [Note] InnoDB: End of log at LSN=47012
2024-08-08 17:02:54 0 [Note] InnoDB: 128 rollback segments are active.
2024-08-08 17:02:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-08-08 17:02:54 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-08-08 17:02:54 0 [Note] InnoDB: log sequence number 47012; transaction id 14
2024-08-08 17:02:54 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-08-08 17:02:54 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-08-08 17:02:54 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-08-08 17:02:54 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-08-08 17:02:54 0 [Note] Server socket created on IP: '::'.
2024-08-08 17:02:54 0 [Warning] 'user' entry 'root@8094dc39947b' ignored in --skip-name-resolve mode.
2024-08-08 17:02:54 0 [Warning] 'proxies_priv' entry '@% root@8094dc39947b' ignored in --skip-name-resolve mode.
2024-08-08 17:02:54 0 [Note] mariadbd: ready for connections.
Version: '10.11.8-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-08-08 17:02:54 0 [Note] InnoDB: Buffer pool(s) load completed at 240808 17:02:54
2024-08-08 17:02:55 3 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:57 4 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:58 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:00 6 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:02 7 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:02 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:04 9 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:07 10 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:07 11 [Warning] Aborted connection 11 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:09 12 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)

The vikunja-vikunja-1 container logs says:

2024-08-08T19:49:53.987177455Z: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-08-08T19:49:53.987323855Z: INFO	▶ migration/Migrate 002 Running migrations…
2024-08-08T19:49:53.992705537Z: CRITICAL	▶ migration/Migrate 004 Migration failed: dial tcp 127.0.0.1:3306: connect: connection refused
2024-08-08T19:49:58.48921924Z: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-08-08T19:49:58.490006434Z: INFO	▶ migration/Migrate 002 Running migrations…
2024-08-08T19:49:58.490808686Z: CRITICAL	▶ migration/Migrate 004 Migration failed: dial tcp 127.0.0.1:3306: connect: connection refused
2024-08-08T19:50:02.939859104Z: INFO	▶ config/InitConfig 001 No config file found, using default or config from environment variables.
2024-08-08T19:50:02.940600357Z: INFO	▶ migration/Migrate 002 Running migrations…
2024-08-08T19:50:02.941428793Z: CRITICAL	▶ migration/Migrate 004 Migration failed: dial tcp 127.0.0.1:3306: connect: connection refused

How can i fix this?
Do i have to add something manually to my database via phpmyadmin?

Or did i have to change this in my composer file to anything else?

VIKUNJA_DATABASE_HOST: localhost

my current composer file, I have blacked out some data (passwords and domain) with “*”. Everything else is like i deploy my composer file.

version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_PUBLICURL: http://synology.**********.com:3456
      VIKUNJA_DATABASE_HOST: localhost
      VIKUNJA_DATABASE_PASSWORD: ems*************
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: gDjP*************
    ports:
      - 3456:3456
    volumes:
      - /volume1/docker/vikunja:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: NSOn*************
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: ems*************
      MYSQL_DATABASE: vikunja
    volumes:
      - /volume1/docker/vikunjadb:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
      interval: 2s
      start_period: 30s

@Wasabi any ideas ? :frowning:

@kolaente sorry for tagging u here, but I spent the whole evening looking at the problem with an IT specialist, but we couldn’t come up with a solution.

Maybe you notice something else here?
I hope it’s not a problem that I’ve tagged you here. I would be extremely grateful if you could also keep an eye on this alongside Wasabi.

Thank u soo soo much for ur help guys!

You already had it set to the correct value, why did you change it to localhost? Localhost would require you to publish the port on the docker host, which is not necessary if you only want to access the service from other containers.

Apart from that, please keep in mind that this is a community forum. I understand personal projects are always time critical and always important, everyone here is doing that in their free time though. Keep that in mind please and do not tag people if they dared not to answer within three hours please :slight_smile:

We were not sure what to do, and localhost seems legit to us. But both “db” and “localhost” value cause this error.

2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.8+maria~ubu2204 started.
2024-08-08 17:02:53+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup/emory:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
6:freezer:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
5:devices:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
4:cpuset:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
3:cpuacct:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
2:cpu:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525
1:blkio:/docker/446a558c3a2ee9b475210f84dcbbd6f534827415c30f4f1f1fa6ca62e96e1525/memory.pressure not writable, functionality unavailable to MariaDB
2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-08-08 17:02:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.8+maria~ubu2204 started.
2024-08-08 17:02:54+00:00 [Note] [Entrypoint]: MariaDB upgrade information missing, assuming required
2024-08-08 17:02:54+00:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade or creating healthcheck users) required, but skipped due to $MARIADB_AUTO_UPGRADE setting
2024-08-08 17:02:54 0 [Note] Starting MariaDB 10.11.8-MariaDB-ubu2204 source revision 3a069644682e336e445039e48baae9693f9a08ee as process 1
2024-08-08 17:02:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-08-08 17:02:54 0 [Note] InnoDB: Number of transaction pools: 1
2024-08-08 17:02:54 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-08-08 17:02:54 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
2024-08-08 17:02:54 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
2024-08-08 17:02:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-08-08 17:02:54 0 [Note] InnoDB: Completed initialization of buffer pool
2024-08-08 17:02:54 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2024-08-08 17:02:54 0 [Note] InnoDB: End of log at LSN=47012
2024-08-08 17:02:54 0 [Note] InnoDB: 128 rollback segments are active.
2024-08-08 17:02:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-08-08 17:02:54 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-08-08 17:02:54 0 [Note] InnoDB: log sequence number 47012; transaction id 14
2024-08-08 17:02:54 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-08-08 17:02:54 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-08-08 17:02:54 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2024-08-08 17:02:54 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-08-08 17:02:54 0 [Note] Server socket created on IP: '::'.
2024-08-08 17:02:54 0 [Warning] 'user' entry 'root@8094dc39947b' ignored in --skip-name-resolve mode.
2024-08-08 17:02:54 0 [Warning] 'proxies_priv' entry '@% root@8094dc39947b' ignored in --skip-name-resolve mode.
2024-08-08 17:02:54 0 [Note] mariadbd: ready for connections.
Version: '10.11.8-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2024-08-08 17:02:54 0 [Note] InnoDB: Buffer pool(s) load completed at 240808 17:02:54
2024-08-08 17:02:55 3 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:57 4 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:02:58 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:00 6 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:02 7 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:02 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:04 9 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:07 10 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)
2024-08-08 17:03:07 11 [Warning] Aborted connection 11 to db: 'unconnected' user: 'unauthenticated' host: '192.168.112.3' (This connection closed normally without authentication)
2024-08-08 17:03:09 12 [Warning] Access denied for user 'vikunja'@'localhost' (using password: YES)

Of course I know that and I appreciate that, the tags were not meant in any malicious way. That’s why I express my gratitude to you in every post for trying to help me.

But of course I understand that. :slight_smile:

Now back to the topic.
Any idea why it cause a connection refuse from vikunja user to the database?
I’m really despairing about it.

I change the DB Host back to “db”, here is my current composer file:

version: '3'

services:
  vikunja:
    image: vikunja/vikunja
    environment:
      VIKUNJA_SERVICE_PUBLICURL: http://synology.**********.com:3456
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: ems*************
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: gDjP*************
    ports:
      - 3456:3456
    volumes:
      - /volume1/docker/vikunja:/app/vikunja/files
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: NSOn*************
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: ems*************
      MYSQL_DATABASE: vikunja
    volumes:
      - /volume1/docker/vikunjadb:/var/lib/mysql
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
      interval: 2s
      start_period: 30s

I thank you in advance for your further help. Hopefully we get this running :frowning:

Your compose file works as is when executing it without any changes on my computer, so it’s not a generic problem of your compose project. I’m not familiar with Portainer as I prefer managing docker deployments either plainly using CLI or have K8s, neither am I really familiar with Docker on Synology.

As this seems to be something related to the environment, not the compose definition itself, I’m afraid you’ll need to look more there, but I won’t be able to help.

I had the exactly same issues he had: Problems with setting up in Docker with NPM - #6 by kolaente

i also tried with postgres and u can see it works, dont ask me why…

Thanks for ur help!

There is a helpful guide at How to Install Vikunja on Your Synology NAS – Marius Hosting which also has lots of info about synology and installing lots of other software in the synology ecosystem.

It uses postgres too and also offers help with the none docker parts, like ports, certificates, firewall etc.

1 Like