Errors after changing VIKUNJA_API_URL and VIKUNJA_SERVICE_FRONTENDURL (or restarting containers) #1502

Closed
opened 2023-04-21 11:48:32 +00:00 by Olivetree · 3 comments

Description

I needed to change the domain where I host vikunja so I changed VIKUNJA_API_URL and VIKUNJA_SERVICE_FRONTENDURL and restarted the containers. After clearing cookies on my browser and trying to login, it says the user doesn't exist.
Also, if I run docker exec vikunja_api /app/vikunja/vikunja user list I get the following output:

2023/04/21 11:37:08 No config file found, using default or config from environment variables.
2023-04-21T11:37:08.349666637Z: INFO    ▶ migration/Migrate 04e Ran all migrations successfully.
2023-04-21T11:37:08.349987819Z: INFO    ▶ models/RegisterReminderCron 04f Mailer is disabled, not sending reminders per mail
2023-04-21T11:37:08.350137109Z: INFO    ▶ models/RegisterOverdueReminderCron 050 Mailer is disabled, not sending overdue per mail
2023-04-21T11:37:08.352993469Z: CRITICAL        ▶ cmd/func12 0ae Error getting users: pq: column "default_list_id" does not exist

Using psql on the db container I can see the users in the users table.

Finally, changing back the URLs and clearing cookies, vikunja still doesn't find the usernames. Password is given by password manager, it's very unlikely to be incorrect input.

Vikunja Frontend Version

0.20.5 (actually latest from dockerhub)

Vikunja API Version

v0.20.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description I needed to change the domain where I host vikunja so I changed VIKUNJA_API_URL and VIKUNJA_SERVICE_FRONTENDURL and restarted the containers. After clearing cookies on my browser and trying to login, it says the user doesn't exist. Also, if I run `docker exec vikunja_api /app/vikunja/vikunja user list` I get the following output: ``` 2023/04/21 11:37:08 No config file found, using default or config from environment variables. 2023-04-21T11:37:08.349666637Z: INFO ▶ migration/Migrate 04e Ran all migrations successfully. 2023-04-21T11:37:08.349987819Z: INFO ▶ models/RegisterReminderCron 04f Mailer is disabled, not sending reminders per mail 2023-04-21T11:37:08.350137109Z: INFO ▶ models/RegisterOverdueReminderCron 050 Mailer is disabled, not sending overdue per mail 2023-04-21T11:37:08.352993469Z: CRITICAL ▶ cmd/func12 0ae Error getting users: pq: column "default_list_id" does not exist ``` Using psql on the db container I can see the users in the users table. Finally, changing back the URLs and clearing cookies, vikunja still doesn't find the usernames. Password is given by password manager, it's very unlikely to be incorrect input. ### Vikunja Frontend Version 0.20.5 (actually latest from dockerhub) ### Vikunja API Version v0.20.4 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Olivetree added the
kind/bug
label 2023-04-21 11:48:32 +00:00
Owner

Does the error only happen when you try to list users?

Did you update to unstable at some point? (Even if briefly)

Does the error only happen when you try to list users? Did you update to unstable at some point? (Even if briefly)
Author

It also happens on create.

Oh! Now that you mention it, while trying to find some feature I saw mentioned on the forums, I did switch to unstable for some minutes. Everything works again. Thanks!

It also happens on create. Oh! Now that you mention it, while trying to find some feature I saw mentioned on the forums, I did switch to unstable for some minutes. Everything works again. Thanks!
Owner

Yeah there have been breaking changes to the structure recently which are not backwards compatible.

Yeah there have been breaking changes to the structure recently which are not backwards compatible.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1502
No description provided.