Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Vikunja
  3. Vikunja 1.22.0 - app fails to start after update (migration error)

Vikunja 1.22.0 - app fails to start after update (migration error)

Scheduled Pinned Locked Moved Solved Vikunja
5 Posts 3 Posters 31 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • archosA Offline
    archosA Offline
    archos
    translator
    wrote last edited by archos
    #1

    Hi,

    I tried updating the Vikunja package to version 1.22.0 (Vikunja 2.2.0), but the app fails to start after the update.

    The log shows the same error on every startup:

    Migration failed: migration 20260224215050 failed: pq: column "project_id" of relation "webhooks" does not exist
    

    The app keeps retrying but never becomes healthy (healthcheck EHOSTUNREACH on port 3456). I had to roll back using the Cloudron backup restore.

    I also find it strange that package 1.22.0 was published 19 days ago, but I only received the update notification today. Is that expected behavior or is there an issue with update notifications?

    Thank you so much for your help.

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by nebulon
      #2

      This sounds like some database migration didn't run. Can you open a webterminal into the app and in the /app/data folder, run gosu cloudron:cloudron /usr/bin/vikunja migrate. If this fixes it I think we have to add this to the start.sh then.

      archosA 1 Reply Last reply
      1
      • nebulonN nebulon

        This sounds like some database migration didn't run. Can you open a webterminal into the app and in the /app/data folder, run gosu cloudron:cloudron /usr/bin/vikunja migrate. If this fixes it I think we have to add this to the start.sh then.

        archosA Offline
        archosA Offline
        archos
        translator
        wrote last edited by
        #3

        @nebulon said:

        gosu cloudron:cloudron /usr/bin/vikunja migrate

        Thank you for your response. I tried your suggestion. After updating to 1.22.0, the app keeps crashing on startup with the same error. Here are the full logs:

        Mar 23 18:37:57 ==> Updating OIDC configuration
        Mar 23 18:37:57 time=2026-03-23T17:37:57.342Z level=INFO msg="Using config file: /app/data/config.yml"
        Mar 23 18:37:57 time=2026-03-23T17:37:57.343Z level=INFO msg="Running migrations…"
        Mar 23 18:37:57 time=2026-03-23T17:37:57.360Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        Mar 23 18:37:58 time=2026-03-23T17:37:58.108Z level=INFO msg="Running migrations…"
        Mar 23 18:37:58 time=2026-03-23T17:37:58.130Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        Mar 23 18:37:59 ==> Changing ownership
        Mar 23 18:37:59 ==> Starting Vikunja
        Mar 23 18:37:59 ==> Updating OIDC configuration
        Mar 23 18:37:59 time=2026-03-23T17:37:59.320Z level=INFO msg="Running migrations…"
        Mar 23 18:37:59 time=2026-03-23T17:37:59.337Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        Mar 23 18:38:01 ==> Changing ownership
        Mar 23 18:38:01 ==> Starting Vikunja
        Mar 23 18:38:01 ==> Updating OIDC configuration
        Mar 23 18:38:01 time=2026-03-23T17:38:01.431Z level=INFO msg="Using config file: /app/data/config.yml"
        Mar 23 18:38:01 time=2026-03-23T17:38:01.432Z level=INFO msg="Running migrations…"
        Mar 23 18:38:01 time=2026-03-23T17:38:01.463Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        Mar 23 18:38:25 ==> Changing ownership
        Mar 23 18:38:25 ==> Starting Vikunja
        Mar 23 18:38:25 ==> Updating OIDC configuration
        Mar 23 18:38:25 time=2026-03-23T17:38:25.421Z level=INFO msg="Running migrations…"
        Mar 23 18:38:25 time=2026-03-23T17:38:25.452Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        

        I then enabled repair mode and ran the migration manually in the web terminal:

        gosu cloudron:cloudron /usr/bin/vikunja migrate
        

        Result:

        time=2026-03-23T17:37:06.471Z level=INFO msg="Using config file: /app/data/config.yml"
        time=2026-03-23T17:37:06.471Z level=INFO msg="Running migrations…"
        time=2026-03-23T17:37:06.490Z level=ERROR msg="Migration failed: migration 20260224215050 failed: pq: column \"project_id\" of relation \"webhooks\" does not exist"
        

        Same error — the migration fails both on startup and when run manually.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joseph
          Staff
          wrote last edited by
          #4

          I think https://github.com/go-vikunja/vikunja/issues/2431 . Can you see if the workaround there solves it?

          1 Reply Last reply
          1
          • archosA Offline
            archosA Offline
            archos
            translator
            wrote last edited by
            #5

            The manual fix worked for me. I ran the following in the web terminal (repair mode):

            psql $CLOUDRON_POSTGRESQL_URL
            
            ALTER TABLE webhooks ADD COLUMN IF NOT EXISTS project_id bigint NULL;
            INSERT INTO migration (id) VALUES ('20260224215050');
            \q
            

            After restarting the app, migrations ran successfully and Vikunja 2.2.0 is up and running.

            Thanks for the help!

            1 Reply Last reply
            0
            • nebulonN nebulon marked this topic as a question
            • nebulonN nebulon has marked this topic as solved

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search