R
Runtipi2d ago
Lukas

Update from 3.x to 4.0.0 - Database(s) not recognized

I followed the update guide on the Website and still have the "migration-backups" folder so all data is (or should) be backed up. But I don't understand why none of the databases are recognized. Wallos does not output an error in the logs, but when I open it instead of asking for a login, it asks for registration since no account is found. Hammond, Audiobookshelf and Jellyfin behave similarly but they do have interesting log outputs, mostly some sort of "Invalid Token" error message. My OS is Ubuntu Server 22.04 consists of a Proxmox virtual CPU, 20 GB of ram and 250GB of SSD and 12TB of HDD storage.
49 Replies
Nicolas
Nicolas2d ago
Have you correctly stopped all the apps before migrating? Please share docker ps
Lukas
LukasOP2d ago
Yes I did, just like instructed
Nicolas
Nicolas2d ago
Sorry
Lukas
LukasOP2d ago
Lukas
LukasOP2d ago
For what? 🙂
Nicolas
Nicolas2d ago
I thought you were telling me you already pasted the docker ps
Lukas
LukasOP2d ago
No sorry my bad I replied to you asking if I stopped all the apps before migrating
Nicolas
Nicolas2d ago
Yes I got it now 🙂 Okay so it seems you have a few apps which migrated correctly but others not. All the apps with migrated-something-1 should be working
Lukas
LukasOP2d ago
I don't know if it's relevant but I do have some apps not running on Runtipi but on dockge (dockge is also separate from Runtipi). These apps include - Dockge - Immich - HomeAssistant - MusicAssistant - TubeArchivist - ChatVault - Bookstack - Homebox - GoPro - Spotspot - Tube - GoProPlus
Nicolas
Nicolas2d ago
Okay this is relevant to know, so those are not managed by runtipi
Lukas
LukasOP2d ago
Exactly some others as well, but they are not mentioned in the logs as far as I know, but I will add them in the message above just to be sure
Nicolas
Nicolas2d ago
Let's focus on wallos since it's not working What do you see in the folder app-data/migrated/wallos/?
Lukas
LukasOP2d ago
Does not exist
Nicolas
Nicolas2d ago
Okay here is our problem Does app-data/wallos exist?
Lukas
LukasOP2d ago
Nope odd because when moving I checked if any folders were not moved just like mentioned in the guide and it seemed as if all folders were moved correctly 🤔
Nicolas
Nicolas2d ago
🤔 Did you use the script for migrating or went with the manual steps?
Lukas
LukasOP2d ago
Manual steps
Make sure you have moved all your data

Check that you did not miss any app. You can do this by running the following command:

ls -la migration-backups/apps
ls -la migration-backups/app-data
ls -la migration-backups/user-config
ls -la migration-backups/backups

It should print an empty list.
Make sure you have moved all your data

Check that you did not miss any app. You can do this by running the following command:

ls -la migration-backups/apps
ls -la migration-backups/app-data
ls -la migration-backups/user-config
ls -la migration-backups/backups

It should print an empty list.
I did this and it was empty
Nicolas
Nicolas2d ago
Can you see your wallos folder in migration-backups/app-data/wallos?
Lukas
LukasOP2d ago
I was not aware that there is a script
Nicolas
Nicolas2d ago
No worries The manual steps are a valid way to do it
Lukas
LukasOP2d ago
Does not exist here as well
Nicolas
Nicolas2d ago
Which os are you running?
Lukas
LukasOP2d ago
Ubuntu Server 24.04 And that is on a proxmox VM
Nicolas
Nicolas2d ago
find ~ -type d -iname "wallos"
find ~ -type d -iname "wallos"
Lukas
LukasOP2d ago
/home/lukas/runtipi/repos/migrated/apps/wallos
/home/lukas/runtipi/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903/apps/wallos
/home/lukas/runtipi/repos/e0ef72f3da98cd18de2333f2323d4acf1d1b4794e49ef4d763421520b94efcf1/apps/wallos
/home/lukas/runtipi/repos/65c783e73e877dbfc3737d7a238a4e1aa9a820f8a71a48c0d9d0cd9779487179/apps/wallos
/home/lukas/runtipi/backups/migrated/wallos
/home/lukas/runtipi/apps/migrated/wallos
/home/lukas/runtipi/repos/migrated/apps/wallos
/home/lukas/runtipi/repos/29ca930bfdaffa1dfabf5726336380ede7066bc53297e3c0c868b27c97282903/apps/wallos
/home/lukas/runtipi/repos/e0ef72f3da98cd18de2333f2323d4acf1d1b4794e49ef4d763421520b94efcf1/apps/wallos
/home/lukas/runtipi/repos/65c783e73e877dbfc3737d7a238a4e1aa9a820f8a71a48c0d9d0cd9779487179/apps/wallos
/home/lukas/runtipi/backups/migrated/wallos
/home/lukas/runtipi/apps/migrated/wallos
Nicolas
Nicolas2d ago
Try to look if there is any data in one of these folders don't look in the repos ones
Lukas
LukasOP2d ago
Ok
lukas@lukas:~/runtipi$ ls backups/migrated/wallos/
wallos-1731316194844.tar.gz wallos-1738791303706.tar.gz
wallos-1731959232762.tar.gz wallos-1740998138802.tar.gz
wallos-1732108422224.tar.gz wallos-1741369910932.tar.gz
wallos-1733771606043.tar.gz wallos-1742503648975.tar.gz
wallos-1734076023833.tar.gz wallos-1743795845600.tar.gz
wallos-1734631277723.tar.gz wallos-1744913619984.tar.gz
wallos-1735733175047.tar.gz wallos-1745001235657.tar.gz
wallos-1737485661145.tar.gz wallos-1746689965472.tar.gz
lukas@lukas:~/runtipi$ ls backups/migrated/wallos/
wallos-1731316194844.tar.gz wallos-1738791303706.tar.gz
wallos-1731959232762.tar.gz wallos-1740998138802.tar.gz
wallos-1732108422224.tar.gz wallos-1741369910932.tar.gz
wallos-1733771606043.tar.gz wallos-1742503648975.tar.gz
wallos-1734076023833.tar.gz wallos-1743795845600.tar.gz
wallos-1734631277723.tar.gz wallos-1744913619984.tar.gz
wallos-1735733175047.tar.gz wallos-1745001235657.tar.gz
wallos-1737485661145.tar.gz wallos-1746689965472.tar.gz
The /apps/ just contains the compose and config etc.
Nicolas
Nicolas2d ago
At least we have some backups to restore You may have lost somehow your data by removing something
Lukas
LukasOP2d ago
So the same applies for Audiobookshelf, Jellyfin and Hammond I suppose
Nicolas
Nicolas2d ago
Check if you have backups
Nicolas
Nicolas2d ago
Breaking updates
Homeserver management made easy
Lukas
LukasOP2d ago
Yep I did it one folder above the runtipi folder
Nicolas
Nicolas2d ago
Cool so we are safe, let's try to fix it with the apps backups In your runtipi dashboard, if you go to wallos do you see the backups listed?
Lukas
LukasOP2d ago
Yes I see the latest is from the 8th may So I could use that one and click restore right?
Nicolas
Nicolas2d ago
Try to restore it
Lukas
LukasOP2d ago
It worked, jumped back a version but that's fine Uff ok Jellyfin could be a bit of an issue Since it is so big the last backup is from the 20th of November 24 I hope I'm not taking up too much of your time 🙂 Is there a way I can get the data from the full backup?
Nicolas
Nicolas2d ago
Don't worry I'm happy to help 🙂
Lukas
LukasOP2d ago
Thanks!!
Nicolas
Nicolas2d ago
The full backup will roll you back to version 3 of runtipi So if we can fix it with the local app backups its better
Lukas
LukasOP2d ago
And then I suppose I'll have to retry the entire procedure
Nicolas
Nicolas2d ago
Yes
Lukas
LukasOP2d ago
Hmmm
Nicolas
Nicolas2d ago
For jellyfin you should still have your movies and series in the media folder This doesn't change
Lukas
LukasOP2d ago
No by all means that is not an issue, I have all the movies and songs saved in a completely different location so those are safe. I'm thinking if I made vital changes since then that will affect anything, but I mean worst case scenario I would use the full backup and all would be back to normal
Nicolas
Nicolas2d ago
Yes if you really miss something we can start from start with the full backup
Lukas
LukasOP2d ago
Awesome, I'll just try to restore all the apps and let you know 🙂 So all of them work except for Jellyfin Same error as before the restore:
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:28] [INF] [21] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:38] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
jellyfin-1 | [10:32:48] [INF] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
Nicolas
Nicolas2d ago
Invalid token issues
I am running Jellyfin 10.10.3 (docker compose) on the latest build of Ubuntu Server OS. I haven't had any issues with with Jellyfin but I was curious and looked at the logs in Portainer and I noticed
Lukas
LukasOP2d ago
Trying now 👍 Ok I think that should be it. I lost data in some applications but it's not important enough to do a full restore of the full backup. I'll now see to create backups more frequently, learned from my mistake Thanks you Nicolas for your help! You were really patient, I appreciate it!
Nicolas
Nicolas2d ago
My pleasure, don't hesitate to ask again if you have other troubles!

Did you find this page helpful?