First off, thanks for really great software!
When I first met Vikunja, I tried it out on the cloud. When I decided I liked it enough to self-host, I had a lot of problems importing my data. Eventually, at @kolaente 's advice, I switched to the unstable branch, and it imported without issue. I’ve been using it happily ever since.
I’d like to move to the stable branch. I don’t imagine this is possible, but I’d like to be sure. I’m considering writing a script to pull/push the data from the API. Does that sound possible? Would I lose data near as you can tell? I’m not terribly concerned about keeping author data, given that I’m my only user. Keeping the original timestamps might be nice but is not imperative.
This is what I tried before I started entertaining the notion of scripting it:
I changed the image in the docker-compose.yml file from vikunja/vikunja:unstable
to vikunja/vikunja
, but the couple boards I tried loading had problems. One said something about problems with the done filter. It was too fast for me to get a screenshot, but I found this scrolling up the logs a few minutes later and I think it’s the same message:
vikunja-1 | 2025-01-03T16:16:42Z: ERROR ▶ 16a Task filter expression '{"s":"","sort_by":["done","id"],"order_by":["asc","desc"],"filter":"done = 'false","filter_include_nulls":true}'' is invalid [ExpressionError: unexpected character '{']
The other one just didn’t load. This is what the logs had to say:
vikunja-1 | 2025-01-03T16:16:42Z: WEB ▶ [my IP] GET 400 /api/v1/projects/726/views/1277/tasks?filter=&filter_include_nulls=false&s=&per_page=25&page=1 3.609658ms - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Fortunately, changing back to the unstable tag booted again with no problem.
Then I tried spinning up a stable version and exporting data from unstable into stable, but that failed also. I didn’t spend much time troubleshooting it, given that that’s the whole reason I wound up on unstable in the first place, but this is what I saw on the screen (I didn’t append the docker command with -d
) right after I issued the migrate request:
vikunja-1 | 2025-01-03T15:55:03Z: WEB ▶ [my IP] GET 200 /assets/migrators-DW38E8TT.js 899.305µs - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Then after it died:
vikunja-1 | 2025-01-03T15:55:34Z: WEB ▶ [my IP] PUT 500 /api/v1/migration/vikunja-file/migrate 8.942147546s - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
I hit ^C
and waited several minutes, but it wouldn’t even shut down. I assume some process was still working on importing the data. I couldn’t even SSH into another window. I eventually went into Digital Ocean’s control panel and did a hard shut down. It doesn’t seem to be any worse for the wear.
Any help would be much appreciated. Thank you!