Possible issue from install/update causing database problem and something went wrong error

There are some topics already on this, and I’ve even replied in them with a temporary fix, but I wanted to follow up as I don’t know where to go from here… Note that I’m running the windows server, but I also tagged the mac server as someone else reported a similar issue for the mac server.

My plex server has been running fine and updating all along, but when it was updated to 5715, (and each version since), a couple of weeks ago the upgrade appears to go smoothly, but then when I log in to Plex on any client (including web), I can bring up the interface, but when on Home it doesn’t show my libraries and when I try to select one of my libraries I get “Something went wrong” … If I roll back to the version prior to 5715 (1.25.9.5721), everything works again until the server updates again [and I now have auto update turned off]…

I’ve tried many different ways to install 5715 and even 1.26.1.5798, updating from the server settings, uninstalling plex media server and re-installing, rebooting in between, etc… And no matter how I upgrade, it’s the same result.

Yes, I’ve seen some replies talking about possibly a corrupt database after the install and working through the DB and removing reported corrupt records… But if a corrupt DB was truly the problem, then it shouldn’t work when I rollback to the prior version…

This seems like it would indicate that something is failing and not being trapped and handled during the installation/upgrade process. If there were database updates, it would most likely be there.

I haven’t seen an actual fix or explanation for this… I’m not sure if I can enable any sort of logging that might be useful during the install/upgrade. I compared entries in the windows event logger and I don’t see much difference between the installs of 1.25 and 1.26… I assume database updates are done during the install process, but suppose they could be run upon first start of the server after an update and if they are, perhaps server logging would be helpful… I don’t know…

I do store my plex data files on a different drive, having updated the registry key for plex’s local app data. I’m wondering if the installer or database updates might be using the system’s %localappdata% rather than the one defined for Plex, though I do have a symbolic link for the Plex Media Server folder…

Is there any info from the install/update (or database update) that can be reviewed? Or is there anything else I could look into.

i have a similar problem, any help would be welcome

This is an incorrect statement. When version changes happen the database structure can be altered. You can having a corrupt but working, database. However during the upgrade process something touches the corrupt part of the database causing complete breakage.

The simplest thing would be to check for db corruption first:

https://support.plex.tv/articles/repair-a-corrupted-database/

2 Likes

after running that check can you provide a copy of your plex server logs during a period where its “broken”

Thank you for correcting me. I did as you suggested, completed the repair DB steps and then ran the update and it did work. I then decided to run another check and reverted my plex version and DB back, and only did the integrity check repair (not sure if anything was repaired during recovery) and then upgraded, and it worked as well… So, the 3 things I fixed from the integrity check were to reindex the following:

wrong # of entries in index index_metadata_items_on_added_at
wrong # of entries in index index_metadata_items_on_library_section_id_and_metadata_type_and_added_at
wrong # of entries in index index_metadata_items_on_created_at

So, thank you for pointing that out and all appears to be working properly.

J.

No worries, database corruption is often the problem.

Hi

tried all above, still no luck. I have access to external NAS drive but not mac internal hard drive. I can view through finder but not Plex.

Hi all,

Thank you very much for the help in this topic. I experience the same issue.

I did all of the above mentioned actions:

  • back to 1.25.9.5721 version → all works
  • update to latest 1.26.2.5797 version → "Something went wrong"
  • back to 1.25.9.5721 version → repair DB steps → update to latest 1.26.2.5797 version → "Something went wrong"
  • back to 1.25.9.5721 version → delete the com.plexapp.plugins.library.db database file → run Plex → update to latest 1.26.2.5797 version → "Something went wrong"
  • back to 1.25.9.5721 version → integrity check only → update to latest 1.26.2.5797 version → "Something went wrong"

At the moment the only thing that works on my side is running the 1.25.9.5721 version. Somebody who has another possible solution?

Thank you in advance!

@El_Messy Can you fork this into a new thread for you specific issue? Please provide your server logs on the new thread

I am running a Mac server. Same issue, kind of. After recording Plex shuts down. Restarting Plex runs it for some time and again it shuts down. I used Time Machine to restore an earlier version 1.26.0.5798 and everything reappeared. I am ignoring update notices for now. It is possible that the update does not access the db properly thus giving the impression that the db is corrupted.

I am now having the same problem. I had updated to the latest version, and now cannot access my media. I’m trying to roll back to see if the problem can be solved, but so far, the process seems to have made the problem worse.

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