LinFor / jellyfin-plugin-kinopoisk

Fetches metadata from kinopoisk
GNU General Public License v3.0
65 stars 18 forks source link

Kinopoisk Статус: Malfunctioned #7

Closed Akior closed 2 years ago

Akior commented 3 years ago

Не могут загрузиться несколько dll на свежих версиях jelly, плагин не работает

Failed to load assembly "/var/lib/jellyfin/plugins/РљРёРЅРѕРџРѕРёСЃРє_10.7.5.1/Newtonsoft.Json.dll". Disabling plugin. System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext() [2021-07-28 17:26:22.970 +03:00] [ERR] Failed to load assembly "/var/lib/jellyfin/plugins/РљРёРЅРѕРџРѕРёСЃРє_10.7.5.1/KinopoiskUnofficialInfo.ApiClient.dll". Disabling plugin. System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621) File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args) at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name) at System.Runtime.Loader.AssemblyLoadContext.OnAssemblyResolve(RuntimeAssembly assembly, String assemblyFullName) at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext() [2021-07-28 17:26:22.971 +03:00] [ERR] Failed to load assembly "/var/lib/jellyfin/plugins/РљРёРЅРѕРџРѕРёСЃРє_10.7.5.1/Jellyfin.Plugin.Kinopoisk.dll". Unknown exception was thrown. Disabling plugin. System.IO.FileNotFoundException: Could not load file or assembly 'MediaBrowser.Common, Version=10.7.6.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MediaBrowser.Common, Version=10.7.6.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()

mastercho commented 3 years ago

Yes i got same issue on Jellyfin 10.7.6

LinFor commented 3 years ago

Любопытно как. Собрал свежий Jellyfin, а там всё работает.

Скажите точно, откуда установлен? Докер? Точный тег образа?

Akior commented 3 years ago

Любопытно как. Собрал свежий Jellyfin, а там всё работает.

Скажите точно, откуда установлен? Докер? Точный тег образа?

Версия: 10.7.6 Установлена через apt из репы deb [arch=amd64] https://repo.jellyfin.org/ubuntu focal main

Версия кп: КиноПоиск10.7.5.2 Статус: Malfunctioned

Сейчас ошибка такая:

Error creating "Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonImageProvider" System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonImageProvider'. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type) [2021-08-10 21:18:09.402 +03:00] [ERR] Error creating "Jellyfin.Plugin.Kinopoisk.MetadataProviders.VideoImageProvider" System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.VideoImageProvider'. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type) [2021-08-10 21:18:09.430 +03:00] [ERR] Error creating "Jellyfin.Plugin.Kinopoisk.MetadataProviders.MovieMetadataProvider" System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.MovieMetadataProvider'. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type) [2021-08-10 21:18:09.431 +03:00] [ERR] Error creating "Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonMetadataProvider" System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonMetadataProvider'. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type) [2021-08-10 21:18:09.431 +03:00] [ERR] Error creating "Jellyfin.Plugin.Kinopoisk.MetadataProviders.SeriesMetadataProvider" System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.SeriesMetadataProvider'. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type)

mastercho commented 3 years ago

Любопытно как. Собрал свежий Jellyfin, а там всё работает.

Скажите точно, откуда установлен? Докер? Точный тег образа?

Docker https://hub.docker.com/r/linuxserver/jellyfin/

Версия: 10.7.6

Операционна система: Linux

Архитектура: X64

mastercho commented 3 years ago

Any update?

iAHTOH commented 2 years ago

Есть понимание на что смотреть? Не работает.

 [13:00:31] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Kinopoisk, Version=10.7.5.2, Culture=neutral, PublicKeyToken=null from /config/data/plugins/КиноПоиск_10.7.5.2/Jellyfin.Plugin.Kinopoisk.dll
 [13:00:31] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly /config/data/plugins/КиноПоиск_10.7.5.2/Newtonsoft.Json.dll. Disabling plugin.
 System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.
    at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
    at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
    at System.Reflection.Assembly.LoadFrom(String assemblyFile)
    at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
 [13:00:41] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.7.7.0
 [13:00:41] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.7.7.0
 [13:00:41] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.7.7.0
 [13:00:41] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error creating Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonImageProvider
 System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonImageProvider'.
    at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
    at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
    at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type)
 [13:00:41] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error creating Jellyfin.Plugin.Kinopoisk.MetadataProviders.VideoImageProvider
 System.InvalidOperationException: Unable to resolve service for type 'KinopoiskUnofficialInfo.ApiClient.IKinopoiskApiClient' while attempting to activate 'Jellyfin.Plugin.Kinopoisk.MetadataProviders.VideoImageProvider'.
    at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
    at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
    at Emby.Server.Implementations.ApplicationHost.CreateInstanceSafe(Type type)
freefd commented 2 years ago

Hi, faced the same issue with КиноПоиск 10.7.5.2 plugin after upgrading Jellyfin container instance from 10.7.2-1 to 10.7.7-1. The build is from https://hub.docker.com/r/linuxserver/jellyfin folks.

I even tried to reinstall КиноПоиск plugin but it doesn't help at all. Moreover, Jellyfin throws an error like it cannot find Netonsoft.Json.dll file:

[01:54:43] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly /config/data/plugins/КиноПоиск_10.7.5.2/Newtonsoft.Json.dll. Disabling plugin.
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
[01:54:43] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Kinopoisk, Version=10.7.5.2, Culture=neutral, PublicKeyToken=null from /config/data/plugins/КиноПоиск_10.7.5.2/Jellyfin.Plugin.Kinopoisk.dll
[01:54:43] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly /config/data/plugins/КиноПоиск_10.7.5.2/KinopoiskUnofficialInfo.ApiClient.dll. Disabling plugin.
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
 ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
   at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
   at System.Runtime.Loader.AssemblyLoadContext.OnAssemblyResolve(RuntimeAssembly assembly, String assemblyFullName)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()

but this file is definitely there:

# docker exec -ti jellyfin bash -c 'ls -la /config/data/plugins/КиноПоиск_10.7.5.2/'
total 896
drwxr-xr-x 2 abc abc   4096 Sep 24 01:54 .
drwxr-xr-x 4 abc abc   4096 Sep 24 01:54 ..
-rw-r--r-- 1 abc abc   5067 Sep 24 01:54 25f8c0315e6ccb2aa6c2642e48f2c9e9.png
-rw-r--r-- 1 abc abc  51712 Sep 24 01:54 Jellyfin.Plugin.Kinopoisk.dll
-rw-r--r-- 1 abc abc 146944 Sep 24 01:54 KinopoiskUnofficialInfo.ApiClient.dll
-rw-r--r-- 1 abc abc   2290 Sep 24 01:54 meta.json
-rw-r--r-- 1 abc abc 695336 Sep 24 01:54 Newtonsoft.Json.dll

Any suggestions, fixes please? Thank you.

mastercho commented 2 years ago

I think this plugin is deprecated as dev wont work on it anymore

freefd commented 2 years ago

@mastercho please do not rush, let's hear out the author first :)

LinFor commented 2 years ago

@Akior @mastercho @freefd Please try new 10.7.5.3 version. I have removed a separate version of Newtonsoft.Json and hopefully will pick up the one in Jellyfin.

Akior commented 2 years ago

@Akior @mastercho @freefd Please try new 10.7.5.3 version. I have removed a separate version of Newtonsoft.Json and hopefully will pick up the one in Jellyfin.

На новой версии jellyfin все работает, Спасибо!

freefd commented 2 years ago

@LinFor thanks a lot for the new version provided. I've just tested it on the local Jellyfin ephemeral container and now it seems to be working fine from integration pov: image

The logs related to Кинопоиск plugin:

[12:54:45] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Kinopoisk, Version=10.7.5.3, Culture=neutral, PublicKeyToken=null from /config/data/plugins/КиноПоиск_10.7.5.3/Jellyfin.Plugin.Kinopoisk.dll
[12:54:45] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly KinopoiskUnofficialInfo.ApiClient, Version=10.7.5.3, Culture=neutral, PublicKeyToken=null from /config/data/plugins/КиноПоиск_10.7.5.3/KinopoiskUnofficialInfo.ApiClient.dll
[12:54:47] [DBG] [1] Emby.Server.Implementations.Plugins.PluginManager: Creating instance of Jellyfin.Plugin.Kinopoisk.Plugin
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonImageProvider
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.MetadataProviders.VideoImageProvider
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.MetadataProviders.MovieMetadataProvider
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.MetadataProviders.PersonMetadataProvider
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.MetadataProviders.SeriesMetadataProvider
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.Model.KinopoiskExternalId
[12:54:47] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Plugin.Kinopoisk.Model.KinopoiskPersonExternalId

But I cannot test with a real data collecting from Кинопоиск due to my original installation isn't available to me until this Friday (I hope).

svyaznoy362 commented 2 years ago

@Akior @mastercho @freefd Попробуйте новую версию 10.7.5.3. Я удалил отдельную версию Newtonsoft.Json и, надеюсь, сохраню версию в Jellyfin.

Добрый день. Не работаю трейлеры в клиенте.

LinFor commented 2 years ago

@svyaznoy362 киньте пожалуйста id или ссылку на кинопоиск с проблемным фильмом. И, лучше в отдельный issue.

mastercho commented 2 years ago

Fixed and working on Jellyfin 10.7.7 Спосиба!