Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > SquidGuard and Berkeley DB Woes
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-21-2008   #1 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 4
SquidGuard and Berkeley DB Woes

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.

My new setup is on a RHEL 5 Server with 2.6.STABLE6, SquidGuard: 1.2.1 Berkeley DB 4.6.21.


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
}
}
version7x is offline  

Reply With Quote
Old 02-22-2008   #2 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 4
Not a Berkeley DB issue

A co-worker of mine found the solution. I had selinux enabled. Once it was disabled and the box was rebooted, ta-da! I'm not sure how he discovered it or if it was just an educated guess, but it's working!
version7x is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SquidGuard issue rwlib3 Servers 2 08-09-2006 01:31 AM
Squid Logging shacall Servers 0 06-17-2006 03:50 AM
SquidGuard Error ...... zahra79 Linux Networking 1 05-23-2005 10:54 PM
Db Berkeley and squidGuard zahra79 Linux Networking 3 05-06-2005 12:21 PM
Squidguard omrebel Servers 5 03-30-2005 04:01 PM

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 02:10 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2