Plex Media Scanner Crashes

Server Version 1.30.1.6562

My 1st try using Plex Media Scanner.
Pi4 (Linux pi4 5.15.84-v8+)

/usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver

pi@pi4:~ $ /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list

libc++abi: terminating with uncaught exception of type soci::soci_error: sqlite3_statement_backend::prepare: no such column: library_sections.content_changed_at for SQL: select library_sections.id as ‘library_sections_id’, library_sections.library_id as ‘library_sections_library_id’, library_sections.name as ‘library_sections_name’, library_sections.name_sort as ‘library_sections_name_sort’, library_sections.section_type as ‘library_sections_section_type’, library_sections.language as ‘library_sections_language’, library_sections.agent as ‘library_sections_agent’, library_sections.scanner as ‘library_sections_scanner’, library_sections.user_thumb_url as ‘library_sections_user_thumb_url’, library_sections.user_art_url as ‘library_sections_user_art_url’, library_sections.user_theme_music_url as ‘library_sections_user_theme_music_url’, library_sections.created_at as ‘library_sections_created_at’, library_sections.updated_at as ‘library_sections_updated_at’, library_sections.scanned_at as ‘library_sections_scanned_at’, library_sections.user_fields as ‘library_sections_user_fields’, library_sections.query_xml as ‘library_sections_query_xml’, library_sections.query_type as ‘library_sections_query_type’, library_sections.uuid as ‘library_sections_uuid’, library_sections.changed_at as ‘library_sections_changed_at’, library_sections.content_changed_at as ‘library_sections_content_changed_at’ from library_sections

****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /home/pi/Library/Application Support/Plex Media Server/Crash Reports/1.30.1.6562-915986d62/PLEX MEDIA SCANNER/0deeb57b-bcfb-4f55-f8c25590-361ad039.dmp

Aborted

pi@pi4:~ $ Error in command line:the argument for option ‘–serverUuid’ should follow immediately after the equal sign

…So no Crash Report either.

Run as user ‘plex’ with PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR set ?

1 Like

Didn’t see PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR in the Support Article, but same crash with:

pi@pi4:~ $ export LD_LIBRARY_PATH=/usr/lib/plexmediaserver
pi@pi4:~ $ export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application\ Support/
pi@pi4:~ $ sudo /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list

Didn’t run as plex, but wouldn’t sudo take care of user ‘plex’?

Guess not :wink:

sudo -u plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner --list
 10: Movies
 26: Music
 23: Photos
  7: TV Shows

And works without setting PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
and only setting LD_LIBRARY_PATH

Thanks Chuck

Now that I have it working, since --help says that --refresh and --scan are Deprecated, guess I’ll just stick with doing that in the GUI.

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