Plex Media Server on QNAP NAS 453B not installing correctly

Server Version#: 1.23.4.4712 (but also since v1.22.2)
Player Version#:

QNAS TS 453B
Firmware 4.5.4.1715
CPU: Intel J3455

Upgrading from 1.21.4.4079 to a newer version ends up in PMS not working.

Completely de-installed PMS and made a instal of the latest version 1.23.4.4712
After installation, starting the service “seems” to go okay,
App Center indicates it is running…

But when using the commandline
./plex.sh start

it results in:

Starting Plex Media Server…
./plex.sh: line 195: ./Plex Media Server: No such file or directory

It did not install the folder “Plex Media Server” in the Library folder.

So what is missing is the folder in:
.qpkg/PlexMediaServer/Library/Plex Media Server

Therefor there are also no log files.
How can i resolv this?

@ivoets

You didn’t get a good installation somewhere along the way.

Here’s the structure –

/share/CACHEDEVx_DATA/    (can be installed on any volume)
   .qpkg/                  -- where packages get installed.
     PlexMediaServer/      -- Plex package directory
      plex.sh
      Plex Media Server    -- The executable
      ...                  -- all other package executables
      Library/             -- Top of where your metadata goes
        Plex Media Serer/ 
          Preferences.xml  -- This is your server's Identification XML file
          Media/           -- What PMS knows about the media you have
          Metadata/        --  The metadata for the media you have.

How good are you at the command line?

  1. Find out where Plex is . Might you have multiple installation directories ?
#  echo /share/CACHEDEV*/.qpkg/Plex*
  1. See what is really running
#  ps -ef | grep -i plex

plex.sh is there, but the executable “Plex Media Server” is not.

In the folder “Library” there’s only “tmp”

There are no other folders or processes with Plex running

total 11032
drwxr-xr-x  6 admin administrators    4096 2021-07-01 17:08 ./
drwxrwxrwx 12 admin administrators    4096 2021-07-01 17:08 ../
-rwxr-xr-x  1 admin administrators  683624 2021-06-17 17:53 CrashUploader*
drwxr-xr-x  2 admin administrators    4096 2021-06-17 18:11 etc/
drwxr-xr-x  4 admin administrators    4096 2021-07-01 17:08 lib/
drwxrwxrwx  3 admin administrators    4096 2021-07-01 17:08 Library/
-rw-rw-rw-  1 admin administrators  192025 2021-07-01 17:08 .list
-rwxr-xr-x  1 admin administrators  267240 2021-06-17 17:26 Plex Commercial Skipper*
-rwxr-xr-x  1 admin administrators 2596280 2021-06-17 17:50 Plex DLNA Server*
-rwxr-xr-x  1 admin administrators  113584 2021-06-17 17:26 Plex Media Fingerprinter*
-rwxr-xr-x  1 admin administrators 3814184 2021-06-17 17:53 Plex Media Scanner*
lrwxrwxrwx  1 admin administrators      69 2021-07-01 17:08 Plex Media Server -> /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server
-rwxr-xr-x  1 admin administrators  651048 2021-06-17 17:26 Plex Relay*
-rwxr-xr-x  1 admin administrators   10992 2021-06-17 17:26 Plex Script Host*
-rwxr-xr-x  1 admin administrators    7171 2021-06-17 18:11 plex.sh*
-rwxr-xr-x  1 admin administrators   10536 2021-06-17 17:26 Plex SQLite*
-rwxr-xr-x  1 admin administrators  302768 2021-06-17 17:26 Plex Transcoder*
-rwxr-xr-x  1 admin administrators 2551656 2021-06-17 17:26 Plex Tuner Service*
-rw-rw-r--  1 admin administrators    5254 2021-06-17 18:10 .qpkg_icon_80.gif
-rw-rw-r--  1 admin administrators    4468 2021-06-17 18:10 .qpkg_icon.gif
-rw-rw-r--  1 admin administrators    3138 2021-06-17 18:10 .qpkg_icon_gray.gif
drwxr-xr-x 10 admin administrators    4096 2021-06-17 18:11 Resources/
-rwxr-xr-x  1 admin administrators     826 2021-07-01 17:08 .uninstall.sh*

There is only a link to the Library folder, but that file is not installed

what was done to this manually?
QPKG doesn’t install that way and neither do I .

This has been done by the installer.

When removing the program the folder
/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer
is removed also.

Only thing i did was opening the App Center and install the .qpkg file downloaded from the plex website.

When the app center reports the program is installed, this is how the folder looks like…

Please do the following.

  1. Uninstall the app.
  2. Verify no executables or links are left
  3. Now install.
  4. Show me the result again please.

I don’t understand how/why this is breaking for you . If it were package related – it would be broken for all.

Removed the application…

