Jellyfin Forum
Slow library scans fix? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Slow library scans fix? (/t-slow-library-scans-fix)



Slow library scans fix? - jellykrabbypatty - 2025-11-05

Is the slow full library scans a result of the new server or am I doing something wrong? I feel like it used to be pretty quick after the first scan to recognize everything. Now my scan sits at 20% or even goes backward some for five minutes each time and then finishes. 

I know the progress bar is not an exact representation but the process itself is taking forever. I have .NFO files and the artwork saved in each media file so what the hell is it scanning?  Unamused-face Unamused-face Unamused-face Unamused-face Unamused-face Unamused-face Unamused-face Unamused-face Unamused-face


RE: Slow library scans fix? - 34626 - 2025-11-05

To be able to help you, we need to know more about your hardware, jellyfin installation type, OS etc.

If using Linux, have you checked that the permissions of the media libraries are correct set? And or created a jellyfin user so, it has right read/write permissions?


RE: Slow library scans fix? - jellykrabbypatty - 2025-11-05

(4 hours ago)34626 Wrote: To be able to help you, we need to know more about your hardware, jellyfin installation type, OS etc.

If using Linux, have you checked that the permissions of the media libraries are correct set? And or created a jellyfin user so, it has right read/write permissions?


Hello, 
I am using docker compose (yml) on an i7 computer, 16Ram, and HDD external media with linux. I created a jellyfin user.
I checked and reset linux permissions after the last server update. I think they are OK but the permissions is very confusing on linux to me.

I am running this in BASH (usr is my actual usrname).
-------------------------------------------------------------------------
sudo chown -r usr:usr /mnt/mediadrive
sudo chmod -r 755 /mnt/mediadrive
sudo setfacl -R -m u:jellyfin:rwx /mnt/mediadrive

  Upside-down-faceUpside-down-faceUpside-down-face


RE: Slow library scans fix? - 34626 - 2025-11-05

Please do a:
ls -la on /mnt/mediadrive

and also please run on a movie file/folder


RE: Slow library scans fix? - jellykrabbypatty - 2025-11-05

(3 hours ago)34626 Wrote: Please do a:
ls -la on /mnt/mediadrive

and also please run on a movie file/folder

total 100
drwxrwsr-x+  12 usr  usr   4096 Nov  5 05:32  .
drwxr-xr-x    6 root root  4096 Oct 25 21:15  ..
drwxrwsr-x+ 159 usr  usr  12288 Nov  4 03:11  Anime
drwxrwsr-x+ 143 usr  usr  12288 Oct 29 07:02  Cartoons
drwxrwsr-x+  18 usr  usr   4096 Oct  5 23:24  Games
drwxrwsr-x+  2 usr  usr  16384 Jul 29 14:52  lost+found
drwxrwsr-x+ 378 usr  usr  24576 Nov  5 04:37  Movies
drwxrwsr-x+  28 usr  usr   4096 Nov  5 06:28 'Movies 4K'
drwxrwsr-x+  4 usr  usr   4096 Nov  5 04:47  Music
drwxrwsr-x+  39 usr  usr   4096 Nov  5 03:13  Shows
drwxrwsr-x+  5 usr  usr   4096 Jul 29 20:46  .Trash-1000
drwxrwsr-x    3 usr  usr   4096 Nov  5 05:32  Videos

---------------------------------------------------------------------------------------------------------

total 4890996
drwxrwsr-x+  3 usr usr      4096 Oct  2 21:48  .
drwxrwsr-x+ 378 usr usr      24576 Nov  5 04:37  ..
-rwxrwxr-x+  1 usr usr 5006278755 Aug 10 21:05 'Airplane! (1980) (1080p BluRay x265 10bit).mkv'
drwxrwsr-x+  3 usr usr      4096 Oct  2 03:40 'Airplane! (1980) (1080p BluRay x265 10bit).trickplay'
-rwxrwxr-x+  1 usr usr    344023 Aug 10 21:11  backdrop.jpg
-rwxrwxr-x+  1 usr usr    306853 Aug 10 21:11  folder.jpg
-rwxrwxr-x+  1 usr usr    119872 Aug 10 21:11  landscape.jpg
-rwxrwxr-x+  1 usr usr    1268701 Aug 10 21:11  logo.png
-rwxrwxr-x+  1 usr usr      10773 Oct 29 23:36  movie.nfo


RE: Slow library scans fix? - 34626 - 2025-11-05

Okay, please run this (copy and paste):
sudo chmod -R 755 /mnt/mediadrive

Please give it a bit of time, then:
Turn off the computer
Unplug the USB drive
Turn off the USB drive
Turn on the USB drive
Plug the USB drive to the computer
Turn on the computer

Please see if that helps.


RE: Slow library scans fix? - jellykrabbypatty - 2025-11-05

(2 hours ago)34626 Wrote: Okay, please run this (copy and paste):
sudo chmod -R 755 /mnt/mediadrive

Please give it a bit of time, then:
Turn off the computer
Unplug the USB drive
Turn off the USB drive
Turn on the USB drive
Plug the USB drive to the computer
Turn on the computer

Please see if that helps.

Hello, 
I put that command in, waited about 7 minutes or so, turned off computer, unplugged power and USB to drive, waited about 2 minutes, plugged it back up, turned on computer, ran initial scan, but still getting the same issue. Face-with-head-bandage