causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.19k stars 291 forks source link

Get Plex Machine #850

Closed justinglock40 closed 6 years ago

justinglock40 commented 6 years ago
Organizr Version: V2
Branch: Develop-V2
WebSever: Caddy
Operating System: Windows

Problem Description:

Get Plex Machine ID button does not list the actual plex servers for selection. Nothing gets listed just says choose plex machine


Reproduction Steps:

click get plex machine "retrieve" button


Errors on screen? If so paste here:

justinglock40 commented 6 years ago
screenshot at may 05 08-36-57
causefx commented 6 years ago

Is the token valid above this?

Sent from my iPhone

On May 5, 2018, at 6:37 AM, justinglock40 notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

justinglock40 commented 6 years ago

Yea I entered my Plex credentials and it pulled the token itself

causefx commented 6 years ago

are there any errors in console?

also can you try this url? replace token with yours:

https://plex.tv/pms/servers?X-Plex-Token=xxxxxxxxxx

justinglock40 commented 6 years ago

I ended up just copying the machine ID block from ombi and all is well. I have problems getting the php mailer connected though. I’m trying to connect Gmail.

On May 6, 2018, at 15:50, causefx notifications@github.com wrote:

are there any errors in console?

also can you try this url? replace token with yours:

https://plex.tv/pms/servers?X-Plex-Token=xxxxxxxxxx https://plex.tv/pms/servers?X-Plex-Token=xxxxxxxxxx — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386912472, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90Y4eDLYDTnHvWGoj2N-1UdfgKkyAks5tv2H5gaJpZM4Tzo9m.

causefx commented 6 years ago

Let me check my gmail settings and will get back to u

Sent from my iPhone

On May 6, 2018, at 1:51 PM, justinglock40 notifications@github.com wrote:

I ended up just copying the machine ID block from ombi and all is well. I have problems getting the php mailer connected though. I’m trying to connect Gmail.

On May 6, 2018, at 15:50, causefx notifications@github.com wrote:

are there any errors in console?

also can you try this url? replace token with yours:

https://plex.tv/pms/servers?X-Plex-Token=xxxxxxxxxx https://plex.tv/pms/servers?X-Plex-Token=xxxxxxxxxx — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386912472, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90Y4eDLYDTnHvWGoj2N-1UdfgKkyAks5tv2H5gaJpZM4Tzo9m.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

causefx commented 6 years ago

Here ya go:

image

Test button works with these settings and email center works too

justinglock40 commented 6 years ago

I get this message after double checking everything? At the bottom right. Is there something else that needs to be enabled in PHP.ini?

screenshot at may 06 16-39-06
justinglock40 commented 6 years ago

Also what is the domain link override for?

causefx commented 6 years ago

Have u enabled insecure apps in google settings? And the override link is for placing a certain domain for links in email.

justinglock40 commented 6 years ago

Yea it says that it is on (https://mail.edison.tech/chat-invite.html?invitorName=Justin%20Washington&invitorEmail=justinglock40@gmail.com&message=Yea%20it%20says%20that%20it%20is%20on&mid=6248fe2fead2492093dc2a54d0a888dd&group=Author;author@noreply.github.com,causefx/Organizr;reply@reply.github.com,causefx/Organizr;organizr@noreply.github.com)

Sent With Edison Mail

On May 6, 2018 at 17:16, <causefx (mailto:notifications@github.com)> wrote:

Have u enabled insecure apps in google settings? And the override link is for placing a certain domain for links in email.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/causefx/Organizr/issues/850#issuecomment-386921032), or mute the thread (https://github.com/notifications/unsubscribe-auth/AWD90V31AqyDtmAYNFqJzUA7e5oL6KlKks5tv3YkgaJpZM4Tzo9m).

causefx commented 6 years ago

What OS are you on?

justinglock40 commented 6 years ago

Windows 10 (https://mail.edison.tech/chat-invite.html?invitorName=Justin%20Washington&invitorEmail=justinglock40@gmail.com&message=Windows%2010&mid=2dd150c10d0346829417e8b734c40766&group=Author;author@noreply.github.com,causefx/Organizr;reply@reply.github.com,causefx/Organizr;organizr@noreply.github.com)

Sent With Edison Mail

On May 6, 2018 at 21:49, <causefx (mailto:notifications@github.com)> wrote:

What OS are you on?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/causefx/Organizr/issues/850#issuecomment-386943111), or mute the thread (https://github.com/notifications/unsubscribe-auth/AWD90YNsou0pT-7TGdTZs6rHsvQVI-qIks5tv7YqgaJpZM4Tzo9m).

causefx commented 6 years ago

Do you have valid cert file?

causefx commented 6 years ago

i.e.

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = "C:\nginx\php\cacert.pem"
justinglock40 commented 6 years ago

Cert file??? (https://mail.edison.tech/chat-invite.html?invitorName=Justin%20Washington&invitorEmail=justinglock40@gmail.com&message=Cert%20file???&mid=d7fc8c5e56724a32bc31f602db2ba743&group=Author;author@noreply.github.com,causefx/Organizr;reply@reply.github.com,causefx/Organizr;organizr@noreply.github.com)

Sent With Edison Mail

On May 6, 2018 at 21:51, <causefx (mailto:notifications@github.com)> wrote:

Do you have valid cert file?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/causefx/Organizr/issues/850#issuecomment-386943372), or mute the thread (https://github.com/notifications/unsubscribe-auth/AWD90R9qk-dKhxwJOGiFqnRRLX6zazCTks5tv7atgaJpZM4Tzo9m).

justinglock40 commented 6 years ago

Using caddy not NGINX (https://mail.edison.tech/chat-invite.html?invitorName=Justin%20Washington&invitorEmail=justinglock40@gmail.com&message=Using%20caddy%20not%20NGINX&mid=982ee8c1c3c74ae9aa47814027f72870&group=causefx/Organizr;organizr@noreply.github.com,Author;author@noreply.github.com,causefx/Organizr;reply@reply.github.com)

Sent With Edison Mail

On May 6, 2018 at 21:51, <causefx (mailto:notifications@github.com)> wrote:

i.e.

[curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. curl.cainfo = "C:\nginx\php\cacert.pem"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/causefx/Organizr/issues/850#issuecomment-386943440), or mute the thread (https://github.com/notifications/unsubscribe-auth/AWD90SYon4t9KKhQHzRPZ8ERAz11Raxnks5tv7bOgaJpZM4Tzo9m).

causefx commented 6 years ago

Download from here:

https://curl.haxx.se/ca/cacert.pem

place in php folder...

find curl.cainfo = "" in php.ini file

replace with curl.cainfo = "C:\nginx\php\cacert.pem"

justinglock40 commented 6 years ago

Even if I’m not using NGINX? (https://mail.edison.tech/chat-invite.html?invitorName=Justin%20Washington&invitorEmail=justinglock40@gmail.com&message=Even%20if%20I%E2%80%99m%20not%20using%20NGINX?&mid=5a1afb1c16c44d6faf5a6bb6b14c04e5&group=Author;author@noreply.github.com,causefx/Organizr;reply@reply.github.com,causefx/Organizr;organizr@noreply.github.com)

Sent With Edison Mail

On May 6, 2018 at 21:53, <causefx (mailto:notifications@github.com)> wrote:

Download from here:

https://curl.haxx.se/ca/cacert.pem

place in php folder...

find curl.cainfo = "" in php.ini file

replace with curl.cainfo = "C:\nginx\php\cacert.pem"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/causefx/Organizr/issues/850#issuecomment-386943644), or mute the thread (https://github.com/notifications/unsubscribe-auth/AWD90TN3CtVKlEcz9HWXK_tmtccgBJZPks5tv7czgaJpZM4Tzo9m).

causefx commented 6 years ago

this is php, it's regardless of webserver

justinglock40 commented 6 years ago

Still no go

On May 6, 2018, at 21:55, causefx notifications@github.com wrote:

this is php, it's regardless of webserver

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386943850, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90byAv4M03zq-c8cLgMbGff3y3cvzks5tv7eWgaJpZM4Tzo9m.

causefx commented 6 years ago

did yea restart php and caddy just in case

justinglock40 commented 6 years ago

Yep still nothing. Just says can not connect to host.

On May 6, 2018, at 22:03, causefx notifications@github.com wrote:

did yea restart php and caddy just in case

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386944840, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90WclKRQL_pyTlGJI9YG_6ffOZp2Mks5tv7mIgaJpZM4Tzo9m.

causefx commented 6 years ago

is this line commented out in php.ini?

extension=php_openssl.dll

justinglock40 commented 6 years ago

Yea it’s setup correctly. I switched from gmail to iCloud and it worked.

On May 6, 2018, at 22:05, causefx notifications@github.com wrote:

is this line commented out in php.ini?

extension=php_openssl.dll

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386945094, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90dFZljBG6a0rTkJuhDQcEpSla8rcks5tv7oLgaJpZM4Tzo9m.

justinglock40 commented 6 years ago

What is the domain link override meant for?

On May 6, 2018, at 22:05, causefx notifications@github.com wrote:

is this line commented out in php.ini?

extension=php_openssl.dll

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386945094, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90dFZljBG6a0rTkJuhDQcEpSla8rcks5tv7oLgaJpZM4Tzo9m.

justinglock40 commented 6 years ago

I have one more issue. the Open Invite Modal button doesn’t work for me in the media invites plugin

On May 6, 2018, at 22:05, causefx notifications@github.com wrote:

is this line commented out in php.ini?

extension=php_openssl.dll

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386945094, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90dFZljBG6a0rTkJuhDQcEpSla8rcks5tv7oLgaJpZM4Tzo9m.

causefx commented 6 years ago

for links in the emails, such as invite codes and links back to your own Organizr.

Organizr will use whatever is in webserver servername, but you can override with what ever you want.

causefx commented 6 years ago

i still need to fix that, for now refresh pate and click it here: image

justinglock40 commented 6 years ago

Alright cool thanks.

On May 6, 2018, at 22:11, causefx notifications@github.com wrote:

i still need to fix that, for now refresh pate and click it here: https://user-images.githubusercontent.com/16184466/39683324-b0ef1af0-5169-11e8-83f0-fb0963e4bf1c.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-386945869, or mute the thread https://github.com/notifications/unsubscribe-auth/AWD90fPqgc_5TIe0jg3PD5jeiToMVHECks5tv7twgaJpZM4Tzo9m.

kcwebby commented 5 years ago

So I am having the same issue with the getting of machine ID. Same results as the prior poster. Can we verify this works? (I'm not worried about the email, or the managing of invites now, my issue is related to being able to use Plex Logins to login).

I will say, that importing the users worked, and I also attempted to do the plex.tv/pms/servers suggestion from above, and was able to get my machine ID that way -- but when pasted in, I am still unable to log in, and the "get machine ID" function of the app does seem broken.

I do get a OAuth Success on attemping to login with my plex account, but then Organizr pops up at the bottom and says invalid username/password .

causefx commented 5 years ago

does oAuth work for either you or one of your users?

kcwebby commented 5 years ago

I've just installed it -- Plex works throughout the app, but not for my oauth login. I'll have to get with a user to see if they can try it, but right now, its only accessible inside my network.

With recommendations during setup, I made my username match my plex username, and email match the email used for plex signup. Like I stated, I get the oauth success message, then a few seconds later, I get a username/password combo wrong error.

image

Also regarding the get machine ID... I've noticed this also is not working for another software, so I wonder if there have been some Plex Side changes that would require adaptation to work. Thanks!

causefx commented 5 years ago

Is you username the plex admin? if so, did you add the plex username to the settings field for admin?

kcwebby commented 5 years ago

Yes to both -- I had seen that somewhere, and made sure, as well -- during setup it suggested making it the same.. Right now, even my password syncs up with my Plex Password.

I'm a old Plex user, my username was just a name, then converted to an email, on plex website, both still work. I have tried it both ways in the settings and neither works.

causefx commented 5 years ago

Can you check and see what the organizr logs say?

kcwebby commented 5 years ago

from my login just now: the Transmission error, I know about, I have it shut down currently.

The failure was the oauth, and then I login using the internal account.

Updated: image

On Sun, Dec 30, 2018 at 10:36 PM causefx notifications@github.com wrote:

Can you check and see what the organizr logs say?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-450607453, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTZAjpPmJPTxRP8PxyUmT1c6_QRal60ks5u-ZQ-gaJpZM4Tzo9m .

causefx commented 5 years ago

No image came through

kcwebby commented 5 years ago

I guess it doesn't auto-attach from emails -- Updated the post via the web. image

causefx commented 5 years ago

image

Were these two from the exact same login or was one oauth and the other normal?

kcwebby commented 5 years ago

the first was the Oauth plex login (with the oauth successful banner), and second was the internal account

On Wed, Jan 2, 2019 at 12:44 PM causefx notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/16184466/50606657-c16a8900-0e83-11e9-9147-4aeff7473090.png

Were these two from the exact same login or was one oauth and the other normal?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-450947600, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTZApl4qvomzxwwceM2Gj0Bk53wMboBks5u_P4jgaJpZM4Tzo9m .

causefx commented 5 years ago

CAn you screenshot this section: image

kcwebby commented 5 years ago

Sure -- looks exactly like yours :)

on a side note, I did just re-try the get plex machine routine, and it worked this time, showing my server... but it had no effect on the ability to login with my plex account.

image

causefx commented 5 years ago

update organizr manually, and goto page above and turn off new toggle.

kcwebby commented 5 years ago

Can you force it to update in a docker? I'm using the linuxserver.io docker currently.

On Fri, Jan 4, 2019 at 12:16 PM causefx notifications@github.com wrote:

update organizr manually, and goto page above and turn off new toggle.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-451524430, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTZAlksmCxOLLL2HegUbzfEPsUy7WdEks5u_5qSgaJpZM4Tzo9m .

causefx commented 5 years ago

linux server doesn’t have a v2 docker image. how did u get v2?

kcwebby commented 5 years ago

oh my bad, that's right, theirs was v1. I'm using this organizrtools/organizr-v2

On Fri, Jan 4, 2019 at 12:43 PM causefx notifications@github.com wrote:

linux server doesn’t have a v2 docker image. how did u get v2?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-451531451, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTZAiRCkE6gUjiEHApvOsAXgn1ynCdLks5u_6DOgaJpZM4Tzo9m .

causefx commented 5 years ago

ok just restart the container

kcwebby commented 5 years ago

Updated -- saw the pull in the log. Disabled the strict friends, no joy on login. enabled strict friends -- no joy on login. Both attempts with the Plex admin user.


| Updating Organizr |

HEAD is now at 2956037 Added official docker check From https://github.com/causefx/Organizr 2956037..dc93048 v2-develop -> origin/v2-develop Updating 2956037..dc93048 Fast-forward api/config/default.php | 3 ++- api/functions/auth-functions.php | 10 +++++++--- api/functions/organizr-functions.php | 8 ++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) Current branch v2-develop is up to date. [cont-init.d] 30-install: exited 0. [cont-init.d] 30-keygen: executing... using keys found in /config/keys [cont-init.d] 30-keygen: exited 0. [cont-init.d] 60-config: executing... [cont-init.d] 60-config: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done.

On Fri, Jan 4, 2019 at 12:55 PM causefx notifications@github.com wrote:

ok just restart the container

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/causefx/Organizr/issues/850#issuecomment-451534865, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTZAqRUs43NpWyLAcNHQ-17YYlCY8Afks5u_6OpgaJpZM4Tzo9m .

causefx commented 5 years ago

screenshot this section: image