Something strange is happening with my library update process. I can login and surf through my libraries successfully if “update library” is off but, if I try click on it in any library, the network connection starts to switch up and down. Here you have screenshot with the case:
Losing connection, sometimes down
and sometimes up
Also, too many films/series are not getting cover art and picture metadata, in general. Metadata takes all the information except images. I tried different metadata setups but no luck. It never happened to me before with older plex server configs (this is a fresh install with 4-5 days of life, btw).
The server is running under Ubuntu server 16.04.4.
Could someone help me with this? I tried to find something similar but no luck searching through Google.
Thanks!
Edit: It occurs either plex.tv or local network access. “try it again” or “unsecure connection” option doesn’t work.
Edit2: I noticed in Settings/Server/Remote access, the green lock turns to red (that means remote access disabled) when the issue is happening, and suddenly it comes back to green.
Best would be as soon as you see the error & having started a scan of the library.
I suspect it’s only a database optimization/cleanup issue
Hey,
Thank you for reply. Attached you can find some logs. I’ve downloaded all of them in the exact moment of Plex error so maybe you just need to check the last 1-2 mins
I hope this is enough. Feel free to ask me for anything else if you need.
I got them and found the first part of the problem: Fragmented database. This reports as “SLOW QUERY”. In your case it took 540 ms to get one item… you should be able to get 400-500 in about 10ms. Since I can’t see your
Jun 06, 2018 19:25:59.132 [0x7f9c447fb700] DEBUG - Killing job.
Jun 06, 2018 19:25:59.132 [0x7f9c447fb700] DEBUG - Signalling job ID 7221 with 9
Jun 06, 2018 19:25:59.134 [0x7f9c447fb700] DEBUG - Media Analyzer: Background analysis completed in 30.0 seconds, removing 1 IDs
Jun 06, 2018 19:25:59.140 [0x7f9c50bff700] VERBOSE - JobManager: child process with PID 7221 exited
Jun 06, 2018 19:25:59.140 [0x7f9c50bff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 7221 is -9 (signal: Killed)
Jun 06, 2018 19:25:59.141 [0x7f9c2dffa700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.143 [0x7f9c2dffa700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.143 [0x7f9c533ff700] DEBUG - Completed after connection close: [192.168.1.135:54088] 200 GET /library/metadata/40639 (53 live) TLS 76455ms 17 bytes (pipelined: 1)
Jun 06, 2018 19:25:59.144 [0x7f9c227cd700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.145 [0x7f9c247d1700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.147 [0x7f9c227cd700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.147 [0x7f9c52bfe700] DEBUG - Completed after connection close: [192.168.1.135:54076] 200 GET /library/metadata/40639 (53 live) TLS 91887ms 17 bytes (pipelined: 1)
Jun 06, 2018 19:25:59.150 [0x7f9c207c9700] WARN - SLOW QUERY: It took 550.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.150 [0x7f9c247d1700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.152 [0x7f9c207c9700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Hover over Libraries … expose the ellipsis , click it -> Optimize database
Make certain to enable it in Settings - Server - Scheduled Tasks
For future reference, Keep VERBOSE logging disabled unless requested
I got them and found the first part of the problem: Fragmented database. This reports as “SLOW QUERY”. In your case it took 540 ms to get one item… you should be able to get 400-500 in about 10ms. Since I can’t see your
Jun 06, 2018 19:25:59.132 [0x7f9c447fb700] DEBUG - Killing job.
Jun 06, 2018 19:25:59.132 [0x7f9c447fb700] DEBUG - Signalling job ID 7221 with 9
Jun 06, 2018 19:25:59.134 [0x7f9c447fb700] DEBUG - Media Analyzer: Background analysis completed in 30.0 seconds, removing 1 IDs
Jun 06, 2018 19:25:59.140 [0x7f9c50bff700] VERBOSE - JobManager: child process with PID 7221 exited
Jun 06, 2018 19:25:59.140 [0x7f9c50bff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 7221 is -9 (signal: Killed)
Jun 06, 2018 19:25:59.141 [0x7f9c2dffa700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.143 [0x7f9c2dffa700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.143 [0x7f9c533ff700] DEBUG - Completed after connection close: [192.168.1.135:54088] 200 GET /library/metadata/40639 (53 live) TLS 76455ms 17 bytes (pipelined: 1)
Jun 06, 2018 19:25:59.144 [0x7f9c227cd700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.145 [0x7f9c247d1700] WARN - SLOW QUERY: It took 540.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.147 [0x7f9c227cd700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.147 [0x7f9c52bfe700] DEBUG - Completed after connection close: [192.168.1.135:54076] 200 GET /library/metadata/40639 (53 live) TLS 91887ms 17 bytes (pipelined: 1)
Jun 06, 2018 19:25:59.150 [0x7f9c207c9700] WARN - SLOW QUERY: It took 550.000000 ms to retrieve 1 items.
Jun 06, 2018 19:25:59.150 [0x7f9c247d1700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Jun 06, 2018 19:25:59.152 [0x7f9c207c9700] VERBOSE - It took 0.0 sec to serialize a list with 1 elements.
Hover over Libraries … expose the ellipsis , click it → Optimize database
Make certain to enable it in Settings - Server - Scheduled Tasks
For future reference, Keep VERBOSE logging disabled unless requested
Hey,
Sorry for VERBOSE mode on. I tried the Optimize database option but it didn’t work. Finally I’ve setup everything from scratch and now the network keeps up but covert art metadata is not working yet. It gets everything (movie/show name, air date, summary…) except cover art, header and background. I’ll re-scan all the library and come back to you with updates and new log files with VERBOSE off
Add one library section at a time. (be careful not to enable chapter thumbnails right now… gives you max performance this way)
After each section, Optimize the database
Repeat until all sections defined.
Hi,
I did it and now films seems to work. It gets all metadata information, including images. However, TV shows keep getting all the info except images. Another strange thing is that all the library setup is to get metadata in spanish language but everything is downloading in english instead (english titles, english, summaries, english cover arts…)
PMS 1.13.2.5142 contains the final update for TheTVDB API change.
When it goes public, or if you get a PlexPass first, you will only need “Refresh All Metadata” to get all them loaded again
@ChuckPA said:
PMS 1.13.2.5142 contains the final update for TheTVDB API change.
When it goes public, or if you get a PlexPass first, you will only need “Refresh All Metadata” to get all them loaded again
Ah okey, so it’s probably because the TVDB API update, right?