Scanning files from command line (docker linuxserver/plex)

Server Version#: docker container linuxserver/plex
Player Version#: 1.25.6.5577
I am running Plex in docker with the image linuxserver/plex:latest via docker-compose on a MacBook Pro.

I am able to get everything to work, except scanning/refreshing media on the command line.

I invoke it in the following way (from within the container):

/usr/lib/plexmediaserver/Plex\ Media\ Scanner -s -r -c 1

Outside of the container I run it like this:

docker container exec -it -uabc -e \
LD_LIBRARY_PATH=‘/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib’ \
plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s -r -c 1

My expectation is that it will have the same effect as going to the browser, and selecting “Scan Library Files” when clicking on the vertical three dots after a library (such as “Music”).

The actual result is that nothing happens. The command runs for a while (and within Status>Alerts I can see the directories that go by when it’s scanning) but there is no new media showing anywhere. The directories that go by do not include any newer media added.

This only works on the Web GUI but I am interested in knowing what to do to get this same thing to work on the command line.

Thanks

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