Comments (10)
For now, don't specify your server and I'll have a look at this as soon as I can, in a crunch at work, so limited time right now to troubleshoot :(
from plexupdate.
On line 498, when you fetch "https://${PLEXSERVER}:32400/status/sessions" you need to add "?X-Plex-Token=${TOKEN}"
from plexupdate.
Also added better handling to errors from wget which should make it more stable. Please try it and close the issue if resolved.
from plexupdate.
Thanks for the update! I'd try it out but I seemingly have another issue. Let me work on figuring out why it thinks the package is corrupt.
root@plex-tv:/opt/plexupdate# ./plexupdate.sh -f
Auto updating...OK
Authenticating...OK
Finding download URL to download...OK
**sha1sum: plexmediaserver_1.1.2.2680-09e98fb_amd64.deb: No such file or directory
Note! File exists but fails checksum. Redownloading.
Downloading release "plexmediaserver_1.1.2.2680-09e98fb_amd64.deb"...OK
sha1sum: plexmediaserver_1.1.2.2680-09e98fb_amd64.deb: No such file or directory**
Downloaded file corrupt. Try again.
root@plex-tv:/opt/plexupdate#
from plexupdate.
This was caused by another merge which happened at the same time (sha1 checksum), but I fixed it and if you update again, it should work fine now.
from plexupdate.
Oh okay. I reported that other bug here: #95
I think it was just missing the ${DOWNLOADDIR} when checking the checksum.
Anyway, I will stash and retry.
from plexupdate.
Let me know how it goes, sorry for the inconvenience
from plexupdate.
No worries.
This seems to work alright now. I'll close this -- but the script is a lot more verbose now; Is that just me?
root@plex-tv:/opt/plexupdate# ./plexupdate.sh -f
Auto updating...OK
Authenticating...OK
Finding download URL to download...OK
File exists and checksum passes, won't redownload.
DATA: '<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1">
<Video addedAt="1469758621" art="/library/metadata/158030/art/1469759712" chapterSource="" contentRating="TV-PG" duration="2614281" grandparentArt="/library/metadata/158030/art/1469759712" grandparentKey="/library/metadata/158030" grandparentRatingKey="158030" grandparentTheme="/library/metadata/158030/theme/1469759712" grandparentThumb="/library/metadata/158030/thumb/1469759712" grandparentTitle="Stargate Atlantis" guid="com.plexapp.agents.thetvdb://70851/3/15?lang=en" index="15" key="/library/metadata/158095" lastViewedAt="1472322188" librarySectionID="7" originallyAvailableAt="2007-05-11" parentIndex="3" parentKey="/library/metadata/158042" parentRatingKey="158042" parentThumb="/library/metadata/158042/thumb/1469759711" rating="7.3" ratingKey="158095" sessionKey="1" summary="Sheppard and McKay discover that their competitive video game has been controlling a planet of real people, who now stand on the brink of war." thumb="/library/metadata/158095/thumb/1471002127" title="The Game" titleSort="Game" type="episode" updatedAt="1471002127" viewOffset="1308900" year="2007">
<Media aspectRatio="1.78" audioChannels="2" audioCodec="mp3" bitrate="1119" container="avi" duration="2614281" height="336" id="182891" videoCodec="mpeg4" videoFrameRate="24p" videoProfile="advanced simple" videoResolution="sd" width="608">
<Part container="avi" duration="2614281" file="/media/scifi/Stargate Atlantis/s03e15 - The Game.avi" id="188298" key="/library/parts/188298/1322573571/file.avi" size="365529200" videoProfile="advanced simple">
<Stream bitDepth="8" bitrate="987" chromaSubsampling="4:2:0" codec="mpeg4" codecID="XVID" duration="2614278" frameRate="23.976" gmc="0" height="336" id="448781" index="0" level="5" pixelFormat="yuv420p" profile="asp" qpel="0" refFrames="1" scanType="progressive" streamType="1" width="608" />
<Stream bitrate="119" bitrateMode="vbr" channels="2" codec="mp3" codecID="55" duration="2614248" id="448782" index="1" samplingRate="48000" selected="1" streamIdentifier="1" streamType="2" />
<Stream codec="srt" format="srt" id="448995" key="/library/streams/448995" language="English" languageCode="eng" selected="1" streamType="3" />
<Stream codec="srt" format="srt" id="448996" key="/library/streams/448996" language="Español" languageCode="spa" streamType="3" />
<Stream codec="srt" format="srt" id="448993" key="/library/streams/448993" language="русский язык" languageCode="rus" streamType="3" />
<Stream codec="sub" format="microdvd" id="448994" key="/library/streams/448994" streamType="3" />
</Part>
</Media>
<Director id="11181" tag="William Waring" />
<Writer id="14780" tag="Carl Binder" />
<User id="1" thumb="https://plex.tv/users/xxx/avatar" title="xxx" />
<Player address="::ffff:172.31.5.201" device="Windows" machineIdentifier="xxx" model="10" platform="Konvergo" platformVersion="1.1.4.393-12c41f9f" product="Plex Media Player" profile="Konvergo" state="playing" title="xxx-i7" vendor="" version="2.7.5" />
</Video>
</MediaContainer>'
Server 127.0.0.1 is currently being used by one or more users, skipping installation. Please run again later
from plexupdate.
That's because I was testing the plexserver comms and forgot to remove the debug printout, should be fixed now.
from plexupdate.
Cool. Thanks again!
from plexupdate.
Related Issues (20)
- Specify cron download directory? HOT 1
- No email notification after an update HOT 2
- update keeps downloading HOT 1
- it was working before fine....but now HOT 4
- naming scheme for Raspberry Pi package / armv7 on Debian has been changed again by Plex HOT 1
- install.sh script has a small logic bug HOT 3
- Arch Updater
- Scheduled update makes PMS inaccessible HOT 61
- Update during DVR quiet time HOT 1
- ARM 64 bit (Raspberry Pi 4)
- Logging and Scheduling Confusion (Where? And) HOT 2
- Resets service group HOT 2
- Running plexupdate.sh causes segfault in systemd HOT 1
- Rollback?
- Getting an email HOT 4
- Feature Request: Make Installer Automation-Friendly HOT 1
- Just installed, getting an error on run
- get token script doesn't work if MFA is enabled HOT 2
- Where does it download the PMS installer to? HOT 3
- Cron job not running? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexupdate.