Jellyfin Forum
SOLVED: Jellfin Server Fails to Start - 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: SOLVED: Jellfin Server Fails to Start (/t-solved-jellfin-server-fails-to-start)



Jellfin Server Fails to Start - Stormcrow - 2024-02-12

Server version was 10.8.9 and had been running continuously. I went into networking settings to set my LAN IP range to help with streaming/trans-coding. When trying to save I got the pop-up "Internal Server Error". I decided to stop Jellyfin and start it again. Jellyfin failed to start each time I tried. I then decided to check for and update to the latest version, v10.8.13. Same issue occurs, here are the logs(Error in Bold):

[2024-02-12 12:03:09.791 -08:00] [INF] [1] Main: Jellyfin version: "10.8.13"
[2024-02-12 12:03:09.807 -08:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[2024-02-12 12:03:09.810 -08:00] [INF] [1] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[2024-02-12 12:03:09.812 -08:00] [INF] [1] Main: Operating system: "Windows"
[2024-02-12 12:03:09.813 -08:00] [INF] [1] Main: Architecture: X64
[2024-02-12 12:03:09.814 -08:00] [INF] [1] Main: 64-Bit Process: True
[2024-02-12 12:03:09.815 -08:00] [INF] [1] Main: User Interactive: True
[2024-02-12 12:03:09.816 -08:00] [INF] [1] Main: Processor count: 8
[2024-02-12 12:03:09.816 -08:00] [INF] [1] Main: Program data path: "C:\ProgramData\Jellyfin\Server"
[2024-02-12 12:03:09.817 -08:00] [INF] [1] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2024-02-12 12:03:09.818 -08:00] [INF] [1] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2024-02-12 12:03:10.337 -08:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2024-02-12 12:03:10.694 -08:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2024-02-12 12:03:11.589 -08:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "7.0.0.0" of "AniDB"
[2024-02-12 12:03:11.669 -08:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.MergeVersions, Version=10.8.0.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\Merge Versions_10.8.0.2\Jellyfin.Plugin.MergeVersions.dll"
[2024-02-12 12:03:11.728 -08:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "JWueller.Jellyfin.OnePace, Version=1.3.2.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\One Pace_1.3.2.0\JWueller.Jellyfin.OnePace.dll"
[2024-02-12 12:03:11.729 -08:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "1.4.0.0" of "One Pace"
[2024-02-12 12:03:11.750 -08:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.SkinManager, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\Skin Manager_2.0.1\Jellyfin.Plugin.SkinManager.dll"
[2024-02-12 12:03:12.509 -08:00] [FTL] [1] Main: Error while starting server.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at MediaBrowser.Common.Net.IPObject.NetworkAddressOf(IPAddress address, Byte prefixLength)
  at MediaBrowser.Common.Net.IPNetAddress.Contains(IPAddress address)
  at MediaBrowser.Common.Net.NetworkExtensions.ContainsAddress(Collection1 source, IPAddress item)
  at Jellyfin.Networking.Manager.NetworkManager.IsInLocalNetwork(IPAddress address)
  at Jellyfin.Networking.Manager.NetworkManager.IsInLocalNetwork(IPObject address)
  at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
  at Jellyfin.Networking.Manager.NetworkManager.CreateCollection(IEnumerable1 source)
  at Jellyfin.Networking.Manager.NetworkManager.InitialiseLAN(NetworkConfiguration config)
  at Jellyfin.Networking.Manager.NetworkManager.UpdateSettings(Object configuration)
  at Jellyfin.Networking.Manager.NetworkManager..ctor(IConfigurationManager configurationManager, ILogger1 logger)
  at Emby.Server.Implementations.ApplicationHost.Init(IServiceCollection serviceCollection)
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2024-02-12 12:03:12.591 -08:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2024-02-12 12:03:12.592 -08:00] [FTL] [1] Main: Unhandled Exception
System.NullReferenceException: Object reference not set to an instance of an object.
  at Emby.Server.Implementations.ApplicationHost.DisposeAsyncCore()
  at Emby.Server.Implementations.ApplicationHost.DisposeAsync()
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
  at Jellyfin.Server.Program.<Main>(String[] args)
Hoping I'm just overlooking something silly, thanks in advance to all who help!
Cheers,



RE: Jellfin Server Fails to Start - TheDreadPirate - 2024-02-12

In the LAN network section, what did you type in? Sounds like you put in an invalid value.

C:\ProgramData\Jellyfin\Server\config\network.xml

If you have anything set for LocalNetworkSubnets or LocalNetworkAddresses, replace them with this and try restarting.

Code:
<LocalNetworkSubnets />
<LocalNetworkAddresses />



RE: Jellfin Server Fails to Start - Stormcrow - 2024-02-12

Thank you! I will do so and let you know the results.


RE: Jellfin Server Fails to Start - Stormcrow - 2024-02-12

Awesome, that worked! I was looking for the file I needed to edit to erase my changes but I couldn't find where it was located.

I had entered an IP range like so: "192.168.8.100/249" which is the IP range set in my router.

What is the correct way to enter it?


RE: Jellfin Server Fails to Start - TheDreadPirate - 2024-02-12

That field requires you put an IP CIDR in it.

If you want the entire 192.168.8.XXX range you would put in 192.168.8.0/24. If you want a specific address you would put 192.168.8.100/32. Or you could just go more broadly and put in 192.168.0.0/16.


RE: Jellfin Server Fails to Start - Stormcrow - 2024-02-13

Okay that makes sense, thank you! Is there a way to mark this post as solved?