YuriyGuts / syno-plex-update

Automatically check for Plex Media Server updates on Synology NAS and install them. Compatible with DSM 6 and DSM 7, including DSM 7.2.2+.
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Script Fail to execute #9

Open lionB777 opened 2 years ago

lionB777 commented 2 years ago

Hello, I can't get it to work, I have output code 1 because of an url error I believe, I have no idea what to check for to get the script to work properly. Here is my log. The error seems to be because of a wrong URL:

<13>Mar 6 16:27:30 root: [syno-plex-update] Downloading latest version from

http://: Invalid host name.

Any help will be more than appreciated. Thx.

Le planificateur de tâches a terminé une tâche planifiée.

Tâche : Syno plex update Heure de début : Sun, 06 Mar 2022 16:27:12 GMT Heure d'arrêt : Sun, 06 Mar 2022 16:27:33 GMT État actuel : 1 (Interrompu) Sortie/erreur standard :

<13>Mar 6 16:27:15 root: [syno-plex-update] PlexMediaServer auto-update started <13>Mar 6 16:27:19 root: [syno-plex-update] Using update channel: 8 <13>Mar 6 16:27:20 root: [syno-plex-update] Downloading Plex release metadata from '[https://plex.tv/api/downloads/5.json?X-Plex-Token=&channel=plexpass](https://plex.tv/api/downloads/5.json?X-Plex-Token=%3Chidden%3E&channel=plexpass)' <13>Mar 6 16:27:22 root: [syno-plex-update] Installed version: 1.25.6.5545 <13>Mar 6 16:27:23 root: [syno-plex-update] Latest available version: 1.25.7.5604 <13>Mar 6 16:27:24 root: [syno-plex-update] Update available. Trying to download and install <13>Mar 6 16:27:30 root: [syno-plex-update] Downloading latest version from http://: Invalid host name. <13>Mar 6 16:27:31 root: [syno-plex-update] PlexMediaServer auto-update failed with exit code 1
lionB777 commented 2 years ago

I believe the URL extracted from the JSON should be https://downloads.plex.tv/plex-media-server-new/1.25.6.5577-c8bd13540/synology -dsm7 /plexmediaserver-1.25.6.5577-c8bd13540-x8664 DSM7 .spk But there is no link for DSM7 in this json, only for DSM6. with this address: https://downloads.plex.tv/plex-media-server-new/1.25.6.5577-c8bd13540/synology/PlexMediaServer-1.25.6.5577-c8bd13540-x86_64_DSM6.spk

the lastest file url available today is: https://downloads.plex.tv/plex-media-server-new/1.25.7.5604-980a13e02/synology-dsm7/PlexMediaServer-1.25.7.5604-980a13e02-x86_DSM7.spk

Could it be because I have a Plex Pass and DSM7 ?

gioxx commented 2 years ago

Same problem here. DSM 7, Plex Pass, Synology DS216j.