# Plex Media Scanner --list crashes on Linux

**URL:** https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530
**Category:** Plex Media Server
**Tags:** server-linux, server-qnap, plugin-dev, scanner-agent-dev
**Created:** [July 13, 2022, 1:07am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530 "2022-07-13T01:07:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nibbles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nibbles/32/150497_2.png) [@nibbles](https://forums.plex.tv/u/nibbles)
#### Post date: [July 13, 2022, 1:07am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/1 "2022-07-13T01:07:44Z")

</div>

Server Version#: 1.27.2.5929

On my QNAP 451+ running today’s stable PMS on QTS-4.5.4 Build 20220419,  
I realized I hobbled my Plex system by disabling deep analysis on scheduled tasks.

When I opened a SSH terminal and tried from the command line, the Scanner crashes.  
A quick guide:  
[https://support.plex.tv/articles/201242707-plex-media-scanner-via-command-line/](https://support.plex.tv/articles/201242707-plex-media-scanner-via-command-line/)

**What I Did as admin:**

```auto
$> uname -a
Linux TheRAID 4.14.24-qnap #1 SMP Tue Apr 19 01:51:20 CST 2022 x86_64 GNU/Linux
$> echo "$(getcfg system version) $(getcfg system 'Build Number')"
4.5.4 20220419
$>

```

**I found that help works:**

```auto
$> "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner" --help | head -n4
Plex Media Scanner (c) 2010-2020 Plex Development Team.

  -h, --help Display this message.
  -v, --verbose Show more output.

```

**The Scanner Crashes**

```auto
$> "/share/CACHEDEV1_DATA/.qpkg/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.27.2.5929-a806c5905/PLEX MEDIA SCANNER/8c89cf51-829c-4d02-459620a4-62eae1ca.dmp
Aborted
[~] # Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
  --directory arg Directory to scan for crash reports
  --serverUuid arg UUID of the server that crashed
  --userId arg User that owns this product
  --platform arg Platform string
  --platformVersion arg Platform version string
  --vendor arg Vendor string
  --device arg Device string
  --model arg Device model string
  --sentryUrl arg Sentry URL to upload to
  --sentryKey arg Sentry Key for the project
  --version arg Version of the product
  --allowRetries arg Whether we will allow retries

```

Would anyone like the dmp file in a PM?  
As soon as I see that **libc++** my eyes sort of glaze over. \>.\<  
Thank you kindly.

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [July 13, 2022, 1:40am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/2 "2022-07-13T01:40:37Z")

</div>

Check your usage:

```auto
[~] # export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library"
[~] # cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ls
CrashUploader*	Plex Commercial Skipper* Plex Media Scanner*	Plex Script Host* Plex Transcoder*
lib/ Plex DLNA Server* Plex Media Server*	plex.sh* Plex Tuner Service*
Library/	Plex Media Fingerprinter* Plex Relay* Plex SQLite* Resources/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ./Plex\ Media\ Scanner --list
  1: TV Shows
  3: tv2
  4: tv3
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] #  

```

---

<div class="post-metadata">

### Author: ![nibbles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nibbles/32/150497_2.png) [@nibbles](https://forums.plex.tv/u/nibbles)
#### Post date: [July 13, 2022, 2:15am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/3 "2022-07-13T02:15:45Z")

</div>

thanks it works now. I wasn’t aware of setting that environment variable.  
Can we get it added to the Article or should I have known?

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [July 13, 2022, 2:57am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/4 "2022-07-13T02:57:11Z")

</div>

I looked at the documentation.

It does already state about setting up the environment.

It seems to be well known already, knowing you can move the Application Support Dir anywhere you want that you’d need to tell the scanner where it is.

Linux NAS systems expressly set this per vendor.  
Linux PMS distros also do the same in /lib/systemd/system/plexmediaserver.service.

I’ll submit a request for change if needed but think, and maybe it’s just me, that we Linux users should know how to figure out what needs to go where.

---

<div class="post-metadata">

### Author: ![nibbles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nibbles/32/150497_2.png) [@nibbles](https://forums.plex.tv/u/nibbles)
#### Post date: [July 13, 2022, 3:45am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/5 "2022-07-13T03:45:04Z")

</div>

Thanks! Right under Linux in the Scanner article it says to set my environment,  
and I was able to find other posts about that variable. Darnit.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [October 11, 2022, 3:45am UTC](https://forums.plex.tv/t/plex-media-scanner-list-crashes-on-linux/800530/6 "2022-10-11T03:45:37Z")

</div>

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