LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-21-2008, 10:51 AM   #1
version7x
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
squidGuard errors


Hi All!

I am trying to update my squid and squidguard install. I have them working on an OLD server that is due to be decommissioned.

I've set up and installed everything necessary, including the BerkeleyDB. However, when I start squid, I get the following errors before it dies:
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied


2008/02/21 10:57:22| WARNING: url_rewriter #19 (FD 24) exited
2008/02/21 10:57:22| WARNING: url_rewriter #18 (FD 23) exited
2008/02/21 10:57:22| WARNING: url_rewriter #17 (FD 22) exited
2008/02/21 10:57:22| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!

To me, it looks like a permissions issue with the BerkeleyDB. I've got the exact configuration as the my old server, but the new versions include the DB. I've gone over and over the install instructions on the squidguard site, but can't seem to find anything.

Here's the url_rewrite line from my squid.conf:
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

And here is my entire squidguard.conf file:
#
# CONFIG FILE FOR SQUIDGUARD
#
# See *OMMITING DUE TO SQUIDGUARD URL* for more examples
#

dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log

dest gambling{
log gambling
domainlist gambling/domains
urllist gambling/urls
}

dest porn{
log porn
domainlist porn/domains
urllist porn/urls
}

dest local-ok{
domainlist local-ok/domains
urllist local-ok/urls
}

dest local-block{
log local-block
domainlist local-block/domains
urllist local-block/urls
}


acl {
default {
pass local-ok !local-block !gambling !porn all

redirect LINE OMITTED DUE TO URL
}
}
 
Old 02-22-2008, 07:35 AM   #2
version7x
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Configuration issue - solved

As it turns out, this was not an issue with BerkeleyDB or my squidGuard setup. I had SELinux enabled. A co-worker noticed this. Once it was disabled, the server rebooted and BAM! Its up and running!

Now I've just got to learn SELinux so I can spot this next time!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: mail command failed for /var/log/squidguard/squidGuard.log.6 Niceman2005 Linux - Networking 1 01-22-2009 01:24 PM
Squidguard: slacky Linux - Security 2 05-16-2006 07:17 AM
SquidGuard errors Roach Linux - Software 1 10-20-2005 03:36 AM
Squidguard sanjibgupta Linux - Security 1 09-26-2005 01:47 AM
squidguard metallica1973 Linux - Security 5 05-24-2005 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration