Hello!
I've recently moved my pms from a RPi 3 to a proper x86 machine via this guide:
https://support.plex.tv/articles/201370363-move-an-install-to-another-system/
Everything is fine so far, I managed to reconfigure my libraries to the new data locations as instructed. Just for the photo library, the rescan is reproducibly so slow that it apparently prevents pms to serve any other request. I can see that the server process is still alive, but the web UI or mobile app cant't get any data across.
In Plex Media Server.log, I see this pattern, consecutively for many files in the photo folders it is supposed to rescan:
[...]
Feb 01, 2018 21:28:03.079 [0x7f6ad83ff700] INFO - Part rename detected [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050190.jpg] was renamed [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050190.jpg]
Feb 01, 2018 21:28:04.116 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:06.376 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:08.628 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:10.889 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:13.149 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:15.406 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:17.655 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:19.910 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:22.170 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:24.430 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:26.692 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:28.953 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:31.216 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:33.481 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:35.745 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:38.002 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:40.264 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:42.523 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:44.784 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:47.041 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:48.260 [0x7f6ad83ff700] ERROR - Exception assimilating media item in 2009/10-07_11 New York City: sqlite3_statement_backend::loadOne: database is locked
Feb 01, 2018 21:28:48.260 [0x7f6ad83ff700] DEBUG - * Scanning p1050193
Feb 01, 2018 21:28:48.261 [0x7f6ad83ff700] DEBUG - Looking for path match for [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg]
Feb 01, 2018 21:28:48.333 [0x7f6ad83ff700] DEBUG - Checking by hash to see if we can find a match with a789ef1a6aac7ef5cab881c62c8d15bfe4492ced (display offset: 0, not part -1)
Feb 01, 2018 21:28:48.333 [0x7f6ad83ff700] DEBUG - We found a hash match for [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg] which was [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050193.jpg].
Feb 01, 2018 21:28:48.334 [0x7f6ad83ff700] INFO - Part rename detected [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050193.jpg] was renamed [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg]
Feb 01, 2018 21:28:49.367 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
[...]
The scanner log shows nothing interesting (complete file - the one Elfman fail likely showed up when I deleted that artist via the Plex app), but I'll include it for the version details:
Jan 31, 2018 21:20:24.752 [0x7f87f9a64700] INFO - Plex Media Scanner v1.11.1.4730-6967ec0b1 - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 - GMT 01:00
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - Linux version: 4.14.15-1-ARCH (#1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018), language: en-AU
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - Processor Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - /opt/plexmediaserver/Plex Media Scanner --scan --refresh --section 1 --directory /mnt/dungeon/music/Danny Elfman/Wanted Soundtrack
Jan 31, 2018 21:20:25.736 [0x7f8805259840] ERROR - Failed to create parent iterator to /mnt/dungeon/music/Danny Elfman: No such file or directory
I didn't complete the "clean bundles" and "optimize database" steps from the migration guide yet, fearing I might destroy something. However just rescanning all the photos would just be an annoyance, there's nothing important in Plex about them.
So, does this look worth debugging? ![:) :)]()