[/share/CACHEDEV1_DATA/.qpkg] # ls -la
total 56
drwxrwxrwx 11 admin administrators 4096 2021-07-01 17:58 ./
drwxrwxrwx 40 admin administrators 4096 2021-07-01 15:52 ../
drwxr-xr-x 18 admin administrators 4096 2021-07-01 15:56 CacheMount/
drwxrwxr-x 12 admin administrators 4096 2021-05-13 23:02 CloudLink/
drwxr-xr-x 14 admin administrators 4096 2021-05-14 23:03 HybridBackup/
drwxr-xr-x  2 admin administrators 4096 2021-07-01 17:08 .installation/
drwxrwxr-x  8 admin administrators 4096 2021-07-01 15:56 MalwareRemover/
drwxrwxrwx  7 admin administrators 4096 2021-06-20 01:53 MultimediaConsole/
drwxr-xr-x  7 admin administrators 4096 2021-04-06 05:03 QDMS/
drwxrwxrwx  2 admin administrators 4096 2021-04-18 23:12 QNAP-WT-Install/
drwxr-xr-x  2 admin administrators 4096 2021-04-06 05:03 .@qRPlayCenter/

Downloaded the QPKG file (PlexMediaServer-1.23.4.4712-1f0ed4aea-x86_64.qpkg) again from Media Server Downloads | Plex Media Server for Windows, Mac, Linux, FreeBSD and More

After install :

[/share/CACHEDEV1_DATA/.qpkg] # ls -la
total 64
drwxrwxrwx 12 admin administrators 4096 2021-07-01 18:03 ./
drwxrwxrwx 40 admin administrators 4096 2021-07-01 15:52 ../
drwxr-xr-x 18 admin administrators 4096 2021-07-01 15:56 CacheMount/
drwxrwxr-x 12 admin administrators 4096 2021-05-13 23:02 CloudLink/
drwxr-xr-x 14 admin administrators 4096 2021-05-14 23:03 HybridBackup/
drwxr-xr-x  2 admin administrators 4096 2021-07-01 18:03 .installation/
drwxrwxr-x  8 admin administrators 4096 2021-07-01 15:56 MalwareRemover/
drwxrwxrwx  7 admin administrators 4096 2021-06-20 01:53 MultimediaConsole/
drwxr-xr-x  6 admin administrators 4096 2021-07-01 18:03 PlexMediaServer/
drwxr-xr-x  7 admin administrators 4096 2021-04-06 05:03 QDMS/
drwxrwxrwx  2 admin administrators 4096 2021-04-18 23:12 QNAP-WT-Install/
drwxr-xr-x  2 admin administrators 4096 2021-04-06 05:03 .@qRPlayCenter/

The PlexMediaServer Folder:

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ls -la
total 11028
drwxr-xr-x  6 admin administrators    4096 2021-07-01 18:03 ./
drwxrwxrwx 12 admin administrators    4096 2021-07-01 18:03 ../
-rwxr-xr-x  1 admin administrators  683624 2021-06-17 17:53 CrashUploader*
drwxr-xr-x  2 admin administrators    4096 2021-06-17 18:11 etc/
drwxr-xr-x  4 admin administrators    4096 2021-07-01 18:03 lib/
drwxrwxrwx  3 admin administrators    4096 2021-07-01 18:03 Library/
-rw-rw-rw-  1 admin administrators  192025 2021-07-01 18:03 .list
-rwxr-xr-x  1 admin administrators  267240 2021-06-17 17:26 Plex Commercial Skipper*
-rwxr-xr-x  1 admin administrators 2596280 2021-06-17 17:50 Plex DLNA Server*
-rwxr-xr-x  1 admin administrators  113584 2021-06-17 17:26 Plex Media Fingerprinter*
-rwxr-xr-x  1 admin administrators 3814184 2021-06-17 17:53 Plex Media Scanner*
lrwxrwxrwx  1 admin administrators      69 2021-07-01 18:03 Plex Media Server -> /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server
-rwxr-xr-x  1 admin administrators  651048 2021-06-17 17:26 Plex Relay*
-rwxr-xr-x  1 admin administrators   10992 2021-06-17 17:26 Plex Script Host*
-rwxr-xr-x  1 admin administrators    7171 2021-06-17 18:11 plex.sh*
-rwxr-xr-x  1 admin administrators   10536 2021-06-17 17:26 Plex SQLite*
-rwxr-xr-x  1 admin administrators  302768 2021-06-17 17:26 Plex Transcoder*
-rwxr-xr-x  1 admin administrators 2551656 2021-06-17 17:26 Plex Tuner Service*
-rw-rw-r--  1 admin administrators    5254 2021-06-17 18:10 .qpkg_icon_80.gif
-rw-rw-r--  1 admin administrators    4468 2021-06-17 18:10 .qpkg_icon.gif
-rw-rw-r--  1 admin administrators    3138 2021-06-17 18:10 .qpkg_icon_gray.gif
drwxr-xr-x 10 admin administrators    4096 2021-06-17 18:11 Resources/
-rwxr-xr-x  1 admin administrators     826 2021-07-01 18:03 .uninstall.sh*

