Jump to content

Emby und Trakt Synchronisierung funktioniert wieder nicht


Recommended Posts

Posted

So, got a new pin again and now it seems that emby is connected to trakt. See screenshot. Tried a full sync but nothing was added or changed on the trakt page. :(

Unbenannt.jpg

embyserver.txt

Posted

So yesterday every trakt user had the forbidden problem. Trakt fixed this on their end. So that is resolved now, but this just brings you back to where you were when you opened this thread.

Posted

Do you have Trakt VIP?

Posted

Yeah your right. 

No, I dont have VIP. Never had. 

Posted

Their blocking is still a little extreme though. I count 7 requests in the log, and we do space them out so that they're a full second apart. And still they reject. So that's a little harsh.

We will probably need a checkbox to indicate that you have VIP, and if not, then space the requests out even more. That will make the sync process extremely slow, and I do mean extremely, but without VIP it might be the only way it will work.

Posted

Oh, that sounda not good. Why and when did this become so strict? I mean it worked flawless till mid of january. 

Posted

Well I imagine they have expenses to cover and so they need more vip users.

Posted

But it seems that i am the only one with such problems or didn't find other threads

Killface69
Posted
13 minutes ago, epicfail said:

But it seems that i am the only one with such problems or didn't find other threads

Maybe it's not obvious for most users.

I also realized that Trakt seems to have issues, although I manually started the initial sync a few times in the past few weeks. Accoring to Trskt, some films I have collected appear as missing, and some collected episodes are missing from series. 

Posted

So your emby server does sync with trakt? Mine doesnt at all since january. Something is wrong here. 

Killface69
Posted (edited)
2 hours ago, epicfail said:

So your emby server does sync with trakt? Mine doesnt at all since january. Something is wrong here. 

No, it doesn't. Scrobbling works, but my existing library isn't in sync any more.

According to Trakt https://trakt.tv/users/XXX_YOUR_USER_NAME_HERE_XXX/collection, my latest additions were added 21 January 2025.

Here's the log from my main user after starting a manual sync.

2025-03-14 07:18:58.561 Info Trakt: Syncing user data for TheUser
2025-03-14 07:18:59.374 Info HttpClient: GET https://api.trakt.tv/sync/watched/movies
2025-03-14 07:19:00.957 Info HttpClient: GET https://api.trakt.tv/sync/collection/movies
2025-03-14 07:19:45.242 Info Server: http/1.1 Response 404 to host1. Time: 0ms. GET http://host2:18096/embywebsocket?api_key=x_secret1_x&deviceId=3e7acd7d-fb6a-464b-8b04-8c57c77b482c
2025-03-14 07:21:10.929 Info Trakt: Movies to add to collection: 436
2025-03-14 07:21:11.747 Info HttpClient: POST https://api.trakt.tv/sync/collection
2025-03-14 07:21:13.779 Error Trakt: Exception handled sending movies to trakt.tv
	*** Error Report ***
	Version: 4.8.11.0
	Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA/Public -updatepackage emby-server-qnap_{version}_x86_64.qpkg -noautorunwebapp
	Operating system: Linux version 5.10.60-qnap (root@mini-builder-05) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld (G
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
	Application path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: 420
	   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.GetResponseFromTrakt(HttpRequestOptions options, String method, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.SendLibraryUpdateAsync(List`1 movies, TraktUser traktUser, CancellationToken cancellationToken, EventType eventType)
	   at Trakt.ScheduledTasks.TraktUserSync.SendMovieCollectionAdds(TraktUser traktUser, List`1 movies, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2025-03-14 07:21:13.782 Info Trakt: Movies to remove from collection: 0
2025-03-14 07:21:13.785 Info Trakt: Movies to set watched: 0
2025-03-14 07:21:13.786 Info Trakt: Movies to set unwatched: 0
2025-03-14 07:21:14.602 Info HttpClient: GET https://api.trakt.tv/sync/watched/shows
2025-03-14 07:21:15.769 Info HttpClient: GET https://api.trakt.tv/sync/collection/shows
2025-03-14 07:21:18.787 Info Server: http/1.1 Response 404 to host1. Time: 0ms. GET http://host2:18096/embywebsocket?api_key=x_secret1_x&deviceId=3e7acd7d-fb6a-464b-8b04-8c57c77b482c
2025-03-14 07:21:23.280 Info Trakt: Episodes to add to Collection: 660
2025-03-14 07:21:24.102 Info HttpClient: POST https://api.trakt.tv/sync/collection
2025-03-14 07:21:25.237 Error Trakt: Exception handled sending episodes to trakt.tv
	*** Error Report ***
	Version: 4.8.11.0
	Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA/Public -updatepackage emby-server-qnap_{version}_x86_64.qpkg -noautorunwebapp
	Operating system: Linux version 5.10.60-qnap (root@mini-builder-05) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld (G
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
	Application path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: 420
	   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.GetResponseFromTrakt(HttpRequestOptions options, String method, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.SendLibraryUpdateInternalAsync(List`1 episodes, TraktUser traktUser, CancellationToken cancellationToken, EventType eventType)
	   at Trakt.Api.TraktApi.SendLibraryUpdateAsync(IList`1 episodes, TraktUser traktUser, CancellationToken cancellationToken, EventType eventType)
	   at Trakt.ScheduledTasks.TraktUserSync.SendEpisodeCollectionAdds(TraktUser traktUser, List`1 collectedEpisodes, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2025-03-14 07:21:25.242 Info Trakt: Episodes to remove from Collection: 0
2025-03-14 07:21:25.245 Info Trakt: Episodes to set watched: 24
2025-03-14 07:21:26.064 Info HttpClient: POST https://api.trakt.tv/sync/history
2025-03-14 07:21:26.588 Error Trakt: TraktResponse episode not Found:{"ids":{"imdb":"tt29474455","tmdb":1190012,"tvdb":10086275}}
2025-03-14 07:21:26.588 Info Trakt: Episodes to set unwatched: 1
2025-03-14 07:21:27.388 Info HttpClient: POST https://api.trakt.tv/sync/history/remove

I've noticed that also users without a Trakt account are being processed and exit with an error.

2025-03-14 07:23:49.143 Info Trakt: Syncing user data for SecretUser2
2025-03-14 07:23:49.943 Info HttpClient: POST https://api.trakt.tv/oauth/token
2025-03-14 07:23:50.056 Error Trakt: Error in SyncUserData
	*** Error Report ***
	Version: 4.8.11.0
	Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA/Public -updatepackage emby-server-qnap_{version}_x86_64.qpkg -noautorunwebapp
	Operating system: Linux version 5.10.60-qnap (root@mini-builder-05) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld (G
	Framework: .NET 6.0.36
	OS/Process: x64/x64
	Runtime: share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
	Application path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: BadRequest
	   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.GetResponseFromTrakt(HttpRequestOptions options, String method, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.TraktUserSync.SyncMovies(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.TraktUserSync.SyncUserData(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.SyncLibrary.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()

 

Edited by Killface69
Posted
Quote

I've noticed that also users without a Trakt account are being processed and exit with an error.

They may have entered something on their trakt config screen. I would have them go in and make sure the values are all blank.

Posted

What do you mean exactly? 

Killface69
Posted
3 hours ago, epicfail said:

What do you mean exactly? 

I was referring to SecretUser2 from my log,  among other users. I was sure to have not setup a Tract account for them, and they don't use Trakt at all. 

Must be a setting from AdminBuddy maybe, when I used another Emby account as template to copy from.

Posted
7 hours ago, Killface69 said:

I was referring to SecretUser2 from my log,  among other users. I was sure to have not setup a Tract account for them, and they don't use Trakt at all. 

Must be a setting from AdminBuddy maybe, when I used another Emby account as template to copy from.

That's true but they may have been fiddling around and entered a junk value into the config screen. Or something from adminbuddy as you said.

Posted

So, will there be any solution to my problem? Should i try to make a new trakt account and test with this?

Posted

I´ve tried a full sync with a new trakt account. It did sync, in some way. Only series were added, no movies. I´ve checked how many episodes i have on my emby server....around 13k but only 6023 episodes were added to trakt when i look on the trakt page. And no movies like i said.

server log attached

embyserver.txt

Posted
On 3/15/2025 at 4:04 AM, epicfail said:

I´ve tried a full sync with a new trakt account. It did sync, in some way. Only series were added, no movies. I´ve checked how many episodes i have on my emby server....around 13k but only 6023 episodes were added to trakt when i look on the trakt page. And no movies like i said.

server log attached

embyserver.txt 175.69 kB · 0 downloads

What movie did you expect it to add that wasn't? How did you configure your trakt options?

Posted

Oh wait, sorry. Same thing. Did you add VIP to the new account?

Posted

No, I haven't add VIP. Not a single movie was added. 

Anyway... I'm giving up on this. Deleted all trakt accounts and the trakt addon in Emby. Maybe I try it again in the future. But many thanks for your help. 

Posted

OK please let us know if anything changes. Thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...