H
Homarr15mo 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
thomasOP15mo 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
Manicraft100115mo ago
What URL did you set for Plex?
Odin-M1Cypher
Odin-M1Cypher15mo ago
Change it to 192.168.0.141:32400/web/index.html#!
Manicraft1001
Manicraft100115mo ago
Discord auto formats it. Does it end with a / or not?
thomas
thomasOP15mo ago
sorry no it doesnt end with a /
Manicraft1001
Manicraft100115mo ago
No, don't change it to that
Odin-M1Cypher
Odin-M1Cypher15mo ago
Ah that is how I got it to work.
Manicraft1001
Manicraft100115mo ago
Is there any further information in the log @Tomma ?
Odin-M1Cypher
Odin-M1Cypher15mo ago
My current media streams isn't working so I am following this. I'll shutup. Sorry.
thomas
thomasOP15mo 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
Manicraft100115mo 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
thomasOP15mo ago
sorry how do i do that? I'm still relativley new to docker
Manicraft1001
Manicraft100115mo 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
thomasOP15mo 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
Manicraft100115mo ago
What does your setup look like? Where do you run Plex? Do you use compose?
thomas
thomasOP15mo 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
Manicraft100115mo 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
thomasOP15mo 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
Serenaphic
Serenaphic15mo 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_suspect15mo 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.
Serenaphic
Serenaphic15mo 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
thomas15mo 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?
Serenaphic
Serenaphic15mo 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
Manicraft100115mo 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).
Serenaphic
Serenaphic15mo ago
Yeah in the next version, that's a fix for this version x)
#GZGA
#GZGA15mo 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?
Serenaphic
Serenaphic15mo 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
Deku15mo ago
hi! do you still need help with plex ?
Want results from more Discord servers?
Add your server