Jump to content

Media Lost On Reboot


Recommended Posts

Posted

My media collection has been working great, no issues.  All my library paths we \\servername\share.

 

I've installed a few Linux machines and didn't want to worry about name resolution so I changed all my shares to \\ipaddress\share and rescanned my library (which took a long time as expected).

Now whenever I reboot the machine, my library is empty.  I need to go into the scheduled tasks and execute a re-scan for everything to show up.  The re-scan is much quicker than the original but obviously something is wrong.

 

Any ideas?

Posted

Do your Linux machines have static IP addresses or DHCP?

Posted

Linux machines are DHCP but the addresses are reserved in my router.  They are just Kodi installs with the emby plugin.

 

It is the main Windows Emby Server machine that is losing its library on reboot.  I need to go into the dashboard and rescan the library each reboot.

Posted

That seems like an odd change to have made since the IP address is much more likely to change than the server name but that is neither here nor there in terms of what is happening now.

 

I'm guessing it has to do with the fact that everything was deleted and then re-added and is just a test case we haven't fully investigated.  After running the library scan and getting everything up properly, try running a clean database task and see if that helps at all.

 

It might not because what I think may be happening is that we are still trying to look for the old item locations and, they are actually found because the paths to them are still valid (via name instead of IP).

Happy2Play
Posted

That seems like an odd change to have made since the IP address is much more likely to change than the server name but that is neither here nor there in terms of what is happening now.

 

I'm guessing it has to do with the fact that everything was deleted and then re-added and is just a test case we haven't fully investigated.  After running the library scan and getting everything up properly, try running a clean database task and see if that helps at all.

 

It might not because what I think may be happening is that we are still trying to look for the old item locations and, they are actually found because the paths to them are still valid (via name instead of IP).

Isn't this one of the fixes being worked on in the dev cycle, the duplicates in the database?

Posted

Isn't this one of the fixes being worked on in the dev cycle, the duplicates in the database?

 

Yes but we will look for things that are really gone.  Otherwise we'll probably just treat them as offline.  And his items are probably not really gone from a file system perspective as the names and paths probably still resolve.

 

That's a lot of 'ifs' on my part though so could be something else.

Happy2Play
Posted

]

It might not because what I think may be happening is that we are still trying to look for the old item locations and, they are actually found because the paths to them are still valid (via name instead of IP).

Wouldn't deleting the library.db and rebuilding verify if it is a database issue?
Posted

Wouldn't deleting the library.db and rebuilding verify if it is a database issue?

 

Yup.

Posted

To be clear, I don't have duplicates, I have nothing after a reboot.  I have to manually run the library refresh to pick everything up.  The refresh takes a couple minutes so it's not "full".  The initial switch to ipaddresses took the library an hour to rebuild.

 

Cleaning the database didn't do it.  I also tried added a fake line into my hosts file to break the hostname of the media location, didn't work.

 

Another note - When I refresh in kodi it shows the proper ipaddresses (no of the hostname links show up).

Happy2Play
Posted (edited)

To be clear, I don't have duplicates, I have nothing after a reboot.  I have to manually run the library refresh to pick everything up.  The refresh takes a couple minutes so it's not "full".  The initial switch to ipaddresses took the library an hour to rebuild.

 

Cleaning the database didn't do it.  I also tried added a fake line into my hosts file to break the hostname of the media location, didn't work.

 

Another note - When I refresh in kodi it shows the proper ipaddresses (no of the hostname links show up).

 

But the database might, as ebr suggested.  As a test with your server seeing everything, can you do a search for one of your movies.  Does it appear twice in the search?

 

example I searched mission and shows 2 movies Mission: Impossible Ghost Protocol but there is only on in my library, issue in database do to media relocation.  Being worked on in Dev cycle. 

 

5617049aab7b5_double.jpg

Edited by Happy2Play
Posted

Media only comes up once in the search.

 

As a temporary fix I've made the library scan happen on application startup.  I plan on moving this to my Synology soon so it'll fix itself at that point.

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...