Re: squid 3.1 is restarting multiple times a day!

2009-06-10 Thread Amos Jeffries

Quin Guin wrote:
Hi, 


 More information on 3.1.0.8 squid restarting on it own issue that I am having.

I had a 111 of the errors for Internal error: lost DNS error before I 
shutdown 3.1 and went back to 2.7. I think this might be related to the 3.1 resets but 
what can I do to collect more information to help resolve this issue or if its a known 
issue would someone please point me in the right direction. The system has 8GB RAM and is 
not swapping at all I have 50% of free disk on each JBOD that I am using as a cache 
store. I am only logging to cache.log so I do not hae any log file size issues.

2009/06/01 15:05:10| Internal error: lost DNS error info

2009/06/01 15:19:55| errorpage.cc(293) errorTryLoadText: '/usr/local/squid-3.1.0
.8/share/errors/es-ve/ERR_DNS_FAIL': (2) No such file or directory
2009/06/01 15:19:55| WARNING: Error Pages Missing Language: es-ve
2009/06/01 15:24:33| assertion failed: MemBuf.cc:391: new_cap  (size_t) capaci
ty
2009/06/01 15:24:36| Starting Squid Cache version 3.1.0.8-20090531 for x86_64-un
known-linux-gnu...
2009/06/01 15:24:36| Process ID 16274
2009/06/01 15:24:36| With 16384 file descriptors available
2009/06/01 15:24:36| Initializing IP Cache...
2009/06/01 15:24:36| DNS Socket created at 0.0.0.0, FD 7
2009/06/01 15:24:36| Adding nameserver 172.22.0.33 from /etc/resolv..conf
2009/06/01 15:24:36| Adding nameserver 172.22.0.34 from /etc/resolv..conf
2009/06/01 15:24:37| Unlinkd pipe opened on FD 11
2009/06/01 15:24:37| Store logging disabled
2009/06/01 15:24:37| Swap maxSize 12288 + 262144 KB, estimated 9472472 
objects
2009/06/01 15:24:37| Target number of buckets: 473623
2009/06/01 15:24:37| Using 524288 Store buckets
2009/06/01 15:24:37| Max Mem  size: 262144 KB
2009/06/01 15:24:37| Max Swap size: 12288 KB
2009/06/01 15:24:37| Version 1 of swap file without LFS support detected... 
2009/06/01 15:24:37| Rebuilding storage in /cache1/cache3108 (DIRTY)
2009/06/01 15:24:37| Version 1 of swap file without LFS support detected... 
2009/06/01 15:24:37| Rebuilding storage in /cache2/cache3108 (DIRTY)
2009/06/01 15:24:37| Version 1 of swap file without LFS support detected... 
2009/06/01 15:24:37| Rebuilding storage in /cache3/cache3108 (DIRTY)

2009/06/01 15:24:37| Using Least Load store dir selection
2009/06/01 15:24:37| Set Current Directory to /usr/local/squid-3.1.0.8/var/cache
2009/06/01 15:24:37| Loaded Icons.
2009/06/01 15:24:37| Accepting  HTTP connections at 0.0.0.0:3128, FD 18.
2009/06/01 15:24:37| HTCP Disabled.
2009/06/01 15:24:37| Squid modules loaded: 0
2009/06/01 15:24:37| Ready to serve requests.
2009/06/01 15:24:37| Store rebuilding is 1.10% complete
2009/06/01 15:24:39| Done reading /cache3/cache3108 swaplog (370238 entries)
2009/06/01 15:24:39| Done reading /cache1/cache3108 swaplog (372615 entries)
2009/06/01 15:24:39| Done reading /cache2/cache3108 swaplog (373734 entries)
2009/06/01 15:24:39| Finished rebuilding storage from disk.
2009/06/01 15:24:39|922730 Entries scanned
2009/06/01 15:24:39| 0 Invalid entries.
2009/06/01 15:24:39| 0 With invalid flags.
2009/06/01 15:24:39|761969 Objects loaded.
2009/06/01 15:24:39| 0 Objects expired.
2009/06/01 15:24:39|160638 Objects cancelled.
2009/06/01 15:24:39| 46804 Duplicate URLs purged.
2009/06/01 15:24:39| 0 Swapfile clashes avoided.
2009/06/01 15:24:39|   Took 2.74 seconds (277631.37 objects/sec).
2009/06/01 15:24:39| Beginning Validation Procedure
2009/06/01 15:24:39|   786432 Entries Validated so far.
2009/06/01 15:24:40|   Completed Validation Procedure
2009/06/01 15:24:40|   Validated 1430597 Entries
2009/06/01 15:24:40|   store_swap_size = 12295252
2009/06/01 15:24:40| storeLateRelease: released 0 objects
2009/06/01 15:24:40| squidaio_queue_request: WARNING - Queue congestion

