Logs flooded with error delivering webhook payloads to Trakt

Server Version#: 1.29.0.6219
Player Version#: Any

I’m curious if this is indicative of anything I should be attempting to resolve with my PMS deployment. Within the last few weeks, I started seeing the Plex Media Server.log flooded with errors delivering payloads to Trakt using webhooks. The delivery to Trakt seems fine as my play history shows up when I watch and when I check out my scrobbler config at Trakt, it’s updating in-line with what’s happening on my server (image below).

My main concern is with the sheer amount of logging as debug and trace logging are disabled. See below for a snippet for 4 seconds. Is this normal? I’m concerned it could be indicative of sluggishness we see that seem database related (1.6GB DB running on less than a year old NVME drive).

Sep 20, 2022 12:25:52.004 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.033 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.118 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.165 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.227 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.288 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.337 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.403 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.461 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.517 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.610 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.660 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.744 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:52.927 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.117 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.125 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.245 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.252 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.362 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.515 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.516 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.633 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.658 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.751 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.769 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.864 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.880 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.988 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:53.999 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.100 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.121 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.222 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.257 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.342 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.389 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.456 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.500 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.570 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.614 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.683 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.814 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.857 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.926 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:54.970 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.051 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.086 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.169 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.197 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.295 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.386 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.425 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.498 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.537 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.629 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.665 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.741 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.777 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.858 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.891 [0x7fb84b38ab00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406
Sep 20, 2022 12:25:55.978 [0x7fb82ab6fb00] WARN - Webhook: Error delivering payload to https://scrobblers.trakt.tv/plex/<REDACTED>/<REDACTED>: 406

Trakt is returning an HTTP 406 (Not Acceptable). This generally indicates that the server (Trakt) doesn’t like something about the client’s (Plex) Accept: header in the request. You’d need to check with Trakt however for specific guidance as to what is wrong (why are they returning a 406?). Server’s have been known to misuse HTTP response codes, so it could be something else entirely.

Thanks for the information @pshanew !

I’m still concerned by the sheer amount of logging that Plex does with these changes. It happens frequently (tens of times per hour), spikes CPU usage for the Plex Media Server process and can be felt when interacting with Plex from a client (sluggish responses that can amount to 10+ seconds).

I’ve been keeping up with updates so my server version is now 1.29.1.6260. I’ve continued seeing this on every version that’s released over the last month (at a minimum).

Have a read through this thread:

In particular, the four or five posts describe proxying Plex’s webhooks via either Tautulli or a user-developed proxy for that purpose. I’m not sure either would help in your situation, but it may be worth considering.

1 Like

I think the user-developed service would work fine, but I also found Tautulli wonderfully simple to set up. As an added bonus, I don’t even need to parse JSON at the destination because Tautulli has built in filters. This is actually an important point, OP. Do you maybe have a few webhooks and multiple users? I did not understand that Plex will trigger all of the webhooks for basically any action by any users. The latter part was most surprising. I found this out when I was sipping my morning coffee and suddenly my lights dimmed. I hopped on the server and found that my sister (on the other side of the world) had started watching a show… Whoops. With tautulli, I can just filter other users out before triggering.

Thanks for sharing this! I went the route of Tautulli as I’ve had it setup and running for years. The main thing I’ll miss about the native webhook integration is rating syncing from Plex to Trakt.

Sadly, I still see the Plex Media Server process pegging the CPU when it seems like it shouldn’t. For instance, right now there are two /usr/lib/plexmediaserver/Plex Media Server processes that have been pegged at 99-100% for the last half hour with no one streaming and video previews being generated for a single file at a time (via it’s own Plex Transcoder process). With verbose logging enabled, I don’t see anything jumping out that should lead to it so I remain suspicious about what exactly is causing the CPU spikes. I do think I’m in a small percentage of users in terms of library size at 650TB across over 200,000 individual titles (episodes, movies, tracks, etc). That makes me wonder if I’m nearing a theoretical max for Plex usage in some way.

If anyone has thoughts on this, I’d love to hear them but I appreciate all of the help around the webhook implementation and am glad to have taken that out of the mix.

Thanks for this additional context! I was only using the one Trakt webhook and it has always captured my watching/rating while eschewing friends with access to my libraries. I went with this script for my implementation as I couldn’t find truly native implementation details. Have you done something similar or is there a better method that just uses Tautulli and Plex without a third-party script? Thanks for any tips you may have!

Update: Verbose logging started throwing tons of logs about notifications out to users with access to my libraries for new content on the server. I went and disabled push notifications in general settings and immediately saw the CPU usage drop for those Plex Media Server processes. If the pegged CPU spiking returns, I’ll update this thread but I’m hoping this may have been the culprit.

I’m by no means an expert on this because it just started using Tautulli and I don’t use Trakt. This looks to be using Plex native to Trakt. Not sure if it’s helpful or not.

Yea, this is what I’ve ended up switching off as it’s where the logs in the base of this thread were coming from. Tautulli ftw here. With the exception of ratings not syncing from Plex to Trakt, everything works as I’d expect and my server is way more responsive and reliable thus far. I think push notifications (which is required to be enabled for webhooks to be enabled) were where my issues were stemming from.

1 Like

Good to know! Glad you got it figured out.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.