H
Homarr9mo ago
Thomas

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:
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?
Jump to solution
30 Replies
Thomas
Thomas9mo ago
ERROR failed to communicate with media server 'Plex' (1dc1e6d4-cb52-4b19-b1c5-3a559cec1300): TypeError: fetch failed is that what you're looking for?
Manicraft1001
Manicraft10019mo ago
What URL did you set for Plex?
Odin-M1Cypher
Odin-M1Cypher9mo ago
Change it to 192.168.0.141:32400/web/index.html#!
Manicraft1001
Manicraft10019mo ago
Discord auto formats it. Does it end with a / or not?
Thomas
Thomas9mo ago
sorry no it doesnt end with a /
Manicraft1001
Manicraft10019mo ago
No, don't change it to that
Odin-M1Cypher
Odin-M1Cypher9mo ago
Ah that is how I got it to work.
Manicraft1001
Manicraft10019mo ago
Is there any further information in the log @Tomma ?
Odin-M1Cypher
Odin-M1Cypher9mo ago
My current media streams isn't working so I am following this. I'll shutup. Sorry.
Thomas
Thomas9mo ago
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
Manicraft1001
Manicraft10019mo ago
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?
Thomas
Thomas9mo ago
sorry how do i do that? I'm still relativley new to docker
Manicraft1001
Manicraft10019mo ago
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...
Thomas
Thomas9mo ago
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
Manicraft1001
Manicraft10019mo ago
What does your setup look like? Where do you run Plex? Do you use compose?
Thomas
Thomas9mo ago
pretty sure i used compose, everything else is just running not in docker containers it can access stuff like sonarr and radarr fine though
Manicraft1001
Manicraft10019mo ago
@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.
Thomas
Thomas9mo ago
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
Tag
Tag9mo ago
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)
de_suspect
de_suspect8mo ago
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.
Tag
Tag8mo ago
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
Thomas
Thomas8mo ago
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?
Tag
Tag8mo ago
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
Manicraft1001
Manicraft10018mo ago
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).
Tag
Tag8mo ago
Yeah in the next version, that's a fix for this version x)
#MG4K
#MG4K8mo ago
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?
Tag
Tag8mo ago
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.
Deku
Deku8mo ago
hi! do you still need help with plex ?