Plex Media Server - Synology DSM 7 Preview - Issues ( Archive )

What you appear to be showing me is @appstore. (aka /var/packages/PlexMediaServer) from before PMS 1.24.2.4973. Only /var/packages/PlexMediaServer has etc, target, var, and WIZARD_FILES (which is the package itself … None of this is your server metadata.

Full pathnames here really help maintain clarity.

Where i can find the path for metadata ?

@XDM

Once you install PMS 1.24.2.4973, it can always be found

/var/packages/PlexMediaServer/shares/PlexMediaServer/

This is the fixed anchor provide by the DSM 7 API.

Prior to this: $SYNOPKG_DEST_VOL/@apphome/PlexMediaServer

Yes, the old “Plex” folder now only has the migration log.
And new folder “PlexMediaServer” got all the data.

Probleme is that i can’t install it on my DSM 7

And when i click on Manual Install i had this after

@dusanzk

If it looks like you have ALL your metadata under the new shared folder “PlexMediaServer”.

We can try this – easiest

  1. Uninstall + KEEP (default)

  2. Install 1.24.2.4973 again — Use Plex Claim Token option

  3. Click the hyperlink to Get Plex Claim Token

  4. COPY it

  5. Paste into the installer window

  6. Click NEXT and complete package install.

  7. It will confirm with a popup that it’s now claimed for you.

  8. Control-F5 to force reload the Plex Web GUI.

  9. You can now look and see what happened.

@XDM

I’m reading my scripts again. I am not understanding how this is possible unless some of the permissions got ‘dinged’ from the shell.

Okay thank you for your support, where i can get the version before the last one, to check if it works ?

Sit still please.

I will figure this out.

I am reading the code right now.

Since you seem capable, here’s where it all happens


# Where is the shared folder and other variables?
PlexPkgShare="/var/packages/PlexMediaServer/shares/PlexMediaServer"
PlexPkgHome="$PlexPkgShare/AppData"

# In event not provided
[ "$SYNOPKG_PKGHOME" = "" ] && SYNOPKG_PKGHOME=/var/packages/PlexMediaServer/home
[ "$SYNOPKG_PKGDEST" = "" ] && SYNOPKG_PKGDEST=/var/packages/PlexMediaServer/target
[ "$SYNOPKG_PKGTMP"  = "" ] && SYNOPKG_PKGTMP=/var/packages/PlexMediaServer/tmp
[ "$SYNOPKG_TEMP_LOGFILE" = "" ] && SYNOPKG_TEMP_LOGFILE=/dev/tty

# Make certain destination writeable
if [ ! -w "$PlexPkgShare" ]; then
  # Brief message - Cannot write to shared folder
  {
    echo "<br><STRONG>ERROR: <strong>System Internal User PlexMediaServer cannot write to shared folder PlexMediaServer</strong>.<br>"
    echo "<br><STRONG>El usuario interno del sistema PlexMediaServer no puede escribir en la carpeta compartida PlexMediaServer</strong>.<br>"
    echo "<br><STRONG>L'utilisateur interne du système PlexMediaServer ne peut pas écrire dans le dossier partagé PlexMediaServer</strong>.<br>"
    echo "<br><STRONG>Systeminterner Benutzer PlexMediaServer kann nicht in den freigegebenen Ordner PlexMediaServer schreiben</strong>.<br>"
    echo "<br><STRONG>システム内部ユーザーPlexMediaServerは共有フォルダーPlexMediaServerrに書き込めません</strong>.<br>"
    echo "<br><STRONG>시스템 내부 사용자 PlexMediaServer는 공유 폴더 PlexMediaServer에 쓸 수 없습니다.</strong>.<br>"
    echo "<br><STRONG>系统内部用户 PlexMediaServer 无法写入共享文件夹 PlexMediaServer</strong>.</p><br>"
  } >> "$SYNOPKG_TEMP_LOGFILE"
  exit 150
fi

DSM creates PlexMediaServer because I request it.
It grants PlexMediaServer R/W permissions.

So who/what changed those permissions ?

I don’t have the /shares folder inside the PlexMediaServer under the var/packages/

which version of PMS do you have installed ?

I tried this on PlexMediaServer-1.24.2.4973-2b1b51db9-x86_64_DSM7.spk

Whatever is installed now isn’t 1.24.2.4973. correct ?

(you can’t go backwards after installing 1.24.2.4973 because of the structure changes)

Now i have no Plex installed on my Syno

Just tried that, same problem, the web GUI loads up but it’s still showing the server as offline, I also tried setting the permissions again, stopping and starting the server through Package Center but the server is still offline, the new (unwanted one) is showing as online, that’s the empty one that was created at some point during the whole updating to 1.24.2.4973.

@XDM

Fine.

Since you’re at the shell, and have a big mess to clean up

  1. IFF there is no version of Plex installed
  2. rm -rf /var/packages/PlexMediaServer
  3. Restart the Syno

I think what happened is the syno rebooted / got interrupted somehow during installation cause you show an installing file (DSM marker file) in the package directory.

We need to erase all this and start fresh so the base package can install.

Do I risk to lose all my progression, movie/tv show metadata, posters, backgrounds etc by doing that ?

No… This is the binary package ONLY.

Your data is held safe in either /volume1/@apphome (all versions below 1.24.2)
or /volume1/PlexMediaServer (PMS 1.24.2.4973) or /volume1/Plex (DSM 6)

By all indications you show me, all your data is still in @apphome.

Done, i removed the folder

@XDM

Please now confirm there is no shared folder named PlexMediaServer.

It is OK to have a shared folder named Plex ( I no longer care about this one )