Jump to content

Can't download subtitles: System.IO.FileNotFoundException


sterfield
Go to solution Solved by Luke,

Recommended Posts

sterfield

Hey guys,

 

System : linux Nixos unstable 18.09pre149044.6afd19e699c (Jellyfish)

Emby : emby-3.4.1.0

Mono : mono-4.6.2.16

 

Just installed Emby on Nixos unstable, and after the server start, I updated Opensubtitles plugin to the latest version, then tried to get some sub. However, either manually or through the scheduled activation, Emby doesn't download subtitles.

 

Logs are filled with this error :

2018-08-20 22:21:15.658 Error App: Error downloading subtitles	*** Error Report ***	Version: 3.4.1.0	Command line: /nix/store/r0x1b5r1pzx6dlgl1m9svy0wm600i4mp-emby-3.4.1.0/bin/MediaBrowser.Server.Mono.exe -ffmpeg /nix/store/3x79jnw873iz7dvk5vjnndrf672y8zks-ffmpeg-3.4.4-bin/bin/ffmpeg -ffprobe /nix/store/3x79jnw873iz7dvk5vjnndrf672y8zks-ffmpeg-3.4.4-bin/bin/ffprobe	Operating system: Unix 4.14.62.0	64-Bit OS: True	64-Bit Process: True	User Interactive: False	Mono: 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Aug  7 21:30:57 UTC 2018)	Processor count: 4	Program data path: /var/lib/emby/ProgramData-Server	Application directory: /nix/store/r0x1b5r1pzx6dlgl1m9svy0wm600i4mp-emby-3.4.1.0/bin	System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies.	File name: 'System.IO.Compression, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'	  at OpenSubtitles.OpenSubtitleDownloader+<GetSubtitlesInternal>d__23.MoveNext () [0x001af] in <73f6d839a7164c41803da6f678f0b78e>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>d__18.MoveNext () [0x000db] in <0ce351e20fef483992a40df10c7c6183>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at MediaBrowser.Api.Subtitles.SubtitleService+<>c__DisplayClass14_0+<<Post>b__0>d.MoveNext () [0x00099] in <05cb8e86881643b1a0a06329f1d5f9f1>:0 	System.IO.FileNotFoundException	  at OpenSubtitles.OpenSubtitleDownloader+<GetSubtitlesInternal>d__23.MoveNext () [0x001af] in <73f6d839a7164c41803da6f678f0b78e>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>d__18.MoveNext () [0x000db] in <0ce351e20fef483992a40df10c7c6183>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <fb768d43fe23485fbb071afcff849fe2>:0 	  at MediaBrowser.Api.Subtitles.SubtitleService+<>c__DisplayClass14_0+<<Post>b__0>d.MoveNext () [0x00099] in <05cb8e86881643b1a0a06329f1d5f9f1>:0

I know that Nixos is not supported, but do you have any clue why this is crashing like that ?

 

Thanks a lot for your help,

 

Sterfield

Edited by sterfield
Link to comment
Share on other sites

  • Solution

Hi, the minimum supported mono version is now 5.4, so you'll need to update that.  I've never heard of this distro. Is it debian based?

  • Like 1
Link to comment
Share on other sites

sterfield

Hey Luke, thanks for the answer.

 

OK for the new version of Mono, I can certainly upgrade that.

 

For Nixos, no, it's not debian based. It's a new OS bulit from the ground up, with isolation and predictability in mind. You define the configuration of your server using configuration files, and the OS will figure out the configuration for all the services / users / etc… according to your configuration. That means I can rebuild a server from scratch in the exact same configuration within minutes.

 

The second interesting point is isolation : every packages are installed in specific folders, and they are made available as dependencies using symbolic links. It means I can install Mono 5.6 for Emby while still keeping Mono 4.2 for other packages, with zero risks of collision.

 

Main disadvantage is that, they created a new language that you need to understand and learn before be able to use it. As a long-time debian user, it's a challenge, but as a devops, it amazes me to have 99% of my server configuration in plan text files, commited in a git repository. If the root disk crashes, I can rebuild it easy peasy.

 

More information on their website : https://nixos.org/

Community is growing, they have all the packages you may want to use and the idea behind the whole OS is great (IMHO). Worth a try at the very least !

Link to comment
Share on other sites

sterfield

Hey,

 

Just to let you know that I have tested the package with Mono 5.4 (5.4.1.6 to be precise), and the problem is gone. So I'll mark the thread as answered, and I'll also open a PR on Nixos to fix this.

 

I'll keep you posted when it's done.

 

Thanks again for your help !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...