Where does plex point to when it checks for updates?

other-dev

#1

I am making a bash script on my linux plex server that will automatically check for updates. Can anyone tell me where plex points to for updates? I assume it points to an FTP somewhere. If anyone has that link that would me most appreciated. Getting tired of manually updating. I want this to automatically install and update the server. I basically have it working except for the automatic part.


#2

Take a look at how it was done here: https://github.com/mrworf/plexupdate


#3

One way to check for updates is through your Plex server's API. You can view your server updates at:

http://<plex-ip>:32400/updater/status

You will get some XML like this which contains a download URL for the update:

<MediaContainer size="1" canInstall="1" checkedAt="1455866795" downloadURL="https://plex.tv/downloads/latest/1?channel=16&build=windows-i386&distro=english&X-Plex-Token=*****" status="0">
<Release key="https://plex.tv/updater/releases/1371" version="0.9.15.3.1674-f46e7e6" added="" fixed="(Media Optimizer) Crash after video transcode with certain subtitle configurations.
(Sync)(Windows) Issues ensuring transcode directory is writable.
(Sync)(iOS) Improve accuracy of synced resolution and bitrate metadata." downloadURL="https://plex.tv/downloads/latest/1?channel=16&build=windows-i386&distro=english&X-Plex-Token=*****" state="available" />
</MediaContainer>

Note: The XML is currently bugged, but there are ways to work around it. See PlexPy issue on GitHub.


#4

I will give both of these a shot. I really wanted to be able to tell it when to update. So the xml option may be better for me.


#5

I am getting a 401 unauthorized error when i try the http://:32400/updater/status with my local ip address in there.


#6

@quincarter said:
I am getting a 401 unauthorized error

You'll need to add your token to the url
support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token

/T


#7

Hi,

I'm also looking for automatically update Plex Server
Doesn't seem like http://:32400/updater/status exists anymore. I get 404.

How can I check for new version?
...download new version?
...apply new version?


#8

@ProTeuS01 said:
Hi,

I'm also looking for automatically update Plex Server
Doesn't seem like http://:32400/updater/status exists anymore. I get 404.

How can I check for new version?
...download new version?
...apply new version?

Tired me must have used wrong HTTP method. http://:32400/updater/status do exist
Download new version: http://:32400/updater/check?X-Plex-Token=[insert token]&download=1
Apply new version: http://:32400/updater/apply?X-Plex-Token=[insert token]