Restaure old plex server

i update my dsm to 7.2.2 and i needed update plex with this file https://downloads.plex.tv/plex-media-server-new/1.43.0.10162-b67a664b6/synology-dsm72/PlexMediaServer-1.43.0.10162-b67a664b6-x86_64_DSM72.spk instead of this one https://downloads.plex.tv/plex-media-server-new/1.42.2.10156-f737b826c/synology-dsm72/PlexMediaServer-1.42.2.10156-f737b826c-x86_64_DSM72.spk because my plex was updated to 1.43.

1.43 is a beta version no? how can i avoid beta version?

i use this script to auto-check/update my plex server (for dsm7 so not sure he’s good again for 7.2.2 or 7.3 of dsm):

#!/bin/bash

# Author @loicdugay https://github.com/loicdugay
# Instructions on https://github.com/loicdugay/synology-plex-auto-update
#
# Thanks to
# @mj0nsplex https://forums.plex.tv/u/j0nsplex
# @martinorob https://github.com/martinorob/plexupdate
# @michealespinola https://github.com/michealespinola/syno.plexupdate

# ROOT verification
if [ "$EUID" -ne "0" ];
  then
    printf " %s\n" "This script MUST be run with root permissions."
    /usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script failed.\n\nThis script MUST be run with root permissions."}'
    printf "\n"
    exit 1
fi

# DSM version verification
DSMVersion=$(cat /etc.defaults/VERSION | grep -i 'majorversion=' | cut -d"\"" -f 2)
/usr/bin/dpkg --compare-versions 7 gt "$DSMVersion"
if [ "$?" -eq "0" ];
  then
    printf " %s\n" "This script requires DSM 7 to be installed."
    /usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script failed.\n\nThis script requires DSM 7 to be installed."}'
    printf "\n"
    exit 1
fi

# Search for Plex Media Server version
curversion=$(synopkg version "PlexMediaServer")
curversion=$(echo $curversion | grep -oP '^.+?(?=\-)')
splitversion1=$(echo $curversion | cut -d "." -f 1 )
splitversion2=$(echo $curversion | cut -d "." -f 2 )
splitversion3=$(echo $curversion | cut -d "." -f 3 )
splitversion4=$(echo $curversion | cut -d "." -f 4 )
newpath=false
if [ $splitversion1 -ge 1 ]
then
  if [ $splitversion2 -ge 24 ]
  then
    if [ $splitversion3 -ge 2 ]
    then
      if [ $splitversion4 -ge 4973 ]
      then
        newpath=true
      fi
    fi
  fi
fi
if [[ $newpath ]];
then
  echo Plex version greater than 1.24.2.4973 detected
  token=$(cat /volume1/PlexMediaServer/AppData/Plex\ Media\ Server/Preferences.xml | grep -oP 'PlexOnlineToken="\K[^"]+')
else
  echo Plex version less than 1.24.2.4973 detected
  token=$(cat /volume1/@apphome/PlexMediaServer/Plex\ Media\ Server/Preferences.xml | grep -oP 'PlexOnlineToken="\K[^"]+')
fi

url=$(echo "https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=$token")
jq=$(curl -s ${url})
newversion=$(echo $jq | jq -r '.nas."Synology (DSM 7)".version')
newversion=$(echo $newversion | grep -oP '^.+?(?=\-)')

echo Available version: $newversion
echo Installed version: $curversion

if [ "$newversion" != "$curversion" ]
  then
    mkdir -p /tmp/plex/ > /dev/null 2>&1
    echo New version available, installation in progress:
    CPU=$(uname -m)
    url=$(echo "${jq}" | jq -r '.nas."Synology (DSM 7)".releases[] | select(.build=="linux-'"${CPU}"'") | .url')
    /bin/wget $url -P /tmp/plex/
    /usr/syno/bin/synopkg install /tmp/plex/*.spk
    sleep 30
    /usr/syno/bin/synopkg start "PlexMediaServer"
    rm -rf /tmp/plex/*
    /usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script has installed the latest available version."}'
  else
    echo No new version to install.
    /usr/syno/bin/synonotify PKGHasUpgrade '{"%PKG_HAS_UPDATE%": "The Plex Media Server auto-update script does not detect a new version to install."}'
fi
exit

waiting to know i disabled the script

Don’t use that script to update Plex.

Updating DSM does not require you to run beta versions of PMS.

If you wish to run the public version, uninstall the beta version, then install the public version.

ok thanks

i started to replace broken files and added back missing files but plex still saying files are missing or broken even if all is good and if he arrive to read them. i tried scan and analyse but that change nothing.
any idea ?

You are replacing media files, correct?

  1. Scan the library to pick up the new files.
  2. Empty the trash to remove the old entries. The red trash can should go away.
  3. When finished replacing files, clean bundles and optimize the database (settings → troubleshooting).

i can’t clean trash because i don’t replaced all yet, so if i do it i’ll lost the red recycle bin when needed to know what is missing

Maybe use the Export module of WebTools NG to get a list of missing/all files in that library.
Should be faster to sort and search in a spreadsheet app than in plex for this kind of task.

plugins still works on plex? i thought they were broken since many years

Webtools NG is not a plugin.

ok thanks, i’ll check it