# Plex Media Server unresponsive after cancelling library scan

**URL:** <https://forums.plex.tv/t/plex-media-server-unresponsive-after-cancelling-library-scan/817374>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [November 5, 2022, 4:41pm UTC](https://forums.plex.tv/t/plex-media-server-unresponsive-after-cancelling-library-scan/817374 "2022-11-05T16:41:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmedic](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mmedic/32/121352_2.png) [@mmedic](https://forums.plex.tv/u/mmedic)\
**Post date:** [November 5, 2022, 4:41pm UTC](https://forums.plex.tv/t/plex-media-server-unresponsive-after-cancelling-library-scan/817374/1 "2022-11-05T16:41:40Z")

</div>

Server Version#: 1.29.1.6316  
Player Version#:

When stopping an in-progress library scan, server becomes unresponsive and needs to be restarted. The log shows the following. Seems like some background jobs are getting killed and respawning again indefinitely. Sample log. This keeps going forever as background job PIDs change.

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - Killing job.

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - Signalling job ID 27855 with 9

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - Media Analyzer: Background analysis completed in 2.0 seconds, removing 1 IDs

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - [JobRunner] Job running: FFMPEG\_EXTERNAL\_LIBS=‘xxxxxxxxx/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4387-linux-x86\_64/’ X\_PLEX\_TOKEN=xxxxxxxxxxxxxxxxxxxx “xxxxxxxxx/Library/Plex/plexmediaserver-1.29.1.6316-f4cdfea9c.x86\_64/usr/lib/plexmediaserver/Plex Media Scanner” --analyze --log-file-suffix " Analysis" --no-thumbs --item 140019

Nov 05, 2022 16:35:12.887 [0x7fa20860cb38] DEBUG - [JobRunner] Jobs: Starting child process with pid 27922

Nov 05, 2022 16:35:14.810 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46890 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=296355&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (14 live) #27bf85 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:14.810 [0x7fa212fb9b38] DEBUG - Completed: [127.0.0.1:46890] 200 GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=296355&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (14 live) GZIP 0ms 195 bytes (pipelined: 1)

Nov 05, 2022 16:35:14.810 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46890 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=296355&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (14 live) #27bf94 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:14.811 [0x7fa2131bcb38] DEBUG - Completed: [127.0.0.1:46890] 200 GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=296355&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (14 live) GZIP 0ms 195 bytes (pipelined: 2)

Nov 05, 2022 16:35:14.811 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46890 (Loopback)] GET /library/changestamp (14 live) #27bf95 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:14.812 [0x7fa2131bcb38] DEBUG - Completed: [127.0.0.1:46890] 200 GET /library/changestamp (14 live) GZIP 0ms 509 bytes (pipelined: 3)

Nov 05, 2022 16:35:14.815 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46890 (Loopback)] GET /:/metadata/flushMetadataCounterCache?metadataItemID=296307 (14 live) #27bf9a GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:14.815 [0x7fa212fb9b38] DEBUG - Completed: [127.0.0.1:46890] 200 GET /:/metadata/flushMetadataCounterCache?metadataItemID=296307 (14 live) GZIP 0ms 195 bytes (pipelined: 4)

Nov 05, 2022 16:35:14.822 [0x7fa2133e7b38] DEBUG - Jobs: ‘xxxxxxxxx/Library/Plex/plexmediaserver-1.29.1.6316-f4cdfea9c.x86\_64/usr/lib/plexmediaserver/Plex Media Scanner’ exit code for process 27914 is 0 (success)

Nov 05, 2022 16:35:14.822 [0x7fa2073e0b38] DEBUG - Killing job.

Nov 05, 2022 16:35:14.822 [0x7fa2073e0b38] DEBUG - Signalling job ID 27914 with 9

Nov 05, 2022 16:35:14.823 [0x7fa2073e0b38] DEBUG - Media Analyzer: Background analysis completed in 2.2 seconds, removing 1 IDs

Nov 05, 2022 16:35:14.823 [0x7fa2073e0b38] DEBUG - Media Analyzer: Performing on-the-fly analysis on 1 item.

Nov 05, 2022 16:35:14.823 [0x7fa2073e0b38] DEBUG - [JobRunner] Job running: FFMPEG\_EXTERNAL\_LIBS=‘xxxxxxxxx/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4387-linux-x86\_64/’ X\_PLEX\_TOKEN=xxxxxxxxxxxxxxxxxxxx “xxxxxxxxx/Library/Plex/plexmediaserver-1.29.1.6316-f4cdfea9c.x86\_64/usr/lib/plexmediaserver/Plex Media Scanner” --analyze --log-file-suffix " Analysis" --no-thumbs --item 140020

Nov 05, 2022 16:35:14.823 [0x7fa2073e0b38] DEBUG - [JobRunner] Jobs: Starting child process with pid 27982

Nov 05, 2022 16:35:15.020 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46906 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=140019&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (14 live) #27bf93 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:15.021 [0x7fa212fb9b38] DEBUG - Completed: [127.0.0.1:46906] 200 GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=140019&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (14 live) GZIP 0ms 195 bytes (pipelined: 1)

Nov 05, 2022 16:35:15.021 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46906 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=140019&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (14 live) #27bfa2 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:15.021 [0x7fa2131bcb38] DEBUG - Completed: [127.0.0.1:46906] 200 GET /:/metadata/notify/changeItemState?librarySectionID=21&metadataItemID=140019&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (14 live) GZIP 0ms 195 bytes (pipelined: 2)

Nov 05, 2022 16:35:15.022 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46906 (Loopback)] GET /library/changestamp (14 live) #27bfa3 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:15.023 [0x7fa212fb9b38] DEBUG - Completed: [127.0.0.1:46906] 200 GET /library/changestamp (14 live) GZIP 0ms 510 bytes (pipelined: 3)

Nov 05, 2022 16:35:15.027 [0x7fa203ae6b38] DEBUG - Request: [127.0.0.1:46906 (Loopback)] GET /:/metadata/flushMetadataCounterCache?metadataItemID=139954 (14 live) #27bfa8 GZIP Signed-in Token (xxxxxxxxx) (xxxxxxxxx)

Nov 05, 2022 16:35:15.027 [0x7fa212fb9b38] DEBUG - Completed: [127.0.0.1:46906] 200 GET /:/metadata/flushMetadataCounterCache?metadataItemID=139954 (14 live) GZIP 0ms 195 bytes (pipelined: 4)

Nov 05, 2022 16:35:15.034 [0x7fa2133e7b38] DEBUG - Jobs: ‘xxxxxxxxx/Library/Plex/plexmediaserver-1.29.1.6316-f4cdfea9c.x86\_64/usr/lib/plexmediaserver/Plex Media Scanner’ exit code for process 27922 is 0 (success)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [November 5, 2022, 5:06pm UTC](https://forums.plex.tv/t/plex-media-server-unresponsive-after-cancelling-library-scan/817374/2 "2022-11-05T17:06:17Z")

</div>

It’s not possible to diagnose from a snippet.

The full logs ZIP file is needed.

The best logs are those captured immediately AFTER it is restarted from becoming non-responsive.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [February 3, 2023, 5:06pm UTC](https://forums.plex.tv/t/plex-media-server-unresponsive-after-cancelling-library-scan/817374/3 "2023-02-03T17:06:21Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
