Library scan interval

Server Version#: 1.40.2.8395
Player Version#:

I want to scan my library daily at a specific time, eg, 1AM. There are no options for a specific time of day when selecting “Library scan interval daily”. It only scans at the same time of day that I initiate a scan.

Is there a way to do this?

Plex DocsServer SettingsScheduled Tasks

Settings → Scheduled Tasks.
Enable Update all libraries during maintenance.

Thanks for the reply! I’ll give it a try. Is there any log that would show when the job was run?

Debug level logging is required. No need for verbose logs (adds too much information, logs wrap quickly, desired info lost).
Settings → Server_Name → General.


Look in Plex Media Server.log and rollovers, .1.log to .5.log.

Scheduled tasks show up as “Butler tasks” in the log files.
Search for lines with DEBUG - Butler:.

From PMS on my Synology DS918+ this morning.

Tasks starting:

Apr 28, 2024 04:00:08.018 [139794145901368] DEBUG - Butler: we're in the window, starting.
Apr 28, 2024 04:00:08.018 [139794145901368] DEBUG - Butler: Waking up!

When library scanning begins:

Apr 28, 2024 04:00:14.038 [139794182593336] DEBUG - Butler: refreshed all libraries
Apr 28, 2024 04:00:14.043 [139794194402104] DEBUG - Activity: registered new activity d3f8920a-5d10-4585-8f6d-304cccf21d05 - "Scanning"
Apr 28, 2024 04:00:14.047 [139794194402104] DEBUG - Scanning section 227
Apr 28, 2024 04:00:14.072 [139794194402104] DEBUG - Activity: updated activity d3f8920a-5d10-4585-8f6d-304cccf21d05 - completed 0.0% - Scanning Movies

Finishes scanning movies:
Apr 28, 2024 04:00:32.901 [139794194402104] DEBUG - Activity: updated activity d3f8920a-5d10-4585-8f6d-304cccf21d05 - completed 100.0% - Scanning Movies

It then proceeds to scan the rest of the libraries on the server.

Depending on which scheduled tasks are enabled, you may see entries for intro detection, sonic analysis of music, etc.

Butler tasks finished:
Apr 28, 2024 09:06:35.137 [139794182593336] DEBUG - Butler: Done doing work.

Scheduled task window closes:
Apr 28, 2024 12:00:08.125 [139794118605624] DEBUG - Butler: we're outside the window, stopping.

You can use WebTools-NG to manually start individual Butler tasks (Read the Wiki. It has many other useful capabilities.).

This will let you see how things work without having to wait for each maintenance cycle. Run the task, monitor progress via Settings → Console, then pull and check the logs.

Wiki: Home · WebTools-NG/WebTools-NG Wiki · GitHub
Download: Release 1.2.1 · WebTools-NG/WebTools-NG · GitHub

I see it now. Thanks for the great info.

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