stokkes / plex_rcs

Plex rclone cache scanner
27 stars 6 forks source link

Plex Media Server crashes when new file is detected #6

Open roytomeij opened 5 years ago

roytomeij commented 5 years ago

When plex_rcs detects a new file, my PMS crashed (not running in Docker). Any thoughts? :-)

Starting to monitor /var/log/syslog with pattern for rclone cache
Detected new file: tv/Derek/Derek - S01E03 (1080p BluRay).mkv

Processing section 1, folder: /mnt/media/tv/Derek
terminate called after throwing an instance of 'soci::soci_error'
  what():  sqlite3_statement_backend::prepare: no such table: library_sections 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' from library_sections where id=?
****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Plex Media Server/Crash Reports/1.13.9.5439-7303bc002/PLEX MEDIA SCANNER/2773c6a1-d3ef-c59d-59f9437f-75f9dd61.dmp
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
  --url arg             URL to upload to
  --help                show help message
  --version arg         Version of the product

Traceback (most recent call last):
  File "/opt/plex_rcs/plex_rcs.py", line 152, in <module>
    tailf(lf)
  File "/opt/plex_rcs/plex_rcs.py", line 76, in tailf
    for line in tail("-Fn0", logfile, _iter=True):
  File "/usr/local/lib/python3.6/dist-packages/sh.py", line 857, in next
    chunk = self.process._pipe_queue.get(True, 0.001)
  File "/usr/lib/python3.6/queue.py", line 173, in get
    self.not_empty.wait(remaining)
  File "/usr/lib/python3.6/threading.py", line 299, in wait
    gotit = waiter.acquire(True, timeout)