google-code-export / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

WARNING: 1 invalid swap log entries found #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have Lusca Release - r14371 (November 18, 2009)  compiled on Fedora 11
64bit with the following ./configure options 

Squid Cache: Version LUSCA_HEAD
configure options:  '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr'
'--bindir=/usr/sbin' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var'
'--datadir=/usr/share' '--sysconfdir=/etc/squid'
'--disable-dependency-tracking' '--disable-arp-acl'
'--disable-cache-digests' '--enable-cachemgr-hostname=localhost'
'--disable-delay-pools' '--enable-epoll'
'--enable-external-acl-helpers=ip_user' '--disable-icap-client'
'--disable-ident-lookups' '--enable-linux-netfilter'
'--disable-referer-log' '--enable-removal-policies=heap,lru'
'--disable-snmp' '--disable-ssl' '--enable-storeio=aufs,null,coss'
'--disable-useragent-log' '--disable-wccpv2' '--with-aio'
'--with-default-user=squid' '--with-maxfd=63840' '--with-dl'
'--with-pthreads' 'build_alias=x86_64-redhat-linux-gnu'
'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu'
'CFLAGS=-fPIE -Os -g -pipe -fsigned-char -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic' 'LDFLAGS=-pie'
'CXXFLAGS=-fPIE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
'FFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-I/usr/lib64/gfortran/modules' '--enable-truncate' '--disable-unlinkd'
'--with-large-files' '--disable-htcp'

it was working fine untill some days ago where squid just takes ages to
respond and mgr:info says nothing weird at all 

i emptied all cache_dir and rebuild squid -z once new and fresh 
after it starts when i restart squid process i get 
2009/12/07 16:35:34| Swap maxSize 327680000 + 262144 KB, estimated 25226318
objects
2009/12/07 16:35:34| Target number of buckets: 1261315
2009/12/07 16:35:34| Using 2097152 Store buckets
2009/12/07 16:35:34| Max Mem  size: 262144 KB
2009/12/07 16:35:34| Max Swap size: 327680000 KB
2009/12/07 16:35:34| Store logging disabled
2009/12/07 16:35:34| Rebuilding storage in /cachea (CLEAN)
2009/12/07 16:35:34| Rebuilding storage in /cacheb (CLEAN)
2009/12/07 16:35:34| Using Least Load store dir selection
2009/12/07 16:35:34| Set Current Directory to /var/log/squid
2009/12/07 16:35:34| Loaded Icons.
2009/12/07 16:35:34| Accepting transparently proxied HTTP connections at
0.0.0.0, port 3128, FD 63.
2009/12/07 16:35:34| Accepting ICP messages at 0.0.0.0, port 3130, FD 64.
2009/12/07 16:35:34| WCCP Disabled.
2009/12/07 16:35:34| Ready to serve requests.
2009/12/07 16:35:34| WARNING: 1 invalid swap log entries found
2009/12/07 16:35:34| WARNING: 1 invalid swap log entries found
2009/12/07 16:35:34| storeAufsRebuildHelperRead: /cachea: read returned 0;
error/eof?
2009/12/07 16:35:34| Done scanning /cachea (3 entries)
2009/12/07 16:35:34| storeAufsRebuildHelperRead: /cacheb: read returned 0;
error/eof?
2009/12/07 16:35:34| Done scanning /cacheb (3 entries)
2009/12/07 16:35:34| Finished rebuilding storage from disk.
2009/12/07 16:35:34|         6 Entries scanned
2009/12/07 16:35:34|         6 Invalid entries.
2009/12/07 16:35:34|         0 With invalid flags.
2009/12/07 16:35:34|         0 Objects loaded.
2009/12/07 16:35:34|         0 Objects expired.
2009/12/07 16:35:34|         0 Objects cancelled.
2009/12/07 16:35:34|         0 Duplicate URLs purged.
2009/12/07 16:35:34|         0 Swapfile clashes avoided.
2009/12/07 16:35:34|   Took 0.0 seconds (   0.0 objects/sec).
2009/12/07 16:35:34| Beginning Validation Procedure
2009/12/07 16:35:34|   Completed Validation Procedure
2009/12/07 16:35:34|   Validated 0 Entries
2009/12/07 16:35:34|   store_swap_size = 0k

much regards 

Original issue reported on code.google.com by degreane@gmail.com on 7 Dec 2009 at 2:39

GoogleCodeExporter commented 9 years ago
I flushed everything again and restarted the process the same as i did before 
the weird thing now is that everything is back to normal :~(

Original comment by degreane@gmail.com on 7 Dec 2009 at 3:09

GoogleCodeExporter commented 9 years ago
same thing happen in freebsd 8
storeAufsRebuildHelperRead: /usr/local/squid/cache: read returned 0; error/eof?
but on freebsd 7 works fine.

Original comment by chudy.fernandez on 12 Dec 2009 at 3:13

GoogleCodeExporter commented 9 years ago
There is something else going on there. Is this still a reproducible problem 
chudy?

Original comment by adrian.c...@gmail.com on 19 Jan 2010 at 9:05

GoogleCodeExporter commented 9 years ago
confirmed with freebsd8
on first rebuild... 
WARNING: 1 invalid swap log entries found
on second rebuild... 
2010/02/12 07:56:10| WARNING: 1 invalid swap log entries found
2010/02/12 07:56:10| storeAufsRebuildHelperRead: /usr/local/squid/cache: read 
returned 0; error/eof?

configure options:  '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--
datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--
sysconfdir=/usr/local/etc/squid' '--localstatedir=/usr/local/squid' '--enable-
removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' 
'--
disable-epoll' '--with-pthreads' '--enable-storeio=aufs,coss,null' 
'--enable-delay-
pools' '--enable-arp-acl' '--enable-pf-transparent' 
'--enable-err-languages=English' 
'--enable-default-err-language=English' '--prefix=/usr/local' '--
mandir=/usr/local/man' '--infodir=/usr/local/info/' '--enable-snmp' 'CC=cc' 
'CFLAGS=-
O2 -fno-strict-aliasing -pipe -march=prescott ' 'LDFLAGS=' 'CPPFLAGS='

r14401,
FreeBSD bsd80.local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 
2009     
root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
freebsd installed as minimal.
package installed via pkg_add -r:
subversion
autotools

Original comment by chudy.fernandez on 12 Feb 2010 at 8:07

GoogleCodeExporter commented 9 years ago
Again, I just can't reproduce this locally. Is this 100% reproducable on your 
system?
every reboot?

Original comment by adrian.c...@gmail.com on 13 Feb 2010 at 2:45

GoogleCodeExporter commented 9 years ago
yes for freebsd8
might seen this error on 3rd or 4th squid start. coss works fine though

attached cache.log

Original comment by chudy.fernandez on 13 Feb 2010 at 4:09

Attachments:

GoogleCodeExporter commented 9 years ago
Adrian: 2 weeks back, this was the "other" issue I was talking about, so yes, I 
can
reproduce it as well.

Original comment by biat...@gmail.com on 19 Feb 2010 at 7:58

GoogleCodeExporter commented 9 years ago
I've hopefully fixed this in r14477 . Please test!

Original comment by adrian.c...@gmail.com on 23 Mar 2010 at 12:47

GoogleCodeExporter commented 9 years ago

Original comment by adrian.c...@gmail.com on 23 Mar 2010 at 12:49