Hellowlol / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
MIT License
344 stars 48 forks source link

Plex integration not working - Unable to contact Plex - error No JSON object could be decoded #522

Closed blade316 closed 7 years ago

blade316 commented 7 years ago

Reporting Issues:

Updater Git BRANCH master2 Current commit 4e2cd8477f3df01ef894801470cf7360c0e6fbe6 Auto update True RUNDIR /app/htpcmanager DATADIR /config DB /config/database.db WEBDIR / AUTH True LOGLEVEL debug locale UTF-8 ARGS --datadir /config OS Linux-4.4.30-unRAID-x86_64-with Python version: 2.7.12 (default, Jun 29 2016, 08:57:23) [GCC 5.3.0]

Link to log:

htpcmanager-2.txt

Hellowlol commented 7 years ago

The link to the log return 404. Please fix it.

derrickmehaffy commented 7 years ago

I too am having this issue, which log are you looking for the one under userdata/htpcmanager.log

derrickmehaffy commented 7 years ago

Link to htpcmanager.log under userdata http://pastebin.com/j5ePPhp5

Also attached file:

htpcmanager.txt

Fma965 commented 7 years ago

@Hellowlol this is the issue i had last night or whenever it was, fixed it by restarting HTPC manager and plex after adding the server to htpc-manager, obviously its still an issue but just letting you know.

blade316 commented 7 years ago

@Fma965 I have tried restarting Plex and HTPC manager many times, unfortunately it doesn't fix it

blade316 commented 7 years ago

@Hellowlol sorry about that, I'm not sure why my log didn't attach properly. uploaded to pastebin now.

http://pastebin.com/QSmie6x1

blade316 commented 7 years ago

@Hellowlol also I'm running the latest Plex, version 1.3.3.3148

Fma965 commented 7 years ago

I also added my unraid server ip to the plex server settings under I belive the network section, the allowed ip address section. Not sure this solves it or not.

On Wed, 11 Jan 2017, 00:23 Daniel McGoldrick, notifications@github.com wrote:

@Hellowlol https://github.com/Hellowlol also I'm running the latest Plex, version 1.3.3.3148

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/522#issuecomment-271740794, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoNGu_B1Wa6GKMKdznxFfhoxfxxgsTYks5rRCDvgaJpZM4Lfb2V .

Fma965 commented 7 years ago

http://i.imgur.com/30CFQfs.jpg

No idea if this is needed or not but that an restarting were only thing I did on unraid 6.2.4

blade316 commented 7 years ago

@Fma965 yeah I have already added my whole internal network (192.168.2.0/24) into "List of IP addresses and networks that are allowed without auth" and disabled secure connections in Plex settings. Unfortunately still no go.

Fma965 commented 7 years ago

Hmm well I'm not a dev for this, I've done a few contributions etc... Just suggesting the things I've done previously, just to confirm which unraid plex docker are you using?

On Wed, 11 Jan 2017, 00:41 Daniel McGoldrick, notifications@github.com wrote:

@Fma965 https://github.com/Fma965 yeah I have already added my whole internal network (192.168.2.0/24) into "List of IP addresses and networks that are allowed without auth" and disabled secure connections in Plex settings. Unfortunately still no go.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hellowlol/HTPC-Manager/issues/522#issuecomment-271743694, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoNGqwkWoZwm_RJGu_rd2ktlpbT06wSks5rRCUpgaJpZM4Lfb2V .

blade316 commented 7 years ago

@Fma965

On your unRAID, which Plex docker are you using? I'm using the one from Linuxserver.

Are you using 'Host' or 'Bridge' for your network? I'm using 'Host' as 'Bridge' doesn't allow me to enable remote connections, as it doesn't recognise the IP address properly for some reason. I think that is a known issue. If I use 'Bridge' instead of getting 192.168.2.195 for my Plex IP, I get an IP address from the Docker internal network of 172.17.0.1, and Plex doesn't even function.

Fma965 commented 7 years ago

Im using Linuxserverio, my friend whos server I have completely configured for him is using plex by limetech both work fine with htpc manager, in fact my friends is literally a fresh plex install with ip whitefish and it works with htpc manager.

Can I get a screenshot of your plex server settings on htpc manager? I'm sure it's all correct just curious.

Sorry for lack of grammar etc using my phone

Fma965 commented 7 years ago

Just realised I never answered, yes I'm using host aswell as bridge is known as not working

blade316 commented 7 years ago
htpc plex settings
blade316 commented 7 years ago

@Fma965 also as I stated above, I have tried with and without my Plex username and password.

Fma965 commented 7 years ago

Yeah as expected that's fine, if you test it I presume it just errors? Not sure what else to suggest to be honest

blade316 commented 7 years ago

yeah just gives the same error over and over ..... one thing also is that when I use the 'Existing Server' dropdown box, instead of populating the IP with 192.168.2.195, it populates it with the what I think is the docker container IP address of 172.17.0.1. It shouldn't be an issue as I'm putting in my 192. address, but just noticed it.

Yeah I'm at a loss too as to what to do now .... I really appreciate you helping me though, thanks so much!

Hopefully Hellowlol can come up with something.

Fma965 commented 7 years ago

Good luck... I'll look in to it tomorrow after work but it's 1am now and I should be asleep haha, 172 auto populate isn't an issue as mine does this to. Maybe try a second plex docker just as a test, if you set a different config path and don't run them both at same time it shouldn't conflict.

blade316 commented 7 years ago

already did that, I tried the LimeTech docker, and it did the same thing.

Have a good sleep! :)

Fma965 commented 7 years ago

Have you pressed save and then restarted plex and then htpc manager after and then retested? That's the exact procedure I did but I don't think it will sort your issue.

blade316 commented 7 years ago

yes, many many times haha

blade316 commented 7 years ago

go to bed! :)

Fma965 commented 7 years ago

In that exact order.... OK I'm gone ;)

Hellowlol commented 7 years ago

I dont know why this isnt working for you. Ill post my my settings. Using brigde i had to manually enter the correct ip in the plex settings page. Click save then restart htpc manger

image

image

blade316 commented 7 years ago

fyi - i have just updated to the latest HTPC manager cb59c05ef3076cfe5d40034f44a6ee599c3f6551 and Plex integration is now working

Hellowlol commented 7 years ago

@blade316 thanks for the feedback.