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

2009-12-17 Thread Jeremy LeBeau
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%


[squid-users] Configuration problems attempting to cache Google Earth/dynamic content

2009-11-18 Thread Jeremy LeBeau
I am trying to set up a server that is running SUSE SLES 11 as a Squid
Proxy to help cache Google Earth content in a low-bandwidth
environment.  I have tried following the steps in this article:
http://wiki.squid-cache.org/Features/StoreUrlRewrite?action=recallrev=7
but I am not having any luck with getting it to work.  In fact, when I
try those steps, Squid will automatically stop about 15 seconds after
start.  The system is running version 2.7 Stable, as installed by
YAST.

Anyone who could offer some help or a configuration file that would
work with this?