Server Version#: 1.22.0.4163
Player Version#: N/A
I’ve run into an interesting issue and not sure if it’s a bug or something with my setup. I recently added a Music library to my plex server and began adding music. I have a script which triggers the CLI plex media scanner upon new additions. However, via the CLI, nothing adds. via the http api calls, it works. Example:
bash into plex docker:
docker exec -it plex bash
then initiate a scan via cli
/lib/plexmediaserver/Plex\ Media\ Scanner -c 48 -d /music/root/path/to/artist --scan --refresh
If I execute this and watch alerts, the scanner returns back to the prompt within a second and the alerts just says “Scanning Artist” (where Artist is the name of the actual folder), but nothing gets added. The path in container and on host is identical, so its not a mapping issue or invalid path issue.
I’ve confirmed the artist isn’t already scanned into plex and that the path is indeed part of the library and section referenced.
When I use the http api call to initiate a scan, it works as intended, and plex picks up the items in question.
I also tried toggling the “Update Music Libraries on scan” option in library settings, but same results.
Any help would be appreciated.
-Ed