Jump to content


Photo

Trakt PlugIn Sync not working since more than a week

trakt plugin plug-in

Best Answer hi2hello , 13 July 2019 - 06:32 AM

For Emby running in a Docker (on unRaid), follow this solution:

 

trakt.dll is under appdata/EmbyServer/plugins/

the trakt.xml can be found here: appdata/EmbyServer/plugins/configurations/

 

Deinstalled the PlugIn, restarted the server, restarted the docker and than deleted the trakt.xml, followed by the same reboot procedure of server and docker.

Than reinstalled the plugin, rebooted server and docker once more.

 

Got a new PIN and finally, it is working again. 

 

Thanks for your help!

Go to the full post


  • Please log in to reply
11 replies to this topic

#1 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 24 June 2019 - 09:47 AM

Hi there,

 

since mid June (logs just date back till June 18th), my emby server (Version 4.1.1.0 running under Linux > unRaid in docker) can no longer connect to trakt for syncing the library. 

"Import Playstates from Trakt.tv" works fine.

"Sync library to trakt.tv" constantly faiils.

 

I already got a new PIN, no success.

 

Here is what the error message says:

Unauthorized
at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
at Trakt.Api.TraktApi.<>c__DisplayClass32_0.<<PostToTrakt>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Trakt.Api.TraktApi.Retry[T](Func`1 function)
at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser)
at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser)
at Trakt.Api.TraktApi.GetFromTrakt(String url, CancellationToken cancellationToken, TraktUser traktUser)
at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser)
at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, ISplittableProgress`1 progress, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncLibraryTask.SyncUserLibrary(User user, TraktUser traktUser, ISplittableProgress`1 progress, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncLibraryTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)

Any idea on that matter?
Thank you! 


Edited by hi2hello, 24 June 2019 - 09:47 AM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 24 June 2019 - 04:03 PM

Hi there, please attach the complete emby server log. thanks.



#3 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 25 June 2019 - 05:09 PM

Can I send this via PM?

Would prefer not to post this in public 

 

Alternatively I could replace all IPs, network names and things I dont want to get exposed that are shown in the log


Edited by hi2hello, 25 June 2019 - 05:38 PM.


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 26 June 2019 - 12:50 AM

Yes PM is fine. Thanks.



#5 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 08 July 2019 - 06:31 AM

Did not find the time to post this earlier.

Here are the logs, including errrors at the end of the logfile trying to sync library to trakt.tv.

In the meantime, I deinstalled the trakt plugin, rebootet the server, reinstalled the plugin, rebootet once more: still the same error messages.

Also tried a new trakt PIN with no luck.

 

As stated before:

Import playstates from Trakt.tv > works

Sync library to trakt.tv > constantly throws errors / exceptions

 

Please find emby server warning and log (anonymized) attached.

Emby Server 4.1.1.0 running in Docker under unRaid 6.7.2

Attached Files


Edited by hi2hello, 08 July 2019 - 06:33 AM.


#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 10 July 2019 - 03:00 AM

Are you sure you setup trakt correctly? It's acting as if you haven't completed setup.



#7 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 10 July 2019 - 05:19 AM

Thanks for your reply.

 

I Don’t know. As I said, it suddenly stopped working (after the update to 4.1.1.0).

 

Here is what I did:

I installed the 3.3.2.0 trakt PlugIn, went to "settings", selected my my main user in "configure trakt for", got an authentication pin from the website that I entered under "Authentication PIN", did not exclude any folders and selected the first two checkboxes "skip unwatched import from trakt" and "update trakt watched history during scheduled task".

 

Than I saved.

Just to be sure I did this with and without server reboot. Made no difference.

 

As this was not working, I did an uninstall of the trakt plug in. Rebooted server, than re-installed trakt. Server reboot. And than settings of trakt with another newly generated PIN to authenticate. Emby is listed under "connected apps" in trakt. 

 

What else to do? Anything I missed? 

 

The function "import playstates from trakt.tv" (takes 6 seconds) is working. Just "sync library to trakt.tv" throws exceptions. The progression bar runs till 100% but says "error" afterwards (takes 10 seconds).

 

Is there maybe any webservice used except for trakt.tv that might be blocked by pi-hole? That is the only thing I could think of, although it would not work in either directions, right?!


Edited by hi2hello, 10 July 2019 - 05:34 AM.


#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 10 July 2019 - 10:05 PM

I would suggest trying again following the release of emby server 4.2 as there will be some updates to the plugin. I'm not sure it will make a difference, but it's worth trying and re-evaluating at that time.

 

In the meantime you could try deleting the trakt xml config file, restarting the server, and then setting trakt back up.



#9 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 11 July 2019 - 03:27 AM

Where do I find the trakt xml config file? Emby is running in docker under unRaid.
 



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 12 July 2019 - 10:28 PM

Well I'm currently mobile so from memory it should be

/config/plugins

Look for an Xml file under there for trakt.

Make sure to restart the server after deleting it. Please let us know if this helps. Thanks.

#11 hi2hello OFFLINE  

hi2hello

    Advanced Member

  • Members
  • 49 posts
  • Local time: 06:27 PM

Posted 13 July 2019 - 06:32 AM   Best Answer

For Emby running in a Docker (on unRaid), follow this solution:

 

trakt.dll is under appdata/EmbyServer/plugins/

the trakt.xml can be found here: appdata/EmbyServer/plugins/configurations/

 

Deinstalled the PlugIn, restarted the server, restarted the docker and than deleted the trakt.xml, followed by the same reboot procedure of server and docker.

Than reinstalled the plugin, rebooted server and docker once more.

 

Got a new PIN and finally, it is working again. 

 

Thanks for your help!


Edited by hi2hello, 17 July 2019 - 04:55 AM.

  • Luke likes this

#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:27 AM

Posted 16 July 2019 - 03:13 PM

Thanks for the feedback !


  • hi2hello likes this





Also tagged with one or more of these keywords: trakt, plugin, plug-in

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users