Unable To Delete Library (Some Troubleshooting Included)

Hello!

I’m unable to delete an entire library from my server. I’ve seen others post about the same issue, but haven’t found a thread that includes a solution or steps that I haven’t tried.

Steps to delete library:

  1. Open server
  2. Expand options menu for library
  3. Select “Delete”
  4. Check box to confirm deletion
  5. Select delete button
  6. Wait for spinning indicator to stop; dialog window to close

Result: no change

Completed troubleshooting steps:

  • run “optimize database” option
  • restart PMS
  • restart computer running PMS

Additional attempts to delete the library following troubleshooting have not yielded any results. I am successfully been able to delete other libraries in this server.

PMS: 1.13.5.5291
Mac OS: High Sierra 10.13.6

Plex Media Server Databases_2018-07-11_15-15-16.zip (22 Bytes)
Plex Media Server Logs_2018-08-21_15-39-32.zip (6.4 MB)

Thanks in advance for the help/guidance :grimacing::crossed_fingers:

Edit: typo

Please disable ‘verbose’ logging. It doesn’t help. In fact, it hinders longer-term diagnosis.

Your database is damaged

Aug 21, 2018 15:29:36.617 [0x70000912e000] ERROR - SQLITE3:0x700008774590, 11, database corruption at line 59437 of [fc49f556e4]
Aug 21, 2018 15:29:36.617 [0x70000912e000] ERROR - SQLITE3:0x700008774590, 11, database corruption at line 59479 of [fc49f556e4]
Aug 21, 2018 15:29:36.617 [0x70000912e000] ERROR - SQLITE3:0x700008774590, 11, statement aborts at 18: [delete from taggings where id in (select taggings.id from taggings join metadata_items on metadata_items.id=taggings.metadata_item_id where metadata_items.library_section_id=?)] databa
Aug 21, 2018 15:29:36.683 [0x70000912e000] ERROR - Exception inside transaction (inside=1) (../Library/Scanner/LibrarySection.cpp:314): sqlite3_statement_backend::loadOne: database disk image is malformed
Aug 21, 2018 15:29:36.808 [0x70000912e000] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x70000866f000: sqlite3_statement_backend::loadOne: database disk image is malformed

You need to repair it with this procedure:
https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

Thanks very much for the reply, @OttoKerner! I will disable verbose logging and give the DB repair steps a go.

Update: this didn’t work, so I deleted the DB files and remade my libraries :-/.

Sorry to hear that. I hope the new library is working better now?

1 Like

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