jellyfin-archive/jellyfin-plugin-autoorganize

docker: System.TypeInitializationException: The type initializer for 'Emby.AutoOrganize.Data.BaseSqliteRepository' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'SQLitePCL.pretty, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null'

ssbarnea opened this issue · 5 comments

This error can be seen in the log when running jellyfin official docker distributions:

System.TypeInitializationException: The type initializer for 'Emby.AutoOrganize.Data.BaseSqliteRepository' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'SQLitePCL.pretty, Version=1.1.8.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
jellyfin_1 |

Mainly this tells me that the plugin is missing a critical dependency.

The strange thing is that the "SQLitePCL.pretty.dll" file exists in the jellyfin directory, at least in the docker version. Maybe it's a wrong version, but I don't know how to test that.

cvium commented

It's the wrong nuget package. It should be https://www.nuget.org/packages/SQLitePCL.pretty.netstandard/

Thanks much, that solved the problem

This is fixed by #10