Update to PlexMediaServer-1.15.6.1079 and my libraries have vanished

After some trouble and and update to Freenas 11 stable I was able to update Plex.
However when it was done my library was virtually empty and I see two entries
image

I’m guessing the one that is unavailable was my previous setup. I had spent a lot of time recently creating libraries for vacation photos and they are all gone (the confguration I did, not the photos).

I did some searching on the forums and online and only found windows related help.

Seems like you created a new server (or reinstalled plex but are no longer using the same plexdata dir)

I’ll need a few more details but hopefully I can help.

Lets start with the jails you have in FreeNAS, I’m hoping you created a new one and we just need to get the plexdata dir from the old one :crossed_fingers:

This post may help:

I opened a shell right in the existing jail

I used fetch to get the update PMS_Updater.sh, made it exexcutable and then ran it first with plexplass option. I got an error with wget missing so I installed that. I got another error with the upgrade, so I went into the tmp folder, removed both tar files present and tried again without plexpass and it installed. I was missing folders. I tired again with the plexpass option and still no folders. That’s when I noticed my tmp folder had a 1.15.4 and a 1.15.6 versions downloaded.

That is for Synology, not FreeBSD

Can you try what I asked before?

You can list the jails from the UI.

Assuming its just this one please post the output of:
cat /etc/rc.conf | grep plex
ls -lah /usr/local/ |grep plex

@mikec_pt here is the output:

root@plex:/ # cat /etc/rc.conf | grep plex
hostname=“plex”
plexmediaserver_enable=“YES”
plexmediaserver_plexpass_enable=“YES”

Looks like there are two plexdata
root@plex:/ # ls -lah /usr/local/ | grep plex
drwxr-xr-x 3 root wheel 3B Feb 3 12:29 plexdata
drwxr-xr-x 4 root wheel 4B Feb 3 13:23 plexdata-plexpass
root@plex:/ #

Digging deeper I see

root@plex:/usr/local # ls -l ./plexdata
total 11
drwxr-xr-x 10 plex plex 12 May 22 00:30 Plex Media Server

root@plex:/usr/local # ls -l ./plexdata-plexpass/
total 12
drwxr-xr-x 2 plex plex 2 Feb 3 13:23 Plex
drwxr-xr-x 10 plex plex 11 May 17 01:05 Plex Media Server

root@plex:/usr/local/plexdata-plexpass # diff -r Plex Plex\ Media\ Server
Only in Plex Media Server: Cache
Only in Plex Media Server: Codecs
Only in Plex Media Server: Diagnostics
Only in Plex Media Server: Logs
Only in Plex Media Server: Media
Only in Plex Media Server: Metadata
Only in Plex Media Server: Plug-in Support
Only in Plex Media Server: Plug-ins
Only in Plex Media Server: Preferences.xml

Comparing the two Plex Media Server folders shows:
root@plex:/usr/local/plexdata/Plex Media Server # ls -lah
total 64
drwxr-xr-x 10 plex plex 12B May 22 00:30 .
drwxr-xr-x 3 root wheel 3B Feb 3 12:29 …
drwxr-xr-x 4 plex plex 13B May 21 18:58 Cache
drwxr-xr-x 3 plex plex 4B Feb 3 12:29 Codecs
drwxr-xr-x 3 plex plex 35B May 21 02:01 Logs
drwxr-xr-x 3 plex plex 3B Feb 3 12:39 Media
drwxr-xr-x 3 plex plex 3B Feb 3 12:39 Metadata
-rwxr-xr-x 1 root plex 8.6K Feb 3 13:12 PMS_Updater.sh
drwxr-xr-x 7 plex plex 7B Feb 3 12:29 Plug-in Support
drwxr-xr-x 3 plex plex 3B Feb 3 12:30 Plug-ins
-rw------- 1 plex plex 732B May 22 00:30 Preferences.xml
drwxr-xr-x 3 plex plex 3B May 17 01:40 Thumbnails

root@plex:/usr/local/plexdata-plexpass/Plex Media Server # ls -lah
total 85
drwxr-xr-x 10 plex plex 11B May 17 01:05 .
drwxr-xr-x 4 root wheel 4B Feb 3 13:23 …
drwxr-xr-x 6 plex plex 15B May 17 01:15 Cache
drwxr-xr-x 3 plex plex 4B Feb 3 13:23 Codecs
drwxr-xr-x 2 plex plex 4B May 17 01:05 Diagnostics
drwxr-xr-x 3 plex plex 53B May 17 01:05 Logs
drwxr-xr-x 3 plex plex 3B Feb 3 13:26 Media
drwxr-xr-x 6 plex plex 6B Feb 3 13:35 Metadata
drwxr-xr-x 7 plex plex 7B Feb 3 13:24 Plug-in Support
drwxr-xr-x 3 plex plex 3B Feb 3 13:24 Plug-ins
-rw------- 1 plex plex 815B May 17 01:05 Preferences.xml

So at some point you install the plexmediasserver port and then plexmediaserver-plexpass we just need to figure which one you were actually using before.

Since you’re rc.conf file points to:

plexmediaserver_enable=“YES”
plexmediaserver_plexpass_enable=“YES”

This should be the one you’re using now, lets try this:

ls -l /usr/local/plexdata/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db

and also:
ls -l /usr/local/plexdata-plexdata/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db

This should allow us to see which db is bigger/older!

Btw do you remember if you had database backup enabled in server settings? This would be setup in “Settings” -> “Scheduled Tasks”

