• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification Error in KodiQueuePlugin after Update to 10.9[.1]

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Error in KodiQueuePlugin after Update to 10.9[.1]

    Palim
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:Germany
    #1
    2024-05-13, 09:17 PM
    Hello,

    I hope this is the correct section, if not please move.

    After updating to Jellyfin 10.9 and later to 10.9.1 my KodiSyncQueue plugin isn't working any more. It is updated to 10.0.0.0.

    Every time I mark a media in Kodi as seen or unseen (some change), I get exactly this error message:

    Code:
    jellyfin  | [20:54:56] [INF] [81] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Started user data sync
    jellyfin  | [20:54:56] [ERR] [81] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: An error has occurred in UserUpdateTimerCallback
    jellyfin  | System.ObjectDisposedException: Cannot access a disposed object.
    jellyfin  | Object name: 'System.Threading.ReaderWriterLockSlim'.
    jellyfin  |    at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
    jellyfin  |    at LiteDB.Engine.LockService.EnterTransaction()
    jellyfin  |    at LiteDB.Engine.TransactionMonitor.GetTransaction(Boolean create, Boolean queryOnly, Boolean& isNew)
    jellyfin  |    at LiteDB.Engine.QueryExecutor.ExecuteQuery(Boolean executionPlan)
    jellyfin  |    at LiteDB.Engine.LiteEngine.Query(String collection, Query query)
    jellyfin  |    at LiteDB.LiteQueryable`1.ToDocuments()+MoveNext()
    jellyfin  |    at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
    jellyfin  |    at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
    jellyfin  |    at Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo.<>c__DisplayClass10_0.<SetUserInfoSync>b__0(UserItemDataDto dto)
    jellyfin  |    at System.Collections.Generic.List`1.ForEach(Action`1 action)
    jellyfin  |    at Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo.SetUserInfoSync(List`1 dtos, List`1 itemRefs, String userId)
    jellyfin  |    at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification.SaveUserChanges(List`1 dtos, List`1 itemRefs, String userName, String userId)
    jellyfin  |    at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification.SendNotifications(IEnumerable`1 changes, List`1 itemRefs, CancellationToken cancellationToken)
    jellyfin  |    at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification.UpdateTimerCallback(Object state)

    I completely reinstalled two Kodi (LibreELEC) instances (newest version 12.0 - Kodi 21) from scratch and it doesn't work either.

    If you need further info I will try to provide.

    Can anyone help me please? Thanks a lot in advance!


    Kind regards
    Palim
    MisterMcDuck
    Offline

    Junior Member

    Posts: 18
    Threads: 0
    Joined: 2024 May
    Reputation: 4
    Country:United States
    #2
    2024-05-13, 09:42 PM
    I'd recommend posting this as an Issue at https://github.com/jellyfin/jellyfin-plu...eue/issues
    underdog
    Offline

    Junior Member

    Posts: 6
    Threads: 0
    Joined: 2023 Jul
    Reputation: 1
    Country:Germany
    #3
    2024-05-13, 09:55 PM
    Do you use in kodi-addon "native path" or "addon"?
    MisterMcDuck
    Offline

    Junior Member

    Posts: 18
    Threads: 0
    Joined: 2024 May
    Reputation: 4
    Country:United States
    #4
    2024-05-14, 12:34 AM (This post was last modified: 2024-05-14, 12:42 AM by MisterMcDuck. Edited 1 time in total.)
    I can confirm I am receiving the same error as Palim in my own instance. I also saw a similar error with a different stack trace:
    Code:
    [23:50:35] [ERR] [148] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification: An error has occurred in LibraryUpdateTimerCallback
    System.ObjectDisposedException: Cannot access a disposed object.
    Object name: 'System.Threading.ReaderWriterLockSlim'.
      at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
      at LiteDB.Engine.LockService.EnterTransaction()
      at LiteDB.Engine.TransactionMonitor.GetTransaction(Boolean create, Boolean queryOnly, Boolean& isNew)
      at LiteDB.Engine.QueryExecutor.ExecuteQuery(Boolean executionPlan)
      at LiteDB.Engine.LiteEngine.Query(String collection, Query query)
      at LiteDB.LiteQueryable`1.ToDocuments()+MoveNext()
      at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
      at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
      at Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo.WriteLibrarySync(IEnumerable`1 items, ItemStatus status)
      at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification.UpdateLibrary(IReadOnlyCollection`1 items, ItemStatus status)
      at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification.PushChangesToDb(IReadOnlyCollection`1 itemsAdded, IReadOnlyCollection`1 itemsUpdated, IReadOnlyCollection`1 itemsRemoved)
      at Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification.LibraryUpdateTimerCallback(Object state)
    qwerty12
    Offline

    Junior Member

    Posts: 30
    Threads: 0
    Joined: 2023 Jun
    Reputation: 3
    #5
    2024-05-14, 12:39 AM (This post was last modified: 2024-05-14, 12:40 AM by qwerty12. Edited 1 time in total.)
    I'm also seeing the same thing. This seems to be a problem with the latest version of the database library the plugin is using rather than there being anything wrong with the Kodi Sync Queue plugin itself. See https://github.com/mbdavid/LiteDB/issues/2442. While not the same error, it seems to be in the same ballpark.
    MisterMcDuck
    Offline

    Junior Member

    Posts: 18
    Threads: 0
    Joined: 2024 May
    Reputation: 4
    Country:United States
    #6
    2024-05-14, 01:24 AM (This post was last modified: 2024-05-14, 04:40 AM by MisterMcDuck. Edited 1 time in total.)
    Nice catch. I'm building the plugin using LiteDB 5.0.17 and will test locally. If it fixes the errors I will submit a PR to fix this.

    Update: watched 4 episodes with no exceptions, will test a bit more tomorrow but it's looking good.
    1
    Palim
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:Germany
    #7
    2024-05-14, 06:00 AM
    Thanks for your help.

    @underdog: I am using "Addon"

    @MisterMcDuck: That sounds fantastic! I hope there will be an update in the next time...
    underdog
    Offline

    Junior Member

    Posts: 6
    Threads: 0
    Joined: 2023 Jul
    Reputation: 1
    Country:Germany
    #8
    2024-05-14, 02:17 PM
    Now I finally know why my watched-status works despite the errors in the logs. Since I am the only user in our group with a kodi client, I have saved the watched-status for myself in the .nfo files.
    Jellyfin 10.9.2
    Openmediavault 7
    Docker linuxserver
    Oddstr13
    Offline

    Team Member

    Posts: 19
    Threads: 1
    Joined: 2023 Jun
    Reputation: 1
    Country:Norway
    #9
    2024-05-14, 03:58 PM
    For tracking this particular error on GitHub, please use #84
    https://github.com/jellyfin/jellyfin-plu.../issues/84

    It is likely related to #83, but I don't think it's the exact same (upstream) issue.
    1
    axionman
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2024 Feb
    Reputation: 0
    Country:Mexico
    #10
    2024-05-15, 04:04 PM
    Issue has been fixed at my side after updating Kodi Sync Queue extension to 11.0.0.0
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode