Closed ankorite closed 2 years ago
I have tried uninstalling and reinstalling the plugin. Originally I was on Jellyfin 10.8.0 and had the same issue so I upgraded to see if that would help.
Im having the same issue, except im getting a slightly different error. I seemed to have fixed my issue by manually deleting all info related to kodi sync queue from the folders (a couple sql databases, and the config file) And then reinstalled using the interface. (Just as my detailed error said something about sql and duplicate ID, that probaby was it. ) (not quite sure why sql databases are left behind on uninstall via jellyfin interface)
While both our interface errors says malfunctioned, i think my problem is different than yours :(
============== OLD INFO ==================== Im currently on Jellyfin Stable Version: 10.8.4 (on Windows, using the Install exe.) I have tried installing the plugin manually, then i tried uninstalling via the Jellyfin interface, rebooting and installing it via the Jellyfin interface. Then i tried uninstalling that, rebooting, and installing an Older version via the interface 8.0.0.0 and that seemed to work for a sec, but when i rebooted it had reinstalled 9.0.0.0 again, and was stuck on malfunctioned (as if it auto upgraded the plugin version)
Jellyfin interface says : Kodi Sync Queue9.0.0.0 Status: Malfunctioned
[2022-09-23 12:30:13.405 +02:00] [INF] [1] Jellyfin.Plugin.KodiSyncQueue.KodiSyncQueuePlugin: KodiSyncQueue is starting...
[2022-09-23 12:30:13.406 +02:00] [INF] [1] Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo: Creating DB Repository...
[2022-09-23 12:30:13.929 +02:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Error creating "Jellyfin.Plugin.KodiSyncQueue.KodiSyncQueuePlugin"
LiteDB.LiteException: Cannot insert duplicate key in unique index '_id'. The duplicate value is '8369'.
at LiteDB.Engine.IndexService.AddNode(CollectionIndex index, BsonValue key, PageAddress dataBlock, Byte level, IndexNode last)
at LiteDB.Engine.IndexService.AddNode(CollectionIndex index, BsonValue key, PageAddress dataBlock, IndexNode last)
at LiteDB.Engine.LiteEngine.InsertDocument(Snapshot snapshot, BsonDocument doc, BsonAutoId autoId, IndexService indexer, DataService data)
at LiteDB.Engine.LiteEngine.RebuildContent(IFileReader reader)
at LiteDB.Engine.LiteEngine.Upgrade(String filename, String password, Collation collation)
at LiteDB.LiteDatabase..ctor(ConnectionString connectionString, BsonMapper mapper)
at LiteDB.LiteDatabase..ctor(String connectionString, BsonMapper mapper)
at Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo..ctor(String dPath, ILogger`1 logger)
at Jellyfin.Plugin.KodiSyncQueue.KodiSyncQueuePlugin..ctor(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, ILoggerFactory loggerFactory)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
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.Plugins.PluginManager.CreatePluginInstance(Type type)
[2022-09-23 12:30:13.942 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Plugin "C:\ProgramData\Jellyfin\Server\plugins\Kodi Sync Queue_9.0.0.0" has been disabled.
[2022-09-23 12:30:13.944 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb Box Sets" "10.0.0.0"
[2022-09-23 12:30:13.946 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Trakt" "20.0.0.0"
[2022-09-23 12:30:13.947 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.8.4.0"
[2022-09-23 12:30:13.948 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.8.4.0"
[2022-09-23 12:30:13.949 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.8.4.0"
[2022-09-23 12:30:13.950 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.8.4.0"
[2022-09-23 12:30:13.951 +02:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.8.4.0"
I think it is 100% the same issue. You are on Windows I take it? I am on Linux. I shelled into my container and removed the DBs pertaining to KodiSyncQuque and the xml config (previously only tried removing the new DB not all of them) So far so good.
I think the issue is from migrating from 8 to 9 it messes up the LiteDB somehow.
I will close this if there it doesn't fail in a day or so.
I am on a Docker container running Jellyfin 10.9.0. KodiSyncQueue is on 9.0.0. I am seeing "Malfunctioned" in the plugin status and logs say this: