Command line auf Synology NAS

Hallo,

ich habe nach diversen Anleitungen versucht, Plex per command line zu bedienen, um es in ein script einzubinden.
https://support.plex.tv/articles/201242707-plex-media-scanner-via-command-line/?_ga=2.14745909.2021734152.1588762176-268588223.1586546312 hat mir nicht weitergeholfen. Entweder funktioniert es so auf einer DS218+ von Synology nicht, oder ich mache etwas falsch. Bin mir allerdings auch nicht sicher, wo Plex auf dem NAS installiert ist. Es gibt bei mir /volume1/Plex… ist das der Installtionsort? Jedenfalls kommt bei /volume1/Plex --list nur -sh: /volume1/Plex/: Is a directory

Danke für eure Tipps!

Direkt relevant ist Q12, aber der Rest ist auch empfehlenswert, es zumindest einmal gelesen zu haben.

Vielen Dank!
Leider erhalte ich nur folgenden Fehler:

/volume1/@appstore/Plex\ Media\ Server/Plex\ Media\ Scanner -l
terminate called after throwing an instance of ‘soci::soci_error’
what(): 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
Aborted (core dumped)

oder:

/volume1/@appstore/Plex\ Media\ Server/Plex\ Media\ Scanner --tree
terminate called after throwing an instance of ‘boost::wrapexceptboost::bad_lexical_cast
what(): bad lexical cast: source type value could not be interpreted as target
Aborted (core dumped)

Ich kann nicht behaupten, dass ich verstehe was das heißt. Für mich sieht das so aus wie schwere Datenbankfehler.
Funktioniert der Server denn noch völlig normal?

Prüfe mal vorsichtshalber auf Datenbankschäden

  1. activate debug logging (not ‘verbose’!)
  2. quit Plex Server
  3. wait 1 minute
  4. start Plex Server
  5. wait 5 minutes
  6. fetch log files and attach them here

Or inspect them yourself. Take a look at the Plex Media Server.log file and seek for messages about database corrupt or malformed.
If you find these, you may have to repair your database.

Danke. Werde das mal testen. Plex funktioniert einwandfrei ohne jegliche Auffälligkeiten.

Idee: auf Synology läuft der Plex Server mittlerweile unter einem eigenen Benutzerkonto (wie das normal ist unter Linux).
Wenn dein Skript das nicht berücksichtigt, stößt es allethalben an Zugriffsbeschränkungen.

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