Here are the results:
root@plex:/ # ls -l /usr/local/plexdata/Plex\ Media\ Server/Plug-in\ Support/Dat
abases/com.plexapp.plugins.library.db
-rw-r–r-- 1 plex plex 14014464 May 22 02:01 /usr/local/plexdata/Plex Media S
erver/Plug-in Support/Databases/com.plexapp.plugins.library.db
root@plex:/ # ls -l /usr/local/plexdata-plexpass/Plex\ Media\ Server/Plug-in\ Su
pport/Databases/com.plexapp.plugins.library.db
-rw-r–r-- 1 plex plex 261813248 May 17 00:40 /usr/local/plexdata-plexpass/Pl
ex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db

plexdata-plexpass last modified before I ran the update and is larger.

As for the backup I think it was, but I would have to look and I haven’t launched it since the issue occurred.

Hum yeah looks like plexpass one would be where most change are but still it should be actually using that and you say you have libraries so it’s possible they are actually both for clean installs :confused:

I suggest you start pms go to settings and see if you do have backups

Current settings show backup every 3 days to
/usr/local/plexdata/Plex Media Server/Plug-in Support/Databases
But as the results show plexdata is only 14MB and plexdata-plexpass is 261mb.

The NAS folders are shared and I built the libraries from there. When I launch it, it still has my profiles and my older library setup.

So it looks like it’s gotten mixed between the two instances. Any suggestions for pointing it back to plexdata-plexpass or how to copy it over?

If the backup location was the same path but plexdata-plexpass then here are the files:
-rw-r–r-- 1 plex plex 1368064 May 17 01:05 com.plexapp.dlna.db
-rw-r–r-- 1 plex plex 32768 May 17 01:05 com.plexapp.dlna.db-shm
-rw-r–r-- 1 plex plex 1602712 May 17 01:05 com.plexapp.dlna.db-wal
-rw-r–r-- 1 plex plex 13313024 Feb 22 04:14 com.plexapp.plugins.library.blo
bs.db
-rw-r–r-- 1 plex plex 13355008 May 5 02:03 com.plexapp.plugins.library.blo
bs.db-2019-05-05
-rw-r–r-- 1 plex plex 13355008 May 8 02:01 com.plexapp.plugins.library.blo
bs.db-2019-05-08
-rw-r–r-- 1 plex plex 13355008 May 11 02:01 com.plexapp.plugins.library.blo
bs.db-2019-05-11
-rw-r–r-- 1 plex plex 13355008 May 14 02:03 com.plexapp.plugins.library.blo
bs.db-2019-05-14
-rw-r–r-- 1 plex plex 32768 May 17 01:05 com.plexapp.plugins.library.blo
bs.db-shm
-rw-r–r-- 1 plex plex 1350904 Apr 20 02:07 com.plexapp.plugins.library.blo
bs.db-wal
-rw-r–r-- 1 plex plex 261813248 May 17 00:40 com.plexapp.plugins.library.db
-rw-r–r-- 1 plex plex 263756800 May 5 02:03 com.plexapp.plugins.library.db-
2019-05-05
-rw-r–r-- 1 plex plex 263756800 May 8 02:01 com.plexapp.plugins.library.db-
2019-05-08
-rw-r–r-- 1 plex plex 261778432 May 11 02:01 com.plexapp.plugins.library.db-
2019-05-11
-rw-r–r-- 1 plex plex 262173696 May 14 02:03 com.plexapp.plugins.library.db-
2019-05-14
-rw-r–r-- 1 plex plex 32768 May 17 01:16 com.plexapp.plugins.library.db-
shm
-rw-r–r-- 1 plex plex 268267072 May 17 01:15 com.plexapp.plugins.library.db-
wal
-rw-r–r-- 1 plex plex 9641984 May 17 01:05 tv.plex.providers.epg.onconnect
-4c81a3a7-2601-4724-859f-704fa179f5a1.db
-rw-r–r-- 1 plex plex 32768 May 17 01:05 tv.plex.providers.epg.onconnect
-4c81a3a7-2601-4724-859f-704fa179f5a1.db-shm
-rw-r–r-- 1 plex plex 10291392 May 17 01:05 tv.plex.providers.epg.onconnect
-4c81a3a7-2601-4724-859f-704fa179f5a1.db-wal

Ah actually I failed to see the issue before:

plexmediaserver_enable=“YES”
plexmediaserver_plexpass_enable=“YES”

You actually enabling both -.-’

And probably the 1st one start than the older fails cause it can’t listen on an address already in use.

You could copy over the DB from plexpass to the other, or just comment/remove
plexmediaserver_enable=“YES” in rc.conf and restart the jail.

removed it and shutdown/restarted jail.
Neither server found.
image
tried :
root@plex:/ # service plexmediaserver start
Cannot ‘start’ plexmediaserver. Set plexmediaserver_enable to YES in /etc/rc.con
f or use ‘onestart’ instead of ‘start’.

and:
root@plex:/ # service plexmediaserver-plexpass start
plexmediaserver-plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)

When I tried the onestart option the newer no libraries server was available.

type, did service plexmediaserver_plexpass start and it worked.
However back to no servers found.
I also can’t access via ip address (happened above but didn’t mention it)
I can only login to app.plex.tv and launch, but it can’t find either server.

Awesome than now the question is which version you actually want to keep as you can always migrate plexdata dir over.

Sorry I did an update to the previous post.

I’m tempted to just tear it all down and start from scratch.

removed _plexpass line and added back the plexmediaserver_enable.
That got the ip address working again.
I’m going to copy the plexdata-plexpass config over.