You are hereForums / Bugs / erros after squid -k reconfigure or squid -k rotate

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

erros after squid -k reconfigure or squid -k rotate


4 replies [Last post]
Anonymous
erros after squid -k reconfigure or squid -k rotate
Printer-friendly versionSend to friend

i´m getting erros when run squid -k reconfigure or squid -k rotate

look:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/usr/share/videocache/videocache.py", line 792, in run
squid_part()
File "/usr/share/videocache/videocache.py", line 499, in squid_part
videos = video_id_pool.get()
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib64/python2.4/xmlrpclib.py", line 1129, in request
self.send_content(h, request_body)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1243, in send_content
connection.endheaders()
File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders
self._send_output()
File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output
self.send(msg)
File "/usr/lib64/python2.4/httplib.py", line 652, in send
self.connect()
File "/usr/lib64/python2.4/httplib.py", line 636, in connect
raise socket.error, msg
error: (111, 'Connection refused')

and cachevideo freeze ... i need to restart squid OR kill all videocache proccess .. after doing .. works...

thanks

Alexandre Correa
Onda Internet
www.onda.net.br

admin's picture
Offline
Joined: Nov 2 2008

Hello Alexandre,

This is a known problem and I am working on it. I think I'll be able to fix this by next version.

Thank you for using videocache :)

Offline
Joined: Dec 18 2008

Hello!

I never seen this errors (1.6, 1.7 and 1.8 versions) when using:

squid -k rotate
squid -k reconfigure

I used many years squidguard as redirector and I haven't any problems restarting its child processes whith these squid commands.

But squidguard makes only URL filtering, so its actions are very fast and child processes are quickly refreshed.

videocache has the XMLRC server and can have video downloading if I well understud. In consequence, it is more difficult to know if all videocache tasks are finished.

Sometimes I had doubts in these situations and at my FreeBSD proxy I made:

/usr/local/etc/rc.d/squid stop
ps –uU squid
killall -u squid
/usr/local/etc/rc.d/squid start

The "ps" and "killall" lines are to ensure that all the processes owned by the user "squid" are finished. "squid stop" should be sufficient because redirectors are child processes of squid daemon.

I will modify my (midnight) maintenance squid script to don't use squid -k rotate …

Regards,

Josep Pujadas

admin's picture
Offline
Joined: Nov 2 2008

Josep,

Under normal conditions you don't really face this problem, but XMLRPC does create problems sometime due to unclean exit. Anyway it should not happen with 1.8.

Thank You!

Anonymous (not verified)

Hi

To get around this problem until it is fixed I'm using this script:

$ cat /usr/local/bin/squid-reconfigure
#!/bin/bash
echo "Reconfiguring Squid without Videocache support..."
cp /etc/squid/squid.conf-novc /etc/squid/squid.conf
squid -k reconfigure
sleep 2
echo "Killing any remaining Videocache processes..."
killall python
echo "Reconfiguring with Videocache support..."
cp /etc/squid/squid.conf-vc /etc/squid/squid.conf
squid -k reconfigure
echo "Done."

Also made the same sort of script to do the rotate.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 109 guests online.