VideoCache
Videocache is no longer in development.

hi, i am head

by Anonymous on 26 Nov 2008
[root@ns ~]#  netstat -atpn grep python
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:772                 0.0.0.0:*                   LISTEN      3134/rpc.statd      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      3113/portmap        
tcp        0      0 10.0.0.6:8080               0.0.0.0:*                   LISTEN      3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.155:1533             SYN_RECV    -                   
tcp        0      0 0.0.0.0:2000                0.0.0.0:*                   LISTEN      5487/asterisk       
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      3889/perl           
tcp        0      0 10.0.0.6:53                 0.0.0.0:*                   LISTEN      6110/named          
tcp        0      0 10.0.254.10:53              0.0.0.0:*                   LISTEN      6110/named          
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      6110/named          
tcp        0      0 192.168.122.1:53            0.0.0.0:*                   LISTEN      3740/dnsmasq        
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      3353/cupsd          
tcp        0      0 0.0.0.0:1720                0.0.0.0:*                   LISTEN      5487/asterisk       
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      6110/named          
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      3373/sendmail: acce      
tcp        0      0 10.0.0.6:8080               10.0.0.102:1252             TIME_WAIT   -                   
tcp        0      0 10.0.254.10:38909           213.199.174.196:80          TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.102:1248             TIME_WAIT   -                   
tcp        0      0 10.0.254.10:55466           207.46.9.254:80             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:56923           209.222.148.150:80          ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.177:1807             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1482             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:40425           207.46.26.165:80            TIME_WAIT   -                   
tcp        0      0 10.0.254.10:45098           64.4.20.174:80              ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:42137           200.60.136.24:80            ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.12:1189              ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1237             FIN_WAIT1   -                   
tcp        0      0 10.0.254.10:50392           65.54.234.13:80             TIME_WAIT   -                   
tcp        0      1 10.0.0.6:8080               10.0.0.124:1236             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.12:1191              ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1239             FIN_WAIT1   -                   
tcp        0      1 10.0.0.6:8080               10.0.0.124:1238             FIN_WAIT1   -                   
tcp        0      0 10.0.254.10:59325           65.55.206.9:80              TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.12:1185              ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:49304           208.117.236.73:80           ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:50442           207.46.96.154:80            ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.12:1187              ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1235             FIN_WAIT1   -                   
tcp        0      0 10.0.254.10:38005           200.60.136.51:80            ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1234             FIN_WAIT1   -                   
tcp        0      0 10.0.254.10:57570           207.46.120.165:80           ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.12:1197              ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.12:1199              ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.12:1193              ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1240             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.12:1195              ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:35494           207.46.26.165:80            TIME_WAIT   -                   
tcp        0      1 10.0.0.6:8080               10.0.0.124:1189             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.155:1090             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1709             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1188             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.104:4275             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1191             FIN_WAIT1   -                   
tcp        0      1 10.0.0.6:8080               10.0.0.124:1190             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.104:4277             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1187             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.116:1706             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1186             FIN_WAIT1   -                   
tcp        0      0 10.0.254.10:38960           200.60.136.64:80            ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4281             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1700             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4283             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1703             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4285             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1697             TIME_WAIT   -                   
tcp        0      0 10.0.254.10:48230           65.54.152.120:80            ESTABLISHED 3475/(squid)        
tcp        0   1060 10.0.254.10:41854           65.55.15.241:80             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1204             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.116:1724             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4256             TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.104:4258             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1721             ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1202             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.104:4262             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4264             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:51151           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51150           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51149           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51148           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51147           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51146           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51145           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51144           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51143           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51142           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51141           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51140           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51139           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51138           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51137           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51136           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51157           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51156           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51155           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51154           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51153           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51152           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51116           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.116:1718             TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51135           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51134           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51133           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51132           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51131           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51130           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51129           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51127           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51126           63.245.209.119:443          TIME_WAIT   -                   
tcp    77826      0 10.0.0.6:8080               10.0.0.104:4266             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:51124           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51123           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51122           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51121           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.254.10:51120           63.245.209.119:443          TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.104:4269             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1712             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1715             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4271             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.154:4445             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1676             TIME_WAIT   -                   
tcp        0   1066 10.0.254.10:37719           65.54.152.120:80            ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1679             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.177:1866             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:37833           207.46.96.154:80            TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.177:1868             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.177:1856             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.177:1857             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:47609           200.60.136.64:80            ESTABLISHED 3475/(squid)        
tcp        0      1 10.0.0.6:8080               10.0.0.124:1167             FIN_WAIT1   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.177:1859             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.177:1860             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.104:4252             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.150:1890             TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.116:1666             TIME_WAIT   -                   
tcp        0      0 10.0.254.10:36904           65.55.206.60:80             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1694             ESTABLISHED 3475/(squid)        
tcp        0      0 127.0.0.1:49547             127.0.0.1:53                TIME_WAIT   -                   
tcp        0      0 10.0.0.6:8080               10.0.0.116:1688             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1691             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:48256           208.72.193.103:80           TIME_WAIT   -                   
tcp        0      0 10.0.254.10:49872           207.46.26.165:80            ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1685             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.254.10:40761           65.55.206.60:80             ESTABLISHED 3475/(squid)        
tcp        0      0 10.0.0.6:8080               10.0.0.116:1682             ESTABLISHED 3475/(squid)        
tcp        0      0 :::80                       :::*                        LISTEN      3405/httpd          
tcp        0      0 :::22                       :::*                        LISTEN      3342/sshd           
tcp        0      0 :::443                      :::*                        LISTEN      3405/httpd 
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in "bootstrap
    self.run()
  File "/usr/share/youtube_cache/youtube_cache.py", line 763, in run
    download_scheduler()
  File "/usr/share/youtube_cache/youtube_cache.py", line 736, in download_scheduler
    if video_id_pool.get_conn_number() < max_parallel_downloads:
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in "call"
    return self."send(self."name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in "request
    verbose=self."verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect
    raise socket.error, msg
