Re: [squid-users] Squid time
On Sun, May 21, 2006, Harish Pokharel wrote: > > Hi > Squid shows time in GMT different from my proxy server. How can i > Synchronize? The easiest way is by using cron to setup a recurring 'ntpdate' job to sync against a time server. The correct way is to setup ntpd on each machine to do this; its slightly more work but its well worth it. Adrian
[squid-users] Squid time
Hi Squid shows time in GMT different from my proxy server. How can i Synchronize?
[squid-users] make errors after applying customlog-2_5.patch
Hello Everybody, I am getting make errors after applying the customlog-2_5.patch. I am using the squid-2.5.STABLE14 release on a Fedora Core 4 system. There are no errors applying the patch, but when I do a make I get the following errors. I have tried to apply the patch on squid-2.5.STABLE13-20060520 and squid-2.5.STABLE13, but I get the same make errors. Any help would be greatly appreciated as I cannot go live with squid until I can get access_log stats that awstats can read. Thanks for any help you can offer, Gary gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/ squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../ include-g -O2 -Wall -c `test -f logfile.c || echo './'`logfile.c logfile.c: In function ‘syslog_ntoa’: logfile.c:49: error: syntax error before ‘_symbols’ logfile.c: At top level: logfile.c:102: error: syntax error before ‘&&’ token logfile.c:102: error: ‘s’ undeclared here (not in a function) logfile.c:102: error: ‘__s2’ undeclared here (not in a function) logfile.c:102: error: syntax error before ‘if’ logfile.c:102: warning: type defaults to ‘int’ in declaration of ‘__result’ logfile.c:102: error: non-static declaration of ‘__result’ follows static declaration logfile.c:102: error: previous definition of ‘__result’ was here logfile.c:102: warning: data definition has no type or storage class logfile.c:102: error: syntax error before ‘}’ token logfile.c:102: error: static declaration of ‘__result’ follows non- static declaration logfile.c:102: error: previous declaration of ‘__result’ was here logfile.c:102: error: ‘__s1’ undeclared here (not in a function) logfile.c:102: error: ‘p’ undeclared here (not in a function) logfile.c:102: error: syntax error before ‘if’ logfile.c:102: warning: type defaults to ‘int’ in declaration of ‘__result’ logfile.c:102: error: non-static declaration of ‘__result’ follows static declaration logfile.c:102: error: previous definition of ‘__result’ was here logfile.c:102: warning: data definition has no type or storage class logfile.c:102: error: syntax error before ‘}’ token logfile.c:102: error: syntax error before ‘&&’ token logfile.c:102: error: static declaration of ‘__result’ follows non- static declaration logfile.c:102: error: previous declaration of ‘__result’ was here logfile.c:102: error: syntax error before ‘if’ logfile.c:102: warning: type defaults to ‘int’ in declaration of ‘__result’ logfile.c:102: error: non-static declaration of ‘__result’ follows static declaration logfile.c:102: error: previous definition of ‘__result’ was here logfile.c:102: warning: data definition has no type or storage class logfile.c:102: error: syntax error before ‘}’ token logfile.c:102: error: static declaration of ‘__result’ follows non- static declaration logfile.c:102: error: previous declaration of ‘__result’ was here logfile.c:102: error: syntax error before ‘if’ logfile.c:102: warning: type defaults to ‘int’ in declaration of ‘__result’ logfile.c:102: error: non-static declaration of ‘__result’ follows static declaration logfile.c:102: error: previous definition of ‘__result’ was here logfile.c:102: warning: data definition has no type or storage class logfile.c:102: error: syntax error before ‘}’ token logfile.c: In function ‘logfileOpen’: logfile.c:120: warning: initialization discards qualifiers from pointer target type logfile.c:128: warning: suggest parentheses around comparison in operand of & make[3]: *** [logfile.o] Error 1 make[3]: Leaving directory `/usr/src/squid/squid-2.5.STABLE14/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/squid/squid-2.5.STABLE14/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/squid/squid-2.5.STABLE14/src' make: *** [all-recursive] Error 1
[squid-users] Let's make a difference
I'm doing a little something about global warming, I'm inviting my friends to join me: http://friends.earthscreen.com/?r=gQF0GHEVCSJTAGwFCS0O&i=gmail&[EMAIL PROTECTED]&p=2&z=1&tc=12
Re: [squid-users] Squid Crashs
lör 2006-05-20 klockan 23:27 +0300 skrev Ahmed Eissa: > Every now and then I Always find the squid crashed, and I have to restart > it, this happens always withing two days at max!! plz advice See your cache.log and http://wiki.squid-cache.org/SquidFaq/TroubleShooting Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
[squid-users] Squid Crashs
Hi there, Well, I do have Squid 2.5 Build 12. Running on a RISC machine , AIX 5.2 . Machine is 2GB RAM Every now and then I Always find the squid crashed, and I have to restart it, this happens always withing two days at max!! plz advice
Re: [squid-users] thoughts about squidGuard?
Sorry to but in, but you can use squidguard without any database. We have been blocking site in a production environment for over a year using text files downloaded from the web. - Original Message - From: "Con Tassios" <[EMAIL PROTECTED]> To: Sent: Saturday, May 20, 2006 3:25 AM Subject: Re: [squid-users] thoughts about squidGuard? On Fri, 19 May 2006, Philip Hachey wrote: That's what I was hoping for: a package with all of the patches. Unfortunately, I read this: "It needs a recent version of Berkeley Database (> 3.2 but < 4.x) " Since I'm using DB 4.2 and I do not wish to downgrade, I think I'll pass. squidGuard can be made to use Berkeley DB 4.2 with the following patch --- src/sgDb.c.orig 2004-03-09 03:45:59.0 +0100 +++ src/sgDb.c 2004-03-09 03:48:43.0 +0100 @@ -98,13 +98,13 @@ if(createdb) flag = flag | DB_TRUNCATE; if ((ret = -Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) { +Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) { (void) Db->dbp->close(Db->dbp, 0); sgLogFatalError("Error db_open: %s", strerror(ret)); } } else { if ((ret = -Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { +Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { sgLogFatalError("Error db_open: %s", strerror(ret)); } } -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 5/19/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 5/19/2006
[squid-users] Squid-2.5.STABLE14 released
The Squid Web Proxy developers are pleased to announce the availability of the Squid-2.5.STABLE14 bugfix release. All users are recommended to schedule an upgrade at a convenient time. This new release can be downloaded from our HTTP or FTP servers http://www.squid-cache.org/Versions/v2/2.5/ ftp://ftp.squid-cache.org/pub/squid-2/STABLE/ or the mirrors. For a list of mirror sites see http://www.squid-cache.org/Mirrors/http-mirrors.html http://www.squid-cache.org/Mirrors/ftp-mirrors.html The most important bug fixes / additions in the Squid-2.5.STABLE13 release are: [Medium] Memory leak in HTCP client code (default disabled) (Bug #1553) [Major] Memory leak in ident processing (Bug #1557) [Medium] Memory leak in header processing related to external_acl header detail format tag (Bug #1564) In addition there is a fed minor bugfixes and cosmetic enhancements to further improve your experience of running Squid: [Minor] icons not displayed when visible_hostname is a short hostname (without domain). (Bug #1532) For a more information on the individual changes see the Squid-2.5 Patches page http://www.squid-cache.org/Versions/v2/2.5/bugs/>, Thanks goes all users who have sent in valuable bug reports and feedback. This bugfix release was brought to you by Henrik Nordstrom with help from numerous other individuals. If there is interest in becoming a sponsor for the ongoing Squid maintenance or development efforts please contact [EMAIL PROTECTED] Regards The Squid Web Proxy developers signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
Hi Michael, > Ralph Corderoy wrote: > > Expires - > > Cache-Control - > > Last-Modified - > > These are the important headers which squid uses to determine if it > can cache the object and how long for. Oh yes, of course, I see now having compared to a *.gif from the same site which does have a Last-Modified and an Etag. > A javascript file is usually static so would normally be served with > at least a Last-Modified header. If it is not then perhaps the .js > files are being dynamically created with each request. From your > squidclient output it looks like none of those headers are returned. They're not. I've started talking to the site's webmasters about this and them shipping Javascript as text/html. > To get these cached you will need a refresh pattern that forces the > file to be cached without these headers, i.e. where the minumum field > is more than 0. A refresh pattern of: refresh_pattern \.js 10 50% 20 > would cache all .js file even those without the above headers for at > least 10 minutes. Ah, thanks. Yes, I've got that to work with three quite specific patterns that target the areas holding Javascript on this site. That cuts down the baggage on each page access quite considerably. Thanks also to Henrik for also pointing this out and the other ircache mirrors. Cheers, Ralph.
Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
lör 2006-05-20 klockan 13:16 +0100 skrev Ralph Corderoy: > Hi Mark, > > > > $ squidclient > > > http://www.housepricecrash.co.uk/scripts/javascript/global.js | > > > > http://www.web-caching.com/cacheability.html > > Thanks, I'm having a look at it now. It appears broken however since it > thinks "The following server's clock appears to be inaccurate" for any > URL I throw at it, i.e. it's probably wrong, not the rest of the world. There is other sites providing the same tool. Home page:http://www.mnot.net/cacheability/ The ircache mirror runs with a correct clock.. > * http://www.housepricecrash.co.uk/scripts/javascript/global.js > DateSat, 20 May 2006 12:14:18 GMT > Expires - > Cache-Control - > Last-Modified - > ETag- > Content-Length 0.5K (545) > Server Apache/2.0.53 (Fedora) > > This object will be considered stale, because it doesn't have any > freshness information assigned. It doesn't have a validator present. Which is true and why it doesn't get cached. The clock issue is not relevant under these conditions.. Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] squid2.5+epoll compile error
lör 2006-05-20 klockan 13:10 +0800 skrev L.TK: > hi,all > > i am runing redhat EL 4. > i patch squid-2.5.STABLE13 with latest epoll patch,and run : > "sh bootstrap.sh" and get flowing output: > > WARNING: Cannot find autoconf version 2.13 You need to fix this before continuing. Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
Ralph Corderoy wrote: Expires - Cache-Control - Last-Modified - These are the important headers which squid uses to determine if it can cache the object and how long for. A javascript file is usually static so would normally be served with at least a Last-Modified header. If it is not then perhaps the .js files are being dynamically created with each request. From your squidclient output it looks like none of those headers are returned. To get these cached you will need a refresh pattern that forces the file to be cached without these headers, i.e. where the minumum field is more than 0. A refresh pattern of: refresh_pattern \.js 10 50% 20 would cache all .js file even those without the above headers for at least 10 minutes. -- Michael
Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
Hi Mark, > > $ squidclient > > http://www.housepricecrash.co.uk/scripts/javascript/global.js | > > http://www.web-caching.com/cacheability.html Thanks, I'm having a look at it now. It appears broken however since it thinks "The following server's clock appears to be inaccurate" for any URL I throw at it, i.e. it's probably wrong, not the rest of the world. It judgement about the cacheability of global.js is therefore a bit suspect. The following server's clock appears to be inaccurate. This can cause difficulties in caching its content. Please ask the administrator to synchronise its clock (this may also be caused by a proxy between you and the Web server). * www.housepricecrash.co.uk - 1 hr 8 min behind * http://www.housepricecrash.co.uk/scripts/javascript/global.js DateSat, 20 May 2006 12:14:18 GMT Expires - Cache-Control - Last-Modified - ETag- Content-Length 0.5K (545) Server Apache/2.0.53 (Fedora) This object will be considered stale, because it doesn't have any freshness information assigned. It doesn't have a validator present. Their clock looks OK to me: $ date; \ > env -u http_proxy \ > wget -q -s -O - -C off \ > http://www.housepricecrash.co.uk/scripts/javascript/global.js | > gi '^date:' 2006-05-20 13:15:56 +0100 Sat Date: Sat, 20 May 2006 12:15:55 GMT $ Cheers, Ralph.
Re: [squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
Hi, I'm finding one site is slow to access with Squid 2.5.8-3ubuntu1.4. Squid's logs show that a bunch of URLs ending in `.js' aren't being cached. I've examined {access,cache,store}.log with debug at ALL,9 and it all seems OK; I don't see it decide not to cache. Nevertheless, $ squidclient http://www.housepricecrash.co.uk/scripts/javascript/global.js | http://www.web-caching.com/cacheability.html M.
[squid-users] Squid Doesn't Cache Some URLs, Does it Examine Content?
Hi, I'm finding one site is slow to access with Squid 2.5.8-3ubuntu1.4. Squid's logs show that a bunch of URLs ending in `.js' aren't being cached. I've examined {access,cache,store}.log with debug at ALL,9 and it all seems OK; I don't see it decide not to cache. Nevertheless, $ squidclient http://www.housepricecrash.co.uk/scripts/javascript/global.js | > tr -d \\015 | > sed '/^$/q' HTTP/1.0 200 OK Date: Sat, 20 May 2006 11:07:02 GMT Content-Length: 545 Content-Type: text/html; charset=ISO-8859-1 Server: Apache/2.0.53 (Fedora) X-Powered-By: PHP/4.3.11 Via: 1.1 webcacheH13 (NetCache NetApp/5.5R3D3) X-Cache: MISS from blake.inputplus.co.uk X-Cache-Lookup: MISS from blake.inputplus.co.uk:3128 Proxy-Connection: close $ squidclient http://www.housepricecrash.co.uk/scripts/javascript/global.js | > tr -d \\015 | > sed '/^$/q' HTTP/1.0 200 OK Date: Sat, 20 May 2006 11:08:15 GMT Content-Length: 545 Content-Type: text/html; charset=ISO-8859-1 Server: Apache/2.0.53 (Fedora) X-Powered-By: PHP/4.3.11 Via: 1.1 webcacheH13 (NetCache NetApp/5.5R3D3) X-Cache: MISS from blake.inputplus.co.uk X-Cache-Lookup: MISS from blake.inputplus.co.uk:3128 Proxy-Connection: close $ One odd thing is their Apache looks mis-configured. The URL ends in `.js', the content is Javascript, yet the content-type header is text/html rather than application/x-javascript. I was wondering if Squid looks at the content of text/html replies and if it can't parse them marks them as `don't cache'. >From somewhere else on the net with no Squid: $ wget -q -s -O - \ > http://www.housepricecrash.co.uk/scripts/javascript/global.js | > sed '/^$/q' HTTP/1.1 200 OK Date: Sat, 20 May 2006 11:15:34 GMT Server: Apache/2.0.53 (Fedora) X-Powered-By: PHP/4.3.11 Content-Length: 545 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=ISO-8859-1 $ Other things to try welcome. I've read the FAQ and the Wiki FAQ, etc. Cheers, Ralph.
Re: [squid-users] squid2.5+epoll compile error
Con Tassios ??: > On Sat, 20 May 2006, L.TK wrote: > > >>> You need to install autoconf 2.13 and automake 1.5 before running >>> bootstrap.sh. >>> >>> >> automake is version 1.92 and autoconf is 2.59,is that ok? >> > > No, they are the RHEL versions, but bootstrap.sh needs autoconf 2.13 and > automake 1.5. You can install them in /usr/local/ so they won't conflict with > the Red Hat versions, then bootstrap.sh will succeed, although some warnings > will be displayed. > > After the ./configure, check the file include/autoconf.h in the squid source > directory. It should have the following line: > > #define HAVE_EPOLL 1 > > > thank you very much for this tip i finaly got squid patch with epoll
Re: [squid-users] thoughts about squidGuard?
On Fri, 19 May 2006, Philip Hachey wrote: > That's what I was hoping for: a package with all of the patches. > > Unfortunately, I read this: > "It needs a recent version of Berkeley Database (> 3.2 but < 4.x) " > Since I'm using DB 4.2 and I do not wish to downgrade, I think I'll pass. squidGuard can be made to use Berkeley DB 4.2 with the following patch --- src/sgDb.c.orig 2004-03-09 03:45:59.0 +0100 +++ src/sgDb.c 2004-03-09 03:48:43.0 +0100 @@ -98,13 +98,13 @@ if(createdb) flag = flag | DB_TRUNCATE; if ((ret = -Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) { +Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, flag, 0664)) != 0) { (void) Db->dbp->close(Db->dbp, 0); sgLogFatalError("Error db_open: %s", strerror(ret)); } } else { if ((ret = -Db->dbp->open(Db->dbp, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { +Db->dbp->open(Db->dbp, NULL, dbfile, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { sgLogFatalError("Error db_open: %s", strerror(ret)); } }