[Issue]: Jellyfin server crashes on 2GB jetson nano with stack overflow #4935

Closed
opened 2025-12-22 00:53:04 +01:00 by backuprepo · 14 comments
Owner

Originally created by @pwalsh0 on GitHub (Jun 30, 2023).

Please describe your bug

Jetson nano only has 2gb ram, but I have increased swap file to 4GB size.

Setup is jetson nano 2gb with mounted 4TB nfs media drive (/media/bigdrive). Running cleanly flashed nvidia jetpack 4.6 image.

Run command:
docker run -d -e DOTNET_USE_POLLING_FILE_WATCHER=1 -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest

With this command it starts up ok until it starts to scan for files, then crashes:
09:12:48] [INF] [1] Main: Startup complete 0:00:15.7856008
[09:12:48] [INF] [7] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies
Stack overflow.
Repeat 174588 times:

at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean)

If I turn off the file watcher it runs for a lot longer, but usually seems to crash eventually overnight.
docker run -d -e DOTNET_USE_POLLING_FILE_WATCHER=0 -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest

[05:51:31] [INF] [23] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies
Stack overflow.
Repeat 130944 times:

at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean)

Is there some memory leak here, or just too many nested function calls? Is it because I use ntfs for the drive? Ubuntu 18 has ntfs bugs? I would prefer to reformat it, but it needs ntfs so I can move it around and plug it into tvs and other devices.

Can I increase the default heap size or other? Also might try disabling realtime file monitoring?

Note that everything else works fine. I have disabled transcoding and am not using the jetsons gpu at all.

Jellyfin Version

10.8.z

if other:

No response

Environment

- OS: ubuntu 18
- Linux Kernel: 4.9.253-tegra
- Virtualization: docker
- Clients: not applicable
- Browser: not applicable
- FFmpeg Version: not applicable
- Playback Method: not applicable
- Hardware Acceleration: not applicable
- GPU Model: not applicable
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Storage:

Jellyfin logs

Preceding normal operation logs ommitted.

[04:37:43] [INF] [121] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[04:37:43] [INF] [121] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
[05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
[05:51:03] [INF] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: IntervalTrigger fired for task: Scan Media Library
[05:51:03] [INF] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task RefreshMediaLibraryTask
[05:51:03] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Scan Media Library
[05:51:03] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/bigdrive/tvseries
[05:51:03] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/bigdrive/Movies
[05:51:03] [INF] [94] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[05:51:31] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 27 seconds
[05:51:31] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[05:51:31] [INF] [23] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies
Stack overflow.
Repeat 130944 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 Emby.Server.Implementations.IO.LibraryMonitor+<>c__DisplayClass19_0.<StartWatchingPath>b__0()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @pwalsh0 on GitHub (Jun 30, 2023). ### Please describe your bug Jetson nano only has 2gb ram, but I have increased swap file to 4GB size. Setup is jetson nano 2gb with mounted 4TB nfs media drive (/media/bigdrive). Running cleanly flashed nvidia jetpack 4.6 image. Run command: docker run -d -e DOTNET_USE_POLLING_FILE_WATCHER=1 -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest With this command it starts up ok until it starts to scan for files, then crashes: 09:12:48] [INF] [1] Main: Startup complete 0:00:15.7856008 [09:12:48] [INF] [7] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies Stack overflow. Repeat 174588 times: -------------------------------- at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean) -------------------------------- If I turn off the file watcher it runs for a lot longer, but usually seems to crash eventually overnight. docker run -d -e DOTNET_USE_POLLING_FILE_WATCHER=0 -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest [05:51:31] [INF] [23] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies Stack overflow. Repeat 130944 times: -------------------------------- at System.IO.FileSystemWatcher+RunningInstance+WatchedDirectory.Write(System.Text.StringBuilder, Boolean) -------------------------------- Is there some memory leak here, or just too many nested function calls? Is it because I use ntfs for the drive? Ubuntu 18 has ntfs bugs? I would prefer to reformat it, but it needs ntfs so I can move it around and plug it into tvs and other devices. Can I increase the default heap size or other? Also might try disabling realtime file monitoring? Note that everything else works fine. I have disabled transcoding and am not using the jetsons gpu at all. ### Jellyfin Version 10.8.z ### if other: _No response_ ### Environment ```markdown - OS: ubuntu 18 - Linux Kernel: 4.9.253-tegra - Virtualization: docker - Clients: not applicable - Browser: not applicable - FFmpeg Version: not applicable - Playback Method: not applicable - Hardware Acceleration: not applicable - GPU Model: not applicable - Plugins: - Reverse Proxy: - Base URL: - Networking: - Storage: ``` ### Jellyfin logs ```shell Preceding normal operation logs ommitted. [04:37:43] [INF] [121] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [] [04:37:43] [INF] [121] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [] [05:02:05] [INF] [81] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [] [05:25:32] [INF] [110] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [] [05:47:07] [INF] [8] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] [05:51:03] [INF] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: IntervalTrigger fired for task: Scan Media Library [05:51:03] [INF] [37] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task RefreshMediaLibraryTask [05:51:03] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing Scan Media Library [05:51:03] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/bigdrive/tvseries [05:51:03] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /media/bigdrive/Movies [05:51:03] [INF] [94] Emby.Server.Implementations.Library.LibraryManager: Validating media library [05:51:31] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 27 seconds [05:51:31] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks [05:51:31] [INF] [23] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /media/bigdrive/Movies Stack overflow. Repeat 130944 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 Emby.Server.Implementations.IO.LibraryMonitor+<>c__DisplayClass19_0.<StartWatchingPath>b__0() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() ``` ### FFmpeg logs _No response_ ### Please attach any browser or client logs here _No response_ ### Please attach any screenshots here _No response_ ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
backuprepo 2025-12-22 00:53:04 +01:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@JPVenson commented on GitHub (Jul 1, 2023):

Can it be that you build yourself a loop in your filesystem? like with symlinks?

@JPVenson commented on GitHub (Jul 1, 2023): Can it be that you build yourself a loop in your filesystem? like with symlinks?
Author
Owner

@spectrachrome commented on GitHub (Jul 25, 2023):

This also happens on the 4GB version of the Jetson Nano, without any symlinks made in the file system where the media is stored.

@spectrachrome commented on GitHub (Jul 25, 2023): This also happens on the 4GB version of the Jetson Nano, without any symlinks made in the file system where the media is stored.
Author
Owner

@spectrachrome commented on GitHub (Sep 26, 2023):

Do you care at all, Jellyfin Team?
This is a very frustrating bug which crashes the media server at least once a week, sometimes for days, until it magically works again.

@spectrachrome commented on GitHub (Sep 26, 2023): Do you care at all, Jellyfin Team? This is a very frustrating bug which crashes the media server at least once a week, sometimes for days, until it magically works again.
Author
Owner

@JPVenson commented on GitHub (Sep 26, 2023):

https://jellyfin.org/docs/general/community-standards
Please be aware that we all do this in our free time and sometimes we just dont have the time to respond to all issues fast.

@JPVenson commented on GitHub (Sep 26, 2023): https://jellyfin.org/docs/general/community-standards Please be aware that we all do this in our free time and sometimes we just dont have the time to respond to all issues fast.
Author
Owner

@spectrachrome commented on GitHub (Sep 26, 2023):

Okay, sorry. I was a bit disappointed to see this issue not being addressed all summer long and generally didn't have the feeling of this actually being considered.

Is it possible to configure Jellyfin in a way which prevents corruption of the configuration and data files? The error is always somewhere in the config directory and occurs in a random fashion. Thanks in advance.

@spectrachrome commented on GitHub (Sep 26, 2023): Okay, sorry. I was a bit disappointed to see this issue not being addressed all summer long and generally didn't have the feeling of this actually being considered. Is it possible to configure Jellyfin in a way which prevents corruption of the configuration and data files? The error is always somewhere in the `config` directory and occurs in a random fashion. Thanks in advance.
Author
Owner

@JPVenson commented on GitHub (Sep 26, 2023):

Well dont get me wrong, this 95% points to an issue with the underlying storage system. Thats why nobody touched it after my comment. It really does not sound like an issue with JF itself.

Config directory? The log you posted is related to the issue being in /media/bigdrive/Movies

@JPVenson commented on GitHub (Sep 26, 2023): Well dont get me wrong, this 95% points to an issue with the underlying storage system. Thats why nobody touched it after my comment. It really does not sound like an issue with JF itself. Config directory? The log you posted is related to the issue being in `/media/bigdrive/Movies`
Author
Owner

@spectrachrome commented on GitHub (Sep 26, 2023):

The log is not by me, I just have the same issue and device, albeit with double the RAM.

The small eMMC space on the Jetson did cause issues for me once, but right now the Jellyfin config and cache reside in a dedicated folder on a 8TB HDD where the media is stored. The Docker data root is on an internally mounted 1TB SSD. It caught me quite off-guard when the Jellyfin server crashed again with this error two weeks after setting it up with enough space and clean Docker volumes.

You may be right, there is definitely an issue with storage, but I believe there could be a bug in how Jellyfin handles or saves data. The error causing the stack overflow is different each time. Before it magically fixed itself again a few minutes ago, the log presented me with this:

[2023-08-28 10:14:53.869 +00:00] [INF] [1] Main: Jellyfin version: "10.8.10"
[2023-08-28 10:14:53.949 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/
web]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_LOG_DIR, /config/log]"]
[2023-08-28 10:14:53.961 +00:00] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2023-08-28 10:14:53.965 +00:00] [INF] [1] Main: Operating system: "Linux"
[2023-08-28 10:14:53.965 +00:00] [INF] [1] Main: Architecture: Arm64
[2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: 64-Bit Process: True
[2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: User Interactive: True
[2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: Processor count: 4
[2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: Program data path: "/config/data"
[2023-08-28 10:14:53.969 +00:00] [INF] [1] Main: Web resources path: "/usr/share/jellyfin/web"
[2023-08-28 10:14:53.969 +00:00] [INF] [1] Main: Application directory: "/usr/lib/jellyfin/bin/"
[2023-08-28 10:14:54.168 +00:00] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: There is an error in XML document (0, 0).
 ---> System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
   at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
   at Jellyfin.Server.Program.<Main>(String[] args)

It seems there is some data corruption at play here within the config directory.
Please correct me if you think otherwise!

@spectrachrome commented on GitHub (Sep 26, 2023): The log is not by me, I just have the same issue and device, albeit with double the RAM. The small eMMC space on the Jetson did cause issues for me once, but right now the Jellyfin config and cache reside in a dedicated folder on a 8TB HDD where the media is stored. The Docker data root is on an internally mounted 1TB SSD. It caught me quite off-guard when the Jellyfin server crashed again with this error two weeks after setting it up with enough space and clean Docker volumes. You may be right, there is definitely an issue with storage, but I believe there could be a bug in how Jellyfin handles or saves data. The error causing the stack overflow is different each time. Before it magically fixed itself again a few minutes ago, the log presented me with this: ``` [2023-08-28 10:14:53.869 +00:00] [INF] [1] Main: Jellyfin version: "10.8.10" [2023-08-28 10:14:53.949 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/ web]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_LOG_DIR, /config/log]"] [2023-08-28 10:14:53.961 +00:00] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"] [2023-08-28 10:14:53.965 +00:00] [INF] [1] Main: Operating system: "Linux" [2023-08-28 10:14:53.965 +00:00] [INF] [1] Main: Architecture: Arm64 [2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: 64-Bit Process: True [2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: User Interactive: True [2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: Processor count: 4 [2023-08-28 10:14:53.968 +00:00] [INF] [1] Main: Program data path: "/config/data" [2023-08-28 10:14:53.969 +00:00] [INF] [1] Main: Web resources path: "/usr/share/jellyfin/web" [2023-08-28 10:14:53.969 +00:00] [INF] [1] Main: Application directory: "/usr/lib/jellyfin/bin/" [2023-08-28 10:14:54.168 +00:00] [FTL] [1] Main: Unhandled Exception System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream) at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file) at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) at Jellyfin.Server.Program.<Main>(String[] args) ``` It seems there is some data corruption at play here within the `config` directory. Please correct me if you think otherwise!
Author
Owner

@JPVenson commented on GitHub (Sep 26, 2023):

Well that would be a whole different topic. Also that really looks like corrupted data, but what could JF do there? its not really JFs mission to ensure you dont provide stable Disk space, that one is on you^^. Backups are your only real safeguard against that.

Also please note we generally do advice against using single board pcs as they are known to have issues with all that:
gestures vaguely at all this messages

@JPVenson commented on GitHub (Sep 26, 2023): Well that would be a whole different topic. Also that really looks like corrupted data, but what could JF do there? its not really JFs mission to ensure you dont provide stable Disk space, that one is on you^^. Backups are your only real safeguard against that. Also please note we generally do advice against using single board pcs as they are known to have issues with all that: _gestures vaguely at all this messages_
Author
Owner

@spectrachrome commented on GitHub (Sep 26, 2023):

Could you elaborate on what you mean by "stable disk space"? I don't think the drives are at fault here.

Understood.

@spectrachrome commented on GitHub (Sep 26, 2023): Could you elaborate on what you mean by "stable disk space"? I don't think the drives are at fault here. Understood.
Author
Owner

@JPVenson commented on GitHub (Sep 26, 2023):

Well there could be a plethora of issues at play here: Bad USB connection, Bad drive, Overloaded OS, unsafe shutdown, rogue backup programs overwriting stuff etc.

@JPVenson commented on GitHub (Sep 26, 2023): Well there could be a plethora of issues at play here: Bad USB connection, Bad drive, Overloaded OS, unsafe shutdown, rogue backup programs overwriting stuff etc.
Author
Owner

@spectrachrome commented on GitHub (Sep 26, 2023):

Well there could be a plethora of issues at play here: Bad USB connection, Bad drive, Overloaded OS, unsafe shutdown, rogue backup programs overwriting stuff etc.

fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
/dev/sda: clean, 335445/61054976 files, 7401894/244190646 blocks

Some context: The connection is a USB3 bridge with soldered ports. Electricity is basically never turned off for this thing, so unsafe shutdown while writing data is very unlikely. I backup manually and all of my apps run in Docker (which I assume isolates things well enough).

A common PC is a bit too power-hungry for the job if everything is H.264 already. 😉

Also that really looks like corrupted data, but what could JF do there? its not really JFs mission to ensure you dont provide stable Disk space, that one is on you^^. Backups are your only real safeguard against that.

Unfortunately, since these random storage bugs also occurred on an Odroid N2+ board with a brand-new 256GB SD card and no other services running, I have my doubts that hardware or system processes cause the error, especially when running in Docker. My stack overflow happens when Jellyfin loads the jellyfin-config volume, which contains corrupted data to which only Jellyfin has write access - after it crashed out of the blue and failed to deliver the current stream. There is no 4K content and also no transcoding happening.

Anyway, I'm sorry for misusing this thread for what could well be a very different problem to the one OP had, and if you consider my concerns valid I'm happy to open a separate issue. This thread felt like the correct location to talk about this given the system requirements.

@spectrachrome commented on GitHub (Sep 26, 2023): > Well there could be a plethora of issues at play here: Bad USB connection, Bad drive, Overloaded OS, unsafe shutdown, rogue backup programs overwriting stuff etc. ``` fsck from util-linux 2.31.1 e2fsck 1.44.1 (24-Mar-2018) /dev/sda: clean, 335445/61054976 files, 7401894/244190646 blocks ``` Some context: The connection is a USB3 bridge with soldered ports. Electricity is basically never turned off for this thing, so unsafe shutdown while writing data is very unlikely. I backup manually and all of my apps run in Docker (which I assume isolates things well enough). A common PC is a bit too power-hungry for the job if everything is H.264 already. 😉 > Also that really looks like corrupted data, but what could JF do there? its not really JFs mission to ensure you dont provide stable Disk space, that one is on you^^. Backups are your only real safeguard against that. Unfortunately, since these random storage bugs also occurred on an Odroid N2+ board with a brand-new 256GB SD card and no other services running, I have my doubts that hardware or system processes cause the error, especially when running in Docker. My stack overflow happens when Jellyfin loads the `jellyfin-config` volume, which contains corrupted data to which only Jellyfin has write access - after it crashed out of the blue and failed to deliver the current stream. There is no 4K content and also no transcoding happening. Anyway, I'm sorry for misusing this thread for what could well be a very different problem to the one OP had, and if you consider my concerns valid I'm happy to open a separate issue. This thread felt like the correct location to talk about this given the system requirements.
Author
Owner

@JPVenson commented on GitHub (Sep 26, 2023):

Well @spectrachrome i would say pay our forum or better our chat a visit with some full logs where we could evaluate the issue first. From what you said its either a system or a configuration issue i would very confidently say.

@JPVenson commented on GitHub (Sep 26, 2023): Well @spectrachrome i would say pay our forum or better our chat a visit with some full logs where we could evaluate the issue first. From what you said its either a system or a configuration issue i would very confidently say.
Author
Owner

@jellyfin-bot commented on GitHub (Jan 25, 2024):

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

@jellyfin-bot commented on GitHub (Jan 25, 2024): This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs. If you have any questions you can use one of several ways to [contact us](https://jellyfin.org/contact).
Author
Owner

@jellyfin-bot commented on GitHub (Feb 17, 2024):

This issue was closed due to inactivity.

@jellyfin-bot commented on GitHub (Feb 17, 2024): This issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#4935
No description provided.