Plex integration not working
I'n trying to set up plex integration with homarr. I enter the auth token into the correct place, and when i click the plex icon it takes me to the local server page, so i assume thats set up properly. Plex logs show something about an invalid handshake, any ideas?
Solution:Jump to solution
Hey sorry for not updating, like I said the actual Plex icon still has the red dot rather than the other green ones but the actual now playing widget thing seems to be working. I'm not sure what did it as I don't recall making any changes to configs or anything, is there some way I can help?
30 Replies
Hi, please post your log.
https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log
❓ Frequently Asked Questions | Homarr Docs
Can I install Homarr on a Raspberry Pi?
ERROR failed to communicate with media server 'Plex' (1dc1e6d4-cb52-4b19-b1c5-3a559cec1300): TypeError: fetch failed
is that what you're looking for?
What URL did you set for Plex?
Change it to 192.168.0.141:32400/web/index.html#!
Discord auto formats it. Does it end with a / or not?
sorry no it doesnt end with a /
No, don't change it to that
Ah that is how I got it to work.
Is there any further information in the log @Tomma ?
My current media streams isn't working so I am following this. I'll shutup. Sorry.
I checked again, theres more now
ERROR failed to communicate with media server 'Plex' (1dc1e6d4-cb52-4b19-b1c5-3a559cec1300): TypeError: fetch failed
ERROR Unexpected response: connect ECONNREFUSED 127.0.1.1:8181
ℹ Saving updated configuration of 'default' config.
ERROR Unexpected response: connect ECONNREFUSED 127.0.1.1:8181
Okay. It makes me believe, that Homarr maybe is not allowed to connect in your setup. Can you enter the console of the container and do a quick wget / curl to the Plex URL?
sorry how do i do that? I'm still relativley new to docker
docker exec -it <mycontainer> bash
(maybe sh if bash doesn't work).
Google is your friend 😉
https://stackoverflow.com/a/30173220
Stack Overflow
How do I get into a Docker container's shell?
I'm getting started working with Docker. I'm using the WordPress base image and docker-compose.
I'm trying to ssh into one of the containers to inspect the files/directories that were created duri...
couldnt use curl but wget worked
Connecting to 127.0.1.1:8181 (127.0.1.1:8181)
wget: can't connect to remote host (127.0.1.1): Connection refused
I have no idea how to give it access
What does your setup look like? Where do you run Plex? Do you use compose?
pretty sure i used compose, everything else is just running not in docker containers
it can access stuff like sonarr and radarr fine though
@Tag do you want to look at this? It's obvious to me at this point that OP's setup does not allow Homarr to connect. Perhaps the compose default isolation (network) is to blame.
@Tomma please provide the compose for Homarr / Plex. I didn't get from your message, where you run what.
Sorry if i wanst clear. The only thing running in a docker container. Plex/sonarr/radarr etc are all just running bare metal
sorry something really weird happened, the actual plex icon still is red, but the now playing widget thing seems to be working now
no idea why or what changed
Hi I may be able to help. Go in plex's settings -> Network -> secure connections -> Preferred
Also, make sure that you get the token by navigating plex in your browser through the server IP
Lastly, try to wget -S on plex's IP (192.168.0.141:32400), not 127.0.1.1.
(But you can get a similar test a bit easier, if you go on homarr's page, settings -> Customizations -> Layout -> Enable pings, a little red or green bubble will appear on each of your apps, hoverring the bubble will give you a code. On Plex if you get 401 that is the expected result)
I am on the same boat and confirmed the container can reach the URLs. I can't get it to work for AdGuard or Plex or any integration.
Sorry for the delay, please make your own #💬・get-help post as your problem may not be the same (if you haven't resolved it yet)
@Tomma Have you been able to resolve the issue? Could you please point out what fixed it if you did?
Solution
Hey sorry for not updating, like I said the actual Plex icon still has the red dot rather than the other green ones but the actual now playing widget thing seems to be working. I'm not sure what did it as I don't recall making any changes to configs or anything, is there some way I can help?
Oh if the ping is red, hover over the bubble, if the code is 401 or 403, that is normal and you just need to add them in the network tab of the app
JFYI:
dev
should now make the dot green again for Plex. I added a simple fix that automatically adjusts the URL so no additional configuration is needed.
@Tag not sure if you're aware of this fix but all the red dots for Plex should go away with the next version (if they are related to the access denied).Yeah in the next version, that's a fix for this version x)
Hello, didn't want to hijack the thread. But I can't seem to get the plex integration working either. The media server widget doesn't show any active streams, but I do get the green dot on the icon and I have added the plex token in the API key section as instructed. Is there anything more I would need to do?
Follow the steps to get the token starting from accessing the page through the ip you are using for internal address @mallugamer4k , also I already said that earlier, please make your own #💬・get-help post, refering this one in it if necessary.
hi!
do you still need help with plex ?