Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl command to find plex version fails on reboot #16

Closed
dmp1ce opened this issue Dec 25, 2015 · 5 comments · Fixed by #17
Closed

Curl command to find plex version fails on reboot #16

dmp1ce opened this issue Dec 25, 2015 · 5 comments · Fixed by #17
Assignees

Comments

@dmp1ce
Copy link

dmp1ce commented Dec 25, 2015

When I have restart always set and I reboot the server, on restart, the container cannot find the downloads.plex.tv server. It says this in my logs over and over again.

If I do a docker restart then it downloads fine. If I docker exec into the container, I can ping downloads.plex.tv just fine.

--2015-12-25 07:14:29--  https://downloads.plex.tv/plex-media-server//plexmediaserver__amd64.deb
Resolving downloads.plex.tv (downloads.plex.tv)... 2400:cb00:2048:1::6814:609, 2400:cb00:2048:1::6814:709, 104.20.6.9, ...
Connecting to downloads.plex.tv (downloads.plex.tv)|2400:cb00:2048:1::6814:609|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-12-25 07:14:29 ERROR 404: Not Found.
--2015-12-25 07:14:29--  https://downloads.plex.tv/plex-media-server//plexmediaserver__amd64.deb
Resolving downloads.plex.tv (downloads.plex.tv)... 2400:cb00:2048:1::6814:709, 2400:cb00:2048:1::6814:609, 104.20.7.9, ...
Connecting to downloads.plex.tv (downloads.plex.tv)|2400:cb00:2048:1::6814:709|:443... connected.
@dmp1ce
Copy link
Author

dmp1ce commented Dec 25, 2015

I'm thinking that curl is failing on line 10 of 30_update_plex.sh. Maybe my networking isn't full booted when it tries to use curl. Is there an easy way I can delay the update process a couple of seconds?

@dmp1ce
Copy link
Author

dmp1ce commented Dec 25, 2015

A workaround for me was to add this to my docker-compose.yml file: command: "bash -c 'sleep 5 && /sbin/my_init'". Other people might be having this problem too. It might be worth checking to see if curl succeeds before moving on in the script.

@dmp1ce dmp1ce changed the title Reboot fails to find downloads.plex.tv Curl command to find plex version fails on reboot Dec 25, 2015
@lonix lonix self-assigned this Dec 26, 2015
lonix added a commit that referenced this issue Dec 26, 2015
This should fix #16
@lonix
Copy link
Contributor

lonix commented Dec 26, 2015

I Submitted a fix here. Should be confirmed and added.

@lonix lonix closed this as completed in #17 Jan 7, 2016
@UniverseXXX
Copy link

Unfortunately, the fix doesn't fix it for me. Can you advise if there is something else needs to be done?

Thanks.

@dmp1ce
Copy link
Author

dmp1ce commented Jan 9, 2016

It seemed to work for me. I'll update the issue if I have problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants