Jim Woodward wrote: > > Having a problem running squidguard with .db files after creating them > using: squidguard -C all > > The problem is when squidguard is restarted to run off the db files it > refuses to block entries within its blacklist. > Remove the .db files and restart and everythings ok. > > Some info on the envoronment im running it under: > > Compiled with: db 2.7.7 > OS Running under: Linux with kernel 2.4.19 > Squid version: 2.4-STABLE7
May we assume you are using squidGuard version 1.2.0? > Have another system running squidguard with similar problems with > the db files, same versions of squid and Berkeley DB except its > running Linux kernel 2.2.20 with SMP support. > > No errors appear in the logs when it lets sites through that it > should be blocking. No, but you should have errors logged at start up when it goes into emergency mode. > Anyone have any ideas? I'm afraid so. In spite of what the documentation says, squidGuard 1.2.0 requires version 3.29 of the Berkeley DB (available here: http://www.sleepycat.com/update/ I don't know if this will be of any help to you, but here's the process that I used when I upgraded the Berkeley DB and squidGuard. You should be able to use the same steps and simply recompile squidGuard: <Copy db-3.2.9.tar.gz to /usr/local/src> 'tar zxvf db-3.2.9.tar.gz' <Download the two patches for 3.2.9 from here:> <http://www.sleepycat.com/update/3.2.9/patch.3.2.9.html> <Copy patch.3.2.9.1 to /usr/local/src/db-3.2.9> <Copy patch.3.2.9.2 to /usr/local/src/db-3.2.9> 'cd db-3.2.9' <'pwd' should show /usr/local/src/db-3.2.9> 'patch -p0 < patch.3.2.9.1' 'patch -p0 < patch.3.2.9.2' 'cd build_unix' '../dist/configure' 'make' 'make install' 'cd ../..' 'echo /usr/local/BerkeleyDB.3.2/lib >> /etc/ld.so.conf' 'ldconfig' <Copy squidGuard-1.2.0 to /usr/local/src> 'tar zxvf squidGuard-1.2.0.tar.gz' 'cd squidGuard-1.2.0' './configure --with-db=/usr/local/BerkeleyDB.3.2' 'make' 'make install' Copy your old squidGuard.conf file over.
