I updated Plex Server yest (Debian) and since then I have trouble authenticating through a browser. The Plex App works just fine, and I can log in using the web but I get no soup… BUT! I can watch what was showing yesterday!!! Perplexed…!
what else is running on this computer? Is it a VM? If a VM, it needs more resources (vCPU) and/or the database optimized.
Mar 16, 2019 23:38:57.916 [0x7f4a073fc700] ERROR - QueryParser: Invalid field 'onlyTransient' found, ignoring.
Mar 16, 2019 23:45:54.759 [0x7f49fb3ff700] WARN - SLOW QUERY: It took 270.000000 ms to retrieve 45 items.
Mar 16, 2019 23:46:00.894 [0x7f4a083fe700] WARN - SLOW QUERY: It took 260.000000 ms to retrieve 45 items.
Mar 16, 2019 23:46:06.665 [0x7f49fd7ff700] WARN - SLOW QUERY: It took 260.000000 ms to retrieve 45 items.
Mar 16, 2019 23:46:11.026 [0x7f4a083fe700] WARN - SLOW QUERY: It took 250.000000 ms to retrieve 45 items.
Mar 16, 2019 23:46:15.193 [0x7f49fabfe700] WARN - SLOW QUERY: It took 240.000000 ms to retrieve 45 items.
Mar 16, 2019 23:46:44.072 [0x7f49fc3ff700] ERROR - Extras: Preroll file didn't exist or couldn't be read: ''.
Mar 16, 2019 23:51:17.862 [0x7f49fc3ff700] WARN - Unable to load episode file ["seasons/1/episodes/0.xml"]
Mar 16, 2019 23:52:06.949 [0x7f49ef3f9700] WARN - SLOW QUERY: It took 1320.000000 ms to retrieve 54 items.
Mar 16, 2019 23:52:07.806 [0x7f49ef3f9700] WARN - SLOW QUERY: It took 300.000000 ms to retrieve 1 items.
Mar 16, 2019 23:52:34.890 [0x7f49f0bfc700] WARN - SLOW QUERY: It took 250.000000 ms to retrieve 10 items.
Mar 16, 2019 23:52:35.069 [0x7f49f0bfc700] WARN - SLOW QUERY: It took 430.000000 ms to retrieve 77 items.
Mar 16, 2019 23:52:35.161 [0x7f49f0bfc700] WARN - SLOW QUERY: It took 380.000000 ms to retrieve 65 items.
Mar 16, 2019 23:52:35.386 [0x7f49f0bfc700] WARN - SLOW QUERY: It took 490.000000 ms to retrieve 98 items.
Mar 16, 2019 23:52:35.880 [0x7f4a08bff700] ERROR - Extras: Preroll file didn't exist or couldn't be read: ''.
Mar 17, 2019 01:18:19.198 [0x7f4a0bbfe700] ERROR - Error issuing curl_easy_perform(handle): 28
Mar 17, 2019 01:18:19.198 [0x7f4a0bbfe700] ERROR - SSDP: Error parsing device schema for http://192.168.1.166:24995/dd.xml
Mar 17, 2019 02:04:53.456 [0x7f4a12bff700] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x7f4a063ff700: sqlite3_statement_backend::loadOne: database is locked
Mar 17, 2019 11:18:14.487 [0x7f4a073fc700] WARN - Sync: local sync directory "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+" does not exist
Mar 17, 2019 15:18:58.288 [0x7f4a167ff700] WARN - LongPoll: Got error, closing.
Mar 17, 2019 15:21:06.301 [0x7f4a167ff700] WARN - LongPoll: Got error, closing.
Mar 17, 2019 15:27:04.103 [0x7f4a12bff700] WARN - SLOW QUERY: It took 280.000000 ms to retrieve 1 items.
Mar 17, 2019 15:27:04.171 [0x7f4a08bff700] WARN - SLOW QUERY: It took 370.000000 ms to retrieve 1 items.
Mar 17, 2019 15:27:13.653 [0x7f49f8bfe700] WARN - SLOW QUERY: It took 220.000000 ms to retrieve 1 items.
Mar 17, 2019 18:25:30.018 [0x7f4a07bfd700] WARN - SLOW QUERY: It took 300.000000 ms to retrieve 51 items.
Mar 17, 2019 18:41:22.051 [0x7f49f8bfe700] WARN - SLOW QUERY: It took 300.000000 ms to retrieve 51 items.
Mar 17, 2019 18:53:29.753 [0x7f49efbfe700] WARN - SLOW QUERY: It took 300.000000 ms to retrieve 38 items.
Mar 17, 2019 19:15:00.952 [0x7f4a083fe700] WARN - SLOW QUERY: It took 460.000000 ms to retrieve 14
Its a dedicated Plex Sever, literally nothing else running on it (2x4 for 8 cores at 3ghz and 32gb of Ram). Will optimize it and report back… Thanks for the help.
Well, post optimization it works about a third of the time (either by IP or DNS) but app.plex.tv works every time? Here are fresh logs after the db optimization.
Optimization works fine.
If the database is bigger than the CPU can support, SLOW QUERY will be the result because the tables are too big and cannot be accessed quickly enough.
You have shown me the contents of /proc/cpuinfo. I wish to know which model (part number) xeon.
5000 bogo mips reported tells me it is most likely one of the original and now-ancient processors.
Hahah! Almost certainly It’s a Dell Poweredge Something, a old pizza box I picked up- two of them, actually.
And yes, the db is largo (I backed it yest at 92gb). Why would that translate into patchy authentication? It serves (multiple) streams just fine and doesn’t really seem to stress, numerically at least, on anything else.
Ok. so that does explain a great deal. The per-thread performance is 1/2 of the typical ARMv7 NAS. With a metadata library of 92 GB, the physical DB must be substantial.
Do you have an idea of how many files are actually indexed?
e.g find /media/dir1 /media/dir2 (list them all here) -type f -print | wc -l
It will print the total number of files Plex has in its db.
25,000 Music, TV, Movie (about half music?) plus 2000 family videos. They play (and display when scrolling) just fine. The only hiccup is server resolution. app.plex.tv works 100% of the time- though which is good enough for me