Jump to content

"Scan Library Files" on any single library does nothing


Recommended Posts

TheBlueSpirit
Posted

When spinning up a new installation of Emby, due to the lengthy nature of the Emby media scan I'm attempting to scan a single smaller library first by clicking the three dots button of the library I want to scan and then pressing "Scan library files". What I would expect to happen here is for Emby to perform a scan of the files in that given library. Instead, nothing happens. I've ensured there is not already any library scans or scheduled tasks already running. I've tried this on three separate libraries, none of which work. I've tried from both the Emby ios app and the web app. If I trigger a full library scan of all libraries from the Scheduled Tasks menu, the full scan will take place (albeit at a snails pace) and will given enough time, scan all three libraries in their entirety. the log I've attached is after performing the steps of clicking the three dots then "Scan Library Files" on all three libraries, titled "Movies" "TV Shows" and "Music"

embyserver.txt

Posted
Quote

What I would expect to happen here is for Emby to perform a scan of the files in that given library.

Hi, this is exactly what happens. What makes you think it does nothing?

TheBlueSpirit
Posted (edited)

After pressing Scan Library Files, in the Library settings, I see the popup that says "Scanning library files..." but the usual green progress bar doesn't appear, the circular progress bar with a percentage in the middle doesn't appear over the library, and no files in the library folder appear in Emby. However if on the same page I click the Scan Library Files button that does not correlate with a single library, all of those things will happen,  and the files begin to appear in Emby as they're scanned.

Edited by TheBlueSpirit
Posted
On 03/12/2024 at 04:03, TheBlueSpirit said:

the log I've attached is after performing the steps of clicking the three dots then "Scan Library Files" on all three libraries, titled "Movies" "TV Shows" and "Music"

The log only shows 3 scans of the same library and no new media files were encountered

2024-12-03 03:50:10.846 Info Server: http/1.1 POST http://192.168.10.70:8096/emby/Items/28717/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=766190e9-d960-449e-b142-982f835540d8&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. Source Ip: host1, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0

2024-12-03 03:54:42.285 Info Server: http/1.1 POST http://192.168.10.70:8096/emby/Items/28717/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=766190e9-d960-449e-b142-982f835540d8&X-Emby-Client-Version=4.8.10.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. Source Ip: host1, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0

2024-12-03 03:57:26.510 Info Server: http/1.1 POST http://192.168.10.70:8096/emby/Items/28717/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&X-Emby-Client=Emby for iOS&X-Emby-Device-Name=iPhone&X-Emby-Device-Id=2EFF78C8-0CC0-47B3-B01E-42336E7A9B71&X-Emby-Client-Version=2.2.31&X-Emby-Token=x_secret2_x&X-Emby-Language=en-us. Source Ip: host2, UserAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

All 3 were for the same database id of 28717

TheBlueSpirit
Posted

The issue is that the library scanned contained folders full of hundreds of files. Which would suggest that the output means that the files were already scanned and detected at that point, and yet when attempting to browse the library in question from multiple Emby clients, the libraries appeared to be empty. 
 

The server in question is a low-power PC so perhaps there was some kind of performance related delay between those library items being successfully scanned, and becoming available to play on an external client. It was a niche situation as I was loading a new server with a ton of preexisting media files from scratch. 
 

In any case, I proceeded to do a full scan of all libraries, after which the affected library along with two other libraries did populate with the rest of the media, and further tests of the single library scan have worked as expected. 

  • Thanks 1
Posted
On 11/12/2024 at 21:56, TheBlueSpirit said:

In any case, I proceeded to do a full scan of all libraries, after which the affected library along with two other libraries did populate with the rest of the media, and further tests of the single library scan have worked as expected. 

Great.

If you encounter this again, please enable debug logging on the emby server and capture logs covering the scan and also when trying to view the media items in the library and screenshots of the library view and what the issue is. Time of screenshots should be given to relate to timestamps in the logs

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