mstinaff / PMS_Updater

Shell script for updating the Plex Media Server inside the FreeNAS Plex plugin
MIT License
441 stars 90 forks source link

Can't update #15

Closed GJean closed 1 year ago

GJean commented 8 years ago

I try to update with plex media server 1.0 but I have this error : `--2016-06-24 08:18:02-- https://plex.tv/downloads?channel=plexpass
Resolving plex.tv (plex.tv)... 52.17.109.161, 52.19.111.38, 54.76.231.216, ...
Connecting to plex.tv (plex.tv)|52.17.109.161|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-06-24 08:18:12 ERROR 404: Not Found.

Error downloading https://plex.tv/downloads?channel=plexpass`

itbrl99 commented 8 years ago

I can confirm, same issue here!

UnR34L commented 8 years ago

I think it's using a outdated link now. I got it working with the '-l' switch, like this:

./PMS_Updater.sh -f -v -l ./PlexMediaServer-1.0.0.2261-a17e99e-freebsd-amd64.tar.bz2

It's not ideal but it's still the easiest way to install.

ivanpedersen commented 8 years ago

+1 here for the same issue... :(

FDrebin commented 8 years ago

Same issue, the above trick will work just isnt a permanent fix.

mneumark commented 8 years ago

Same issue here. Resolved it the same way.

Naesstrom commented 8 years ago

Yup, same problem here! Looks like it's because they've changed the homepage for the 1.0 version!

mneumark commented 8 years ago

Also just noting that the new version of the site provides the following URL which will be very helpful....

https://plex.tv/api/downloads/1.json?channel=plexpass
mattyteds commented 8 years ago

That fix does not work for me.

Can't open input ./PlexMediaServer-1.0.0.2261-a17e99e-freebsd-amd64.tar.bz2: No such file or directory. ./PlexMediaServer-1.0.0.2261-a17e99e-freebsd-amd64.tar.bz2 is not a valid archive, cannot update with this file.

mneumark commented 8 years ago

Further more, FreeBSD's pkg installer has jq, which allows the following:

[mneumark@plexmediaserver_1 ~]$ curl -s https://plex.tv/api/downloads/1.json?channel=plexpass 2>&1 | jq 'getpath(["computer", "FreeBSD", "releases", 0, "url"])'
"https://downloads.plex.tv/plex-media-server/1.0.0.2261-a17e99e/PlexMediaServer-1.0.0.2261-a17e99e-freebsd-amd64.tar.bz2"

Might put in a PR, if I submitted a PR that mandated installing jq would that dependency bother anyone?

mneumark commented 8 years ago

@tedrock Just to be certain, did you go to Plex's site and actually download that file first?

Naesstrom commented 8 years ago

@tedrock you need to download the file manually first and put it next to the PMS_Updater.sh script!

mattyteds commented 8 years ago

Nope, that would explain a lot, thanks guys.

mneumark commented 8 years ago

Okay, Put in a pull request here to fix the problem: https://github.com/mstinaff/PMS_Updater/pull/16

Hopefully @mstinaff is still active here...

FDrebin commented 8 years ago

last active April of this year, so I'd say theres a good chance. :D

mstinaff commented 8 years ago

Still here. Should be at my computer tonight and can review and pull then. On Jun 24, 2016 2:11 PM, "dxm765" notifications@github.com wrote:

last active April of this year, so I'd say theres a good chance. :D

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mstinaff/PMS_Updater/issues/15#issuecomment-228435183, or mute the thread https://github.com/notifications/unsubscribe/AD323TiBcOpO3dPeTjA7Cc6khnZEuEqsks5qPCvcgaJpZM4I9fym .

mneumark commented 8 years ago

My PR just got merged so go ahead and grab the new copy and try again.

mstinaff commented 8 years ago

Hmmm. Just tried and it is saying that I am already running the current version 0.9.17.... Then again I am squinting at an SSH session on my phone. So maybe I try again when I get home

GJean commented 8 years ago

thanks, it's work for me.

FDrebin commented 8 years ago

I just tried and it returned "Done." very quickly, way too quickly. And shows I'm still on 0.9.16.6.

UnR34L commented 8 years ago

Already on the newest version but returning no errors. seems to be fixed.

vincegre commented 8 years ago

Same as dxm765 :( replaced my script with new one and now it just says ok (very quickly) and nothing happens, still stuck in version 0.9 (FreeNAS 9.3 here !)

mstinaff commented 8 years ago

Dxm765. Vincegre does the latest version of the script work for you?

vincegre commented 8 years ago

mstinaff nope sorry I didn't mention it in my post but I updated first the script with latest version released yesterday but it doesn't work ! Just tells Done one time and nothing else and PMS not updated !

mstinaff commented 8 years ago

What output do you get it you pass -v ?

FDrebin commented 8 years ago

Negative, I now get:

"./PMS_Updater.sh: --version: not found wget: missing URL Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options. ./PMS_Updater.sh: https://plex.tv/api/downloads/1.json?channel=plexpass: not found Error downloading https://plex.tv/api/downloads/1.json?channel=plexpass
"

mneumark commented 8 years ago

-v is verbose. Not version. Can you literally do -v. Sorry I've been gone after submitting that pr. Went out of town. Also hard to test when I already updated to 1.0.0 myself...

FDrebin commented 8 years ago

I dont think -v did what its supposed to:

"root@plexmediaserver_1:/ # ./PMS_Updater.sh -v ./PMS_Updater.sh: --version: not found Using URL https://plex.tv/api/downloads/1.json?channel=plexpass Downloading https://plex.tv/api/downloads/1.json?channel=plexpass wget: missing URL Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options. ./PMS_Updater.sh: https://plex.tv/api/downloads/1.json?channel=plexpass: not found Error downloading https://plex.tv/api/downloads/1.json?channel=plexpass
"

mneumark commented 8 years ago

What happens when you say: ls -la /usr/pbi/plexmediaserver-amd64/share/plexmediaserver

The --version is actually being sent to /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex\ Media\ Server --version

Not sure why it can't find that path but it certainly can't find your Plex Server binary.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.