Seeing a duplicate library only when adding new users and selecting which libraries they can access

Server version 1.13.5.5291 (saw the same problem with previous version as well)
Not sure Player version factors into this but if it does; 3.57.1

When I go into my library, I see all my folders and a single ‘YouTube’ library:

However, when I’m adding a friend to my Plex server and I’m in the spot where I can select which libraries they have access to, I see TWO YouTube libraries:

???

Moderator Edit: Personal email information removed as it’s not needed.

This can happen if you previously had a server with the same “Friend Name” and then removed/rebuilt from scratch. Is this happening here?

In case it helps, over the past few months, I was running my server under Mint… moved it to Antergos then moved it back to Mint (restoring the database each time). I always used the same server name.

This YouTube library, I had it for a while then deleted it and added it back with different media inside it.

The friend I recently added, this was the first time I’ve ever invited them to my Plex server.

Does any of that help?

Look under Settings - Devices. If you see the server name duplicated there in any way, remove the old instances. That will be the problem.

Checked and the server name is not duplicated in there. Only a single instance.

Ok, then there is only one possibility; the published information is duplicated, most likely from having moved your installation from OS to OS.

  • Sign the server out of your account thereby making it unclaimed.
  • Sign in to Plex.tv, go to My Account -> Settings -> Family & Friends -> Sharing
  • Review the list.
  • If you find duplication there, remove it. You’re done
  • If no duplication, unshare & save then re-share that duplicated for everyone as as previously set
  • Return to the normal web client and Sign your server back in (claiming it again in the process)

If I carry out those steps, will it make the server go off-line for any amount of time or will I have to add all the users back or will anything drastic happen or are all those steps harmless and none of my invited friends will notice any impact?

FWIW, that ‘YouTube’ library is only view-able by my main account. It’s not shared out to anyone. I only noticed it when I was inviting a new friend and was giving her access to particular libraries.

How many people are we talking about here?

If the server will only be offline for a little while, I can do it on a Sunday morning (typically a slow time slot). If I need to go back and re-add all the libraries to everyone… I -GUESS- I could do that but I’m wondering if I can save myself lots of clicking by just learning to live with seeing an extra library when adding new users?! :slight_smile:

The choice is yours. There will be a disruption. 30? You have a big family.

Sorry for the super late reply but I just added a new library and when I edit peoples’ accounts to give them access, my new library is duplicated in the spot where I can pick which libraries to give folks access to. So, I think I’m going to carry out the steps you proposed above. Just have another quick question.

If I sign out of my server, carry out the steps you mention then re-claim it… will everyone need to go back to plex.tv/link to re-link to my main account?

EDIT: Another question… if I copy the database to another machine…carry out the steps you mentioned then copy it back over, will that work?

@ChuckPa

BUMP

Small update. It appears this problem happens even with new libraries (I thought it was only impacting existing ones). Example, if I create a library called ABC123 and edit an existing user to give them permission to that newly created library, I’ll see ABC123 listed twice. In light of that, will your steps still help? I’m tempted to just delete the database and start fresh. If I wanted to trash just the database, would I stop the server and delete EVERYTHING in:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases

… then just restart Plex?

I have a post in the Trakt forum to figure out if it’s possible to backup the watched status for all the TV shows/Movies my invited friends have watched. I have a friend that is a SQL DBA… is there a schema document somewhere for the Plex dbase that tells me which table holds that info?

Thanks!

I do not understand how this is happening.

As a test (to see if your DB is corrupted below where PMS can detect or repair)

  1. Stop PMS
  2. cd /var/lib/plexmediaserver
  3. sudo mv Library Library.keep
  4. Start PMS
  5. Open PMS
  6. Create a new “Test” server with a name clearly so indicative (avoids conflicting with old name)
  7. Start setup using same library scenario which faults above.
  8. If no errors, then DB is damaged and can’t be repaired.

Carried out your steps and I couldn’t reproduce my problem. I also tried that link about repairing a corrupt dbase just for kicks and it reduced the size by about 50 megs or so but still having that weird duplicate issue. So with that, to wipe my database and start fresh, just stop Plex, delete everything in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases and then just set it up again? (Will Plex be smart enough to recognize my existing cache folder?)

I’ll have to re-do my collections (which is no big deal)… and if I can’t get all my friends’ watched status sync’d with TrakT, guess they’ll need to create their own accounts and sync things if they want to retain their watched status before I nuke everything.

Watched status can be manually extracted from the old DB and inserted into the new DB.

https://support.plex.tv/articles/201154527-move-viewstate-ratings-from-one-install-to-another/

Perfect, that’s exactly what I was looking for, thanks! I’m assuming this will remember the watch status for all my friends’ accounts and not just mine? (Probably a dumb question, sorry.)

Last question, am I correct in just blowing away that folder I reference above and that’s all I need to do to let Plex re-create the dbase from scratch?

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