Im trying to do a manual scan via terminal commands on my Debian 8 setup, but when I run;
(sudo) /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
I only get the following error;
/usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libboost_system.so.1.59.0: cannot open shared object file: No such file or directory
Thing is that the file that its says its missing are in the folder.
Do those files have the correct permissions? There was someone last week who updated his Debian Sid machine and all of the libboost files were somehow changed to drw-rw-rw-, ie missing the executable flag, which would prevent the system from running them.
Perhaps this will explain it better.
Performing a âsudo shâ gives the âsh-4.3â prompt.
âenv | grep LDâ having no output shows no LD_LIBRARY_PATH defined.
sh-4.3# env | grep LD
sh-4.3# /usr/lib/plexmediaserver/Plex\ Media\ Scanner
/usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libboost_system.so.1.59.0: cannot open shared object file: No such file or directory
sh-4.3# LD_LIBRARY_PATH=/usr/lib/plexmediaserver ; export LD_LIBRARY_PATH
sh-4.3# /usr/lib/plexmediaserver/Plex\ Media\ Scanner
Plex Media Scanner (c) 2010-2014 Plex Development Team.
-h, --help Display this message.
-v, --verbose Show more output.
-p, --progress Show special progress output.
--log-file-suffix Specify suffix for log file.
Actions:
-r, --refresh Refresh the metadata.
-a, --analyze Analyze media information.
-b, --index Generate a media index file.
-s, --scan Scan for new media.
-i, --info Get information.
-l, --list List.
-g, --generate Regenerate thumbnails/fanart.
-t, --tree Show a section tree.
-w, --reset Delete all media out of a section.
-n, --add-section <name> --type <type:1,2,8> --agent <identifier> --location <path> --lang <code> Add a new section.
-D, --del-section Delete a section.
Items to which actions apply:
-c, --section A library section ID.
-o, --item An item ID.
-d, --directory A directory path.
-f, --file A file.
Modifiers to actions:
-x, --force Force an operation (e.g. refresh).
--no-thumbs Do not regenerate thumbs when analyzing.
--thumbOffset <percent> Percent offset into video for thumbnail image generated during media analysis.
--artOffset <percent> Percent offset into video for fanart image generated during media analysis.
sh-4.3#
That got me abit closer atleast
Now I can run the command;
/usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
without errors, but it doesnt show any results, just returns to let me type more commands.
Know what Im doing wrong?
Tried with sudo first but then it just returns the same errors as before
@ChuckPa said:
What are you trying to do at the command line? Perhaps thatâs the better question to ask.
Which section(s)? How thorough of a scan?
First of all Im trying to get the command to list all my sections so I know the numbers of each section I have. Then Im gone try and use that to scan, both for new media and full scan of one section.
Thanks, this gives me the section numbers atleast.
But still doesnt let me run a scanning command via terminal like I want.
Want to use terminal command to setup an autoscan on one section every day at a set time.
Havnt found that option in plex settings other then a full scan of all sections, and I dont want that.
Thats the reason I want to get terminal to work
But now that I can get the sections, Iâll see if that helps out on the command.
Didnt work
Tried both doing the commands manually and by creating a .sh file to run. (yes rememberd to chmod the file)
Without sudo before the command, nothing happens. With sudo before the command I get this;
:~/plex$ sudo /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s 8
/usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libboost_system.so.1.59.0: cannot open shared object file: No such file or directory
And I did run the LD_LIBRARY_PATH command before the /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s 8 command.
I have the exact same problem as Hawk1984. I want to update the library at the end of a script that I run which moves content into a directory that Plex watches.
When the transfer is complete, I want to trigger a library scan / update.
Sadly, /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list has no output at all.
Does anyone have a guide on how to use plex in a cli or can help me with this issue?