ukdtom / WebTools.bundle

WebTools is a collection of tools for Plex Media Server. Like the Unsupported AppStore (UAS)
https://forums.plex.tv/discussion/288191
Mozilla Public License 2.0
1.3k stars 170 forks source link

No login screen #328

Closed cinnamennen closed 7 years ago

cinnamennen commented 7 years ago

I've followed the installation instructions, however when I go to the web interface, there is no login screen displayed, just an essentially empty page. I've attached an image of what I am seeing. This is all running on OS X 10.12

screen shot 2017-06-12 at 8 48 00 pm
ukdtom commented 7 years ago

I'll need the WebTools logs, and simply have to ask, if you tried it with another browser as well

cinnamennen commented 7 years ago

I tested in chrome, firefox, and safari, all to the same result. Logs are below

2017-06-13 19:40:57,796 (7fffbaf6a3c0) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 4613ce0 (Tue May 09 06:00:35 UTC 2017)
2017-06-13 19:40:57,796 (7fffbaf6a3c0) :  DEBUG (core:361) - Using the elevated policy
2017-06-13 19:40:57,796 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting runtime component.
2017-06-13 19:40:57,798 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting caching component.
2017-06-13 19:40:57,799 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting data component.
2017-06-13 19:40:57,799 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting networking component.
2017-06-13 19:40:57,805 (7fffbaf6a3c0) :  DEBUG (networking:284) - Loaded HTTP cookies
2017-06-13 19:40:57,806 (7fffbaf6a3c0) :  DEBUG (networking:452) - Setting the default network timeout to 20.0
2017-06-13 19:40:57,813 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting localization component.
2017-06-13 19:40:57,813 (7fffbaf6a3c0) :  INFO (localization:409) - Setting the default locale to en-us
2017-06-13 19:40:57,813 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting messaging component.
2017-06-13 19:40:57,814 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting debugging component.
2017-06-13 19:40:57,814 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting services component.
2017-06-13 19:40:57,814 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting myplex component.
2017-06-13 19:40:57,814 (70000ec56000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.WebTools'
2017-06-13 19:40:57,814 (7fffbaf6a3c0) :  DEBUG (core:450) - Starting notifications component.
2017-06-13 19:40:57,997 (7fffbaf6a3c0) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.WebTools in namespace 'metadata'
2017-06-13 19:40:58,005 (7fffbaf6a3c0) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2017-06-13 19:41:08,009 (7fffbaf6a3c0) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 265, in content
    return self.__str__()
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 243, in __str__
    self.load()
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 181, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 438, in open
    response = self._open(req, data)
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 456, in _open
    '_open', req)
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain
    result = func(*args)
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1217, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-4613ce077/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1192, in do_open
    raise URLError(err)
URLError: <urlopen error timed out>

