mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-06 11:37:49 -05:00
Closed
opened 2026-04-20 17:10:14 -05:00 by GiteaMirror
·
12 comments
No Branch/Tag Specified
main
gh-readonly-queue/main/pr-2731-7800102f937efa5fbcec6262a1159beb4441caf7
feat-v2-foundation
spike-huma-openapi3
claude/investigate-swagger3-support-nyyUa
feat-list-view-buckets
ci-mysql-8-test
codex/analyze-codebase-for-email-task-feature
feat-project-templates
csv-import-feature
claude/email-reply-comments-wpdcQ
fix-oidc-pkce-support
fix/overview-subtasks-expand
feat/bucket-select-task-detail
feat-soft-delete-projects
claude/review-bot-design-plan-cf5C3
claude/project-scoped-api-tokens-KTqR3
claude/explore-openclaw-integration-KQEzg
claude/project-scoped-api-tokens-yv5KS
fix-duplicate-close-button
feat-list-view-sorting
feat/official-vite-sentry-plugin
feat/highlight-overdue-tasks
feat/add-enter-key-form-submission-handling
feat/TipTap-nits
feat/update-caldavtimetotimestamp-parsing
feat-phosphor-icons
wip-plans
claude/investigate-issue-2173-llKme
fix-description-text-drag
feat-custom-keyboard-shortcuts
pr-1845-ci
codex/fix-drag-and-drop-behavior-inconsistency
copilot/add-clickable-labels-for-filtering
copilot/fix-issue-1786
playwright-migration
fix-kanban-repeating-wip
copilot/fix-1498
feature/replace-axios
codex/upgrade-to-tailwind-4.1.8-using-pnpm
codex/add-cypress-test-for-avatar-types
feature/biome
feature/oxc
codex/update-flexsearch-to-0.8.205
4r6ni9-codex/fix-deprecated-sass-@import-usage
codex/fix-deprecated-sass-@import-usage
codex/add-cypress-test-for-task-list-refresh-fix
codex/fix-quick-add-magic-not-adding-tasks
codex/fix-all-type-errors
codex/fix-mimetype-for-docs.json
feature/caldav-from-scratch
feature/gh-actions-hetzner
fix-ci
feat/new-logger
jyte-better-dev-config
feat/add-team-member-with-enter
fix/button-and-icon-types
fix/notifications-component-name-collision
feature/null-time
renovate/tailwindcss-4.x
feature/unplugin-vue-router
fix/deprecated-import
feature/zod-schema
renovate/golangci-golangci-lint-1.x
fix/tiptap-editor-reactive-destructuring
release/0.24
feat/improve-add-task
fix/saved-filter-search
feat/webp-and-avif-attachment-previews
feature/migrate-back-to-bulma
fix/sass-add-missing-list-import
feature/sticky-demo-bar
fix/gantt-view-switch
feature/typesense-position-join
feature/focus-visible
dependencies/golangci-lint
feature/better-filter-syntax
fix/tiptap-task-list
renovate/github.com-golang-jwt-jwt-v4-5.x
feature/hide-forbidden-related-tasks
renovate/golang-1.x
release/0.20
release/0.17
release/0.16
release/0.15
release/0.14
v2.3.0
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.0
v1.1.0
v1.0.0
v1.0.0-rc4
v1.0.0-rc3
v1.0.0-rc2
v1.0.0-rc1
v1.0.0-rc0
v0.24.6
v0.24.5
v0.24.4
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.0
v0.22.1
v0.22.0
0.21.0
v0.21.0
v0.20.4
v0.20.5
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.2
v0.19.1
v0.19.0
vue3
v0.18.1
v0.18.0
v0.17.1
v0.17.0
v0.16.1
v0.16.0
v0.15.1
v0.15.0
v0.14.1
v0.14.0
v0.13.1
v0.13
v0.12
v0.11
v0.10
v0.9
v0.8
v0.7
v0.6
v0.5
v0.4
v0.3
v0.2
v0.1
Labels
Clear labels
area/api
area/attachments
area/auth
area/avatars
area/backup-restore
area/caldav
area/calendar-view
area/comments
area/config
area/database
area/desktop
area/docker
area/email
area/favorites
area/filters
area/frontend
area/gantt
area/i18n
area/import-export
area/internal-code
area/kanban
area/labels
area/list-view
area/mobile
area/notifications
area/permissions
area/projects
area/pwa
area/recurring-tasks
area/reminders
area/search
area/shortcuts
area/subtasks
area/sync
area/table-view
area/task-editor
area/task-metadata
area/task-relations
area/teams
area/theming
area/time-tracking
area/typesense
area/views
area/webhooks
bug
changes requested
concern/accessibility
concern/performance
concern/regression
concern/ux
confirmed
db/mysql
dependencies
enhancement
good first issue
help wanted
integration/inbound
integration/outbound
kind/bug
kind/feature
needs reproduction
pull-request
question
security
support
upstream issue
waiting for reply
wontfix
Mirrored from GitHub Pull Request
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/vikunja#6574
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @freeware-superman on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/2172
Pre-submission checklist
Description
Hi,
congratulations on this huge milestone. The release notes for v1.0.0 made me really excited for the changes that have been in the making during the past couple of months.
When I tried to update form v0.24.6 though, I was greeted with a big problem: after login, all data was gone.
I was able to reproduce the behaviour with setup/data with the following steps:
config.yml.During the first login attempt, I get a message that an internal error occured. The second login attemt succeeds but all previous data (projects, teams, ToDos) are gone. However, having a look in my postgres database, all data is still there (as far as I can tell; regarding DBs I don't know that much).
My config:
Docker Compose
config.yml (partly redacted)
The logs
Vikunja log
Postgres log
Is there anything I missed for the upgrade? If not, I'd be happy to help as good as I can.
Vikunja Version
1.0.0
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
No response
@SamBouwer commented on GitHub (Jan 28, 2026):
I have the exact same starting situation/state, same changes (SSO config change and image tag update) and the same outcome (no projects, no tasks, but for example labels are present) but with a different error:
Vikunja | 2026-01-28T21:15:44.852729097Z time=2026-01-28T21:15:44.852Z level=ERROR component=http method=GET uri="/api/v1/projects?is_archived=true&expand=permissions&page=1" status=500 latency=20.489701ms err="json: cannot unmarshal string into Go struct field ProjectViewBucketConfiguration.filter of type models.TaskCollection"I am able to get to a specific task by manually going to a task URL: https://[my.vikunja.instance]/tasks/53 does show the task details!
I made a backup, but I'm also able to get everything back to working by reverting the SSO config change and reverting back to the 0.24.6 tag. Therefore, it feels like the database migrations that are needed are not actually done?
@kolaente commented on GitHub (Jan 28, 2026):
Can you check how many users you have in the
userstable in the db? I suspect that your user was not mapped to the existing one and you got a new one created (which won't have the data of the older one)@SamBouwer commented on GitHub (Jan 28, 2026):
I have 9 users, which is the expected amount (same as before upgrade to 1.0.0). Not sure if that is relevant for "my" error. Let me know if you suspect the issues are different, then I can create a separate issue.
@kolaente commented on GitHub (Jan 28, 2026):
It could also be a missing migration. Can you post the content of the
migrationstable?@SamBouwer commented on GitHub (Jan 28, 2026):
Sure! Here you go:
Edit: I double checked and the "SCHEMA_INIT" indeed appears twice in the
migrationtable@SamBouwer commented on GitHub (Jan 28, 2026):
I found the issue (I hope 👼 )!
In the
bucket_configurationcolumn in theproject_viewstable I had one record of a Kanban view with value[{"title":"Wachtend op VBA","filter":"labels = 1"},{"title":"Backlog","filter":"done = false"}]All other records either had
nullor[]as value for that column. Everything seems fine again after replacing that value for that record using this command:update project_views set bucket_configuration = '[]' where id = 12;I'll report back if I find something not working.
@freeware-superman commented on GitHub (Jan 29, 2026):
In all three cases (before migration and after migration before the first login attempt and after successful login) I have the same amount of entries in
users. The table entry for the user that tried to login does not change. But it also does not update when changing any user setting in the web interface.In contrast to @SamBouwer's migration table, I'm missing all entries after
20240919130957. Furthermore, I also only have oneSCHEMA_INITentry.Output from "SELECT * FROM migration;"
Listing the mirgations using the Vikunja CLI (
/app/vikunja/vikunja migrate list) also shows newer migrations.Output of "/app/vikunja/vikunja migrate list"
Also, my
bucket_configurationinproject_viewsonly hasnulland[]entries.@freeware-superman commented on GitHub (Feb 1, 2026):
I just dug a little deeper and run all migrations using
vikunja migrate rollback -n ###andvikunja migratefrom the newest to the oldest.After a rollback to migration 20241118123644 I get
level=ERROR msg="Migration failed: migration 20250317174522 failed: pq: column \"oidc_id\" does not exist". With migration 20241028131622 and prior (e.g. 20241028131622) the error message changes tolevel=ERROR msg="Migration failed: migration 20241118123644 failed: pq: operator does not exist: json <> unknown".Interestingly, these error messages do not happen when the docker container gets updated from v0.24.6 to v1.0.0.
Regardless of which migration is run, the migration table in Postgres does not get updated.
I also tried to access tasks directly, just like @SamBouwer, but I can't access any "old" task or project.
@vikunja-bot-app[bot] commented on GitHub (Feb 24, 2026):
This issue has been fixed in #2288, please check with the next unstable build (should be ready for deployment in ~30min, also on the demo).
@freeware-superman commented on GitHub (Mar 5, 2026):
I just tried updating from 0.24.6 to 2.1.0.
My Postgres DB still shows the same migrations as when testing 1.0.0 (up to '20240919130957'); with 'vikunja migrate list' the latest migration shows '20260225114726'.
'vikunja user list' shows no users while postgres lists them all.
Trying to sign in still leads to vikunja stating that there is no 'tl.permission' column.
@kolaente commented on GitHub (Mar 17, 2026):
Is this your issue? https://github.com/go-vikunja/vikunja/issues/2397
@freeware-superman commented on GitHub (Apr 14, 2026):
Yes, this was part of it. After setting the schema correctly (VIKUNJA_DATABASE_SCHEMA: "vikunja"), I was able to upgrade my instance.
I updated from one version to the next and at one point got the same issue described here: https://github.com/go-vikunja/vikunja/issues/2397#issuecomment-4236364059. Executing
ALTER TABLE users DROP CONSTRAINT idx_16580_primary;resolved this issue.Later, there was an issue with migration "20260123000717" ("pq: column "project_id" of relation "webhooks" does not exist"). This can be resolved using
ALTER TABLE webhooks ADD COLUMN project_id bigint;.However, I'm not sure if this alters the DB to much or that there should have happened things to those columns and indexes before. Are these symptoms of a historically incorrect schema?
Is there a possibility to extract the data from the current instance and import it into a new/known good DB?