onlinf / google-refine

Automatically exported from code.google.com/p/google-refine
0 stars 0 forks source link

check_running lies when using curl and http_proxy #481

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if the http_proxy environment variable is set to point to squid, the refine 
launch script falsely reports "Something is already running but it doesn't seem 
to be Google Refine."

curl -S -s http://127.0.0.1:3333/

returns this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta 
http-equiv="Content-Type" CONTENT="text/html; charset=utf-8"> <title>ERROR: The 
requested URL could not be retrieved</title> <style type="text/css"><!--   %l  
body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, 
sans-serif; float: right; } :lang(he) { direction: rtl; }  --></style> 
</head><body id=ERR_CONNECT_FAIL> <div id="titles"> <h1>ERROR</h1> <h2>The 
requested URL could not be retrieved</h2> </div> <hr>  <div id="content"> 
<p>The following error was encountered while trying to retrieve the URL: <a 
href="http://127.0.0.1:3333/">http://127.0.0.1:3333/</a></p>  <blockquote 
id="error"> <p><b>Connection to 127.0.0.1 failed.</b></p> </blockquote>  <p 
id="sysmsg">The system returned: <i>(111) Connection refused</i></p>  <p>The 
remote host or network may be down. Please try the request again.</p>  <p>Your 
cache administrator is <a href="mailto:kevint">kevint</a>.</p>  <br> </div>  
<hr> <div id="footer"> <p>Generated Sat, 05 Nov 2011 22:14:07 GMT by elided 
(squid/2.7.STABLE9)</p> <!-- ERR_CONNECT_FAIL --> </div> </body></html> 

curl's --fail parameter might be useful here.

Original issue reported on code.google.com by ket...@keturn.net on 5 Nov 2011 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by tfmorris on 18 Sep 2012 at 7:59