Thanks,

Quin



- Original Message 
From: Quin Guin quing...@yahoo.com
To: squid-dev squid-dev@squid-cache.org
Sent: Wednesday, June 3, 2009 7:51:47 AM
Subject: Re: squid  3.1 is restarting multiple times a day!

I know I should have included this in my origanl post about these resets..


Squid Cache: Version 3.1.0.8-20090531
configure options:  '--prefix=/usr/local/squid-3.1.0.8' '--with-pthreads' 
'--enable-storeio=ufs,aufs' '--enable-fd-config' '--with-filedescriptors=16384' 
'--enable-removal-policies=heap,lru' '--disable-dependency-tracking' 
'--disable-ident-lookups' '--disable-wccp' '--disable-wccpv2' 
'--enable-follow-x-forwarded-for' '--disable-htcp' 
--with-squid=/usr/local/src/dist/SQUID/squid-3.1.0.8-20090531 
--enable-ltdl-convenience



- Original Message 
From: Quin Guin quing...@yahoo.com
To: squid-dev squid-dev@squid-cache.org
Sent: Wednesday, June 3, 2009 7:30:33 AM
Subject: squid  3.1 is restarting multiple times a day!

Hi,

I installed 3.1 and it is working well but it is restarting itself multiple 
times a day 4+ times. No core dump is being generated but I do see this in the 
cache log every time it restarts.

2009/06/03 00:22:28| 

A little help with cbdata and requestLink

2009-06-10 Thread Mark Nottingham

Would someone mind taking a quick look at this patch:
  http://www.squid-cache.org/bugs/attachment.cgi?id=1989

and telling me if I've royally stuffed up with managing fwdState and  
request linking?


It's to make miss_access a slow lookup...

Thanks,


--
Mark Nottingham   m...@yahoo-inc.com




Re: File system name conflicts on Windows

2009-06-10 Thread Alex Rousskov
On 06/01/2009 04:04 AM, Amos Jeffries wrote:
 Guido Serassio wrote:
 Hi Amos,

 At 03.13 01/06/2009, Amos Jeffries wrote:
 Serassio Guido wrote:
  Hi,
 
  This is from acl/Ident.c:
 
  #include acl/Ident.h
  #include ident.h
 
  This cannot work on Windows, because the acl/Ident.h file will be
  included two times ...
 
  What rule should be used to rename one of the conflicting files ?


 Best long-term bet is to not have -I. anywhere in the paths if you can
 remove it. I have cleared it out for the non-windows builders already.
 Everything is referenced relative to ~/src/ and ~/ paths now.

 MinGW uses the standard autotools based builder, the only difference
 is the case insensitive file system, and -I. is not present in the
 compile command (IntRange.cc was the first failing source file):

 guido.seras...@titano /c/work/mgw-3.nt/src/acl
 $ make IntRange.o
 if g++ -DHAVE_CONFIG_H  -I../.. -I../../include -I../../src
 -I../../include -I/mingw/include  -I/usr/include/libxml2  -Werror
 -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
 -D_FILE_OFFSET_BITS=64 -g -O2 -mthreads -MT IntRange.o -MD -MP -MF
 .deps/IntRange.Tpo -c -o IntRange.o IntRange.cc; \
 then mv -f .deps/IntRange.Tpo .deps/IntRange.Po; else rm -f
 .deps/IntRange.Tpo; exit 1; fi

 guido.seras...@titano /c/work/mgw-3.nt/src/acl
 
 Which means the pre-compiler is still using -I. despite not being given
 it to use. :(
 

 I'm thinking initially a src/ident/ folder with all the ident stuff
 inside it was planned. http://wiki.squid-cache.org/Features/SourceLayout

 That would make them ident/ident.h and ident/AclIdent.h

 OK, for now I will fix the problem renaming src/acl/Ident.h in
 src/acl/AclIdent.h

 Regards

 Guido

 
 Okay. Just running build tests on the full shuffling fix for this. Will
 commit tonight if it passes them all.

Just wanted to note that using acl/AclAnything is borderline OK as a
short-term fix but is not the right long-term solution. It would be
better to actually rename the offending file instead.

Long-term, src/ident.h should be moved and #included as somepath/ident.h.

FWIW, we have -I../../src which is the same as -I. for header files
directly in src/

Cheers,

Alex.