The Library folder:

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library] # ls -la
total 24
drwxrwxrwx 3 admin administrators 4096 2021-07-01 18:03 ./
drwxr-xr-x 6 admin administrators 4096 2021-07-01 18:03 ../
drwxrwxrwx 2 admin administrators 4096 2021-07-01 18:03 tmp/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library] #

Are there any services or modules that can be broken or a wrong version that Plex installation is relying on or needs to link binaries ? Like Python or GCC ?
Python v 2.7.5
GCC v4.9.2

Is there a way to get a debug log from the installation process??

You can

  1. put the QPKG in a directory
  2. chmod +x file.qpkg
  3. ./file.qpkg

(it’s a shell archive)

Watch it install

[/share/CACHEDEV1_DATA/.qpkg] # ./PlexMediaServer-1.23.4.4712-1f0ed4aea-x86_64.qpkg
Install QNAP package on TS-NAS...
./
./package_routines
./qinstall.sh
./built_info
./qpkg.cfg
4382+1 records in
4382+1 records out
108774576 bytes (103.7MB) copied, 0.934498 seconds, 111.0MB/s
106224+0 records in
106224+0 records out
108773376 bytes (103.7MB) copied, 0.935233 seconds, 110.9MB/s
Firmware check is fine.
Link service start/stop script: plex.sh
Set QPKG information in /etc/config/qpkg.conf
Starting Plex Media Server...
/etc/init.d/plex.sh: line 195: ./Plex Media Server: No such file or directory

You have something damaged in the qpkg.conf file.

You need QNAP’s help.

[~] # cd /share/Public
[/share/Public] # ls -la
total 106268
drwxr-xr-x  3 admin administrators      4096 2021-07-01 13:17 ./
drwxrwxrwx 49 admin administrators      4096 2021-07-01 13:17 ../
-rw-rw-rw-  1 admin administrators 108799394 2021-07-01 13:16 PlexMediaServer-1.23.4.4712-1f0ed4aea-x86_64.qpkg
drwxrwxrwx  2 admin administrators      4096 2021-07-01 13:17 .@upload_cache/
[/share/Public] # chmod +x PlexMediaServer-1.23.4.4712-1f0ed4aea-x86_64.qpkg 
[/share/Public] # ./PlexMediaServer-1.23.4.4712-1f0ed4aea-x86_64.qpkg 
Install QNAP package on TS-NAS...
./
./package_routines
./qinstall.sh
./built_info
./qpkg.cfg
4382+1 records in
4382+1 records out
108774576 bytes (103.7MB) copied, 0.279820 seconds, 370.7MB/s
106224+0 records in
106224+0 records out
108773376 bytes (103.7MB) copied, 0.279989 seconds, 370.5MB/s
PlexMediaServer 1.23.3 is already installed. Setup will now perform package upgrading.
Firmware check is fine.
Stopping Plex Media Server...
/etc/init.d/plex.sh: line 203: kill: (8276) - No such process
Link service start/stop script: plex.sh
Set QPKG information in /etc/config/qpkg.conf
Starting Plex Media Server...
[/share/Public] # 

This is the answer from QNAP:

The highest version available for this NAS is
Plex Media Server
1.21.1 ( 2021/01/28 ) | Partners 、 Entertainment

Please dont use any higher version as these have not gone passed our testing department and are not supported by us

@ivoets

Did QNAP help you correct the issue installing PMS or did they refuse?

They refused.

They only support Plex version 1.21.1 so no help there…
I installed my backup, so hope that old version keeps working, because i’m unable to update…

@ivoets

Thank you.

Relayed to QNAP PM for all NAS products.

Thanx

Let me see if I can get you back to minimal working status…

Give me a bit

Everything is – right where it should be.

  1. SSH into the QNAP
  2. do the following at the console log. (here is my console log)
[~] # 
[~] # cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] #  ./.uninstall.sh
Stopping Plex Media Server...
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ls -la
total 0
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # pwd
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # 
  1. Open App Center
  2. Right-Click the Plex app icon (if still there)
  3. “Remove”

Now you can begin again fresh

The PMS 1.21.1 backup works… limited…
Because i think newer players dont support it any more.
My Samsung SmartTV still works, but my tablet & Phone wont play anything from the server.

QNAP support stil refuses to help me with any PMS version above 1.21.1.

QNAP Support:

Dear Customer,

i allready explained it before , its not been tested yet but once it is the version will be available in our appcenter

If i could switch to another OS (Windows) i would, but unfortunately, all the information within the dBase will be lost, because there’s no descent export / import feature in Plex.
I’m talking about almost 1000 media files that would need manual updating.

This is lack of import/export functionality is a serious fck-up in Plex.