gnarr 0 Posted January 16, 2019 Posted January 16, 2019 I just upgraded my server to version 4. When starting the server and going to the dashboard it shows "Emby Server is upgrading your database. Please try again in a minute or two." and I can see the server process stuck at max CPU for a minute and then the process dies. When starting the server again it just goes through the same process again and exits.Log attached. embyserver.txt
maegibbons 1287 Posted January 16, 2019 Posted January 16, 2019 Hi Looking at the IPs is this a remote server? Hmm. The DB engine sqlite is throwing an exception because of a UNIQUE constraint which emby is not handling. Luke will need to look at and advise and/or possibly fix in code. Krs Mark
gnarr 0 Posted January 16, 2019 Author Posted January 16, 2019 Hi maegibbons. This is a dedicated emby server. It has a public IP so I can access it externally thanks. -Gunnar
ebr 16193 Posted January 16, 2019 Posted January 16, 2019 Any chance you happened to kill the server manually at some point while it was trying to do this upgrade?
gnarr 0 Posted January 16, 2019 Author Posted January 16, 2019 The server might have crashed while updating
ebr 16193 Posted January 16, 2019 Posted January 16, 2019 Okay, if you can wait a little while, I'd like to see what Luke's suggested plan of attack here is. Perhaps he'll have an idea other than deleting library.db. 1
gnarr 0 Posted January 16, 2019 Author Posted January 16, 2019 Does MB Server maybe create a backup of the library.db before attempting upgrade?I am a software engineer, so I am ready to follow any advice, however complex it may be.
Luke 42085 Posted January 16, 2019 Posted January 16, 2019 Do you recall what version you upgraded from?
Luke 42085 Posted January 18, 2019 Posted January 18, 2019 That's very odd. The database migration is throwing an error when copying media chapters to their new table. Since the library is going to get re-scanned anyway, i can update the migration to ignore this. Very strange though, this never came up during the beta. How old is your emby installation? In other words, when did you install for the first time?
gnarr 0 Posted January 18, 2019 Author Posted January 18, 2019 It was created before September 15th 2016
Luke 42085 Posted January 18, 2019 Posted January 18, 2019 The database at that time may not be as strict as it is today, so ultimately, I'm pretty sure this is just a situation of bad data that the upgrade process will need to handle. This fix will be added to the next beta release which should be up sometime this weekend. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now