Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plex fails to connect using production server, but works with dev server #140

Open
brando56894 opened this issue Jun 2, 2024 · 0 comments

Comments

@brando56894
Copy link

Like other users, I've run into the issue where Cleanarr fails to connect to Plex for an unknown reason (Failed to load content!
Please check your Plex settings and try again). The logs weren't giving me any useful info, the firefox dev console just told me the connection timed out, and curl worked fine within the container itself, so it was an issue specific to Cleanarr itself.

I'm not too familiar with Flask, but after a bit of trial and error, I managed to get the dev server up and running, and exposed to my LAN. I was hoping for more useful errors regarding what the actual issue was, but to my surprise it worked without issue!

For anyone else interested in testing this out, I added the following to entry-point.sh within the container and bound port 5000 in the container to port 4999 (since the Cleanarr production server is using port 5000 on the host), then I restarted the container and connected to port 4999 on my server.

PLEX_BASE_URL="http://YOUR-IP:32400" PLEX_TOKEN="YOUR-TOKEN" LIBRARY_NAMES="Movies" PLEX_TIMEOUT="7200" FLASK_APP=main python -m flask run --host=0.0.0.0

I'm using the compose file from the git readme, the only thing I modified were the plex env vars and the volume bind, so I'm not sure why the prod server doesn't connect to plex but the dev server works without issue, I even deleted a duplicate just to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant