Jellyfin Forum
Impossible to import watch state in new v10.11 install with trakt plugin v27 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Impossible to import watch state in new v10.11 install with trakt plugin v27 (/t-impossible-to-import-watch-state-in-new-v10-11-install-with-trakt-plugin-v27)



Impossible to import watch state in new v10.11 install with trakt plugin v27 - odul - 2025-11-02

Hi, 

Long time jellyfin user, this first time I've an issue that I cannot solve on my own so I hope that someone out there can help me :-)

I've trouble importing watched status from my trakt.tv account using the trakt.tv plugin on a fresh, newly installed (i.e. not migrated) jellyfin v10.11.1 running on latest jellyfin/jellyfin docker image on my ugreen nas. I did many installation that way in the past and never had issue with it.

issue: watch import doesn't work, job stops immediately with an error

error: no idea what ItemId, UserId, CustomDataKey but they seem to be duplicated somewhere

Code:
System.InvalidOperationException: The instance of entity type 'UserData' cannot be tracked because another instance with the same key value for {'ItemId', 'UserId', 'CustomDataKey'} is already being tracked

logs: https://privatebin.net/?5592391487ad3c26#F4uAA8hjw2KWN2RBfYW13VB8FYuCEGZzYH1fc84x5qsY

my setup
- server: ugreen nas dxp4800plus
- jellyfin server: v10.11.1 (docker jellyfin/jellyfin:latest)
- trakt plugin: v27.0.0.0 (official repo)
- trakt plugin authorized in trakt.tv, set to import watch state from trakt on job run, debug log enabled
- not a vip member of trakt

what I already tried without success (several times, always restarted jellyfin between each steps, launch scheduled with admin user job from dashboard):
- deauthorize, disable, and uninstall trakt plugin from v10.10 instance
- disable/enable trakt plugin
- uninstall/install trakt plugin (ensure no configuration left on file system)
- force reauthorisation device for all users
- deauthorize/authorize device for different users (4 users, different names and roles, check on trakt.tv device are revoked/autorised correctly)
- downgrade plugin to v25 (after having disabled job to update plugin)
- only keep setting to set set local items as watched
- check each library one by one (by skipping all others), movies seems to be the culprit (job fails early) but tv shows doesn't fully sync neither (half or shows not updated)

Other combination that works
- I tried again with my old v10.10.7 jellyfin with trakt plugin v26.0 and watch status are imported correctly.
- I tried using trakt plugin on kodi with the v10.11.1 instance and it updates kodi watch status successfully.

Everything else seems to work as expected, including sync libraries and watching media with kodi addon as client jellyfin.

On a side note, I'd love to get rid of trakt and tried other self-hosted services (mediatracker, watcharr, simkl, jellysync) to manage watch statuses but nothing really works well with jellyfin as server and kodi addon as clients. If anyone has a better way to manage watch status overall feel free to comment!

Also, Congratulations on the latest release btw, I know how refactoring can be daunting, I appreciate your effort!