Jump to content

Recommended Posts

Posted

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
Posted

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

Posted

Hi maegibbons.

 

This is a dedicated emby server. It has a public IP so I can access it externally :)

 

thanks.

-Gunnar

Posted

Any chance you happened to kill the server manually at some point while it was trying to do this upgrade?

Posted

The server might have crashed while updating  :(

Posted

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.

  • Like 1
Posted

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.

Posted

Do you recall what version you upgraded from?

Posted

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?

Posted

It was created before September 15th 2016 :)

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...