-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to sync [Unable to retrieve account details from plex.tv] #611
Comments
The easy waydownload the fork from https://github.com/Cornishman/Plex-Trakt-Scrobbler/tree/scrobble_fix_with_PlexOnlineToken_fix to fix the issue. The hard wayOk for some reason this issue has blown up and there is lots of requests on how to do this thing. I'll try to gather the information in easy to consume way. The temp fix involve editing file in traktv.bundle directory. X-Plex-TokenFirst step is to get your X-Plex-Token. For how to find it please visit this link. File LocationThe file location depends on how you installed plex. On regular installation please refers to this page to find Plex data directory. Synologyon "Synology package" OthersIn General you need to edit this file "Trakttv.bundle/Contents/Libraries/Shared/plugin/modules/migrations/account.py" Editing the Filearound line 241 look for env_token = os.environ.get('PLEXTOKEN') There is two ways you can fix this issue if you know what environment variable is choose option 2, if you dont understand what is environment variable is choose option 1. Change the line to Option 1 #env_token = os.environ.get('PLEXTOKEN')
env_token = 'Your X-Plex-Token here' Option 2 #env_token = os.environ.get('PLEXTOKEN')
env_token = os.environ.get('PLEX_SERVER_TOKEN') be mindful that python uses whitespace as indentation level, so make sure replaced code matches the indentation level. via @regystro add PLEX_SERVER_TOKEN with your X-Plex-Token as value. in whatever system or container you use. i.e. unraid custom ENV Vars or windows or docker-compose, or whatever system you use. finallyAfter editing the file and making sure the changes saved. restart plex. |
i have the same issue, but this did't helped me. maybe because i don't use docker |
I use docker mostly, but i think you can do same steps and instead of editing docker-compose.yaml do or you can just hardcode the token so instead of
you do
PS, i dont recommend hardcoding the token into the code, but it's a quick work around until the plugin is updated. |
So i tried to hardcode the token, no result at all - it just deletes the Trakt plugin from unofficial appstore Tried to leave it as is after reinstall - now only movies sync with Trakt - both play status and watched. As for shows - nothing: no playing status, no scrobbling. |
The workaround for shows is simple - use original titles. I used translated ones, but it didn't worked for me. And with original titles everything works |
I am having this problem also, just suddenly stopped working, getting error message "Plex account is missing the server token". @Gandrushka by original titles, do you mean the English titles? There is an option in the TV Series Agent to choose Original Titles, but this returns movies and shows in their native language (same as your translated above?)? |
I Don't think @Gandrushka problem is the same as me or you. so you can try the fix i posted it may help. |
yep, that what i thought for the first time. but then i tried it with "Squid game", episodes and series names changed to Korean and Trakt seems to not see it again. So my theory about original titles was wrong, now I'm using English for the library language and Trakt works |
I suspect that this was introduced in Plex version: 1.24.4.5081 - as following me updating to this version this morning on my Windows machine I ran into the same issue as described. Can confirm that changing the environment variable check in the plugin resolved this for me too |
I'm running 5081 beta also on my test/backup server where this is happening (i pull watched statuses from my prod server which is pushing statuses fine on 5033). |
Great fix, thx ! |
Thanks, this fix works! Hope the plugin will be updated soon. |
Cheers, changing the environment variable and line in the code worked on Windows PMS setup. |
Can someone confirm exactly which features are broken with this change? The devs have indicated that this was intentional and the token now being exposed is valid, it just can't be used via the API that is being leveraged by the plugin (have to use PMS API directly instead). I seem to still be able to scrobble and push playback progress fine. So is the issue pulling data? Doing full syncs? Lists or collections? |
@rg9400 for me it was completly broken. Nothing worked. No scrobble, collection (push), ratings (pull, push), watch status (pull, push). Setting the ENV solve all this. |
likewise the plugin was completely broken with the messages i attached. for some weird reason sometimes it works for few days then it would stop working and give this random local-guid token with ofc cant cant be used with plex api for some reason. |
I'm seeing the same error in the logs ("Plex account is missing the server token"), but automatic syncing and scrobbling still seem to be working fine. The only reason I realised there was a problem was because I tried to access the plugin via Kitana to do a manual sync. |
It seems like even though there is an error its works until you prob install new version or something. Mine was working with error until an update. Hard coding the plex token worked. |
yeah mine broke today as well. But now here's the issue. Using the PMS API is not a small change AFAIK, and grabbing the token in some other automated fashion also looks like it will be complicated. Anyone have any ideas for a proper fix? Because it's beyond me. This method works but is not ideal. |
Honestly, if possible just add a new field in settings for plex token and continue as usual. until you feel like rewriting the plugin to use the PMS API. |
Perhaps someone could explain how to get the plex token? I found two methods on the Plex website: one (https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/) is by reading the xml of a library item, but this page says the token is "valid temporarily," and presumably we need one that is valid permanently. The other (https://forums.plex.tv/t/authenticating-with-plex/609370) is a complicated explanation of how a 3rd party app (or presumably a plugin such as this one) could get the token, but this doesn't seem to be a method that an end user can easily use. |
For me personally, removing all authetification from the first account/home user in the plugin configuration, and then adding the previously used plex and trakt auth to a new user is currently a good workaround. It's not pretty, but it works so far. So far I have only had issues on the first (undeletable) user, all my home users have had absolutley no syncing issues over the past few months, as it turns out. So just do not use the default plugin user at all to avoid errors I would say. |
How do I do that? I only have one user; I tried adding another, but I couldn't see any options in the plugin configuration to set different details for a different user, and when I switched to the new user I couldn't access the plugin configuration settings at all. |
You need to set the mapping first, so that each user will be mapped to their corresponding Trakt account: Configuration does not happen inside of Plex Plugins for other users (only the main, undeletable one, which has always been buggy) you have to do it in the Configuration of the Plugin under "Accounts". |
In the absence of a step-by-step guide, I think I'd better leave well alone for now and hope the plugin gets updated with a fix for this issue before it stops working entirely for me. Absolutely no idea what I'm supposed to be doing on that configuration page. |
I didn't notice the plex token changing, unless i disclaim the server and re-claim it. so you can follow the steps i posted to fix it even if plex token is temporary. |
Think I understood about creating a second user and using that over the default.. Just clarify, after doing this, does the settings in the plex app still need to have a pin set? |
I tried the hardcoding the key but that just caused the plugin to not show in settings or Kitana so I undid that. |
This is what worked for me as well. Edit: Though it doesn't seem to be a long term fix, just temporary as it seems to eventually throw the |
No problem. you don't have to manually sync after applying the fix its only for items that was queued to be synced before applying the fix. And for samsung plex app i think you have to disable ssl in server settings. |
Do you mean that new series episodes at my library will synch, I have just added 2 or 3, I'll report back about that. |
the default SSL setting is preferred for Plex server you have to explicitly disable ssl to make old client works. |
Where should I change it, at PLEX via the web browser, settings/network, right? |
i think so yeah check |
To fix this issue, you just need to use the version in this PR. It's unclear when it will be merged since the maintainers aren't around. It grabs the token automatically from the settings without any further user intervention needed. |
My settings are like those at the post but what is happening, not only be me, is that the app doesnt provide a PIN to link the account. Check the links, |
Hello - I was in the process of replacing my trakttv.bundle to fix the TV scrobbling issue referenced here: #596 ; but now i have lost the ability to communicate with the trakt plugin using either Kitana and the web interface (http://trakt-for-plex.github.io/configuration/#/connect). Does anyone know how to fix this using Unraid with Docker (Plex and Kitana are separately installed containers in Docker)? |
Hmm I was able to suddenly get access to both kitana and the web interface, without doing any changes (both error messages suddenly went away). But now real-time scrobbling isn't working (no playback progress is showing in the trakt iOS app, which previously used to show when i started watching a movie). Any idea what to do to fix this? I'm using Corningman's fork of Trakt Plugin which allows for scrobbling TV shows correctly. |
Hi, You were right, new series episodes addition to the library has ynch, also movies the same, I am happy with that at the time, log in at the PLEX doesnt bothers me at all. Out of curiosity, why old series episodes at the library will not synch? Your fix has worked for me 100%, thank you very much. |
indeed that sounds better fix overall, hope it get merged at some point. @jeff15110168 sorry i have no idea.
I think it has something to do with the retry logic in traktv plugin not sure why though, Anyway doing one time manual push from kitana fixes the issue so far. I just hope there will be an alternative selfhosted sync system. |
This "kitana" plugin works also for users without subscription? Thanks |
i am talking about this app https://github.com/pannal/Kitana you can download it and it will expose hidden plugin settings. |
Just as an update, i installed @Cornishman's latest release mentioned in the other thread #596 (see below) and it fixed all my issues.
|
i've tried changing account.py file, disconnecting/reconnecting, updating the module, restarting Plex and the config Plex flag wasn't green and the login disappeared after just a page refresh, while plugin log showed error: |
Hi and Happy New Year everyone. Today I couldn't access my PMS PC Server from my SAMSUNG TV and I was getting very mad! I couldn't find something and I actually didn't changed anything at all form yesterday that it has worked fine, the only difference from the past, far past, is that I wasn't able to login due to the PLEX server security changes that has effect all SAMSUNG and more, SMART TV users with older than 2014, if I am not mistaken, tv models. Trying to find out what's gong on all guides and posts suggested of course that you have to be logged in in order access and check if everything is OK by the server. The problem is that I cannot do that as I have described above but still the server was accessible since yesterday for me and others I suppose with older SMART TVs. Then I have just say why am I not trying to log in by the TV App and BAM access was enabled again, 4 PIN etc worked as it should be and I have access again. Did they changed anything, I am curious because this problem has effected many users which have older SMART Tvs. |
Happy to say https://github.com/Cornishman/Plex-Trakt-Scrobbler fork works like a charm |
Thanks All. i added link to the fork in my 2nd Q&A post to hopefully direct people there if they are not too comfortable to manually do the fix. Hopefully the core maintainers will incorporate the changes. |
I've reinstalled via the https://github.com/Cornishman/Plex-Trakt-Scrobbler fork. But I'm still getting the server token error. Any ideas @arabcoders? |
Sorry i have no idea why it's not working for you. try doing the manual steps on the original plugin and see if it's works for you. otherwise @Cornishman might have an idea on why it's not working. |
@arabcoders it turns out it was due to the fact that the fix isn't merged into master on @Cornishman's fork and instead in a seperate branch which isn't made clear above, but don't see a reason as to why it isn't in master. |
Good catch, I'll go ahead and update the link in Q&A post. |
Syncing worked great with hardcoding my plex token in account.py until a recent plex server update to 1.26. I tried Cornishman's fork (the separate branch per @adambirds ) and still nothing. Does it matter that plexonlinetoken from windows registry doesn't match my plex token from the XML files? Scrobbling works, just not syncing collections. |
I am sorry everyone, i no longer use this plugin, instead i use this tool i created to do so https://github.com/ArabCoders/watchstate it's basic but works for my own needs. |
Wasn't a problem with the plugin, looks like some issues with plex server 1.26. Rolled back to 1.25 and Cornishman's fork is working great. |
See #622 (comment) |
Hi, I will add a completely new series and a movie to PLEX library to see what will happened and if it will not work I think I have to move to "https://github.com/Taxel/PlexTraktSync". |
@CBarbas I also could not get this working again after a recent PMS update. I just switched to PlexTraktSync. Works a treat. |
Hello,
Syncing from plex stopped few days ago, while still working in jellyfin. i searched the logs and it seems for reason the plugin is unable to get the plex account.
and this message kept on being repeated every time the server tries to sync.
things 1 did.
The text was updated successfully, but these errors were encountered: