-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugSomething isn't workingSomething isn't workingupstreamThe issue is due to a upstream library or projectThe issue is due to a upstream library or project
Description
This issue respects the following points:
- This is a bug, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found here.
- This issue is not already reported on GitHub (I've searched it).
- I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
- I agree to follow Jellyfin's Code of Conduct.
- This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.
Description of the bug
After hosting an internet-facing Jellyfin instance for a couple of days on a headless base model M2 Mac mini, the Jellyfin server will seemingly crash at random times of the day, requiring a click of the "Restart" option in the Menu Bar. When it happens, it shows the following in the logs:
[2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception
System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress)
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling)
at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
I had looked up the log and it seems to be a .NET issue, resolved 3 days ago in runtime version 9.0.2.
Reproduction steps
- Start the internet-facing Jellyfin Server on a Apple Silicon Mac.
- Wait for about 24-48 hours. (Sometimes it can take up to a week to manifest.)
- The Jellyfin Server goes offline and shows the previously mentioned log.
What is the current bug behavior?
The Jellyfin Server crashes.
What is the expected correct behavior?
The Jellyfin Server stays up.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.3
Environment
- OS: macOS 15.2
- Linux Kernel:
- Virtualization: None
- Clients: Browsers, Mobile Devices, Apple TV, Google TV
- Browser: Zen Browser 1.6b (Firefox 134)
- FFmpeg Version: 7.0.2
- Playback Method: A mix between Transcode and Direct Play depending on client
- Hardware Acceleration: Apple VideoToolBox
- GPU Model: Apple M2
- Plugins: none
- Reverse Proxy: none
- Base URL: none
- Networking: Host
- Storage: SMB Share to a NAS mounted on machine startup.
Jellyfin logs
[2025-01-16 04:45:38.095 -05:00] [ERR] [62] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HN9KUBJ5O88L"", Request id ""0HN9KUBJ5O88L:00000001"": An unhandled exception was thrown by the application.
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.UriBuilder.get_Uri()
at Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware.Invoke(HttpContext httpContext, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
[2025-01-16 06:27:42.782 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Music"
[2025-01-16 06:27:42.783 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Shows"
[2025-01-16 06:27:42.785 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Movies"
[2025-01-16 06:27:42.786 -05:00] [INF] [56] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2025-01-16 06:27:48.485 -05:00] [INF] [135] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 5 seconds
[2025-01-16 06:27:49.375 -05:00] [INF] [63] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/Applications/Jellyfin.app/Contents/MacOS/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2025-01-16 06:27:49.586 -05:00] [ERR] [54] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "TheMovieDb"
System.FormatException: The input string '17345-flywheel' was not in a correct format.
at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
at System.Convert.ToInt32(String value, IFormatProvider provider)
at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider.GetMetadata(MovieInfo info, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, Boolean replaceData, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[2025-01-16 06:27:49.587 -05:00] [ERR] [54] MediaBrowser.Providers.Manager.ProviderManager: "TmdbMovieImageProvider" failed in GetImageInfos for type "Movie" at "/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv"
System.FormatException: The input string '17345-flywheel' was not in a correct format.
at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
at System.Convert.ToInt32(String value, IFormatProvider provider)
at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieImageProvider.GetImages(BaseItem item, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.ProviderManager.GetImages(BaseItem item, IRemoteImageProvider provider, String preferredLanguage, Boolean includeAllLanguages, CancellationToken cancellationToken, Nullable`1 type)
[2025-01-16 06:27:52.357 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Creating image collage and saving to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png"
[2025-01-16 06:27:52.603 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Completed creation of image collage and saved to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png"
[2025-01-16 06:27:52.651 -05:00] [INF] [63] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 9 seconds
[2025-01-16 06:27:52.682 -05:00] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Shows"
[2025-01-16 06:27:52.696 -05:00] [INF] [62] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Music"
[2025-01-16 06:27:52.714 -05:00] [INF] [50] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Movies"
[2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception
System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress)
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling)
at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
[RESTARTED SERVER]
[2025-01-16 07:54:07.334 -05:00] [INF] [1] Main: Jellyfin version: "10.10.3"
[2025-01-16 07:54:07.374 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /Users/grizz/Library/Application Support/jellyfin/log]"]
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "/Users/grizz//Library/Application Support/jellyfin"]
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Operating system: "Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Architecture: Arm64
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: 64-Bit Process: True
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: User Interactive: True
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Processor count: 8
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Program data path: "/Users/grizz/Library/Application Support/jellyfin"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Log directory path: "/Users/grizz/Library/Application Support/jellyfin/log"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Config directory path: "/Users/grizz/Library/Application Support/jellyfin/config"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Cache path: "/Users/grizz/Library/Application Support/jellyfin/cache"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Temp directory path: "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/"
[2025-01-16 07:54:07.483 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/Users/grizz/Library/Application Support/jellyfin/cache"
[2025-01-16 07:54:07.559 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["192.168.4.1/22"]
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["192.168.4.1/22"]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: [Removed for privacy.]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["::"]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.10.3.0"
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.10.3.0"
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.10.3.0"
[2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.10.3.0"
[2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.10.3.0"
[2025-01-16 07:54:08.866 -05:00] [INF] [1] Main: Kestrel is listening on "all interfaces"
[2025-01-16 07:54:09.103 -05:00] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: "/wwwroot". Static files may be unavailable.
[2025-01-16 07:54:09.181 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2025-01-16 07:54:09.190 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2025-01-17 03:00:00.000 -05:00, which is 19:05:50.8099710 from now.
[2025-01-16 07:54:09.193 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2025-01-17 02:00:00.000 -05:00, which is 18:05:50.8069100 from now.
[2025-01-16 07:54:09.275 -05:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "7.0.2"
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstreamThe issue is due to a upstream library or projectThe issue is due to a upstream library or project
Type
Projects
Status
Fixed