Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Apr 22, 2013 5:43 pm 
Offline
Senior Member

Joined: Tue Dec 20, 2011 5:17 pm
Posts: 52
Location: Serbia, Europe
I have a 2048 Linode and when I enter

Code:
curl -s https://lv.linode.com/**** | sudo bash


and type in my root password, I get the following error:

Code:
bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token `<'
'ash: line 2: `<head><title>502 Bad Gateway</title></head>


Is it something related to my Linode or it is a hiccup on the Linode's side?


Top
   
PostPosted: Fri Apr 26, 2013 4:06 am 
Offline
Senior Newbie

Joined: Mon Jan 14, 2013 4:18 am
Posts: 11
I'm seeing the same thing, but perhaps it's something I've screwed up...


Top
   
PostPosted: Fri Apr 26, 2013 4:15 am 
Offline
Senior Newbie

Joined: Mon Jan 14, 2013 4:18 am
Posts: 11
Hmm - I just retried a few times, and it worked. So I guess it's a linode issue. Strangely pasting the url in the browser on my desktop machine worked fine.


Top
   
PostPosted: Fri Apr 26, 2013 9:15 am 
Offline
Newbie

Joined: Tue Jun 21, 2011 4:29 pm
Posts: 2
Sorry about that! This is a known issue that we're hoping to resolve permanently soon. However, we've made some changes and you should all be good to go for the time being.


Top
   
PostPosted: Sat Apr 27, 2013 4:25 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Personally, I would be wary of running any downloaded script (especially as root!) without reviewing it first. At a minimum, it would be a good idea to check if the download succeeded first. The following one-liner should do that, but I haven't tested it...

Code:
TFILE=$(mktemp -t XXXXXXXXXX.sh) if curl -s https://lv.linode.com/**** > $TFILE; then sudo bash $TFILE; else echo "Download failed"; fi; rm -i $TFILE


Top
   
PostPosted: Sat Apr 27, 2013 5:36 pm 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
I would suggest

Code:
curl -sfS https://lv.linode.com/**** | sudo bash


That will fail properly on a 50x error, won't pass html to the shell but will show an error message.


Top
   
PostPosted: Mon Apr 29, 2013 11:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Ha, should have guessed curl had a built-in option to handle that case. That's a simpler and better solution.


Top
   
PostPosted: Fri Jun 14, 2013 1:31 pm 
Offline
Linode Staff
User avatar

Joined: Fri Jan 29, 2010 8:44 am
Posts: 65
Location: New Jersey
We've corrected this issue and made the error message better for installing. Please let us know if you hit this again!


Top
   
PostPosted: Sat Jul 20, 2013 6:27 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
My problem was more that curl is not installed by default on Linode's most popular distro (Ubuntu).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group