# MyPlex failed login, account locked

**URL:** <https://forums.plex.tv/t/myplex-failed-login-account-locked/64767>\
**Category:** Apps & Creations\
**Created:** [April 26, 2014, 7:05pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767 "2014-04-26T19:05:54Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 26, 2014, 7:05pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/1 "2014-04-26T19:05:54Z")

</div>

I'm currently unable to login to MyPlex (which worked before) using the same credentials that are working on other devices. &nbsp;And every time it fails it's also locking my plex account, and I receive an email to unlock it.

Is anyone else seeing this issue? &nbsp;Is there a bug in PlexConnect which loops the authentication process and causes the account locking?

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [April 26, 2014, 7:09pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/2 "2014-04-26T19:09:35Z")

</div>

I think you are the only person to ever report this, are you able to provide details of any non standard character in your password?  
  
How are you entering your password, remote or iOS device?

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 26, 2014, 7:17pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/3 "2014-04-26T19:17:25Z")

</div>

It is a bug actually, here are some details. &nbsp;My password ends with the following characters, which are getting cut in half: xx

12:08:59 WebServer: PlexConnect options:

{'aTVAddress': '192.168.0.3', 'PlexConnectCredentials': 'login:password', 'aTVLanguage': 'en', 'PlexConnectUDID': 'UDIDhere', 'aTVScreenResolution': '1080', 'aTVFirmwareVersion': '6.1.1', 'PlexConnect': 'MyPlexLogin'}

12:08:59 WebServer: additional arguments:

Now you can see the second half of the end of the password is on the next line:

12:08:59 WebServer: serving .xml: /xx &nbsp;

12:08:59 XMLConverter: PlexConnect Cmd: MyPlexLogin

12:08:59 XMLConverter: PlexConnectChannelsSearch:

12:08:59 XMLConverter: MyPlex-\>Logging In...

12:09:01 PlexAPI: Authentication failed

&nbsp;

Note that I'm using the Synology PlexConnect package, last updated on 4/14.

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [April 26, 2014, 7:23pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/4 "2014-04-26T19:23:38Z")

</div>

This really smells like a bug. :-D

I guess you shouldn't use the "&" for now, as it usually divides the options-string...

Edit:

This is strange. The name/password is actually fed through "encodeURIComponent", which should convert the "&" in a safe way (see settings.js, line 198).

The options get decoded in WebServer.py, line 100, using unquote... which is supposed to turn the conversion back.

Edit:

Could you please provide another line form your logs? A couple of line up, under

WebServer: http request path:

The following line should show the complete address requested by aTV, I wonder what happened to the "&"...

It's fine for me, if you clean the UDID and password as you did before. :-)

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 26, 2014, 7:30pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/5 "2014-04-26T19:30:19Z")

</div>

I'm notorious for hitting/finding bugs that nobody else ever encounters, lol :(

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [April 26, 2014, 7:42pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/6 "2014-04-26T19:42:23Z")

</div>

Hm. Posted another "Edit" to my message above. Not sure if you missed it - when it came in at the same time as your last comment?

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 26, 2014, 7:44pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/7 "2014-04-26T19:44:41Z")

</div>

12:08:15 WebServer: cleaned path:

/js/settings.js

12:08:15 WebServer: PlexConnect options:

{'aTVScreenResolution': '1080', 'aTVFirmwareVersion': '6.1.1', 'aTVLanguage': 'en', 'aTVAddress': '192.168.0.3'}

12:08:15 WebServer: additional arguments:

&nbsp;

12:08:15 WebServer: serving /js/settings.js

12:08:59 WebServer: http request header:

Host: trailers.apple.com^M

X-Apple-Store-Front: 143441-1,19 ab:14CB2^M

Accept: \*/\*^M

Accept-Encoding: gzip, deflate^M

Accept-Language: en;q=0.9^M

Cookie: mz\_at0=AwQAAAEMAADDUgAAAABQdgwZ8MHMWcE7BFV9Ha8FW2bACpua+g8=; mz\_at0-106271644=AwQAAAEMAADEfAAAAABSafbx7jAFQDg7PQWBTUR9INpE2pMHEG8=; s\_vi=[CS]v1|27D01861050115D5-6000010A206161CF[CE]; X-Dsid=106271644^M

X-Apple-TV-Resolution: 1080^M

X-Apple-TV-Version: 6.1.1^M

