hi
i have problem with videocache1.9.2 i need after 10 hours i reboot the system or restart Apache and squid to run videocache save video or replay the video what is my problem ??
6 Answers
Hi brave,
Do you have your machine configured to rotate squid logs periodically?
Thank You!
Dear admin ,
thanks for fast replay but do u mean i'm using swaping file ??
this is my config file for squid
http_port 3128 transparent
cache_effective_user proxy
cache_effective_group proxy
cache_dir aufs /var/spool/squid 400000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_store_log none
error_directory /usr/share/squid/errors/English
pid_filename /var/run/squid.pid
log_fqdn off
reload_into_ims on
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
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 SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 3128 # proxy
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow all
http_reply_access allow all
icp_access allow all
ie_refresh on
#To Mikrotik
acl mikrotik src 192.168.10.0/255.255.255.0
acl mik src 192.168.1.0/28
dns_nameservers 91.142.48.48 91.142.49.49
http_access allow mikrotik
http_access allow mik
cache_mgr Network Friends
visible_hostname localhost
# OPTIONS WHICH AFFECT THE CACHE SIZE
cache_mem 1024 MB
maximum_object_size 100 MB
maximum_object_size_in_memory 64 KB
minimum_object_size 0 KB
cache_replacement_policy lru
memory_replacement_policy heap GDSF
cache_swap_low 98%
cache_swap_high 99%
ipcache_size 2048
ipcache_low 98
ipcache_high 99
fqdncache_size 2048
#ZPH
#tcp_outgoing_tos 0x30
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
acl ivdf-files urlpath_regex -i \\.ivdf$
acl vdf-files urlpath_regex -i \\.vdf$
acl nimda-eml urlpath_regex -i \\.eml$
acl nimda-nws urlpath_regex -i \\.nws$
acl wml-files urlpath_regex -i \\.wml$
acl exe-files urlpath_regex -i \\.exe$
acl avi-files urlpath_regex -i \\.avi$
acl scr-files urlpath_regex -i \\.pdf$
acl scr-files urlpath_regex -i \\.mpeg$
acl scr-files urlpath_regex -i \\.php$
acl scr-files urlpath_regex -i \\.wav$
acl mp3-files urlpath_regex -i \\.mp3$
acl vbx-files urlpath_regex -i \\.vb?$
acl mpg-files urlpath_regex -i \\.mpg$
acl wma-files urlpath_regex -i \\.wma$
acl zip-files urlpath_regex -i \\.zip$
acl scr-files urlpath_regex -i \\.scr$
acl rm-files urlpath_regex -i \\.rm$
acl wav-files urlpath_regex -i \\.wav$
acl net-files urlpath_regex -i \\.net$
acl com-files urlpath_regex -i \\.com$
acl asp-files urlpath_regex -i \\.asp$
acl php-files urlpath_regex -i \\.php$
acl co-files urlpath_regex -i \\.co$
acl org-files urlpath_regex -i \\.org$
acl rar-files urlpath_regex -i \\.rar$
acl html-files urlpath_regex -i \\.html$
acl htm-files urlpath_regex -i \\.htm$
acl jpg-files urlpath_regex -i \\.jpg$
acl gif-files urlpath_regex -i \\.gif$
acl php-files urlpath_regex -i \\.php$
acl swf-files urlpath_regex -i \\.swf$
acl jv-files urlpath_regex -i \\.jv$
acl db-files urlpath_regex -i \\.db$
acl cab-files urlpath_regex -i \\.cab$
#acl aspx-files urlpath_regex -i \\.aspx$
refresh_pattern http://.*\\.windowsupdate\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://office\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://windowsupdate\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://w?xpsp[0-9]\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://w2ksp[0-9]\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://download\\.microsoft\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://download\\.macromedia\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern ftp://ftp\\.nai\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://ftp\\.software\\.ibm\\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern cgi-bin 1 20% 2
refresh_pattern \\.asp$ 1 20% 2
refresh_pattern \\.acgi$ 1 20% 2
refresh_pattern \\.cgi$ 1 20% 2
refresh_pattern \\.pl$ 1 20% 2
refresh_pattern \\.shtml$ 1 20% 2
refresh_pattern \\.php3$ 1 20% 2
refresh_pattern \\? 1 20% 2
refresh_pattern \\.gif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.jpg$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.bom\\.gov\\.au 30 20% 120 reload-into-ims
refresh_pattern \\.html$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \\.htm$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \\.class$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.zip$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.jpeg$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.mid$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.shtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \\.exe$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.thm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.wav$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.txt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.cab$ 10080 90% 560000 reload-into-ims override-lastmod
refresh_pattern \\.au$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.mov$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.xbm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.ram$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.avi$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.chtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \\.thb$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.dcr$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.bmp$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.phtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \\.mpg$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.pdf$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.art$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.swf$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.mp3$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.ra$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.spl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.viv$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.doc$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.gz$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.Z$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.tgz$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.tar$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.vrm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.vrml$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.aif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.aifc$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.aiff$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.arj$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.c$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.cpt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.dir$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.dxr$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.hqx$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.jpe$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.lha$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.lzh$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.midi$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.movie$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.mp2$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.mpe$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.mpeg$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.mpga$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.flv$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \\.pl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.ppt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.ps$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.qt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.qtm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.ras$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.sea$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.sit$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.tif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.tiff$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.snd$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \\.wrl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern ^gopher:// 1440 25% 10080
refresh_pattern ^ftp:// 4940 60% 1440 reload-into-ims override-lastmod
refresh_pattern . 320 40% 56000 reload-into-ims override-lastmod
cache allow all
url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 7
acl videocache_allow_url url_regex -i \\.youtube\\.com\\/get_video\\?
acl videocache_allow_url url_regex -i \\.youtube\\.com\\/videoplayback \\.youtube\\.com\\/videoplay \\.youtube\\.com\\/get_video\\?
acl videocache_allow_url url_regex -i \\.youtube\\.[a-z][a-z]\\/videoplayback \\.youtube\\.[a-z][a-z]\\/videoplay \\.youtube\\.[a-z][a-z]\\/get_video\\?
acl videocache_allow_url url_regex -i \\.googlevideo\\.com\\/videoplayback \\.googlevideo\\.com\\/videoplay \\.googlevideo\\.com\\/get_video\\?
acl videocache_allow_url url_regex -i \\.google\\.com\\/videoplayback \\.google\\.com\\/videoplay \\.google\\.com\\/get_video\\?
acl videocache_allow_url url_regex -i \\.google\\.[a-z][a-z]\\/videoplayback \\.google\\.[a-z][a-z]\\/videoplay \\.google\\.[a-z][a-z]\\/get_video\\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\/videoplayback\\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\/videoplay\\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\/get_video\\?
acl videocache_allow_url url_regex -i proxy[a-z0-9\\-][a-z0-9][a-z0-9][a-z0-9]?\\.dailymotion\\.com\\/
acl videocache_allow_url url_regex -i vid\\.akm\\.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_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.tube8\\.com\\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\\.tube8\\.com\\/
acl videocache_allow_url url_regex -i \\.mais\\.uol\\.com\\.br\\/(.*)\\.flv
acl videocache_allow_url url_regex -i \\.video[a-z0-9]?[a-z0-9]?\\.blip\\.tv\\/(.*)\\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl videocache_allow_url url_regex -i video\\.break\\.com\\/(.*)\\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .redtube.com .cdn.dailymotion.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
Dear admin ,
Thanks for fast replay but i can't understand what do mean
did u mean i have swaping file ??
access.log
access.log.1
access.log.2.gz
Hi Brave,
I mean squid log rotating. Please comment the line containing 'squid -k rotate' in your /etc/logrotate.d/squid file and I think it'll not hang anymore.
Thank you!
Hi, kulbir!
I ran "squid -k rotate" and i got xlmprc error on my videocache.log...i know logrotate is configured already to work for videocache as it it can be seen inside the videocache.conf... how will i rotate logs in my squid? it's supposed to rotate my squid logs by the /etc/logrotate.d/squid but i need to run squid -k rotate instead...how can i resolve this? thanks!
vta