Unresponsive Interface - FREQUENT issue

Server Version#: 1.15.4.994
Player Version#: N’A
Logs: Plex Media (3.1 MB)

Problem: Unknown cause - web interface (local and remote) continue to fail daily if not more frequently. StatusCake monitors my external port 32400 via TCP method and does not report failures. I’m about to turn on verbose logging and chew up some hard drive space. Can anyone offer insight? Plex is run on Debian 9.9. I’ve poured over my logs but I’m not seeing the error. Why would this continually become unresponsive on a fresh OS?

If I open the plex system log and search “err” I see the following:

2019-05-23 10:59:18,493 (7fae90fe3700) : ERROR (networking:219) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.agents.thetvdb/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNjI1NHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQzCmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMTE0ODAxP2xhbmc9ZW5zNApndWlkczYKMTE0ODAxczIKaWRyMAo_
2019-05-23 10:59:18,494 (7fae917e4700) : ERROR (networking:219) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.agents.thetvdb/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNjk5NXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczcKVFZfU2hvd3MxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vNzk5OTU%40bGFuZz1lbnM0Cmd1aWRzNQo3OTk5NXMyCmlkcjAK
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 482, in error
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 482, in error
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
2019-05-23 07:38:26,525 (7fae90fe3700) : ERROR (networking:219) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.agents.localmedia/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAozMzE3czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDIKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly83OTgyND9sYW5nPWVuczQKZ3VpZHM0Cm51bGxzMgppZHIwCg__
2019-05-23 07:38:26,527 (7fae7bfff700) : ERROR (networking:219) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.agents.localmedia/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo0NDgwczQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDIKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly83NjcwMz9sYW5nPWVuczQKZ3VpZHM0Cm51bGxzMgppZHIwCg__
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 482, in error
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 482, in error
File “/usr/lib/plexmediaserver/Resources/Plug-ins-107756f7e/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error

None of this points me towards a resolution though…

Also seeing this if I search timeout:

2019-05-23 07:22:40,733 (7fae9aa92700) : DEBUG (networking:452) - Setting the default network timeout to 20.0
packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
f = self._opener.open(req, timeout=self._timeout)
packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
f = self._opener.open(req, timeout=self._timeout)
packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
f = self._opener.open(req, timeout=self._timeout)
packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
f = self._opener.open(req, timeout=self._timeout)

PLEX STAFF: please for the love of the money I’ve given you, help me out here. App is COMPLETELY unstable and crashes apparently within hours of the service being restarted via systemctl.

Logging actions here: web ui is once again responsive, and I’m initiating a systemctl restart plexmediaserver.service as I hit Reply


I’ve been running the following script to check for non 200 HTTP responses:

#!/bin/bash

while true
do
  STATUS=$(curl -s -o /dev/null -w '%{http_code}' 127.0.0.1:32400/web/index.html)
  if [ $STATUS -ne 200 ]; then
    echo -e $(date) $STATUS >> /root/code.log
  fi
  sleep 15
done

It’s not even getting one, it’s just hung, the curl command times out and the web UI is still completely unresponsive. It wasn’t running for very long.

Adding this from post in another category - related possibly.

I’m sorry, I cannot tell anything from that.

you have turned off DEBUG logging.

Please turn DEBUG logging back on and recreate the problem.
DEBUG logging doesn’t consume any more disk space than without.

When you do recreate,

Settings - Server - Troubleshooting - Download Logs

Attach that ZIP file here.

@ChuckPa the original post contained a zip with debug on. Was it insufficient? I mean I can turn it back on, but it’s not an unresponsiveness I can trigger, it just continuously happens at random intervals.

One moment… scrolling bakc… Apologies

No problemo my good sir.

I see what’s happening and would like to offer a different version to test with.

I have 1.14.1.5488 to offer to confirm if a system issue (unlikely) or version issue (more likely).

Your unresponsiveness is due to the database being locked. This is a problem engineering is working on now.

This is from my google drive.

It’s late, I’ve ignored my fam all day. I’ll attempt this at my earliest convenience and ping you with results. Is there an ETA on the fix for the database lock? I’ve downloaded the version you provided, I’ll take a snapshot of my VM and try this out and see if it works better.

dpkg -r

then dpkg -i

the data is safe

you might want to disable the script for now

I have disabled the script (removed it’s /etc/cron.daily symlink) and I’m performing a full removal of all plex-related applications and data. Going to start with a blank install on the version you’ve provided, and not run plexupdate until there is some kind of a major breakthrough with the database locks.

I’ve been figuratively bashing my head trying to figure out the problem. I did notice those database locked entries in the logs but I thought perhaps that was normal because the scanner service was performing it’s tasks.

EDIT: Man there’s a lot of files stored in those subdirectories.

Well dpkg -i is erroring out so I’m going to blow away the OS and start with a fresh debian 9 install. Inconvenient, but not a big deal.

@ChuckPa on a fresh Debian 9.9 manually installing the .deb you provided was successful. I configured the server to my liking and initiated a scan across all libraries. WebUI maintained stability all night.

I spoke too soon. The server may just be busy scanning and whatnot, so since I’m taking my family to the Biltmore Estate today, I’ll check tonight and see if the logs look any different. Debug is enabled.

Hello, I recently had the same problem the web interface to function more neither locally nor from the outside I had the same 127.0.0.1 inaccessible errors I thought the problem was related to the ip interface of the server but not at all it worked properly. share against the apps android ios and tv work perfectly. to fix the problem I removed the preference.xml and the process id in the directory plex jair restarted my server and I restarted a configuration from the local access on port 32400. I feel that the authentication token of the administrator user has changed I do not explain why?

I’m not sure if that’s my issue. I’m going to upload new logs.

@ChuckPa I did a fresh Debian 9.9, installed the package you provided, and the UI still appears to be hung. I tail -f the entire log directory and it’s quite busy but a lot of error messages. Here’s an updated collection of log files. Can you shed some light on this or should I perhaps use an older version of the OS? <- not preferred, but if I have to… I have to… Your input is invaluable.
Logs.zip (5.0 MB)