Here is the logfile, when starting the Plex package.
No scanning or optimizing has been starting, but interpreting those lines seems there is a serious problem with the database access/queries. Whatever that could be, I don’t know.
No movies/music was played.
What could be the reason, PMS is so extremely slow?
Nov 14, 2019 23:02:16.733 [0x7fa050ae1700] INFO - Plex Media Server v1.18.2.2029-36236cc4c - Synology DS1815+ x86_64 - build: linux-x86_64 synology - GMT 01:00
Nov 14, 2019 23:02:16.733 [0x7fa050ae1700] INFO - Linux version: DSM 6.2.2.24922-4, language: en-US
Nov 14, 2019 23:02:16.733 [0x7fa050ae1700] INFO - Processor Intel(R) Atom(TM) CPU C2538 @ 2.40GHz
Nov 14, 2019 23:02:16.733 [0x7fa050ae1700] INFO - /var/packages/Plex Media Server/target/Plex Media Server
Nov 14, 2019 23:02:19.129 [0x7fa05b18d740] INFO - OCSP: Successfully retrieved response from cache.
Nov 14, 2019 23:02:29.320 [0x7fa03a583700] ERROR - Error issuing curl_easy_perform(handle): 7
Nov 14, 2019 23:02:29.320 [0x7fa03a583700] WARN - HTTP error requesting POST http://127.0.0.1:32600/devices/discover (0, No error) (Failed to connect to 127.0.0.1 port 32600: Connection refused)
Nov 14, 2019 23:02:38.985 [0x7fa01bfff700] WARN - Held transaction for too long (../Library/MetadataCollection.cpp:237): 2.320000 seconds
Nov 14, 2019 23:02:39.185 [0x7fa038dc4700] INFO - Sync: downloaded 0 sync list(s) with 0 sync items(s): 0 new, 0 updated, 0 deleted
Nov 14, 2019 23:02:39.196 [0x7fa019fc5700] WARN - Sync: local sync directory "/volume1/Plex/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+" does not exist
Nov 14, 2019 23:02:39.376 [0x7fa01bfff700] WARN - Held transaction for too long (../Library/MetadataCollection.cpp:237): 0.130000 seconds
Nov 14, 2019 23:02:39.580 [0x7fa0390b2700] ERROR - Network Service: Error in browser handle read: 125 (Operation canceled) socket=-1
Nov 14, 2019 23:02:39.588 [0x7fa01bfff700] WARN - Held transaction for too long (../Library/MetadataCollection.cpp:237): 0.170000 seconds
Nov 14, 2019 23:02:39.681 [0x7fa0390b2700] INFO - Network Service: Abandoning browse socket, it was closed.
Nov 14, 2019 23:02:40.034 [0x7fa03a871700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 23:02:40.352 [0x7fa01bfff700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 23:02:41.758 [0x7fa01ba23700] INFO - AutoUpdate: no updates available
Nov 14, 2019 23:02:44.046 [0x7fa03a871700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 23:02:50.165 [0x7fa03a871700] ERROR - EventSource: Retrying in 15 seconds.
Nov 14, 2019 23:02:50.901 [0x7fa019fc5700] ERROR - Unknown metadata type:
Nov 14, 2019 23:02:51.189 [0x7fa01ae6b700] ERROR - Unknown metadata type:
Nov 14, 2019 23:02:51.564 [0x7fa019fc5700] ERROR - Unknown metadata type:
Nov 14, 2019 23:02:52.772 [0x7fa03a583700] ERROR - Unknown metadata type:
Nov 14, 2019 23:02:54.244 [0x7fa03a583700] WARN - SLOW QUERY: It took 1210.000000 ms to retrieve 0 items.
Nov 14, 2019 23:02:55.442 [0x7fa03a583700] WARN - SLOW QUERY: It took 1120.000000 ms to retrieve 0 items.
Nov 14, 2019 23:03:05.170 [0x7fa03a871700] ERROR - EventSource: Retrying in 30 seconds.
Nov 14, 2019 23:03:07.012 [0x7fa0393a0700] INFO - LibraryUpdateManager path watching is disabled
Nov 14, 2019 23:03:10.309 [0x7fa03a583700] WARN - SLOW QUERY: It took 1170.000000 ms to retrieve 0 items.
Nov 14, 2019 23:03:35.173 [0x7fa03a871700] ERROR - EventSource: Retrying in 60 seconds.
Nov 14, 2019 23:04:35.178 [0x7fa03a871700] ERROR - EventSource: Retrying in 120 seconds.
Nov 14, 2019 23:06:35.182 [0x7fa03ab5f700] ERROR - EventSource: Retrying in 240 seconds.
Nov 14, 2019 23:10:35.346 [0x7fa03a871700] ERROR - EventSource: Retrying in 480 seconds.
Nov 14, 2019 23:18:35.371 [0x7fa03a871700] ERROR - EventSource: Retrying in 600 seconds.
This log (an hour earlier) shows mostly the same timeouts:
Nov 14, 2019 22:38:32.016 [0x7fa720619700] INFO - Plex Media Server v1.18.2.2029-36236cc4c - Synology DS1815+ x86_64 - build: linux-x86_64 synology - GMT 01:00
Nov 14, 2019 22:38:32.017 [0x7fa720619700] INFO - Linux version: DSM 6.2.2.24922-4, language: en-US
Nov 14, 2019 22:38:32.017 [0x7fa720619700] INFO - Processor Intel(R) Atom(TM) CPU C2538 @ 2.40GHz
Nov 14, 2019 22:38:32.017 [0x7fa720619700] INFO - /var/packages/Plex Media Server/target/Plex Media Server
Nov 14, 2019 22:38:34.287 [0x7fa72acc5740] INFO - OCSP: Successfully retrieved response from cache.
Nov 14, 2019 22:38:44.818 [0x7fa716329700] ERROR - Error issuing curl_easy_perform(handle): 7
Nov 14, 2019 22:38:44.818 [0x7fa716329700] WARN - HTTP error requesting POST http://127.0.0.1:32600/devices/discover (0, No error) (Failed to connect to 127.0.0.1 port 32600: Connection refused)
Nov 14, 2019 22:38:54.007 [0x7fa71458e700] WARN - Held transaction for too long (../Library/MetadataCollection.cpp:237): 0.780000 seconds
Nov 14, 2019 22:38:54.835 [0x7fa714b6a700] INFO - Sync: downloaded 0 sync list(s) with 0 sync items(s): 0 new, 0 updated, 0 deleted
Nov 14, 2019 22:38:54.835 [0x7fa6e5fc5700] WARN - Sync: local sync directory "/volume1/Plex/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+" does not exist
Nov 14, 2019 22:38:55.204 [0x7fa715146700] ERROR - Network Service: Error in browser handle read: 125 (Operation canceled) socket=-1
Nov 14, 2019 22:38:55.304 [0x7fa715146700] INFO - Network Service: Abandoning browse socket, it was closed.
Nov 14, 2019 22:38:55.740 [0x7fa71458e700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 22:38:55.990 [0x7fa716617700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 22:39:00.207 [0x7fa716905700] ERROR - getaddrinfo(192-168-168-111.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -5
Nov 14, 2019 22:39:05.102 [0x7fa6e7159700] INFO - AutoUpdate: no updates available
Nov 14, 2019 22:39:09.487 [0x7fa716905700] ERROR - EventSource: Retrying in 15 seconds.
Nov 14, 2019 22:39:10.079 [0x7fa6e5fc5700] ERROR - Unknown metadata type:
Nov 14, 2019 22:39:10.903 [0x7fa6e6e6b700] ERROR - Unknown metadata type:
Nov 14, 2019 22:39:11.114 [0x7fa6e5fc5700] ERROR - Unknown metadata type:
Nov 14, 2019 22:39:12.629 [0x7fa717d47700] ERROR - Unknown metadata type:
Nov 14, 2019 22:39:13.967 [0x7fa717d47700] WARN - SLOW QUERY: It took 1090.000000 ms to retrieve 0 items.
Nov 14, 2019 22:39:15.116 [0x7fa717d47700] WARN - SLOW QUERY: It took 1090.000000 ms to retrieve 0 items.
Nov 14, 2019 22:39:19.651 [0x7fa714e58700] INFO - LibraryUpdateManager path watching is disabled
Nov 14, 2019 22:39:24.491 [0x7fa716617700] ERROR - EventSource: Retrying in 30 seconds.
Nov 14, 2019 22:39:27.667 [0x7fa717d47700] WARN - SLOW QUERY: It took 1070.000000 ms to retrieve 0 items.
Nov 14, 2019 22:39:54.494 [0x7fa716905700] ERROR - EventSource: Retrying in 60 seconds.
Nov 14, 2019 22:40:54.498 [0x7fa716617700] ERROR - EventSource: Retrying in 120 seconds.
Nov 14, 2019 22:42:54.517 [0x7fa716617700] ERROR - EventSource: Retrying in 240 seconds.
Nov 14, 2019 22:43:53.957 [0x7fa6e7159700] WARN - Held transaction for too long (../Library/DatabaseFixups.cpp:207): 0.750000 seconds
Nov 14, 2019 22:44:48.899 [0x7fa6e7159700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:17): 53.580000 seconds
Nov 14, 2019 22:45:10.707 [0x7fa6e7159700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:27): 19.910000 seconds
Nov 14, 2019 22:45:16.451 [0x7fa6e7159700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:38): 5.660000 seconds
Nov 14, 2019 22:45:19.744 [0x7fa6e7159700] WARN - Held transaction for too long (../Library/FullTextSearch.cpp:48): 3.260000 seconds
Nov 14, 2019 22:46:54.687 [0x7fa716905700] ERROR - EventSource: Retrying in 480 seconds.
Nov 14, 2019 22:48:15.023 [0x7fa6e7a23700] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Nov 14, 2019 22:48:15.212 [0x7fa714b6a700] INFO - [PlexRelay] Allocated port 29195 for remote forward to 127.0.0.1:32401
Nov 14, 2019 22:52:01.437 [0x7fa69ffff700] WARN - SLOW QUERY: It took 310.000000 ms to retrieve 6 items.
Nov 14, 2019 22:54:54.852 [0x7fa716905700] ERROR - EventSource: Retrying in 600 seconds.