Jellyfin Forum
Hung Startup - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Hung Startup (/t-hung-startup)

Pages: 1 2


Hung Startup - ebeachlr - 2025-03-31

My server has been operating flawlessly for some time now.  Something has changed, I know not what.  It now hangs at the start-up screen with the rotating circle. 

Server is running on LinuxMint 21.3, Jellyfin is 10.10.6.0, Memory is 27G, Systemctl Status Jellyfin lists:

jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: active (running) since Mon 2025-03-31 16:12:42 EDT; 51min ago
  Main PID: 29216 (jellyfin)
      Tasks: 37 (limit: 33375)
    Memory: 1.0G
        CPU: 5h 47min 7.315s
    CGroup: /system.slice/jellyfin.service
            └─29216 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

Mar 31 16:26:26 Janeway jellyfin[29216]: [16:26:26] [INF] [62] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 request
Mar 31 16:26:35 Janeway jellyfin[29216]: [16:26:35] [INF] [64] Emby.Server.Implementations.Session.SessionManager: Logging out access token 5b1dffbf470344f69fe3e24da5e03ec3
Mar 31 16:26:35 Janeway jellyfin[29216]: [16:26:35] [INF] [72] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 closed
Mar 31 16:26:42 Janeway jellyfin[29216]: [16:26:42] [INF] [66] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for ebeachlr has succeeded.
Mar 31 16:26:42 Janeway jellyfin[29216]: [16:26:42] [INF] [66] Emby.Server.Implementations.Session.SessionManager: Current/Max sessions for user ebeachlr: 0/0
Mar 31 16:26:42 Janeway jellyfin[29216]: [16:26:42] [INF] [66] Emby.Server.Implementations.Session.SessionManager: Creating new access token for user 7fd38f05-2669-48ae-a897-f788493929e8
Mar 31 16:26:42 Janeway jellyfin[29216]: [16:26:42] [INF] [66] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 request
Mar 31 16:35:11 Janeway jellyfin[29216]: [16:35:11] [INF] [49] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 closed
Mar 31 16:56:55 Janeway jellyfin[29216]: [16:56:55] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 request
Mar 31 16:57:13 Janeway jellyfin[29216]: [16:57:13] [INF] [48] Emby.Server.Implementations.HttpServer.WebSocketManager: WS ::ffff:192.168.1.126 closed


RE: Hung Startup - theguymadmax - 2025-03-31

Can you post your full server logs?


RE: Hung Startup - ebeachlr - 2025-03-31

I hope this is what you need.
fileConfused-face//var/log/jellyfin/log_20250331.log
fileConfused-face//var/log/jellyfin/upload_org.jellyfin.androidtv_0.18.6_20250331192742_0b4c857ca1d34981906febe19b51f51c.log
fileConfused-face//var/log/jellyfin/upload_org.jellyfin.androidtv_0.18.6_20250331192548_82a17059011243269f46260798baa60a.log
fileConfused-face//var/log/jellyfin/upload_org.jellyfin.androidtv_0.18.6_20250331183958_56fd74c6f6394981984ba1f6e3eea3f9.log
fileConfused-face//var/log/jellyfin/log_20250330.log
fileConfused-face//var/log/jellyfin/log_20250329.log


RE: Hung Startup - theguymadmax - 2025-04-01

You didn't upload anything. Please upload the latest log to https://privatebin.info/ and paste the link here.


RE: Hung Startup - ebeachlr - 2025-04-01

This is the link to the latest log file, If you need one of the older ones, let me know. Thank you for all your help.

https://privatebin.net/?407ecd67db869759#621czr8DiPiNvd1AZS4iQiQyRpv6yxEecUVQw1yU9HMq

This was a log that said it was a crash report.

https://privatebin.net/?93f2b3ac255f1faf#4YN6bWcCATdvD84BAJb1DSAMpiLjSrgNzPtqoCmwU2Wo


RE: Hung Startup - theguymadmax - 2025-04-01

Well, I see the issue. You killed it by adding the root directory as a library.

Code:
[2025-03-31 14:34:44.596 -04:00] [ERR] [10] Emby.Server.Implementations.IO.LibraryMonitor: Permission error for Directory watcher: "/"
System.UnauthorizedAccessException: Access to the path '/timeshift/snapshots/2025-03-27_16-00-01/localhost/var/lib/lxc' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
[2025-03-31 14:34:53.255 -04:00] [ERR] [10] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: "/"
System.IO.IOException: The configured user limit (216993) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource.
[2025-03-31 14:34:53.256 -04:00] [INF] [10] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/"
[2025-03-31 14:34:53.265 -04:00] [INF] [10] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/"

Not sure about the fix.


RE: Hung Startup - ebeachlr - 2025-04-01

I guess I will have to chalk that up to being an 83 year old noob. I just looked at all the libraries with the Jellyfin app and did not find one that listed the root directory. Where does Jellyfin store the information concerning the Library directories. It may be possible to shut the server down and manually edit the configuration.


RE: Hung Startup - TheDreadPirate - 2025-04-01

Go to /var/lib/jellyfin/root/default/. There will be a bunch of folders, one for each library. In each folder there will be an XML file and a mblink file. Open each one and find which library is configured with / as a library directory.


RE: Hung Startup - ebeachlr - 2025-04-01

I checked all the associated files and none of them refer to the root directory. The system seems to be stuck in a loop of some kind. Even when shut down and restarted, it continues on with what ever it was doing and never gets past the rotating circle. this is an example of the path info contained in the .xml files:

<MediaPathInfo>
<Path>/media/ebeachlr/External_8tb2/Video _Resources/Plex_TV_Extras</Path>
</MediaPathInfo>
<MediaPathInfo>
<Path>/media/ebeachlr/External_8tb/TV Series</Path>
</MediaPathInfo>
</PathInfos>

Thanks for your help.


RE: Hung Startup - TheDreadPirate - 2025-04-01

And none of the mblink files had / as a path?