My plex is working normally with a tv section, and a movies section etc.
However, on running “/usr/lib/plexmediaserver/Plex\ Media\ Scanner --list” - it returns nothing, and doesn’t show my various sections; however the plex server proper still sees / serves content properly.
I’ve recently changed the ‘PLEX_MEDIA_SERVER_USER’ account that the plex server runs under in /etc/default/plexmediaserver - would that be related?
How can i fix this (or debug it), so that i can manually update libraries when required? The log (cat ‘/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex\ Media\ Scanner.log’) does not show any errors that i can see, relating to having zero sections?
You may be running into the issue of needing a plex token.
Open a browser and try: http://[PMS_IP_Address]:32400/library/sections
If you get 401 Unauthorized then you do indeed need your Plex Token
Then from the CLI use curl -X GET "http://127.0.0.1:32400/library/sections?X-Plex-Token=XXXXXXXXXX"