Technique for merging servers

How many versions do you see with that on. I see one
Windows 7 SP1 or newer
1.19.3.2764-ef515a800
May 5, 2020

Can’t you just mount the freenas (cifs) and the ubuntu (nfs) and robocopy from a windows machine? Robocopy is pretty robust in terms of copying structures and even maintaining timestamps.

Robocopy GUI

Thats a GUI if your not comfortable with CLI.

You could also use WinSCP

They have a very robust offering in terms of mirroring filesystems.

Transfer the media to your freenas and rescan in your current plex server. If you have more then one path just edit current folders in plex to add the other path. It will be presented in the same way to you in plex.

In my movies folder I have it pointed to a local drive F and a mounted CIFS share on my freenas Z.

Thanks @JeffroDevro - All files and metadata have been placed on the server (somwehere over 2TB worth). That ship has sailed. Issue now is starting the server. Either I’ve alienated @ChuckPa or he’s busy with something else, but he was leading this effort. What I need to understand now, is why the service won’t start (or won’t stay started). Where it seems to have gotten off track, is at the point that I asked if the failure may be related to the fact that the original (on UBUNTU) was plexmediaserver-plexpass … and the new (on FREENAS) is plexmediaserver (not plexpass). But in any case, it starts … and seems to give up the ghost when starting DVR. As I remember back in the day, years ago, DVR was a plexpass-only feature. Still true? Misremembered? I don’t know but hopefully someone can help me understand how to make the server run, AND remember the original (UBUNTU) metadata.

So live TV and Guide I believe is free but DVR is a plex pass feature. Why not just grab one month load it up and see if it works?

Folks?

Breath a bit please. :slight_smile:

@delovelady

The manual log capture was too soon. It didnt’ get past this point (buffer not flushed)

May 12, 2020 10:24:37.263 [0x81244b500] DEBUG - Collections: Found 0 collections tags in section 17.
May 12, 2020 10:24:37.264 [0x81244b500] DEBUG - Collections: We had 0 collections in the library already.
May 12, 2020 10:24:37.264 [0x81244b500] DEBUG - Collections: Synced tags in section 17 in 0ms.
May 12, 2020 10:24:37.264 [0x81244b500] DEBUG - Collections: Refreshed attributes for 0 collections in section 17 in 0ms.
May 12, 2020 10:24:37.264 [0x81244b500] DEBUG - Collection: Refreshed visibility in section 17 in 0ms.
May 12, 2020 10:24:37.264 [0x81244b500] DEBUG - Running database fix-ups completed in 0.0 seconds.
May 12, 2020 10:24:37.265 [0x80bb89800] DEBUG - DVR: Starting up.

Please stop PMS and manually gather logs again.

FYI, there are no errors to this point.

Please see https://youtu.be/sHXH32BKUbc

And these logs plex-logs-again.zip (20.7 KB)

ps -ef | grep -i plex (list the running processes)

service plexmediaserver stop

Now gather logs.

Again, I neeed see the bottom of the logs.

It looks like it’s setting there, waiting to be claimed / first-run setup.

Also

ls -la "Plex Media Server/Plug-in Support/Databases"

Server was stopped before the logs were gathered. It’s in the video I provided.
There is no more.

I’ll get you your ls -la

root@plex2-nas1:/ # ls -la /Plex\ Media\ Server/Plug-in\ Support/Databases/
total 235230
drwxr-xr-x  2 plex  plex        22 May 11 17:50 .
drwxr-xr-x  7 plex  plex         7 Dec  4  2014 ..
-rw-r--r--  1 plex  plex  52502528 Dec 10  2016 com.plexapp.dlna.db
-rw-r--r--  1 plex  plex    425984 Dec 10  2016 com.plexapp.dlna.db-shm
-rw-r--r--  1 plex  plex  53733088 Dec 10  2016 com.plexapp.dlna.db-wal
-rw-r--r--  1 plex  plex   4168704 May  1 17:28 com.plexapp.plugins.library.blobs.db
-rw-r--r--  1 plex  plex    314368 Dec 15  2018 com.plexapp.plugins.library.blobs.db-2018-12-15
-rw-r--r--  1 plex  plex   2439168 Dec 21  2018 com.plexapp.plugins.library.blobs.db-2018-12-21
-rw-r--r--  1 plex  plex   3949568 Feb  1  2019 com.plexapp.plugins.library.blobs.db-2019-02-01
-rw-r--r--  1 plex  plex   3957760 Oct 14  2019 com.plexapp.plugins.library.blobs.db-2019-10-14
-rw-r--r--  1 plex  plex     32768 May 12 18:41 com.plexapp.plugins.library.blobs.db-shm
-rw-r--r--  1 plex  plex   4229760 May 11 17:50 com.plexapp.plugins.library.blobs.db-wal
-rw-r--r--  1 plex  plex  79661056 May  7 22:24 com.plexapp.plugins.library.db
-rw-r--r--  1 plex  plex  69690368 Dec 15  2018 com.plexapp.plugins.library.db-2018-12-15
-rw-r--r--  1 plex  plex  74454016 Dec 21  2018 com.plexapp.plugins.library.db-2018-12-21
-rw-r--r--  1 plex  plex  79474688 Feb  1  2019 com.plexapp.plugins.library.db-2019-02-01
-rw-r--r--  1 plex  plex  80422912 Oct 14  2019 com.plexapp.plugins.library.db-2019-10-14
-rw-r--r--  1 plex  plex     32768 May 12 18:41 com.plexapp.plugins.library.db-shm
-rw-r--r--  1 plex  plex    237928 May 12 18:41 com.plexapp.plugins.library.db-wal
-rw-r--r--  1 plex  plex  49412096 Jul 25  2019 tv.plex.providers.epg.onconnect-0330422c-fe7f-4868-940f-2abc4058057a.db
-rw-r--r--  1 plex  plex     32768 Dec 17 03:28 tv.plex.providers.epg.onconnect-0330422c-fe7f-4868-940f-2abc4058057a.db-shm
-rw-r--r--  1 plex  plex   3802176 Jul 25  2019 tv.plex.providers.epg.onconnect-0330422c-fe7f-4868-940f-2abc4058057a.db-wal

MOD EDIT: Code formatting

Notice:

-rw-r--r--  1 plex  plex  79661056 May  7 22:24 com.plexapp.plugins.library.db

versus

-rw-r--r--  1 plex  plex     32768 May 12 18:41 com.plexapp.plugins.library.db-shm
-rw-r--r--  1 plex  plex    237928 May 12 18:41 com.plexapp.plugins.library.db-wal

Delete the -shm and -wal files.
Those are the shared memory and write ahead lookup files.
Not needed. The DB will be fully refreshed when PMS is up.

I suspect the non-start problem is here.

They seem to be the result of the crash, rather than the cause of it. See video and logs

logs-yet-again.zip (22.2 KB)

Video is at https://youtu.be/aVXjzOZ8RFQ

Edit as appropriate for this new environment

#/bin/sh
# Fully manual start - AS ROOT - to capture crash / console
# "chown -R" will be required after this
#
#
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
export PLEX_MEDIA_SERVER_HOME=/user/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export LANG="en_US.UTF-8"

cd /usr/lib/plexmediaserver
"./Plex Media Server"

Run from terminal window. Find out where it blows up

I corrected the first line, MEDIA_SERVER_HOME and the APPLICATION_SUPPORT location:

#!/bin/sh
# Fully manual start - AS ROOT - to capture crash / console
# "chown -R" will be required after this
#
#
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/"
export PLEX_MEDIA_SERVER_HOME=/usr/local/share/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export LANG="en_US.UTF-8"

cd /usr/lib/plexmediaserver
"./Plex Media Server"

Wifey on the phone… will run shortly.

root@plex2-nas1:/ # chmod +x /usr/local/bin/manual-start-plex
root@plex2-nas1:/ # cat /usr/local/bin/manual-start-plex
#!/bin/sh
# Fully manual start - AS ROOT - to capture crash / console
# "chown -R" will be required after this
#
#
set -x

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/"
export PLEX_MEDIA_SERVER_HOME=/usr/local/share/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export LANG="en_US.UTF-8"

cd ${PLEX_MEDIA_SERVER_HOME}
"./Plex Media Server"
root@plex2-nas1:/ # /usr/local/bin/manual-start-plex
+ export 'PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/'
+ export 'PLEX_MEDIA_SERVER_HOME=/usr/local/share/plexmediaserver'
+ export 'PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6'
+ export 'PLEX_MEDIA_SERVER_TMPDIR=/tmp'
+ export 'LANG=en_US.UTF-8'
+ cd /usr/local/share/plexmediaserver
+ './Plex Media Server'
Segmentation fault
root@plex2-nas1:/ # Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/TheTVDB.bundle.
Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/PlexMovie.bundle.
Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/PersonalMedia.bundle.

Hi, @ChuckPa ChuckPa - is there additional information I can get you from this?

Thanks for your assistance! Much appreciated!

I’m sorry. I wasn’t notified until this post now.

Why are thoses bundles faulting?

They should never fault. If they do, PMS will segfault just as you see.

Try adding export LD_LIBRARY_PATH=/usr/local/share/plexmediaserver/lib

No joy, @ChuckPa - and certainly no need to apologize.

root@plex2-nas1:/Plex Media Server # cat /usr/local/bin/manual-start-plex ; /usr/local/bin/manual-start-plex
#!/bin/sh
# Fully manual start - AS ROOT - to capture crash / console
# "chown -R" will be required after this
#
#
set -x

export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/"
export PLEX_MEDIA_SERVER_HOME=/usr/local/share/plexmediaserver
export LD_LIBRARY_PATH=${PLEX_MEDIA_SERVER_HOME}/lib
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export LANG="en_US.UTF-8"
cd ${PLEX_MEDIA_SERVER_HOME}
"./Plex Media Server"
+ export 'PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/'
+ export 'PLEX_MEDIA_SERVER_HOME=/usr/local/share/plexmediaserver'
+ export 'LD_LIBRARY_PATH=/usr/local/share/plexmediaserver/lib'
+ export 'PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6'
+ export 'PLEX_MEDIA_SERVER_TMPDIR=/tmp'
+ export 'LANG=en_US.UTF-8'
+ cd /usr/local/share/plexmediaserver
+ './Plex Media Server'
Segmentation fault
root@plex2-nas1:/Plex Media Server # Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/TheTVDB.bundle.
Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/PlexMovie.bundle.
Error starting framework core for /usr/local/share/plexmediaserver/Resources/Plug-ins-6327e27bf/Fanart-TV.bundle.

 ^C
root@plex2-nas1:/Plex Media Server # chown -R plex:plex *

I’d have to be hands-on with gdb at this point to figure it out which isn’t possible