Taxel / PlexTraktSync

A python script that syncs the movies, shows and ratings between trakt and Plex (without needing a PlexPass or Trakt VIP subscription)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker run: Log in to Plex failed: (429) too_many_requests

jsb0227 opened this issue · comments

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

Unable to log in to Plex due to too many requests via API when initiating the a container via Docker

Steps to reproduce the behavior

  1. Created a new file docker-compose.yml based on the recommended setup
  2. Ran sudo docker compose run --rm plextraktsync sync

Error trace / logs

$ sudo docker compose run --rm plextraktsync sync
[sudo] password: 
INFO     PlexTraktSync [0.30.10]                                                                                                                                                                                                  
Please enter your Plex username or e-mail (): [my-plex-username]
Please enter your Plex password: [my-plex-password]
Enter a 2FA code if enabled, or leave blank otherwise: [blank]

CRITICAL Error running sync command: Log in to Plex failed: (429) too_many_requests; https://plex.tv/api/v2/users/signin <?xml version="1.0" encoding="UTF-8"?> <errors>   <error code="1003" message="API rate limit exceeded"   
         status="429"/> </errors>

Expected behavior

Expecting the next step of the configuration (select a Plex media server) - I was able to do this when configuring via pipx install

Inspect of problematic items

No response

Workarounds

When installing the app via pipx, everything works and I can log in to both Plex and Trackt. I can set up a cron job to schedule, so arguably, I have achieved what I needed here.
However, my preference would be to deploy it via Docker.

Config file contents

n/a

Install method

docker-compose

Version

0.30.10

Python Version

30.10.12

Plex Server Version

4.15.13

Operating System and Version

Ubuntu 22.04.4

While not seemingly related (to me at least), I ended up resolving this by stopping the container, setting it to Interactive + TTY as part of the console options (I did this via Portainer), and then starting the container again - this time the configuration ran through and completed.