# There was an unexpected error loading this library

**URL:** <https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336>\
**Category:** General Discussions\
**Tags:** server-windows\
**Created:** [November 24, 2019, 7:29pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336 "2019-11-24T19:29:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Media4Us1](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Media4Us1](https://forums.plex.tv/u/Media4Us1)\
**Post date:** [November 24, 2019, 7:29pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/1 "2019-11-24T19:29:57Z")

</div>

There was an unexpected error loading this library

---

<div class="post-metadata">

**Author:** ![darcilicious](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/darcilicious/32/3047_2.png) [@darcilicious](https://forums.plex.tv/u/darcilicious)\
**Post date:** [November 24, 2019, 7:31pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/2 "2019-11-24T19:31:02Z")

</div>

Go to Settings, then on the left under PLEX WEB click on Debug (click on Show Advanced if you don’t see Debug), and then click on `Restore Defaults` – please take note of the accompanying warning!

---

<div class="post-metadata">

**Author:** ![bgamer](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bgamer](https://forums.plex.tv/u/bgamer)\
**Post date:** [November 24, 2019, 9:53pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/3 "2019-11-24T21:53:27Z")

</div>

I’m having the same issue.

Does this mean the only solution is to set everything back to default? Does that mean all metadata and library organization will be lost? If so, yikes!

---

<div class="post-metadata">

**Author:** ![darcilicious](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/darcilicious/32/3047_2.png) [@darcilicious](https://forums.plex.tv/u/darcilicious)\
**Post date:** [November 24, 2019, 9:55pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/4 "2019-11-24T21:55:59Z")

</div>

The warning doesn’t mention any of those items so no none of those things will be reset. The only thing that gets reset is what’s described exactly in that warning which is the layout of your plex web home screen.

---

<div class="post-metadata">

**Author:** ![bmwebb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bmwebb/32/115366_2.png) [@bmwebb](https://forums.plex.tv/u/bmwebb)\
**Post date:** [November 25, 2019, 1:52am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/6 "2019-11-25T01:52:07Z")

</div>

I am having an issue where the server is not found, will this solve that issue??

> [@Plex Media Server Connection Failure](https://forums.plex.tv/t/plex-media-server-connection-failure/494626/2):
>
> Re: playback locally… Is there any chance you have unused or offline servers in your Plex server list? If you temporarily remove them, do you still have problems playing back locally?

---

<div class="post-metadata">

**Author:** ![darcilicious](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/darcilicious/32/3047_2.png) [@darcilicious](https://forums.plex.tv/u/darcilicious)\
**Post date:** [November 25, 2019, 2:48am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/7 "2019-11-25T02:48:59Z")

</div>

> [@bmwebb](#):
>
> will this solve that issue??

No idea. What happens if you try it?

---

<div class="post-metadata">

**Author:** ![bmwebb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bmwebb/32/115366_2.png) [@bmwebb](https://forums.plex.tv/u/bmwebb)\
**Post date:** [November 25, 2019, 3:12am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/8 "2019-11-25T03:12:14Z")

</div>

ok, I’ll give it a bash.

Do you have any other ideas as to why I can’t see the server, I have followed all the instructions from support.

Another thing I have noticed, it appears the server is not starting at system boot and I have it selected in the start-up options.

This could be a Catalina issue to prove that i’ll have to roll back to High Sierra ☹

---

<div class="post-metadata">

**Author:** ![darcilicious](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/darcilicious/32/3047_2.png) [@darcilicious](https://forums.plex.tv/u/darcilicious)\
**Post date:** [November 25, 2019, 3:40am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/9 "2019-11-25T03:40:09Z")

</div>

Sorry, I don’t have much luck/experience troubleshooting server issues. You should probably keep posting to your original thread, because at this point you’re hijacking the topic of this thread.

---

<div class="post-metadata">

**Author:** ![bmwebb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bmwebb/32/115366_2.png) [@bmwebb](https://forums.plex.tv/u/bmwebb)\
**Post date:** [November 25, 2019, 11:09am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/10 "2019-11-25T11:09:47Z")

</div>

Sorry, but I have to say that your suggestion to reset the defaults actually worked.

---

<div class="post-metadata">

**Author:** ![bgamer](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bgamer](https://forums.plex.tv/u/bgamer)\
**Post date:** [November 26, 2019, 9:54am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/11 "2019-11-26T09:54:41Z")

</div>

I don’t actually see the words “Restore Defaults” anywhere in the Debug tab or anywhere in Settings. Does this only appear in a specific version? What am I doing incorrectly. Thanks!

---

<div class="post-metadata">

**Author:** ![Media4Us1](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Media4Us1](https://forums.plex.tv/u/Media4Us1)\
**Post date:** [November 26, 2019, 1:51pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/12 "2019-11-26T13:51:31Z")

</div>

i “Restore Defaults” but the problem continues

---

<div class="post-metadata">

**Author:** ![coolisland](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@coolisland](https://forums.plex.tv/u/coolisland)\
**Post date:** [November 27, 2019, 11:54am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/13 "2019-11-27T11:54:23Z")

</div>

I have the same issue, restore defaults also does not work.

Interestingly the Recommendations tab shows results and indicates the libraries are all present just not displaying.

Yesterday I installed a new Freenas jail with the latest Plex Media Server via pkg, renewed mounts and re-configured Movies, TV and Music libraries.  
The initial library scans seemed to work and I have my movie list (963 titles) and TV shows also displayed via Library. I have returned home 24 hours later to find I’m back to square one with working Recommendations and unexpected errors on Library tabs.

Hoping this helps somebody with more clues than me to determine the issue.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 27, 2019, 12:10pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/14 "2019-11-27T12:10:29Z")

</div>

> [@coolisland](#):
>
> The initial library scans seemed to work and I have my movie list (963 titles) and TV shows also displayed via Library.

Make sure the scheduled tasks are running. After ingesting into or deleting a lot of items from Plex, the database usually needs optimization.  
This is automatically done during the [server maintenance](https://support.plex.tv/articles/201553286-scheduled-tasks/), but you can also [trigger it manually](https://support.plex.tv/articles/226836308-help/).  
Do it, then see what comes out of it.

---

<div class="post-metadata">

**Author:** ![coolisland](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@coolisland](https://forums.plex.tv/u/coolisland)\
**Post date:** [November 27, 2019, 12:16pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/15 "2019-11-27T12:16:29Z")

</div>

Thanks for the tip I have started the Optimize Database process and confirmed that Scheduled Tasks are configured to run.

Web Client 4.8.4  
Server: 1.18.2.2041-3d469cb32  
Plex Media Server  
PC  
FreeBSD 11.2-STABLE

---

<div class="post-metadata">

**Author:** ![coolisland](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@coolisland](https://forums.plex.tv/u/coolisland)\
**Post date:** [November 27, 2019, 1:04pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/16 "2019-11-27T13:04:36Z")

</div>

Thanks OttoKerner!

Optimize Database appears to have done the trick and libraries are now displaying again.

Very much appreciate the assistance!

---

<div class="post-metadata">

**Author:** ![bgamer](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bgamer](https://forums.plex.tv/u/bgamer)\
**Post date:** [November 29, 2019, 7:15pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/17 "2019-11-29T19:15:34Z")

</div>

> [@bgamer](#):
>
> I don’t actually see the words “Restore Defaults” anywhere in the Debug tab or anywhere in Settings.

Again, do you know what I need to do or go to find this?

Also, where is the “Troubleshooting” button or tab or whatever. Can’t find that either, as I was trying to trigger the optimization as suggested above. Thanks!

---

<div class="post-metadata">

**Author:** ![darcilicious](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/darcilicious/32/3047_2.png) [@darcilicious](https://forums.plex.tv/u/darcilicious)\
**Post date:** [November 29, 2019, 7:21pm UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/18 "2019-11-29T19:21:08Z")

</div>

Here is what I posted before; make sure you’re using the web browser to access your Plex Media Server (e.g. [https://app.plex.tv/desktop](https://app.plex.tv/desktop)):

> [@darcilicious](#):
>
> Go to Settings, then on the left under PLEX WEB click on Debug (click on Show Advanced if you don’t see Debug), and then click on `Restore Defaults` – please take note of the accompanying warning!

 ![53 AM](https://global.discourse-cdn.com/plex/original/3X/0/f/0fd69998b0fe046a8dcf1769c7f34d15383ec581.jpeg)

---

<div class="post-metadata">

**Author:** ![Media4Us1](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Media4Us1](https://forums.plex.tv/u/Media4Us1)\
**Post date:** [November 30, 2019, 7:38am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/19 "2019-11-30T07:38:08Z")

</div>

What version are you using

---

<div class="post-metadata">

**Author:** ![bgamer](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bgamer](https://forums.plex.tv/u/bgamer)\
**Post date:** [December 3, 2019, 4:41am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/20 "2019-12-03T04:41:29Z")

</div>

Oh, I see it now. Alas, pressing it did nothing visible. I also tried again a day later, and again just now. I’m only seeing an empty Home screen, as if I’ve never added a library before. I’m starting to get scared that all the work I did is gone forever.

Is there someone I can talk to directly to walk me through all my options? Thanks!

---

<div class="post-metadata">

**Author:** ![vancouverizer\_gmail\_com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vancouverizer_gmail_com/32/162839_2.png) [@vancouverizer\_gmail\_com](https://forums.plex.tv/u/vancouverizer_gmail_com)\
**Post date:** [December 5, 2019, 7:34am UTC](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336/21 "2019-12-05T07:34:07Z")

</div>

I had the same symptom just now. In the Plex server (web UI) I clicked on my server’s name because none of the shared media folders inside it were being listed so I though clicking it might trigger something. Instead, I saw the error " There was an unexpected error loading this library".

It then suggested I visit the forum, where I searched for that error message and found this topic.

Accidentally, I used the same browser tab to visit the forum (taking me away from the server Web UI). I used the back button to return to the server’s Home page, which was then refreshed. So, it would appear that simply refreshing Plex’s Home page seems to have resolved the issue for me.

[Next page](https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library/496336.md?page=2)
