Koozali.org: home of the SME Server

Dansguardian Startup Error

Offline sdpiowa

  • **
  • 22
  • +0/-0
Dansguardian Startup Error
« on: May 15, 2009, 03:17:03 AM »
I installed Dansguardian on our server today.  It was working until I started changing the config files, then it wouldn't start when I gave the restart command.  When the computer boots up and it tries to start it, it says [FAILED].

First of all, I was going off of the WIKI, so I don't think that I did anything wrong.  If there is no quick fix, how do I reinstall Dansguardian without reinstalling the operating system?
« Last Edit: May 15, 2009, 01:32:33 PM by sdpiowa »

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Dansguardian Startup Error
« Reply #1 on: May 15, 2009, 05:50:55 AM »
Moving to Contribution section where it is more appropriate.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Dansguardian Startup Error
« Reply #2 on: May 15, 2009, 07:21:10 AM »
sdpiowa

Quote
.... Dansguardian .... was working until I started changing the config files

Well you need to tell us more than that, ie which config files, what changes did you make etc etc.

I'm guessing you have made a wrong change to one of the files and that is preventing dansguardian from starting.


Quote
..how do I reinstall Dansguardian without reinstalling the operating system?

To remove do:
rpm -e dansguardian smeserver-dansguardian
signal-event reboot
Note you will also need to revert db settings to default values as per wiki.

Then follow the wiki to reinstall and configure

I STRONGLY suggest you only change one config file at a time, making note of the changes you make, and test after each change.
« Last Edit: May 15, 2009, 07:23:34 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline sdpiowa

  • **
  • 22
  • +0/-0
Re: Dansguardian Startup Error
« Reply #3 on: May 15, 2009, 01:24:52 PM »
Let's see; I changed the following files:
dansguardian.conf
dansguardianf1.conf
bannedextensionlist
bannedsitelist
bannedurllist

I only un-commented settings on the following:
bannedextensionlist

I only changed the rest of the files based on what either the config file or the WIKI told me to do.


I didn't realize that I had to restart Dansguardian for changes to take effect, so that was part of my problem.  That's why I didn't try to restart it earlier.


ALSO: Is there a way to revert the config files back to the default settings?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dansguardian Startup Error
« Reply #4 on: May 15, 2009, 01:38:27 PM »
I didn't realize that I had to restart Dansguardian for changes to take effect, so that was part of my problem.  That's why I didn't try to restart it earlier.

just a question: did you check any log (at least /var/log/messages) to understand what's the problem?

Ciao
Stefano

Offline sdpiowa

  • **
  • 22
  • +0/-0
Re: Dansguardian Startup Error
« Reply #5 on: May 15, 2009, 01:49:22 PM »
No, I didn't.  I'm still learning SME Server, so I didn't think to check that.

I've reinstalled Dansguardian, and it's working so far (but it isn't fully configured yet).

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dansguardian Startup Error
« Reply #6 on: May 15, 2009, 02:14:45 PM »
No, I didn't.  I'm still learning SME Server, so I didn't think to check that.

ok.. in linux and every X* like O.S. almost everything is logged.. if something fails, you can be sure that you'll find the reason in a log file..

most of them are in /var/log directory; you should start to learn to check then (you can do also via server-manager) if you want to troubleshoot SME (or, generally speaking, linux)

Quote
I've reinstalled Dansguardian, and it's working so far (but it isn't fully configured yet).

this is windows's style approach to the problem.. here we are talking about a server O.S., not a toy :)

please, take the time to read the documentation and to read the wiki: you'll find some usefull info to start thinking as a sysad.

Ciao
Stefano
« Last Edit: May 15, 2009, 02:28:51 PM by Stefano a.k.a. nenonano »

Offline sdpiowa

  • **
  • 22
  • +0/-0
Re: Dansguardian Startup Error
« Reply #7 on: May 15, 2009, 02:21:03 PM »
I think I found the problem.  When I was "commenting" lines for blocked extensions before, I was doing:
#."FILETYPE"
instead of:
# ."FILETYPE"

I did it the second way this time and it is still working.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Dansguardian Startup Error
« Reply #8 on: May 15, 2009, 02:46:03 PM »
A space after your "#" won't make a difference, anything after the "#" won't.


Offline sdpiowa

  • **
  • 22
  • +0/-0
Re: Dansguardian Startup Error
« Reply #9 on: May 15, 2009, 02:50:27 PM »
I just realized that I have the problem immediately after enabling a content scanner.  How can I enable one like Clamd?  The instant I enable it Dansguardian won't start.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dansguardian Startup Error
« Reply #10 on: May 15, 2009, 02:57:19 PM »
I just realized that I have the problem immediately after enabling a content scanner.  How can I enable one like Clamd?  The instant I enable it Dansguardian won't start.

are you following this howto?

Stefano