Koozali.org: home of the SME Server

unable to run Dansguardian service after re-install.

Offline ber

  • ****
  • 239
  • +0/-0
unable to run Dansguardian service after re-install.
« on: August 30, 2013, 03:05:36 AM »
HI SME vs 8- all updates installed.

Had some problems with internet access to certain websites- uninstalled Dansguardian before finding that the cause was a faulty modem. I reinstalled Dansguardian and the contrib doesnt seem to be filtering.

Here is the error when trying to start the dansguardian service:

login as: root
root@192.168.1.254's password:
Last login: Thu Aug 29 23:38:22 2013 from 119.224.37.248
[root@server ~]# service dansguardian start                                     Starting dansguardian:                                     [ FAILED ]
[root@server ~]# /etc/init.d/dansguardian restart
Shutting down dansguardian:                                [ FAILED ]
Starting dansguardian:                                     [ FAILED ]
[root@server ~]# /etc/init.d/dansguardian start
Starting dansguardian:                                     [ FAILED ]
[root@server ~]#


I am able to configure the config files but cannot the start the service.

The web interface advises that the server needed to be reconfigured after the software install but cannot clear the notice. Ive rebooted numerous times.

Its seems that the squid-guard proxy service is also not running??. I tried another contrib "webfilter". That service is not filtering the content either.

How can I resolve the problem?




Offline janet

  • ****
  • 4,812
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #1 on: August 30, 2013, 03:57:48 AM »
ber

Quote
The web interface advises that the server needed to be reconfigured after the software install but cannot clear the notice. Ive rebooted numerous times.

Rebooting is not sufficient.
You need to do
signal-event post-upgrade
signal-event reboot

Then try again & see if you still have problems.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ber

  • ****
  • 239
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #2 on: August 30, 2013, 06:06:52 AM »
HI Janet- sorry reboot was not the correct term- I've run the following commands

signal-event post-upgrade
signal-event reboot


numerous times to make sure all services are updated and running at reboot.- still not able to resolve the issue or get Dansguardian service running.

After restart Server-manager through web browser still displays: Warning: a reconfigure and reboot is required before proceeding! Failure to do so now may leave your system in an unknown state!

As before, Is there a way to check that squid-guard is running. and if not why?

Thanks :)


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #3 on: August 30, 2013, 11:33:06 AM »
ber

Do
signal-event console-save
signal-event reboot

and then see what happens
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ber

  • ****
  • 239
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #4 on: August 30, 2013, 03:12:16 PM »
Janet, i ran the command. The machine restarted and the message is still displayed in the browser server-manager. Warning: a reconfigure and reboot is required before proceeding! Failure to do so now may leave your system in an unknown state!

Some Changes though... I installed the "webfilter" contrib and it seems to be working. Its filtering content. So I removed that and dansguardian seems to be filtering content?? ...but not displaying the standard warning html page- it displays the following:

Forbidden

You don't have permission to access /squidGuard/cgi-bin/blocked.cgi on this server.

Could the problem be with the Dansguardian package?. Suffice to say its doing its job, though not fully. Maybe I need to re-install the package?? I will revisit this later when i have more time.

Thanks all the same.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #5 on: August 30, 2013, 09:43:30 PM »
ber

It seems you have various issues happening, so let's fix them one at a time.

Quote
You don't have permission to access /squidGuard/cgi-bin/blocked.cgi on this server.

From
http://wiki.contribs.org/WebFiltering#Denied_page
it appears you customised the error page but did not remove that db setting when you removed the webfiltering contrib.
Show output of
config show squidguard
& for interest
config show squid
config show dansguardian

A comment. Rather than jumping from contrib to contrib trying to get something to work & doing this in an experimental way, you should just install the one contrib (eg dansguardian) & work through getting it working correctly & troubleshooting your installation. By switching between similar contribs you are only complicating the process & making it more difficult for yourself & more difficult for others to help you.
Please just focus or concentrate on getting one contrib installed & working (ie dansguardian).
You need to be more careful re what you are doing.
« Last Edit: August 30, 2013, 10:05:51 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ber

  • ****
  • 239
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #6 on: August 31, 2013, 12:16:26 AM »
HI Janet, as requested...


[root@server ~]# config show squidguard
squidguard=service
    BlockedCategories=adult,dating,gambling,hacking
    DisabledCategories=child,liste_bu,sexual_education,cleaning,reaffected,cooking,bank,astrology,financial,jobsearch,marketingware,strict_redirector,strong_redirector,tricheur,mixed_adult,dangerous_material
    UnrestrictedIP=
    status=enabled
[root@server ~]# config show squid
squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    Transparent=yes
    TransparentPort=3128
    access=private
    status=enabled
[root@server ~]# config show dansguardian
dansguardian=service
    LocalOnly=no
    statsclient=enabled
    status=enabled
    webstats=yes