error: (111, 'Connection refused')

13 Answers

by head on 26 Nov 2008

re install python?

by head on 26 Nov 2008

yum erase python

Install 0 Package(s)

Update 0 Package(s)

Remove 554 Package(s)

Is this ok [y/N]: n

:( :( :(

by Kulbir Saini on 26 Nov 2008

Don't reinstall python man!!! You'll be screwed big time. Your problem is that your proxy server is not allowed to make http requests to itself in squid acls. Add your squid proxy server's ip in squid http_access allowed list. And everything should work fine.

Another user was having the same problem.

by head on 27 Nov 2008

hi man, need help acl?

[root@ns ~]# vi /etc/squid/squid.conf
acl soapbox_query url_regex -i \\.msn\\.com\\.edgesuite\\.net\\/(.*)\\.flv
url_rewrite_access deny youtube_deny
url_rewrite_access allow youtube_query
url_rewrite_access allow metacafe_query
url_rewrite_access allow dailymotion_query
url_rewrite_access allow google_query
url_rewrite_access allow redtube_query
url_rewrite_access allow xtube_query
url_rewrite_access allow vimeo_query
url_rewrite_access allow wrzuta_query
url_rewrite_access allow youporn_query
url_rewrite_access allow soapbox_query
redirector_bypass on
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl mac arp "/etc/squid/mac"
acl cabina arp "/etc/squid/cabina"
acl sitiosdenegados url_regex "/etc/squid/sitiosdenegados"
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
acl http_access mi ip(10.0.0.6)
by Kulbir Saini on 27 Nov 2008

add the following lines to your squid.conf file

acl my_machine src 10.0.0.6
http_access allow my_machine
http_access allow localhost

After that restart your squid proxy server and then check if youtube cache works.

by head on 28 Nov 2008

hi

And finally deny all other access to this proxy

http_access allow localhost
http_access deny all                  ------->youtube_cache no work

And finally deny all other access to this proxy

http_access allow localhost
http_access allow all               ------->youtube_cache it yes work

This affects computers denied.
I have a public network of friends and enemies.

very good man
;)

E01D9DC5A454787086BAB8760.263CA5127C572AB8D74BEC607D31EA119B42558B&sver=2&expire=1227866012&key=yt4&ipbits=0
2008-11-27 23:03:33,202 INFO - - SCHEDULEDER - Download Scheduler starting.
2008-11-27 23:03:33,202 INFO 10.0.0.114 - REQUEST - http://sjc-v85.sjc.youtube.com/get_video?video_id=e-fU-VoJwlE&ip=201.230.51.195&signature=235E9A1167CDCFDEE5F2FA7A4C6EB0B85B252DD0.C5CE01BDFA11FA6FDD073557807C382B30738B69&sver=2&expire=1227865984&key=yt4&ipbits=0
2008-11-27 23:03:36,396 INFO - - SCHEDULEDER - Download Scheduler starting.
2008-11-27 23:03:36,397 INFO 10.0.0.116 - REQUEST - http://mia-v28.mia.youtube.com/get_video?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
2008-11-27 23:03:36,407 INFO 10.0.0.116 CnOw9R2Mcwg URL_HIT YOUTUBE http://mia-v28.mia.youtube.com/get_video?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
2008-11-27 23:03:36,407 INFO 10.0.0.116 CnOw9R2Mcwg CACHE_HIT YOUTUBE Requested video was found in cache.
2008-11-27 23:03:36,416 INFO 10.0.0.116 CnOw9R2Mcwg CACHE_SERVE YOUTUBE Video was served from cache.
2008-11-27 23:03:36,417 INFO 10.0.0.116 CnOw9R2Mcwg NEW_URL YOUTUBE 303:http://10.0.0.6/video_cache/youtube/CnOw9R2Mcwg.flv?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
#Examples:
#acl macaddress arp 09:00:2b:23:45:67
#acl myexample dst_as 1241
#acl password proxy_auth REQUIRED
#acl fileupload req_mime_type -i ^multipart/form-data$
#acl javascript rep_mime_type -i ^application/x-javascript$
acl my_machine src 10.0.0.6
http_access allow my_machine
acl my_machin src 10.0.254.10
http_access allow my_machin
url_rewrite_program /usr/bin/python /usr/share/youtube_cache/youtube_cache.py
url_rewrite_children 20
acl youtube_query url_regex -i \\.youtube\\.com\\/get_video
acl youtube_query url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/videoplayback
acl youtube_query url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/get_video
acl youtube_deny url_regex -i http:\\/\\/[a-z][a-z]\\.youtube\\.com
acl metacafe_query dstdomain v.mccont.com
acl dailymotion_query url_regex -i proxy\\-[0-9][0-9]\\.dailymotion\\.com\\/
acl google_query dstdomain vp.video.google.com
acl redtube_query dstdomain dl.redtube.com
acl xtube_query url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\\.xtube\\.com\\/(.*)flv
acl vimeo_query url_regex -i bitcast\\.vimeo\\.com\\/vimeo\\/videos\\/
acl wrzuta_query url_regex -i va\\.wrzuta\\.pl\\/wa[0-9][0-9][0-9][0-9]?
acl youporn_query url_regex -i \\.files\\.youporn\\.com\\/(.*)\\/flv\\/
acl soapbox_query url_regex -i \\.msn\\.com\\.edgesuite\\.net\\/(.*)\\.flv
url_rewrite_access deny youtube_deny
url_rewrite_access allow youtube_query
url_rewrite_access allow metacafe_query
url_rewrite_access allow dailymotion_query
url_rewrite_access allow google_query
url_rewrite_access allow redtube_query
url_rewrite_access allow xtube_query
url_rewrite_access allow vimeo_query
url_rewrite_access allow wrzuta_query
url_rewrite_access allow youporn_query
url_rewrite_access allow soapbox_query
redirector_bypass on
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl mac arp "/etc/squid/mac"
acl cabina arp "/etc/squid/cabina"
acl sitiosdenegados url_regex "/etc/squid/sitiosdenegados"
acl SSL_ports port 443
acl Safe_ports port 80      # http
acl Safe_ports port 21      # ftp
acl Safe_ports port 443     # https
acl Safe_ports port 70      # gopher
acl Safe_ports port 210     # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280     # http-mgmt
acl Safe_ports port 488     # gss-http
acl Safe_ports port 591     # filemaker
acl Safe_ports port 777     # multiling http
acl CONNECT method CONNECT
by head on 28 Nov 2008

hi

And finally deny all other access to this proxy

http_access allow localhost
http_access deny all                  ------->youtube_cache no work

And finally deny all other access to this proxy

http_access allow localhost
http_access allow all               ------->youtube_cache it yes work

This affects computers denied.
I have a public network of friends and enemies.

very good man
;)

E01D9DC5A454787086BAB8760.263CA5127C572AB8D74BEC607D31EA119B42558B&sver=2&expire=1227866012&key=yt4&ipbits=0
2008-11-27 23:03:33,202 INFO - - SCHEDULEDER - Download Scheduler starting.
2008-11-27 23:03:33,202 INFO 10.0.0.114 - REQUEST - http://sjc-v85.sjc.youtube.com/get_video?video_id=e-fU-VoJwlE&ip=201.230.51.195&signature=235E9A1167CDCFDEE5F2FA7A4C6EB0B85B252DD0.C5CE01BDFA11FA6FDD073557807C382B30738B69&sver=2&expire=1227865984&key=yt4&ipbits=0
2008-11-27 23:03:36,396 INFO - - SCHEDULEDER - Download Scheduler starting.
2008-11-27 23:03:36,397 INFO 10.0.0.116 - REQUEST - http://mia-v28.mia.youtube.com/get_video?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
2008-11-27 23:03:36,407 INFO 10.0.0.116 CnOw9R2Mcwg URL_HIT YOUTUBE http://mia-v28.mia.youtube.com/get_video?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
2008-11-27 23:03:36,407 INFO 10.0.0.116 CnOw9R2Mcwg CACHE_HIT YOUTUBE Requested video was found in cache.
2008-11-27 23:03:36,416 INFO 10.0.0.116 CnOw9R2Mcwg CACHE_SERVE YOUTUBE Video was served from cache.
2008-11-27 23:03:36,417 INFO 10.0.0.116 CnOw9R2Mcwg NEW_URL YOUTUBE 303:http://10.0.0.6/video_cache/youtube/CnOw9R2Mcwg.flv?video_id=CnOw9R2Mcwg&ip=190.41.197.157&signature=5A0CF8527BA64615B1022ECBA9662B9458C84538.A8FEEC8F769D424262BE790342CDE20D3975E7CD&sver=2&expire=1227865955&key=yt4&ipbits=0
#Examples:
#acl macaddress arp 09:00:2b:23:45:67
#acl myexample dst_as 1241
#acl password proxy_auth REQUIRED
#acl fileupload req_mime_type -i ^multipart/form-data$
#acl javascript rep_mime_type -i ^application/x-javascript$
acl my_machine src 10.0.0.6
http_access allow my_machine
acl my_machin src 10.0.254.10
http_access allow my_machin
url_rewrite_program /usr/bin/python /usr/share/youtube_cache/youtube_cache.py
url_rewrite_children 20
acl youtube_query url_regex -i \\.youtube\\.com\\/get_video
acl youtube_query url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/videoplayback
acl youtube_query url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/get_video
acl youtube_deny url_regex -i http:\\/\\/[a-z][a-z]\\.youtube\\.com
acl metacafe_query dstdomain v.mccont.com
acl dailymotion_query url_regex -i proxy\\-[0-9][0-9]\\.dailymotion\\.com\\/
acl google_query dstdomain vp.video.google.com
acl redtube_query dstdomain dl.redtube.com
acl xtube_query url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\\.xtube\\.com\\/(.*)flv
acl vimeo_query url_regex -i bitcast\\.vimeo\\.com\\/vimeo\\/videos\\/
acl wrzuta_query url_regex -i va\\.wrzuta\\.pl\\/wa[0-9][0-9][0-9][0-9]?
acl youporn_query url_regex -i \\.files\\.youporn\\.com\\/(.*)\\/flv\\/
acl soapbox_query url_regex -i \\.msn\\.com\\.edgesuite\\.net\\/(.*)\\.flv
url_rewrite_access deny youtube_deny
url_rewrite_access allow youtube_query
url_rewrite_access allow metacafe_query
url_rewrite_access allow dailymotion_query
url_rewrite_access allow google_query
url_rewrite_access allow redtube_query
url_rewrite_access allow xtube_query
url_rewrite_access allow vimeo_query
url_rewrite_access allow wrzuta_query
url_rewrite_access allow youporn_query
url_rewrite_access allow soapbox_query
redirector_bypass on
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl mac arp "/etc/squid/mac"
acl cabina arp "/etc/squid/cabina"
acl sitiosdenegados url_regex "/etc/squid/sitiosdenegados"
acl SSL_ports port 443
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl CONNECT method CONNECT

an excellent program. finally work on my network (follow your program from the version 1)
need hdd 500G :D:D:D
congratulations

thanks man

by Kulbir Saini on 28 Nov 2008

Write http_access deny all after all other http_access statements. It should come at last. Let me know if it works :)

by Kulbir Saini on 28 Nov 2008

I am happy to know that you liked the program. You'll see a lot of improvements soon :)

by imriz on 13 Dec 2008

According to the exception, it seems like the problem is talking with the RPC server, not with squid.

by Kulbir Saini on 13 Dec 2008

Sure. Its not a squid problem. I think that has been fixed already.

by imriz on 13 Dec 2008

Well, most of the RPC calls are not within 'try' blocks - so no, it's not fixed :)

I've modified my copy of videocache to return an unmodified URL, if the RPC is down. this allows the service to continue while the RPC server is down.

by Kulbir Saini on 14 Dec 2008

Included in the base code now. You will see them in the future version. Thanks again for the suggestions :)