[Bug 1456662] [NEW] squid-deb-proxy fails to resolve dns entry : needs to be restarted

Louis Bouchard louis.bouchard at canonical.com
Tue May 19 14:24:01 UTC 2015


Public bug reported:

In some specific context that I currently cannot identify (i.e. happens
everytime on my server but never in VMs), after a reboot, squid-deb-
proxy fails to resolve DNS entries for URL that it needs to service. The
problem seems systematic on the hardware that I have.

Release : Trusty (squid-deb-proxy_0.8.6)

Test :
1) Reboot squid-deb-proxy server
2) From some client, issue :
$ telnet {squid-deb-proxy-server} 8000
GET http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease
Trying 192.168.1.11...
Connected to avogadro.
Escape character is '^]'.
HTTP/1.1 503 Service Unavailable
Server: squid/3.3.8
Mime-Version: 1.0
Date: Tue, 19 May 2015 14:21:51 GMT
Content-Type: text/html
Content-Length: 3287
X-Squid-Error: ERR_DNS_FAIL 0
Vary: Accept-Language
Content-Language: en
X-Cache: MISS from squid-deb-proxy
X-Cache-Lookup: MISS from squid-deb-proxy:8000
Via: 1.1 squid-deb-proxy (squid/3.3.8)
Connection: close
<!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"><!--
 /*
 Stylesheet for Squid Error pages
 Adapted from design by Free CSS Templates
 http://www.freecsstemplates.org
 Released for free under a Creative Commons Attribution 2.5 License
*/
...
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease">http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease</a></p>

<blockquote id="error">
<p><b>Unable to determine IP address from host name <q>fr.archive.ubuntu.com</q></b></p>
</blockquote>

<p>The DNS server returned:</p>
<blockquote id="data">
<pre>No DNS records</pre>
</blockquote>

<p>This means that the cache was not able to resolve the hostname
presented in the URL. Check if the address is correct.</p>

<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_DNS_FAIL&body=CacheHost%3A%20squid-deb-proxy%0D%0AErrPage%3A%20ERR_DNS_FAIL%0D%0AErr%3A%20%5Bnone%5D%0D%0ADNS%20ErrMsg%3A%20No%20DNS%20records%0D%0ATimeStamp%3A%20Tue,%2019%20May%202015%2014%3A21%3A51%20GMT%0D%0A%0D%0AClientIP%3A%20192.168.1.10%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fubuntu%2Fdists%2Fwily%2FInRelease%20HTTP%2F0.9%0A%0D%0A%0D%0A">webmaster</a>.</p>
<br>

Restarting the squid-deb-proxy service fixes the problem

** Affects: squid-deb-proxy (Ubuntu)
     Importance: Medium
         Status: Confirmed

** Affects: squid-deb-proxy (Ubuntu Trusty)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: In Progress


** Tags: sts

** Changed in: squid-deb-proxy (Ubuntu)
       Status: New => Confirmed

** Changed in: squid-deb-proxy (Ubuntu)
   Importance: Undecided => Medium

** Also affects: squid-deb-proxy (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: squid-deb-proxy (Ubuntu Trusty)
       Status: New => In Progress

** Changed in: squid-deb-proxy (Ubuntu Trusty)
   Importance: Undecided => Medium

** Changed in: squid-deb-proxy (Ubuntu Trusty)
     Assignee: (unassigned) => Louis Bouchard (louis-bouchard)

** Description changed:

  In some specific context that I currently cannot identify (i.e. happens
  everytime on my server but never in VMs), after a reboot, squid-deb-
  proxy fails to resolve DNS entries for URL that it needs to service. The
  problem seems systematic on the hardware that I have.
  
  Release : Trusty (squid-deb-proxy_0.8.6)
  
  Test :
  1) Reboot squid-deb-proxy server
  2) From some client, issue :
  $ telnet {squid-deb-proxy-server} 8000
  GET http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease
- Trying 192.168.1.11...                                                           
- Connected to avogadro.                                                           
- Escape character is '^]'.                                                        
- HTTP/1.1 503 Service Unavailable                                                 
- Server: squid/3.3.8                                                              
- Mime-Version: 1.0                                                                
- Date: Tue, 19 May 2015 14:21:51 GMT                                              
- Content-Type: text/html                                                          
- Content-Length: 3287                                                             
- X-Squid-Error: ERR_DNS_FAIL 0                                                    
- Vary: Accept-Language                                                            
- Content-Language: en                                                             
- X-Cache: MISS from squid-deb-proxy                                               
- X-Cache-Lookup: MISS from squid-deb-proxy:8000                                   
- Via: 1.1 squid-deb-proxy (squid/3.3.8)                                           
- Connection: close                                                                
+ Trying 192.168.1.11...
+ Connected to avogadro.
+ Escape character is '^]'.
+ HTTP/1.1 503 Service Unavailable
+ Server: squid/3.3.8
+ Mime-Version: 1.0
+ Date: Tue, 19 May 2015 14:21:51 GMT
+ Content-Type: text/html
+ Content-Length: 3287
+ X-Squid-Error: ERR_DNS_FAIL 0
+ Vary: Accept-Language
+ Content-Language: en
+ X-Cache: MISS from squid-deb-proxy
+ X-Cache-Lookup: MISS from squid-deb-proxy:8000
+ Via: 1.1 squid-deb-proxy (squid/3.3.8)
+ Connection: close
  <!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"><!--                                                      
-  /*                                                                              
-  Stylesheet for Squid Error pages                                                
-  Adapted from design by Free CSS Templates                                       
-  http://www.freecsstemplates.org                                                 
-  Released for free under a Creative Commons Attribution 2.5 License              
- */                                                                               
+ <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"><!--
+  /*
+  Stylesheet for Squid Error pages
+  Adapted from design by Free CSS Templates
+  http://www.freecsstemplates.org
+  Released for free under a Creative Commons Attribution 2.5 License
+ */
  ...
- <div id="content">                                                               
+ <div id="content">
  <p>The following error was encountered while trying to retrieve the URL: <a href="http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease">http://fr.archive.ubuntu.com/ubuntu/dists/wily/InRelease</a></p>
-                                                                                  
- <blockquote id="error">                                                          
+ 
+ <blockquote id="error">
  <p><b>Unable to determine IP address from host name <q>fr.archive.ubuntu.com</q></b></p>
- </blockquote>                                                                    
-                                                                                  
- <p>The DNS server returned:</p>                                                  
- <blockquote id="data">                                                           
- <pre>No DNS records</pre>                                                        
- </blockquote>                                                                    
-                                                                                  
- <p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>
-                                                                                  
+ </blockquote>
+ 
+ <p>The DNS server returned:</p>
+ <blockquote id="data">
+ <pre>No DNS records</pre>
+ </blockquote>
+ 
+ <p>This means that the cache was not able to resolve the hostname
+ presented in the URL. Check if the address is correct.</p>
+ 
  <p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_DNS_FAIL&body=CacheHost%3A%20squid-deb-proxy%0D%0AErrPage%3A%20ERR_DNS_FAIL%0D%0AErr%3A%20%5Bnone%5D%0D%0ADNS%20ErrMsg%3A%20No%20DNS%20records%0D%0ATimeStamp%3A%20Tue,%2019%20May%202015%2014%3A21%3A51%20GMT%0D%0A%0D%0AClientIP%3A%20192.168.1.10%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fubuntu%2Fdists%2Fwily%2FInRelease%20HTTP%2F0.9%0A%0D%0A%0D%0A">webmaster</a>.</p>
  <br>
+ 
+ Restarting the squid-deb-proxy service fixes the problem

** Tags added: sts

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid-deb-proxy in Ubuntu.
https://bugs.launchpad.net/bugs/1456662

Title:
  squid-deb-proxy fails to resolve dns entry : needs to be restarted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid-deb-proxy/+bug/1456662/+subscriptions



More information about the Ubuntu-server-bugs mailing list