Jellyfin Forum
SOLVED: Library Scan not working anymore when specific movie is added - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Library Scan not working anymore when specific movie is added (/t-solved-library-scan-not-working-anymore-when-specific-movie-is-added)



Library Scan not working anymore when specific movie is added - K4til - 2024-06-21

Hi guys,

I am using a Docker version of Jellyfin 10.9.6 on my Synology NAS. I have set all my language settings to German, so my movies titles etc. are in German language.

After adding the movie Chain.Reaction.1996.MULTI.COMPLETE.BLURAY and starting a "Scan Media Library", the scan gives me a failed every time after 2 seconds.

I changed the name of the folder and file for that movie to a completely different movie, that was working. So it can't be a problem with the file or folder.

The moment I delete this movie from the source, " Scan Media Library" is working totally fine again.


In addition, I have several (for my feeling random) movies, where I can't access the movie anymore. If I click on it to go into details, the circle appears and keeps loading forever, but nothing happens.
Movies I have in my miond right now are:

Jaws 1 - 4
Ocean's 8 (201Nerd-face
Ocean's 12 (2004)

(strangely Ocean's 10 & 11 are working fine)

Movies are also on different drives, so this can't be a problem either.

I have no idea what is going on and where to start my troubleshooting.

Does someone have any idea?


RE: Library Scan not working anymore when specific movie is added - TheDreadPirate - 2024-06-21

Can you share your jellyfin logs via pastebin?


RE: Library Scan not working anymore when specific movie is added - K4til - 2024-06-21

I would like to, but now I suddenly have a completely different problem.
I tried this idea at the end of this thread: https://forum.jellyfin.org/t-can-t-add-new-media-files
After doing so, nothing is working anymore. I can't access the Jellyfin server and removing the container and readding it doesnt help as well...


RE: Library Scan not working anymore when specific movie is added - TheDreadPirate - 2024-06-21

I'd still need to see your Jellyfin logs. You should be able to access them by going directly to the volume you mounted for /config. In /config/log.


RE: Library Scan not working anymore when specific movie is added - K4til - 2024-06-21

Hi,
yes, I found it. Its quiet big.

I had to divide it into 4 pastes.

https://pastebin.com/k7LCjzY2
https://pastebin.com/j0JjFAEu
https://pastebin.com/zjnMme8x
https://pastebin.com/tvGNDMT3

I think I need to mention that my Jellyfin Container in Docker is now permanently restarting. Server can't be accessed.
Even if I install a fresh container without my settings, its not restarting, but can't be accessed as well.
Before I changed this DOTNET_SYSTEM_GLOBALIZATION_INVARIANT to 0, everything was fine.
Changing it back to 1 didnt help either.


RE: Library Scan not working anymore when specific movie is added - TheDreadPirate - 2024-06-21

This is the error you were referencing regarding setting DOTNET_SYSTEM_GLOBALIZATION_INVARIANT to 0.

Code:
[2024-06-21 16:47:51.320 +00:00] [ERR] [49] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Items/99bf76156796ff3c054feab97c8626ac".
System.TypeInitializationException: The type initializer for 'ICU4N.Text.Transliterator' threw an exception.
---> System.TypeInitializationException: The type initializer for 'ICU4N.Globalization.UCultureInfo' threw an exception.

But you also have another issue. It looks like one of your NAS is either inaccessible or unmounted.

Code:
[2024-06-21 07:14:26.601 +00:00] [ERR] [38] Emby.Server.Implementations.Library.LibraryManager: Error in "PlaylistResolver" resolving "/NAS/Stream"
System.IO.DirectoryNotFoundException: Could not find a part of the path '/NAS/Stream'.

But your current problem appears to have started when you kept restarting Jellyfin and at one point there may have been two instances running at the same time. And now one of the config files is corrupt. In the container /config volume, go to /config/config and there will be a bunch of XMLs in there. Stop Jellyfin and then rename all of the XMLs in that folder. Jellyfin should replace them with defaults.


RE: Library Scan not working anymore when specific movie is added - K4til - 2024-06-21

Ok, renaming all .xmls worked well, I can access Jellyfin again. Thanks for that, I would have never magaed to do that.

DOTNET_SYSTEM_GLOBALIZATION_INVARIANT is now still set to 1 in this container and Im afraid to change it to 0 again.

For the other issues I initially described, they are still here.

(For the missing NAS, I actually removed it as source in the container settings, but just noticed it is still set up in jellyfin. I deleted it)


RE: Library Scan not working anymore when specific movie is added - TheDreadPirate - 2024-06-21

You SHOULD set it to zero. When INVARIANT is set to 1 it breaks .NET when non-English characters are present and causing the first error I quoted in my last post. Just make sure you don't restart it back to back to back.


RE: Library Scan not working anymore when specific movie is added - K4til - 2024-06-21

That sounds exactly like the problem I have, the mentioned movies all contain special german characters.

And yes, setting it to 0 helped (this time without breaking my server).

Thanks a lot for your time and effort!!!