petio-team / petio

Petio Request, Discover, Review
https://petio.tv
MIT License
253 stars 28 forks source link

Plex server connect failure && cannot manually set the status of a request. #524

Closed bendini20 closed 2 years ago

bendini20 commented 3 years ago

Describe the bug Petio can no longer connect to my Plex server, therefore it cannot tell when a request has been fulfilled or not. I try to re-login with Plex, and it will say config loaded...and then say test failed. Furthermore, I was willing to manually set the status of requests until the bugs were fixed, however when I try to do so, I cannot click save as the button is greyed out.

To Reproduce Steps to reproduce the behavior:

  1. General
  2. Plex
  3. Login with Plex
  4. Test
  5. See error / failure

Expected behavior Test works and Petio can communicate with Plex, as well as being able to manually set request status.

Screenshots image image image

Desktop (please complete the following information): -Running on Docker in Unraid, Version 0.5.2-alpha

Additional context Looking at the logs, Petio is trying to contact Plex at the wrong docker IP since they are dynamic. There is no way to manually set Plex's IP in the Petio docker settings that I can see. Furthermore, this should not matter as the login token with Plex should be able to determine where the server is running at (IP-wise) and should be able to point Petio to the right docker IP. image

bendini20 commented 3 years ago

Update: The connection to Plex issue was resolved only by fully removing Mongo and Petio dockers and reinstalling them. I suppose when I setup Petio the first time, I selected the temporary Docker IP instead of the docker network hostname, meaning it was static. This should be reworked so that you could adjust the plex connection after-the-fact without having to re-install both dockers. Ombi allows the admin to manually adjust the server address and ports within the settings! The issue regarding manual request status setting still needs to be addressed as well.

tatzu commented 2 years ago

just if someone else having problem with needing to change the plex server adress. I found that you can edit the config.json file and there change the adress of the plex server.

AshDyson commented 2 years ago

just if someone else having problem with needing to change the plex server adress. I found that you can edit the config.json file and there change the adress of the plex server.

To add to this a Petio restart is required for it to take affect. As this was an issue relative to Plex / Petio connection and not a bug in Petio I will close this issue.