User-Agent: iTunes-AppleTV/6.1.1 (3; 8GB; dt:12)^M

X-Forwarded-For: 192.168.0.3^M

X-Forwarded-Host: trailers.apple.com^M

X-Forwarded-Server: trailers.apple.com^M

Connection: Keep-Alive^M

&nbsp;

12:08:59 WebServer: http request path:

/&PlexConnect=MyPlexLogin&PlexConnectCredentials=login:password&PlexConnectUDID=F02HJ177DRHN

12:08:59 Localize: aTVLanguage: en

12:08:59 WebServer: pms address:

&nbsp;

12:08:59 WebServer: cleaned path:

/xx

12:08:59 WebServer: PlexConnect options:

{'aTVAddress': '192.168.0.3', 'PlexConnectCredentials': 'login:password', 'aTVLanguage': 'en', 'PlexConnectUDID': 'F02HJ177DRHN', 'aTVScreenResolution': '1080', 'aTVFirmwareVersion': '6.1.1', 'PlexConnect': 'MyPlexLogin'}

12:08:59 WebServer: additional arguments:

&nbsp;

12:08:59 WebServer: serving .xml: /

12:08:59 XMLConverter: PlexConnect Cmd: MyPlexLogin

12:08:59 XMLConverter: PlexConnectChannelsSearch:

12:08:59 XMLConverter: MyPlex-\>Logging In...

12:09:01 PlexAPI: Authentication failed

&nbsp;

There you go sir!

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [April 26, 2014, 7:58pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/8 "2014-04-26T19:58:43Z")

</div>

I really don't get why aTV's&nbsp;encodeURIComponent doesn't (seem to) encode the "&"...

What do we miss?

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 26, 2014, 8:05pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/9 "2014-04-26T20:05:31Z")

</div>

Note that this did work at one point, but something changed. &nbsp;I had to reinstall plexconnect due to a DSM update and I lost my previous settings, so I had to reenter my plex credentials again and bam.

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [April 26, 2014, 8:46pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/10 "2014-04-26T20:46:33Z")

</div>

> I'm notorious for hitting/finding bugs that nobody else ever encounters, lol :(

  
Our favourite kind of user [emoji12]

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [April 27, 2014, 5:04pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/11 "2014-04-27T17:04:31Z")

</div>

I did a check with my setup, tried to post a "&" through encodeURIComponent() and the http request lines... Everything seems to work as expected.

I wonder, if that has to do with Synology forwarding and possibly modifying/decoding the string again?

Edit: left a message to bwynants - our Synology expert. :-)

---

<div class="post-metadata">

**Author:** ![bwynants](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwynants/32/102771_2.png) [@bwynants](https://forums.plex.tv/u/bwynants)\
**Post date:** [April 29, 2014, 7:16pm UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/12 "2014-04-29T19:16:00Z")

</div>

can you try [https://www.dropbox.com/s/91idrx2f6zcdna6/plexconnect\_noarch\_0.3-10.spk](https://www.dropbox.com/s/91idrx2f6zcdna6/plexconnect_noarch_0.3-10.spk)

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 30, 2014, 6:37am UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/13 "2014-04-30T06:37:20Z")

</div>

> can you try [https://www.dropbox.com/s/91idrx2f6zcdna6/plexconnect\_noarch\_0.3-10.spk](https://www.dropbox.com/s/91idrx2f6zcdna6/plexconnect_noarch_0.3-10.spk)

Works like a charm! &nbsp;What was the problem?

---

<div class="post-metadata">

**Author:** ![bwynants](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bwynants/32/102771_2.png) [@bwynants](https://forums.plex.tv/u/bwynants)\
**Post date:** [April 30, 2014, 8:18am UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/14 "2014-04-30T08:18:08Z")

</div>

On synology, traffic is redirected by apache via a virtual host to plexconnect

Apache decoded the encoded url which made it fail

I &nbsp;added an attribute to the vhost so that the decoding no longer happens.

[https://github.com/bwynants/spksrc/commit/c0a338875ca411adfe4457247d8d285932e510e4](https://github.com/bwynants/spksrc/commit/c0a338875ca411adfe4457247d8d285932e510e4)

thanks to Baa for pointing in this direction

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 1:57am UTC](https://forums.plex.tv/t/myplex-failed-login-account-locked/64767/15 "2019-12-21T01:57:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
