Plex Media Scanner crashes when trying to list (-l)

I was going to update a library via the terminal but didn’t know the library Id, so I ran

Plex Media Scanner -l

But it just spits out some strange data and then crashes…

I’ve been testing this the during the latest three updates, but it’s still the same…

The plex Media Scanner says:

Feb 25, 2020 21:30:09.428 [0x7f1a6d804700] INFO - Plex Media Scanner v1.18.7.2438-f342a5a43 - unknown PC unknown - build: linux-x86_64 - GMT 01:00
Feb 25, 2020 21:30:09.429 [0x7f1a6d804700] INFO - Linux version: 4.15.0-88-generic (#88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020), language: C
Feb 25, 2020 21:30:09.429 [0x7f1a6d804700] INFO - Processor AMD Phenom(tm) II X4 B50 Processor�0� �0�@@@@00
Feb 25, 2020 21:30:09.429 [0x7f1a6d804700] INFO - ./Plex Media Scanner -l
Feb 25, 2020 21:30:09.429 [0x7f1a762b0740] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
Feb 25, 2020 21:30:09.532 [0x7f1a762b0740] ERROR - SQLITE3:(nil), 1, no such column: library_sections.content_changed_at in "select library_sections.id as 'library_sections_id', library_sections.library_id as 'library_sections_library_id', library_sections.name as 'library_sect
Feb 25, 2020 21:30:09.555 [0x7f1a762b0740] DEBUG - Job running: '/usr/lib/plexmediaserver/CrashUploader' '--directory=/home/hellfire/Library/Application Support/Plex Media Server/Crash Reports/1.18.7.2438-f342a5a43' '--version=1.18.7.2438-f342a5a43' '--platform=Linux' '--platformVersion=4.15.0-88-generic (#88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020)' '--serverUuid=' '--userId=NOUSERID' '--sentryUrl=https://sentry.io/api/1233455/minidump' '--sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' '--vendor=unknown' '--model=unknown' '--device=PC'
Feb 25, 2020 21:30:09.585 [0x7f1a762b0740] DEBUG - Jobs: Starting child process with pid 5528

Server Version#: latest
Player Version#:

Looks like you might have some corruption in your database. https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

Edit - It could also be your PMS hasn’t run through a proper migration to update the database to the latest scheme. Restart PMS, let it run without doing anything for 3 minutes, get me the log and I can check if it completed.

A few questions:

  1. Is the EUID / EGID those of the Plex user (plex:plex) ?
  2. Are the environment variables set?

I ask this because the tool is UID/GID sensitive

That’s been done several times, I have however fixed the issue.

A few directories was the property of root (fixed that) the $PLEX_HOME wasn’t set…
… But in think I solved it anyway, it was a DBK issue (Dumbass Behind Keyboard). I was always running the command as my user, I never ran it as Plex.

But since I can’t login on the plex account, I must go via sudo su | su Plex .
Isn’t the commands suppose to be executed by my default user?

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