2017-06-13 19:41:08,022 (70000f059000) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2017-06-13 19:41:08,022 (7fffbaf6a3c0) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2017-06-13 19:41:08,023 (70000f059000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2017-06-13 19:41:08,024 (7fffbaf6a3c0) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2017-06-13 19:41:08,024 (7fffbaf6a3c0) :  DEBUG (core:150) - Finished starting framework core
2017-06-13 19:41:08,024 (7fffbaf6a3c0) :  DEBUG (core:560) - Loading plug-in code
2017-06-13 19:41:08,024 (70000f85f000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2017-06-13 19:41:08,075 (7fffbaf6a3c0) :  DEBUG (core:566) - Finished loading plug-in code
2017-06-13 19:41:09,994 (7fffbaf6a3c0) :  INFO (datakit:93) - Loaded the dictionary file
2017-06-13 19:41:09,994 (7fffbaf6a3c0) :  DEBUG (jsonExporter:32) - ******* Starting jsonExporter *******
2017-06-13 19:41:24,715 (70000ec56000) :  ERROR (messaging:49) - Unable to reach the system bundle.
2017-06-13 19:41:28,030 (70000f85f000) :  WARNING (core:541) - Unable to retrieve the machine identifier or server version.
2017-06-13 19:41:34,596 (70000f059000) :  ERROR (services:272) - Unable to load services from system. Loading from the current bundle only.
2017-06-13 19:41:34,597 (70000f059000) :  DEBUG (services:362) - Loaded services
2017-06-13 19:41:34,604 (70000f45c000) :  DEBUG (services:438) - No shared code to load
2017-06-13 19:41:34,609 (7fffbaf6a3c0) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2017-06-13 19:41:34,610 (7fffbaf6a3c0) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.plugins.WebTools
2017-06-13 19:41:34,615 (7fffbaf6a3c0) :  DEBUG (runtime:640) - Adding a prefix handler for 'WebTools' ('/applications/webtools')
2017-06-13 19:41:34,616 (7fffbaf6a3c0) :  DEBUG (__init__:33) - *******  Started WebTools V2.4.1 on MacOSX at 2017-06-13 19:41 with locale set to (None, None) ***********
2017-06-13 19:41:34,617 (7fffbaf6a3c0) :  DEBUG (webSrv:468) - Asked Tornado to exit
2017-06-13 19:41:34,617 (7fffbaf6a3c0) :  DEBUG (webSrv:477) - tornado is handling the following URI: [('/login', <class 'webSrv.LoginHandler'>), ('/logout', <class 'webSrv.LogoutHandler'>), ('/version', <class 'webSrv.versionHandler'>), ('/', <class 'webSrv.idxHandler'>), ('/index.html', <class 'webSrv.idxHandler'>), ('/webtools2*$', <class 'webSrv.webTools2Handler'>), ('/(.*)', <class 'webSrv.MyStaticFileHandler'>, {'path': '/Users/imac/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/http'})]
2017-06-13 19:41:34,619 (7fffbaf6a3c0) :  INFO (core:611) - Started plug-in
2017-06-13 19:41:34,619 (7fffbaf6a3c0) :  DEBUG (socketinterface:160) - Starting socket server
2017-06-13 19:41:34,621 (7fffbaf6a3c0) :  DEBUG (runtime:1117) - Created a thread named 'start'
2017-06-13 19:41:34,621 (7fffbaf6a3c0) :  INFO (socketinterface:184) - Socket server started on port 59660
2017-06-13 19:41:34,621 (7fffbaf6a3c0) :  INFO (pipeinterface:25) - Entering run loop
2017-06-13 19:41:34,622 (7fffbaf6a3c0) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2017-06-13 19:41:34,624 (7fffbaf6a3c0) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2017-06-13 19:41:34,625 (70000efd6000) :  DEBUG (webSrv:461) - Starting tornado on ports 33400 and 33443
2017-06-13 19:41:34,626 (7fffbaf6a3c0) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 455 bytes
2017-06-13 19:41:39,622 (70000ebd3000) :  INFO (datakit:131) - Saved the dictionary file
2017-06-13 19:42:34,888 (70000ebd3000) :  DEBUG (runtime:717) - Handling request GET /applications/webtools/:/prefs
2017-06-13 19:42:34,889 (70000ebd3000) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2017-06-13 19:42:34,907 (70000ebd3000) :  DEBUG (runtime:814) - Found route matching /applications/webtools/:/prefs
2017-06-13 19:42:34,909 (70000ebd3000) :  DEBUG (runtime:88) - Sending packed state data (109 bytes)
2017-06-13 19:42:34,909 (70000ebd3000) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 750 bytes
2017-06-13 19:43:15,545 (70000ebd3000) :  DEBUG (runtime:717) - Handling request GET /applications/webtools/:/prefs
2017-06-13 19:43:15,548 (70000ebd3000) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2017-06-13 19:43:15,550 (70000ebd3000) :  DEBUG (runtime:814) - Found route matching /applications/webtools/:/prefs
2017-06-13 19:43:15,551 (70000ebd3000) :  DEBUG (runtime:88) - Sending packed state data (109 bytes)
2017-06-13 19:43:15,552 (70000ebd3000) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 750 bytes
2017-06-13 19:45:27,788 (70000efd6000) :  INFO (webSrv:76) - Verified a correct install path as: /USERS/IMAC/LIBRARY/APPLICATION SUPPORT/PLEX MEDIA SERVER/PLUG-INS
2017-06-13 19:45:27,800 (70000efd6000) :  INFO (webSrv:132) - Returning login page: /Users/imac/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/http/login.html
2017-06-13 19:45:29,072 (70000efd6000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/identity'
2017-06-13 19:45:29,188 (70000efd6000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2017-06-13 19:45:49,303 (70000efd6000) :  INFO (webSrv:76) - Verified a correct install path as: /USERS/IMAC/LIBRARY/APPLICATION SUPPORT/PLEX MEDIA SERVER/PLUG-INS
2017-06-13 19:45:49,304 (70000efd6000) :  INFO (webSrv:132) - Returning login page: /Users/imac/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/http/login.html
ukdtom commented 7 years ago

Next time, please upload the log as a zip ;-)

And last entry says: 2017-06-13 19:45:49,304 (70000efd6000) : INFO (webSrv:132) - Returning login page: /Users/imac/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/http/login.html

Above means, that WebTools is up and running, so maybe it's an incomplete install?

Try this: In Chrome, open a blank tab, and then press F12 (debug) (Menu/More Tools/Developer Tools) Then type the url to WebTools, and in the debug window, look for something that hasn't got a status of 200

Then report back

cinnamennen commented 7 years ago

https://gist.github.com/cinnamennen/c1bf280b433b61b44ab57bdab5ac4948 logs there

cinnamennen commented 7 years ago

There isn't something weird that having the server behind a VPN would mess up? Because this server is behind one

cinnamennen commented 7 years ago

Temporarily disabling the VPN caused the login screen to show up properly, so that should help narrow down things. Perhaps something is using the public IP to connect back to the server when it should just use localhost?

ukdtom commented 7 years ago

When you logon, it connects to plex.tv, in order to authenticate you. So if you can't do that, then it will fail

cinnamennen commented 7 years ago

That specifically shouldn't cause issues though. The same way you can use your web browser while using a VPN.

On Jun 14, 2017, at 6:41 PM, Tommy Mikkelsen notifications@github.com wrote:

When you logon, it connects to plex.tv, in order to authenticate you. So if you can't do that, then it will fail

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

ukdtom commented 7 years ago

There's nothing hard coded at all, and the channel internally use 127.0.0.1 to talk to PMS,as well as need to contact plex.tv, if the PMS is signed into plex as well

But maybe install wireshark on the PMS to trace what's going on here

ukdtom commented 7 years ago

Closing due to lack of response