I am unable to start the lscr.io/linuxserver/jellyfin:latest lately. On a long-running server I performed no update, just added some media files (relatively small library). But, trying with the jellyfin/jellyfin
image, all goes well.
linuxserver/jellyfin details
docker-compose
My docker-compose is very close to the suggested:
version: "2.1"
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
# - JELLYFIN_PublishedServerUrl=192.168.1.5 #optional
volumes:
- /mnt/DC67-0ADB/jellyfin/config:/config
- /mnt/DC67-0ADB/TV:/data/tvshows
- /mnt/DC67-0ADB/Movies:/data/movies
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped
It had previously been running without issue for over 6 months.
Device and software details
Device: Jetson Nano (arm64)
Docker version: 20.10.7
Portainer version: 20.15.1
linuxserver/jellyfin version: "build_version": "Linuxserver.io version:- 10.8.11-1-ls231 Build-date:- 2023-10-31T12:43:55+00:00"
Jellyfin Container Logs
Repeat 174562 times:
--------------------------------
at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean)
--------------------------------
at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.GetPath(Boolean, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance..ctor(System.IO.FileSystemWatcher, Microsoft.Win32.SafeHandles.SafeFileHandle, System.String, Boolean, System.IO.NotifyFilters, System.Threading.CancellationToken)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean)
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(System.String)
at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(System.String)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(System.Func`1<Microsoft.Extensions.Primitives.IChangeToken>, System.Action)
at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(Microsoft.Extensions.Configuration.FileConfigurationSource)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(Microsoft.Extensions.Configuration.IConfigurationBuilder)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Jellyfin.Server.Program.CreateAppConfiguration(Jellyfin.Server.StartupOptions, MediaBrowser.Common.Configuration.IApplicationPaths)
at Jellyfin.Server.Program+<StartApp>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Jellyfin.Server.Program+<StartApp>d__9, jellyfin, Version=10.8.11.0, Culture=neutral, PublicKeyToken=null]](<StartApp>d__9 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Jellyfin.Server.Program+<StartApp>d__9, jellyfin, Version=10.8.11.0, Culture=neutral, PublicKeyToken=null]](<StartApp>d__9 ByRef)
at Jellyfin.Server.Program.StartApp(Jellyfin.Server.StartupOptions)
at CommandLine.ParserResultExtensions.MapResult[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](CommandLine.ParserResult`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.Collections.Generic.IEnumerable`1<CommandLine.Error>,System.__Canon>)
at Jellyfin.Server.Program.Main(System.String[])
at Jellyfin.Server.Program.<Main>(System.String[])
Stack overflow.
Repeat 174511 times:
... <abbreviated for space. many repeats>...
Repeat 174510 times:
--------------------------------
at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean)
--------------------------------
at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.GetPath(Boolean, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory, System.String)
at System.IO.FileSystemWatcher+RunningInstance..ctor(System.IO.FileSystemWatcher, Microsoft.Win32.SafeHandles.SafeFileHandle, System.String, Boolean, System.IO.NotifyFilters, System.Threading.CancellationToken)
at System.IO.FileSystemWatcher.StartRaisingEvents()
at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean)
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(System.String)
at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(System.String)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.<.ctor>b__1_0()
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(System.Func`1<Microsoft.Extensions.Primitives.IChangeToken>, System.Action)
at Microsoft.Extensions.Configuration.FileConfigurationProvider..ctor(Microsoft.Extensions.Configuration.FileConfigurationSource)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(Microsoft.Extensions.Configuration.IConfigurationBuilder)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Jellyfin.Server.Program.CreateAppConfiguration(Jellyfin.Server.StartupOptions, MediaBrowser.Common.Configuration.IApplicationPaths)
at Jellyfin.Server.Program+<StartApp>d__9.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Jellyfin.Server.Program+<StartApp>d__9, jellyfin, Version=10.8.11.0, Culture=neutral, PublicKeyToken=null]](<StartApp>d__9 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Jellyfin.Server.Program+<StartApp>d__9, jellyfin, Version=10.8.11.0, Culture=neutral, PublicKeyToken=null]](<StartApp>d__9 ByRef)
at Jellyfin.Server.Program.StartApp(Jellyfin.Server.StartupOptions)
at CommandLine.ParserResultExtensions.MapResult[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](CommandLine.ParserResult`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.Collections.Generic.IEnumerable`1<CommandLine.Error>,System.__Canon>)
at Jellyfin.Server.Program.Main(System.String[])
at Jellyfin.Server.Program.<Main>(System.String[])
What I’ve tried
- searched discourse “jellyfin”. no relevant topics found (as far as I can tell)
- googled the container logs
- Phind queried the container logs
- increased inotify limit:
https://jellyfin.org/docs/general/administration/troubleshooting/#real-time-monitoring
. No success, no change to container error logs. - Tried running Plex, on the same media volume. works just fine.
- checked uid:gid on the host
id $whoami
→# uid=1000 gid=1000
- checked uid:gid inside the container
id $whoami
→# uid=0(root) gid=0(root) groups=0(root)
- … thus I tried swapping 0:0 in the
docker-compose
. no bueno. per the troubleshooting above foruser: 0:0
and/or for theenvironment: PUID=0 GUID=0
. no bueno. - checked all files in the /mnt/ location
(host): ls -l /path/to/media/
drwxrwxrwx 1 root root 1048576 Jan 15 2023 ...
-rwxrwxrwx 1 root root 1441080880 May 5 2018 ...
And from inside the docker container:
(container) ls -l /data/movies #
drwxrwxrwx 1 root root 1048576 Jan 15 2023 ...
-rwxrwxrwx 1 root root 1441080880 May 5 2018 ...
- Setup and run the
jellyfin/jellyfin
image (perhttps://jellyfin.org/docs/general/installation/container/#using-docker-compose
). Withuser: 1000:1000
Conclusion
I’m pretty stumped, folks. Any help would be much appreciated. I think I’ve exhausted all the googling I can do on this one.