[root@server ~]# ls /etc/dansguardian/lists/
authplugins                  contentscanners                 exceptionurllist
bannedextensionlist          downloadmanagers                filtergroupslist
bannedextensionlist.rpmsave  exceptionextensionlist          greysitelist
bannediplist                 exceptionextensionlist.rpmsave  greyurllist
bannedmimetypelist           exceptionfilesitelist           headerregexplist
bannedphraselist             exceptionfileurllist            logregexpurllist
bannedregexpheaderlist       exceptioniplist                 logsitelist
bannedregexpurllist          exceptionmimetypelist           logurllist
bannedsitelist               exceptionphraselist             phraselists
bannedurllist                exceptionregexpurllist          pics
blacklists                   exceptionsitelist               urlregexplist
contentregexplist            exceptionsitelist.rpmsave       weightedphraselist
[root@server ~]# ls /etc/
acpi                 httpd              profile
adjtime              identd.spoof       profile.d
aliases              init.d             proftpd.conf
alternatives         initlog.conf       protocols
anacrontab           inittab            qpsmtpd
at.deny              inputrc            quotagrpadmins
audisp               iproute2           quotatab
audit                iscsi              raddb
bashrc               isdn               radiusclient
blacklist.dat        issue              rc
blkid                issue.net          rc0.d
capi.conf            krb5.conf          rc1.d
cdrecord.conf        ldap.conf          rc2.d
clamd.conf           ldap.secret        rc3.d
cpu.conf             ld.so.cache        rc4.d
cpu-system.conf      ld.so.conf         rc5.d
cron.d               ld.so.conf.d       rc6.d
cron.daily           libaudit.conf      rc7.d
cron.deny            libuser.conf       rc.d
cron.hourly          localtime          rc.local
cron.monthly         login.defs         rc.sysinit
crontab              logrotate.conf     redhat-release
cron.weekly          logrotate.d        resolv.conf
csh.cshrc            lpd                rmt
csh.login            lvm                rpc
dansguardian         lynx.cfg           rpm
dar                  mail               rssh.conf
dbus-1               mailcap            runit
dcc                  mail.rc            rwtab
default              makedev.d          rwtab.d
depmod.d             man.config         samba
dev.d                mc                 sasl2
dhclient-exit-hooks  mdadm.conf         screenrc
dhcpd.conf           mime.types         scsi_id.config
dhparams.pem         minicom.users      securetty
diald                mke2fs.conf        security
diald.conf           modprobe.conf      selinux
diald.filter         modprobe.d         sensors.conf
DIR_COLORS           motd               services
DIR_COLORS.xterm     mtab               sestatus.conf
dnsroots.global      mtools.conf        shadow
dovecot.conf         multipath.conf     shadow-
dumpdates            Muttrc             shells
elinks.conf          Muttrc.local       skel
enscript.cfg         my.cnf             smartd.conf
environment          netplug            smolt
e-smith              netplug.d          snmp
e-smith-release      nscd.conf          squid
exports              nsswitch.conf      squidclamav.conf.rpmsave
fetchmail            ntp                ssh
filesystems          ntp.conf           startmail
firmware             oidentd_masq.conf  stunnel
flexbackup.conf      oidentd.users      sudoers
fonts                openldap           sysconfig
freshclam.conf       opt                sysctl.conf
fstab                pam.d              syslog.conf
ftpusers             pango              tcprules
gcrypt               passwd             termcap
GeoIP.conf           passwd-            udev
GeoIP.conf.default   pcmcia             ulogd.conf
gpm-root.conf        pear.conf          updatedb.conf
group                php.d              ups
group-               php.ini            vimrc
grub.conf            pine.conf          virc
gshadow              pki                warnquota.conf
gshadow-             pm                 wgetrc
hal                  ppp                X11
host.conf            pptpd.conf         xinetd.d
HOSTNAME             prelink.cache      yum
hosts                prelink.conf       yum.conf
hosts.allow          prelink.conf.d     yum.repos.d
hosts.deny           printcap           yum.smerepos.d
[root@server ~]#

Kind Regards

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #7 on: August 31, 2013, 12:42:42 AM »
ber

I would do
config delete squidguard

Also did you follow all the squidguard removal instructions here
http://wiki.contribs.org/WebFiltering#Uninstall
Please repeat those

Then follow all the above with
signal-event post-upgrade
signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: unable to run Dansguardian service after re-install.
« Reply #8 on: September 01, 2013, 03:04:28 PM »
Hi,
Squidguard is different from dansguardian.

Best,

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #9 on: September 05, 2013, 02:34:30 AM »
ber

So what is happening now ?

Quote
I would do
config delete squidguard

Also did you follow all the squidguard removal instructions here
http://wiki.contribs.org/WebFiltering#Uninstall
Please repeat those

Then follow all the above with
signal-event post-upgrade
signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ber

  • ****
  • 239
  • +0/-0
Re: unable to run Dansguardian service after re-install.
« Reply #10 on: September 12, 2013, 10:45:39 AM »
Hi Janet- apologies for the late reply- i was able to resolve the issue regarding the dansguardian service- the hardware needed to be manually powered down...

command line initiated reconfig or reboot wasn't doing it. after I did the manual power down and reboot- everything was up and running.

Kind Regards...