Lagos, Nigeria
info@ezefidelity.com

Plex: There Was an Unexpected Error Loading This Library – Technipages


Yoast is taking them into account when establishing the Readability score. But those commands are not listed as words in the dictionary that Yoast is using. And that lowers the score.

There’s a Plex error that can occur all over the place: ‘There was an unexpected error loading this library‘.

You can get this error when you’re trying to schedule shows to record, open your libraries, and so on.

How to Fix Error Loading Library on Plex

Run Plex Server as Admin

You may not have the necessary permissions to load the libraries. Try running Plex with admin rights.

  1. Right-click on the Plex Server icon.
  2. Then select Run as Administrator.
  3. Try to load the problematic libraries again. Or repeat the action that initially caused the error.

Clean Up Bundles

Some users suggested that cleaning up the bundles worked for them.

  1. Go to Libraries.
  2. Then click on the three dots to open the menu.
  3. Select Clean bundles from the drop-down menu. Check if the error is gone.

plex clean up bundles

Optimize the Database

  1. Launch Plex and sign in.
  2. Go to the left pane menu. Select the action icon.
  3. Then select Manage Server.
  4. Next, select Optimize Database.plex optimize databse
  5. Confirm your choice. Wait until the whole process is complete. This should not take more than 10 minutes.

optimize database plex

Refresh Your Metadata

Metadata issues may also cause various Plex problems, including library errors. Perform a metadata refresh on the affected section.

  1. Connect to your Plex account.
  2. Then go to the left pane, and select the problematic library.
  3. Select Refresh all metadata.Refresh all metadata plex
  4. Wait until Plex has refreshed the metadata.
  5. Restart your connection to the server. Check if this method worked.

Disable Security and Privacy Extensions

If you installed security and privacy add-ons on your browser, disable them. They might be interfering with Plex. Maybe Ad Block, uBlock, Ghostery, or other similar extensions are preventing you from loading the libraries.

  1. Click on your browser menu.
  2. Go to More toolsExtensions. Or select Add-ons directly (depending on your browser).disable browser extensions chromium
  3. Turn off the extensions.
  4. Repeat the action that initially triggered the library error.

→ Note: You may want to backup your data before going to the next troubleshooting steps.

Repair Your Plex Database

If the Plex server database itself is corrupted, you can repair it and hopefully fix the library errors. Below you’ll find the steps to follow on Windows 10.

  1. Install the SQLite3 tools on your machine.
  2. Shut down the local Plex server.
  3. Then press the Windows key and the R keys. Launch a new Run window.
  4. Enter cmd, and right-click on Command Prompt. Launch it with admin rights.
  5. Next, enter the commands below to repair your Plex server database. Hit Enter after each one.
    • To check for corruption issues: 
      • cd “%LOCALAPPDATA%Plex Media ServerPlug-in SupportDatabases”
      • copy com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
      • sqlite3 com.plexapp.plugins.library.db “DROP index ‘index_title_sort_naturalsort’”
      • sqlite3 com.plexapp.plugins.library.db “DELETE from
      • schema_migrations where version=’20180501000000′”
      • sqlite3 com.plexapp.plugins.library.db “PRAGMA integrity_check”
    • To repair the issues:
      • copy com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
      • sqlite3 com.plexapp.plugins.library.db “DROP index ‘index_title_sort_naturalsort’”
      • sqlite3 com.plexapp.plugins.library.db “DELETE from
      • schema_migrations where version=’20180501000000′”
      • sqlite3 com.plexapp.plugins.library.db .dump > dump.sql
      • del com.plexapp.plugins.library.db
      • sqlite3 com.plexapp.plugins.library.db < dump.sql
    • Additionally, you may also want to delete the following two files:
      • com.plexapp.plugins.library.db-shm
      • com.plexapp.plugins.library.db-wal
  6. Restart your computer. Check if the Plex library error persists.

If you need to repair your Plex database and you’re using a Mac or Linux computer, go to this Plex support page. You’ll find more information on the commands to use.

Remove Information Related to other Accounts

Some users said they noticed this problem was caused by conflicting user account information. This may happen if you used different accounts to access the server at a given time.

Somehow, the server is signed in to one account, while the web app is signed in to a different account. Removing any information about the old account should help.

First, quit Plex and then follow the steps below.

On Windows 10:

  1. Open the Registry Editor.
  2. Then follow this path: HKEY_CURRENT_USERSoftwarePlex, Inc.Plex Media Server
  3. Delete these entries:
    • PlexOnlineHome
    • PlexOnlineMail
    • PlexOnlineToken
    • PlexOnlineUsername
  4. Restart Plex.

On Mac:

  1. Launch the Finder.
  2. Press the Options key and click on the Go menu.
  3. Then go to ~/Library/Preferences/. The file you’re interested in is this: com.plexapp.plexmediaserver.plist file.
  4. Next, launch the Terminal and launch these commands:
    •  defaults delete com.plexapp.plexmediaserver PlexOnlineHome.
    • defaults delete com.plexapp.plexmediaserver PlexOnlineMail.
    • defaults delete com.plexapp.plexmediaserver PlexOnlineToken.
    • defaults delete com.plexapp.plexmediaserver PlexOnlineUsername.

Let us know if you’re still getting any errors when loading your Plex libraries.



This post was written by Madalina Dinita and was first posted to Technipages



Do you find this article helpful? Your Friend might too. So, please Share it with them using the Share button above.
Will you like to get notified when I post new updates? Then Follow me on any of my social media handles: Google News, Telegram, WhatsApp, Twitter, Facebook, Pinterest.
You can also drop your email address below if you wish to be notified by mail.


Tags: , ,

%d bloggers like this: