• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Plex: There Was an Unexpected Error Loading This Library

Plex: There Was an Unexpected Error Loading This Library

Posted on December 9, 2020 by Madalina Dinita Leave a Comment

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 tools → Extensions. 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 Server\Plug-in Support\Databases”
      • 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_USER\Software\Plex, 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.

You Might Also Like

  • Fix "An unexpected error is keeping you from copying the file" Error in Windows
    Fix "An unexpected error is keeping you from copying…
  • How to Fix Opera Error Loading Media
    How to Fix Opera Error Loading Media
  • Fix Microsoft Teams Error Loading Chunk
    Fix Microsoft Teams Error Loading Chunk
  • Outlook 2013: "Library Not Registered" Error
    Outlook 2013: "Library Not Registered" Error
  • Solve "The iTunes Library.itl file is locked" Error in iTunes
    Solve "The iTunes Library.itl file is locked" Error…
  • Fix Microsoft Teams Unexpected/Unknown Errors
    Fix Microsoft Teams Unexpected/Unknown Errors
  • Fix Microsoft Teams Not Loading in Chrome
    Fix Microsoft Teams Not Loading in Chrome
  • Troubleshooting Opera Browser Not Loading Pages
    Troubleshooting Opera Browser Not Loading Pages
  • Firefox for Android: How to Block Images From Loading
    Firefox for Android: How to Block Images From Loading

Filed Under: Internet Tagged With: Troubleshooting

Reader Interactions

Did this help? Let us know! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Increase the Size of Text on Any Website on iPad
  • Chrome: How to Fix Can’t Scroll Using Scrollbars
  • Samsung Galaxy S 21 Plus: How to Check How Much Memory Is Left
  • Google Photos: How to Export Your Albums
  • Bitwarden: How to Deauthorize All Sessions
  • Bitwarden: How to Clone an Entry
  • Bitwarden: How to View Your API Key
  • How to Fix Microsoft Teams Error 0xcaa80000

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

© Copyright 2021 Technipages · All Rights Reserved · Privacy