VideoCache
Videocache is no longer in development.

problem happened when I append Video Cache configuration line to squid.conf: squid dead but pid file exists

by Anonymous on 8 Jan 2009

problem happened when I append Video Cache configuration line to squid.conf:

# --BEGIN-- videocache config for squid
url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 10
acl videocache_allow_url url_regex -i \\.youtube\\.com\\/get_video
acl videocache_allow_url url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/videoplayback
acl videocache_allow_url url_regex -i \\.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.googlevideo\\.com\\/get_video
acl videocache_allow_url url_regex -i proxy\\-[0-9][0-9]\\.dailymotion\\.com\\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\\.xtube\\.com\\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\\.vimeo\\.com\\/vimeo\\/videos\\/
acl videocache_allow_url url_regex -i va\\.wrzuta\\.pl\\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \\.files\\.youporn\\.com\\/(.*)\\/flv\\/
acl videocache_allow_url url_regex -i \\.msn\\.com\\.edgesuite\\.net\\/(.*)\\.flv
acl videocache_allow_dom dstdomain v.mccont.com vp.video.google.com dl.redtube.com
acl videocache_deny_url url_regex -i http:\\/\\/[a-z][a-z]\\.youtube\\.com http:\\/\\/www\\.youtube\\.com
url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom
redirector_bypass on
# --END-- videocache config for squid

when I add above configuration lines on squid.conf , and restart squid service after one minute the squid service status become as below:

# service squid status
squid dead but pid file exists 

where is the problem, please help.

6 Answers

by nvrpunk on 14 Jan 2009

What does squid -k parse output? Is it bungled?

by Kulbir Saini on 19 Jan 2009

Hi Anon,

I think copy pasting the lines to your squid.conf might have messed things up. Please check errors in your squid.conf with squid -k parse or paste the error to http://pastebin.com/ .

Thank you for using videocache :)

by Maroon Ibrahim on 15 Feb 2009

I had the same error....

FATAL: Bungled squid.conf line 249: url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
Squid Cache (Version 2.6.STABLE22): Terminated abnormally.

please advise... also note that I have copied and paste it directly in the bottom of squid.conf file !

thank you,
Regards,

by Kulbir Saini on 15 Feb 2009

Maroon,

Can you run "squid -k parse" and paste the output here? Also paste the cache.log file at http://pastebin.com .

Thank You!

by ed182 on 9 Dec 2009

Hello admin

I get this problem too .

squid -k Parse :

FATAL: Bungled squid.conf line 4618: url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
Squid Cache (Version 2.6.STABLE21): Terminated abnormally.

About the outout of the cache.log

2009/12/09 17:10:47| clientReadRequest: FD 499 (192.168.13.6:3237) Invalid Request
2009/12/09 17:10:55| parseHttpRequest: Unsupported method '�8^
2009/12/09 17:10:55| clientReadRequest: FD 313 (192.168.13.6:3244) Invalid Request
2009/12/09 17:10:55| parseHttpRequest: Unsupported method 'B�ǐ[��߸�
2009/12/09 17:10:55| clientReadRequest: FD 497 (192.168.13.6:3245) Invalid Request
2009/12/09 17:11:08| parseHttpRequest: Unsupported method '�����{R:�B�'
2009/12/09 17:11:08| clientReadRequest: FD 314 (192.168.13.6:3258) Invalid Request

2009/12/09 17:11:50| parseHttpRequest: Requestheader contains NULL characters
2009/12/09 17:11:50| parseHttpRequest: Unsupported method '"+'
2009/12/09 17:11:50| clientReadRequest: FD 393 (192.168.19.22:4783) Invalid Request
2009/12/09 17:12:04| parseHttpRequest: Unsupported method '}�y$zXn�8�bCU���%�«M�
                                                                                     ��k'
2009/12/09 17:12:04| clientReadRequest: FD 227 (192.168.11.53:2173) Invalid Request
2009/12/09 17:12:05| parseHttpRequest: Unsupported method '��!��_M8�C�k�s8����h
2009/12/09 17:12:05| clientReadRequest: FD 100 (192.168.14.43:1904) Invalid Request
2009/12/09 17:12:26| parseHttpRequest: Unsupported method '��s�x���}��6�Wx@���G�RSe|�p
2009/12/09 17:12:26| clientReadRequest: FD 142 (192.168.11.53:2185) Invalid Request
by ejaz on 8 Jan 2010

hi dear

kindly check this syntex in url_rewrite_program

url_rewrite_program   /usr/bin/python2.5  /usr/share/videocache/videocache.py  

Thanks