Skip to content

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

@brando56894

Description

@brando56894

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions