Przemek 70 Posted May 18, 2021 Posted May 18, 2021 Hello, one more time I have trakt sync error. Last time I remove trakt.xml from /lib/var/emby/plugins/configuration and it helps. Not it don't work. I also reinstall Trakt plugin and get new PIN. I attach log file. Regards, Przemek embyserver.txt
vdatanet 1617 Posted May 18, 2021 Posted May 18, 2021 Can you post your Trakt configuration file? (Remove the tokens). There are also several permissions denied errors. You should check the permissions. 2021-05-18 01:45:00.027 Info HttpClient: POST https://api.trakt.tv/oauth/token 2021-05-18 01:45:00.643 Error Trakt: Exception handled *** Error Report *** Version: 4.5.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 4.19.0-16-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19) Framework: .NET Core 3.1.8 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 4 Data path: /var/lib/emby Application path: /opt/emby-server/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.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser) 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(String url, CancellationToken cancellationToken, TraktUser traktUser) at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser, CancellationToken cancellationToken) at Trakt.ScheduledTasks.SyncFromTraktTask.SyncTraktDataForUser(User user, Double currentProgress, CancellationToken cancellationToken, IProgress`1 progress, Double percentPerUser) Source: Emby.Server.Implementations TargetSite: Void MoveNext()
Przemek 70 Posted May 18, 2021 Author Posted May 18, 2021 Hi, thanks for answer. That is my Trakt.xml file: dietpi@DietPi:/var/lib/emby/plugins/configurations$ cat Trakt.xml <?xml version="1.0"?> <PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TraktUsers> <TraktUser> <PIN>XXXXXXXXX</PIN> <LinkedMbUserId>XXXXXXXXXXXXXXXXXXXXX</LinkedMbUserId> <UsesAdvancedRating>false</UsesAdvancedRating> <SkipUnwatchedImportFromTrakt>true</SkipUnwatchedImportFromTrakt> <PostWatchedHistory>true</PostWatchedHistory> <SyncCollection>true</SyncCollection> <ExtraLogging>true</ExtraLogging> <ExportMediaInfo>false</ExportMediaInfo> <LocationsExcluded> <string>/home/dietpi/Audibooki</string> <string>/mnt/Toshiba/dietpi_userdata/Audiobook</string> <string>/mnt/Toshiba/dietpi_userdata/Music</string> </LocationsExcluded> <AccessTokenExpiration /> </TraktUser> </TraktUsers> and permissions: </PluginConfiguration>dietpi@DietPi:/var/lib/emby/plugins/configurations$ ls -l razem 36 -rw-r--r-- 1 emby dietpi 212 maj 17 21:23 4ef360b9d15151527f240df1a03d673b -rwxr-xr-x 1 emby dietpi 216 mar 5 21:19 b253ab97e541a9c9b120cb7057f9794b -rw-r--r-- 1 emby dietpi 184 maj 18 11:30 da3a14f534ae1a60fbf92b4bf38b8acc -rw-r--r-- 1 emby dietpi 668 kwi 15 07:17 FolderSync.xml -rw-r--r-- 1 emby dietpi 320 mar 6 18:08 MBBackup.xml -rw-r--r-- 1 emby dietpi 438 maj 3 21:32 MediaBrowser.Channels.IPTV.xml -rwxr-xr-x 1 emby dietpi 405 gru 8 07:44 MediaBrowser.Plugins.PushBulletNotifications.xml -rwxr-xr-x 1 emby dietpi 236 gru 8 07:44 MediaBrowser.Plugins.TuneIn.xml -rw-r--r-- 1 emby dietpi 892 maj 17 20:32 Trakt.xml regards.
vdatanet 1617 Posted May 18, 2021 Posted May 18, 2021 Instead of PIN, there should be the tokens. I think the error occurs when trying to get those tokens. <AccessToken>TOKEN</AccessToken> <RefreshToken>TOKEN</RefreshToken> There are also many errors like this, which seem like a network problem. 2021-05-18 09:50:04.007 Error App: Error in MusicBrainz *** Error Report *** Version: 4.5.4.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Linux version 4.19.0-16-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19) Framework: .NET Core 3.1.8 OS/Process: x64/x64 Runtime: opt/emby-server/system/System.Private.CoreLib.dll Processor count: 4 Data path: /var/lib/emby Application path: /opt/emby-server/system MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: ServiceUnavailable at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod) at MusicBrainz.MusicBrainzAlbumProvider.GetMusicBrainzResponse(String url, Boolean isSearch, Boolean forceMusicBrainzProper, CancellationToken cancellationToken) at MusicBrainz.MusicBrainzArtistProvider.GetSearchResults(ArtistInfo searchInfo, CancellationToken cancellationToken) at MusicBrainz.MusicBrainzArtistProvider.GetMetadata(ArtistInfo id, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: Void MoveNext()
Przemek 70 Posted May 18, 2021 Author Posted May 18, 2021 I install last plugin with Emby so maybe developer should change this to token. I don't have any network problems with my server. Everything works. Trakt.t works with my Radarr and Sonarr and sync playlist. regards.
Przemek 70 Posted May 18, 2021 Author Posted May 18, 2021 54 minutes ago, Luke said: So you're all set now? Hi, No sync trakt.tv with Emby don't work. regards.
Luke 42077 Posted May 18, 2021 Posted May 18, 2021 50 minutes ago, Przemek said: Hi, No sync trakt.tv with Emby don't work. regards. Try deleting the trakt xml config file, restarting the server, and then setting up the configuration again.
Przemek 70 Posted May 18, 2021 Author Posted May 18, 2021 It still don't work. I delete trakt.xml > restart Emby server > install trakt plugin and get PIN > restart Emby and set shedule. Resource temporarily unavailable 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.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser) 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(String url, CancellationToken cancellationToken, TraktUser traktUser) at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser, CancellationToken cancellationToken) 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) It looks like `Import playstates from Trakt.tv` is working on Shedule but `Sync library to trakt.tv` still don't.
vdatanet 1617 Posted May 18, 2021 Posted May 18, 2021 8 minutes ago, Przemek said: It looks like `Import playstates from Trakt.tv` is working on Shedule but `Sync library to trakt.tv` still don't. In your first log, there are many errors like this when connecting to external services: MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException Are you sure you don't have networking problems (external connections)?
Przemek 70 Posted May 18, 2021 Author Posted May 18, 2021 Hi, vdatanet. I have some problem with router and I have to reset it only today about 21:00. That was first time that problem with this router. Trakt.tv sync don't work from few months i think. Regards.
Przemek 70 Posted May 20, 2021 Author Posted May 20, 2021 Hi @Luke if You are developer of trakt plugin can You tell me do I have to change "PIN" to "TOKEN" in trakt.xml file? regards.
Luke 42077 Posted May 20, 2021 Posted May 20, 2021 6 minutes ago, Przemek said: Hi @Luke if You are developer of trakt plugin can You tell me do I have to change "PIN" to "TOKEN" in trakt.xml file? regards. No, I would try what I suggested again, because trakt sent back this error: Resource temporarily unavailable If you're behind a vpn or using a custom dns, try turning those things off.
Przemek 70 Posted May 20, 2021 Author Posted May 20, 2021 Hello @Luke today I also delete trakt plugin, stop Emby Server and delete Trakt.xml file from `/var/lib/emby/plugins/configurations` folder. I don't use VPN for Emby. I have HTTPS. Trakt sync stop working some time ago maybe when I add Premiere subscription. regards.
Przemek 70 Posted May 20, 2021 Author Posted May 20, 2021 I add new account in Trakt.tv in my another email in different web browser (firefox) and now it works. I have that old account on gmail and it's public. I don't have idea what may cause that errors Thanks for help. Regards.
Przemek 70 Posted May 20, 2021 Author Posted May 20, 2021 I have small issue that after connect new account my status of unfinished is gone. But can live with that Regards.
Przemek 70 Posted May 21, 2021 Author Posted May 21, 2021 Hi, @Luke I noticed today that new added movie is not displayed in my library as new added movie. I see data and it set as 22.02.2021 not today. This is related to my Trakt issue? Regards.
Luke 42077 Posted May 21, 2021 Posted May 21, 2021 Just now, Przemek said: Hi, @Luke I noticed today that new added movie is not displayed in my library as new added movie. I see data and it set as 22.02.2021 not today. This is related to my Trakt issue? Regards. Hi there, please go over an example: Thanks.
vdatanet 1617 Posted May 21, 2021 Posted May 21, 2021 35 minutes ago, Przemek said: Hi, @Luke I noticed today that new added movie is not displayed in my library as new added movie. I see data and it set as 22.02.2021 not today. This is related to my Trakt issue? Regards. In Library - Advanced, what's your value for option "Added date behavior for new content"
Przemek 70 Posted May 21, 2021 Author Posted May 21, 2021 9 minutes ago, vdatanet said: In Library - Advanced, what's your value for option "Added date behavior for new content" Hi @vdatanetI have there date of make file. I change it to date of add to library. Maybe that helps. I don't have that problem before Thanks. regards
vdatanet 1617 Posted May 21, 2021 Posted May 21, 2021 8 minutes ago, Przemek said: Hi @vdatanetI have there date of make file. I change it to date of add to library. Maybe that helps. I don't have that problem before Thanks. regards I don't think Trakt affects the added date, it affects the watched date.
Przemek 70 Posted May 22, 2021 Author Posted May 22, 2021 Now I see also Emby don't remember watched progress. It start movie/series from beginning not moment I stop watching. regards.
vdatanet 1617 Posted May 22, 2021 Posted May 22, 2021 Check the resume properties on the library, maybe you haven't watch enough to create a resume point
Przemek 70 Posted May 22, 2021 Author Posted May 22, 2021 I have half of tv series watched and Emby show me that but when I start it play from beginning. Now I see it works OK. I remove Emby xml plugin. Maybe that was reason. Thanks for help. Regards.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now