Jump to content


Photo

Scan media library not completing

Scan media library

  • Please log in to reply
25 replies to this topic

#1 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 27 February 2017 - 03:23 AM

Hi all, I'm running Emby as a service on Windows 10 x64. Current version is 3.2.1.116 (yes I know there is a newer version, I will update, but the problem I will describe has occurred over multiple versions) My media was split between multiple drives. Recently I cleaned it up and consolidated it all only one HDD. When I scan my media library now, it never completes. Only way to get it to stop running is if you restart the service. If I disconnect from the internet then the scan completes, so my best guess is that it is unable to pull information from IMDB or one of the other options and is getting stuck on a file or folder. I obviously did try clean up the %appdata%\Roaming\Emby-Server\data\ScheduledTasks folder in case there was an issue with the temp data there. Any ideas would be appreciated. Server log is attached.

Attached Files



#2 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 27 February 2017 - 10:46 PM

Update: I have upgraded to 3.2.5.1 and still have the issue, so definitely not linked to an older version.



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148997 posts
  • Local time: 04:02 PM

Posted 28 February 2017 - 12:02 AM

Can you provide a server log from the latest version? thanks !



#4 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 12:16 AM

Hi Luke,

 

As requested, latest log attached.

Attached Files

  • Attached File  Log.txt   85.74KB   2 downloads


#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148997 posts
  • Local time: 04:02 PM

Posted 28 February 2017 - 12:38 AM

Can you try removing your installed plugins and see if the issue persists? Thanks !



#6 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 12:55 AM

Hi Luke,

 

Plugins removed.

Same issue.

Attached Files

  • Attached File  Log.txt   87.73KB   1 downloads


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148997 posts
  • Local time: 04:02 PM

Posted 28 February 2017 - 01:06 AM

This is a one minute log. Can you give it a little more time? thanks.



#8 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 03:06 AM

Another log attached

Attached Files

  • Attached File  Log.txt   2.57MB   2 downloads


#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148997 posts
  • Local time: 04:02 PM

Posted 28 February 2017 - 03:52 AM

Ok, I would suggest a little trial and error disabling some features under Metadata settings. See if you can disable some metadata providers for the various media types and get the scan to complete. that might help isolate where it's getting hung up. Thanks.



#10 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 04:49 AM

Ok, I would suggest a little trial and error disabling some features under Metadata settings. See if you can disable some metadata providers for the various media types and get the scan to complete. that might help isolate where it's getting hung up. Thanks.

I tried various combinations of the metadata on/off, and the percentages are different, but it still stops.



#11 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 05:29 AM

I decided to remove all the libraries except the smallest one.

What I then did was remove everything in that library that was not showing complete metadata.

Ran the library scan and it completed.

 

I store metadata in the folders with the content, so I took one item, deleted the images and nfo file (so it can pull fresh information), and placed it back into the library.

I then ran the scan again and the scan stopped at 72.6% and after about half an hour I restarted the Emby service.

I see the file I added back still shows the original date it was added (Added 8/4/2014 5:12 PM) so that got me thinking, is it not perhaps a database issue I am having?

Attached File  1.gif   205.38KB   3 downloads

Attached File  2.gif   137.2KB   3 downloads

Attached File  3.gif   3.8KB   3 downloads

Is a fresh install perhaps required?

I'd rather avoid it if I can , but my libraries aren't exactly huge, and I only have myself and 2 other users accessing my server, so not a huge deal to redo from scratch.

If it is necessary, I still have the emby.windows.zip I downloaded from github to update.

Can I run a clean installation from there or do I have to run the setup.exe off the site?

Nevermind, I found my answer here: https://emby.media/windows-server.html

 

I have time as I am not in the office today, so think I'm going to do the clean install. 


Edited by LurchZA, 28 February 2017 - 05:48 AM.


#12 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 08:59 AM

I've done a clean installation, but seem to have the same issue still.

Not 100% sure as it may just need some time to do the initial scan, but it got to 42.1% relatively fast and has been sitting for ages with no movement.

Will give it some time and check on it later.



#13 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 09:00 AM

I've done a clean installation, but seem to have the same issue still.

Not 100% sure as it may just need some time to do the initial scan, but it got to 42.1% relatively fast and has been sitting for ages with no movement.

Will give it some time and check on it later.



#14 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 10:26 AM

I appear to be going backwards here... :P

With my clean installation I definitely have the same issue (log attached)

Not sure if the logs show anything as I pulled it after the restart, but, I also can now not restart the service or run the exe if I am connected to the internet. As soon as I disconnect then either one works fine.

Attached Files

  • Attached File  Log.txt   114.55KB   0 downloads


#15 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 17591 posts
  • Local time: 01:02 PM
  • LocationWashington State

Posted 28 February 2017 - 03:41 PM

I've done a clean installation, but seem to have the same issue still.

Not 100% sure as it may just need some time to do the initial scan, but it got to 42.1% relatively fast and has been sitting for ages with no movement.

Will give it some time and check on it later.

 

If this is an initial scan depending on how much media you have and library setting it can take 24+ hours for a library scan to complete, the percentage can be quite deceiving.  I know mine say in the 40+ percent range for over 10 hours back when I set the server up.  There is a post in Introduce yourself where a new user said it took over 48hrs to scan their Large Library.



#16 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 03:58 PM

If this is an initial scan depending on how much media you have and library setting it can take 24+ hours for a library scan to complete, the percentage can be quite deceiving.  I know mine say in the 40+ percent range for over 10 hours back when I set the server up.  There is a post in Introduce yourself where a new user said it took over 48hrs to scan their Large Library.

I'll leave it overnight to see what happens.

I have a fairly small library compared to most (a little over 500GB) so will see what happens.

Before I consolidated the media I never had it take more than a few minutes to scan the old library.



#17 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 28 February 2017 - 11:23 PM

So I have left the scan to run overnight, with no movement.

Latest log attached.

Attached Files

  • Attached File  Log.txt   2.52MB   1 downloads


#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 148997 posts
  • Local time: 04:02 PM

Posted 01 March 2017 - 12:31 AM

As a way of narrowing it down, can you remove all libraries, verify the scan completes, then add one at a time until you run into the issue again? Thanks !



#19 LurchZA OFFLINE  

LurchZA

    Advanced Member

  • Members
  • 86 posts
  • Local time: 11:02 PM
  • LocationJohannesburg, South Africa

Posted 01 March 2017 - 04:58 AM

I tried removing all the libraries and the scan does not complete as long as I am connected to the internet - even if I untick all the options for metadata.

Attached File  1.gif   41.71KB   4 downloads

Attached File  2.gif   20.38KB   3 downloads

Only pulled the log after restarting the service, but I have attached it anyway.

Attached Files

  • Attached File  Log.txt   111.77KB   4 downloads


#20 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 49894 posts
  • Local time: 04:02 PM

Posted 01 March 2017 - 08:43 AM

Looks like your server is being blocked from all internet access, or there is a network configuration problem:

	System.Net.WebException: The remote name could not be resolved: 'github.com'







Also tagged with one or more of these keywords: Scan media library

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users