Re: [squid-users] Trying to cache Google Earth content with URL rewrite

From: Jefferson Diego <jeffersondiego8_at_hotmail.com>
Date: Thu, 17 Dec 2009 19:04:12 -0200

Em 17-12-2009 12:47, Jeremy LeBeau escreveu:
> I am trying to use the Store URL Rewrite feature to allow a squid
> server to cache Google Earth content for a low bandwidth installation.
> When I make the changes in the docs
> (http://wiki.squid-cache.org/Features/StoreUrlRewrite), squid crashes
> after starting. From the log, it appears that the helper as written
> is causing problems. Any suggestions as to what is wrong?
>
> Here is the info that I get in the log after startup:
>
> 2009/12/17 08:42:01| Starting Squid Cache version 2.7.STABLE6 for
> amd64-debian-linux-gnu...
> 2009/12/17 08:42:01| Process ID 1691
> 2009/12/17 08:42:01| With 1024 file descriptors available
> 2009/12/17 08:42:01| Using epoll for the IO loop
> 2009/12/17 08:42:01| DNS Socket created at 0.0.0.0, port 56901, FD 6
> 2009/12/17 08:42:01| Adding domain IonaGroup.local from /etc/resolv.conf
> 2009/12/17 08:42:01| Adding domain IonaGroup.local from /etc/resolv.conf
> 2009/12/17 08:42:01| Adding nameserver 192.168.3.1 from /etc/resolv.conf
> 2009/12/17 08:42:01| helperOpenServers: Starting 5 'store_url_rewrite' processes
> /usr/local/squidhelper/store_url_rewrite: 1: $: not found
> /usr/local/squidhelper/store_url_rewrite: 1: =: not found
> /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ")" unexpected
> 2009/12/17 08:42:01| User-Agent logging is disabled.
> 2009/12/17 08:42:01| Referer logging is disabled.
> /usr/local/squidhelper/store_url_rewrite: 1: $: not found
> /usr/local/squidhelper/store_url_rewrite: 1: =: not found
> /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ")" unexpected
> /usr/local/squidhelper/store_url_rewrite: 1: $: not found
> 2009/12/17 08:42:01| logfileOpen: opening log /var/log/squid/access.log
> /usr/local/squidhelper/store_url_rewrite: 1: =: not found
> /usr/local/squidhelper/store_url_rewrite: 1:
> /usr/local/squidhelper/store_url_rewrite: 3: $: not foundSyntax error:
> ")" unexpected
>
> /usr/local/squidhelper/store_url_rewrite: 1: =: not found
> /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ")" unexpected
> /usr/local/squidhelper/store_url_rewrite: 1: $: not found
> /usr/local/squidhelper/store_url_rewrite: 1: =: not found
> /usr/local/squidhelper/store_url_rewrite: 3: Syntax error: ")" unexpected
> 2009/12/17 08:42:01| Unlinkd pipe opened on FD 16
> 2009/12/17 08:42:01| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
> 2009/12/17 08:42:01| Target number of buckets: 425
> 2009/12/17 08:42:01| Using 8192 Store buckets
> 2009/12/17 08:42:01| Max Mem size: 8192 KB
> 2009/12/17 08:42:01| Max Swap size: 102400 KB
> 2009/12/17 08:42:01| Local cache digest enabled; rebuild/rewrite every
> 3600/3600 sec
> 2009/12/17 08:42:01| logfileOpen: opening log /var/log/squid/store.log
> 2009/12/17 08:42:01| Rebuilding storage in /var/spool/squid (DIRTY)
> 2009/12/17 08:42:01| Using Least Load store dir selection
> 2009/12/17 08:42:01| Set Current Directory to /var/spool/squid
> 2009/12/17 08:42:01| Loaded Icons.
> 2009/12/17 08:42:01| Accepting proxy HTTP connections at 0.0.0.0, port
> 3128, FD 18.
> 2009/12/17 08:42:01| Accepting ICP messages at 0.0.0.0, port 3130, FD 19.
> 2009/12/17 08:42:01| HTCP Disabled.
> 2009/12/17 08:42:01| WCCP Disabled.
> 2009/12/17 08:42:01| Ready to serve requests.
> 2009/12/17 08:42:01| WARNING: store_rewriter #1 (FD 7) exited
> 2009/12/17 08:42:01| WARNING: store_rewriter #2 (FD 8) exited
> 2009/12/17 08:42:01| WARNING: store_rewriter #3 (FD 9) exited
> 2009/12/17 08:42:01| Too few store_rewriter processes are running
> FATAL: The store_rewriter helpers are crashing too rapidly, need help!
>
> Squid Cache (Version 2.7.STABLE6): Terminated abnormally.
> CPU Usage: 0.020 seconds = 0.000 user + 0.020 sys
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 0
> Memory usage for squid via mallinfo():
> total space in arena: 2380 KB
> Ordinary blocks: 2321 KB 5 blks
> Small blocks: 0 KB 1 blks
> Holding blocks: 396 KB 1 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 58 KB
> Total in use: 2717 KB 98%
> Total free: 59 KB 2%
>
>
>
Edit your /usr/local/squidhelper/store_url_rewrite, and add '#!
/usr/bin/perl' (without quotes) as it's first line.
(Sorry by my english. I'm brazilian)
Received on Thu Dec 17 2009 - 21:04:15 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 18 2009 - 12:00:02 MST