Jump to content
prunhardt

Nvidia Shield server unsuccesful scan

Recommended Posts

cayars

Keep an eye on things and see if you notice a pattern.

Share this post


Link to post
Share on other sites
prunhardt

OK, will do. 

Share this post


Link to post
Share on other sites
prunhardt
Posted (edited)

I've gone through the folders containing video files and removed some .par2 files, .rar files, .idx files .xml files and clearlogo.png files.

What do you think: can they cause issues?

Edited by prunhardt

Share this post


Link to post
Share on other sites
cayars

Yes :)

Share this post


Link to post
Share on other sites
prunhardt

Hi,

Removing the files that don't belong in the library didn't solve the problem.

I may have found something else. My NAS is set to go into sleep mode when inactive to save power. Also, the max SMB protocol of the NAS is set to SMB3.

I changed both in the past, never go to sleep and max SMB1,  to avoid problems with communcation with the Shield, but both seem to have been reset to the default values after a NAS firmware update without me noticing it.

Setting the NAS to never go to sleep seems to have a positive effect.

The Shield recently got firmware 8.2.0 which supports SMB3 so I don't have to change that setting.

 

 

  • Like 1

Share this post


Link to post
Share on other sites
Luke

Great info, thanks. Are you still having an issue with this?

Share this post


Link to post
Share on other sites
prunhardt

Unfortunately yes, the issue re-appeared this morning. I dove a bit deeper in what the issue is: the metadata are collected correctly, as are the images, but the primary image that should appear on the main page is not shown. Main issue is that the video file is not added. The library scan shows as "failed".

After a restart of Emby server all is well.

The search continues.... Haven't found a pattern yet.

Edited by prunhardt

Share this post


Link to post
Share on other sites
Luke

Have you updated to Emby Server 4.5? 

Share this post


Link to post
Share on other sites
prunhardt

yes, 5.0.15 at the time, just now on 5.1.0 and testing.

Share this post


Link to post
Share on other sites
Luke

Great, thanks.

Share this post


Link to post
Share on other sites
prunhardt
Posted (edited)

Hi,

Yesterday I tried something else, after another failed scan. I removed (well, renamed) library.db on the Shield and did a new scan to build the library from scratch.

What I noticed is that the size of the old file (11,52 MB) was about twice the size of the file after rebuilding it (6,5 MB, with a few new videos added today).

Could it be that there is a lot of junk data in the file that can cause a scan failure? Should I compress it every now and then, and if so, how?

Above method seems a bit crude, although it  is easy enough, but you loose all info on what has been watched. 

Edited by prunhardt

Share this post


Link to post
Share on other sites
cayars

With Emby shut down modify the system.xml file

  <VacuumDatabaseOnStartup>false</VacuumDatabaseOnStartup>

Look for that line and change it to true.

That will do an optimize on the next start (be patient) of Emby and will turn itself back to false.

It's sort of like doing a defrag on a HDD but for the database of course.

Share this post


Link to post
Share on other sites
prunhardt

Thanks for this. Do you agree this might have been the problem? 

Share this post


Link to post
Share on other sites
cayars

Anything is possible with databases.  I'm still a bit concerned with the previous foreign key constraint error that showed up.  With the new DB that should be gone now however.

How is the scanning going now?  Any problems since the rebuild?

Share this post


Link to post
Share on other sites
prunhardt

It's been only a day since the rebuild, but so far so good. 

Thanks. 

  • Like 1

Share this post


Link to post
Share on other sites
cayars

You may want to turn off "sleeping" on everything for a week as well to rule out any issues something like that could play.  Then if after a week things are good start setting things back.

Share this post


Link to post
Share on other sites
prunhardt

"Everything" would be Shield and NAS, or am I missing something?

Share this post


Link to post
Share on other sites
cayars

I don't know, it's not my setup. :)  But I think you mentioned previously the NAS was sleeping? I was just suggesting you turn off sleep mode for a bit.

Share this post


Link to post
Share on other sites
prunhardt

Done. I'll let you know in a week or so. 

  • Like 1

Share this post


Link to post
Share on other sites
prunhardt

Hi,

A few days ago, I had another failed scan, in spite of rebuilding the library.

But, first signs of a pattern: it happened after deleting a watched video using the Emby PC client (don't know yet if that's relevant).
We don't always delete files after watching them. If we do, and that corrupts the library somehow, that could explain why scanning would run fine for a few days, and then "randomly" would fail, apparently after deleting files.

After the last failed scan, I restarted the server with the "vacuum" setting set to True. No problems since, and as a test I will not delete watched video's for now. It that holds, I will search for how to reproduce the failed scan.

But, I hope this observation helps you guys to further search for a possible cause. 

Edited by prunhardt

Share this post


Link to post
Share on other sites
Luke

That's interesting. Thanks for the feedback !

Share this post


Link to post
Share on other sites

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