Plex media scanner keeps on crashing on every Linux I have tried on

Plex; 1.25.2.5319-c43dc0277
I’m running on Ubuntu server 20.04, and I’ve just installed plex, added a few movies in one library.

whatever I’m doing with Plex Media Scanner, it’s always crashing, even something simple as –list

this has happened several times, thru all (4) different installations on Linux.
and I’m getting pretty annoyed about it…

This is what’s happening:

root@pro:/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: /root/Library/Application Support/Plex Media Server/Crash Reports/1.25.2.5319-c43dc0277/PLEX MEDIA SCANNER/18d89bb6-e48d-48c3-3834dea8-67803532.dmp
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign

Attached dumpfile

I’ve tested on Ubuntu server 18, 20, Linux mint 18, 20 so this has been an issue for a loooong time, I just simple ignored it and updated thru the webinterface

Have you already tried repairing that database (given it points out a database error)?

,eh, No… not on this installation… can’t remember if I tried it on the others, how?

1 Like

See this post, it contains some information regarding the need to set a certain environment variable to be able to run the scanner from the command line:

1 Like

no errors…

on mine it’s in /home/hellfire/Library/App… instead of /var/lib/plexmediaserver/Library/App…

my installation was with sudo apt install plexmediaserver so nothing abnormal

It’s not so much the location which is important as it is that you set the referenced environment variable. I’m not 100% positive that it’s required any longer, but its absence used to cause the crash you mention.

Also, be sure to run the command as the user under which Plex Media Server runs. Given that Plex data location, I suspect that’s your user. But on my own system which runs PMS under the plex user, I have to do something like:
sudo -u plex ...

ops, that actually solved ALMOST everything (as root I didn’t think it would matter who executed the command).

but now it still crashes (just quieter) and says Segmentation fault

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