Author Topic: Dansguardian Error  (Read 6384 times)

directoph

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Dansguardian Error
« on: May 08, 2009, 05:01:37 am »
Hello experts,

I am a newbie here, i am trying to make dansguardian work but i am getting this error... pls help... and also, if i activate the filtering on the http proxy... all the pc's on the network cannot browse the internet and i need to restart the server in order for it work again.

box@ubuntu:~$ sudo /etc/init.d/dansguardian stop
 * Stopping DansGuardian dansguardian                                    [ OK ]
ebox@ubuntu:~$ sudo /etc/init.d/dansguardian start
 * Starting DansGuardian dansguardian                                           Config problem; check allowed values for maxcontentfilecachescansize
Error parsing the dansguardian.conf file or other DansGuardian configuration files
                                                                         [fail]

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian Error
« Reply #1 on: May 12, 2009, 10:07:12 pm »
Hi,
  to try the troubleshooting we need to know the version numbers. Can you post the output of the following commandapt-cache policy dansguardian ebox-squid squid
?

clicerioneto

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #2 on: May 12, 2009, 10:49:35 pm »
HI

I am having the same problem.

The next version of ebox and dansguardian:

## DANSGUARDIAN ##

dansguardian:
  Instalado: 2.9.9.7-2~hardy2
  Candidato: 2.9.9.7-2~hardy2
  Tabela de versão:
 *** 2.9.9.7-2~hardy2 0
        500 http://br.archive.ubuntu.com hardy-updates/universe Packages
        500 http://security.ubuntu.com hardy-security/universe Packages
        100 /var/lib/dpkg/status
     2.8.0.6-antivirus-6.4.4.1-4build1 0
        500 cdrom://Ubuntu-Server 8.04 _Hardy Heron_ - Release i386 (20080423.2) hardy/extras Packages
        500 http://br.archive.ubuntu.com hardy/universe Packages

####################################

ebox-squid:
  Instalado: 1.0.1-0ubuntu1~ppa1~hardy1
  Candidato: 1.0.1-0ubuntu1~ppa1~hardy1
  Tabela de versão:
 *** 1.0.1-0ubuntu1~ppa1~hardy1 0
        100 /var/lib/dpkg/status
     0.12-0ubuntu1 0
        500 cdrom://Ubuntu-Server 8.04 _Hardy Heron_ - Release i386 (20080423.2) hardy/extras Packages
     0.11.99-0ubuntu3 0
        500 http://br.archive.ubuntu.com hardy/universe Packages

###########################################################

root@ebox:/etc/apt# dpkg -i ebox-squid_1.0.1-0ubuntu1~ppa1~hardy1_all.deb
(Lendo banco de dados ... 39498 arquivos e diretórios atualmente instalados.)
Preparando para substituir ebox-squid 1.0.1-0ubuntu1~ppa1~hardy1 (usando ebox-squid_1.0.1-0ubuntu1~ppa1~hardy1_all.deb) ...
Descompactando substituto ebox-squid ...
dpkg: problemas de dependência impedem configuração de ebox-squid:
 ebox-squid depende de ebox (>= 1.0); porém:
  Versão de ebox no sistema é 0.12-0ubuntu1.
dpkg: erro processando ebox-squid (--install):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante processamento de:
 ebox-squid

alfadaemon

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #3 on: May 12, 2009, 11:01:37 pm »
I have a similar problem and already report the problem as you can see at the following post.

http://forum.ebox-platform.com/index.php?topic=1301.0

I'm waiting for an answer from Javier too. I believe the problem is related with the firewall configuration, because firefox is showing a message that the proxy server refused the connection (when switching to Filter option in the General options). Also using zenmap the port used by squid appears open, then with the filter option the port is in state closed.
« Last Edit: May 12, 2009, 11:43:40 pm by alfadaemon »

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian Error
« Reply #4 on: May 13, 2009, 09:38:24 am »
Hello,
 i dont think that is a firewall problem. The last security update of dansguardian changed a lot of the syntax of configuration files and give us a lot of problems. I believed all issues were fixed but obviously is something left.

However I cannot reproduce your error, so I need more information about your conifguration.

First, I had to know if all of you have eithet the policy set to 'filter' or some object's policy set to filter.
Second, I need you to check if dansguardian is running with the command status ebox.dansguardian . If it is running plese wait some seconds and retry the command and check that the PID is the same. (to be sure that is not in a stop-start cycle).

If someone can send me a configuration backup of its ebox it would be helpful too.


alfadaemon

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #5 on: May 13, 2009, 05:38:55 pm »
Hi Javier... Attached my conf backup

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian Error
« Reply #6 on: May 14, 2009, 02:15:45 pm »
Hi alfadaemon,
  i had looked your configuration and i dont find error in the squid/dansguardian section. I think that you were right when you suspected of firewall problems, can you try a 'accept' rule for http traffic?

alfadaemon

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #7 on: May 14, 2009, 05:35:27 pm »
Javier, I believe that what it is needed is a rule to accept conections to the squid port configured at the General Settings in HTTP Proxy... will try out in a moment....

Nop.... it does not work, if you look carefully, I already have a rule for http traffic.
« Last Edit: May 14, 2009, 06:57:47 pm by alfadaemon »

coastdweller

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #8 on: May 17, 2009, 01:10:50 am »
I'm running into an error like this where it continually says "Stopping dansguardian dansguardian, also, stopping squid http proxy squid.

Can't connect to it from remote, cant get onto the internet.

Tried rebooting, killing the process but stuck in a loop.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian Error
« Reply #9 on: May 18, 2009, 08:43:08 am »
coastdweller,
  that is that some error interferes with the normal start process of squid. To better diagnose it we will first stop those processes with the two following commands:
Code: [Select]
stop ebox.squid
stop ebox.dansguardian

After that we will execute squid and dansguardian manually to look for nay clue in the output:

To execute squid:  /usr/sbin/squid -D -sYC -N
To execute dansguradian: /usr/sbin/dansguardian -N

Hopefully the output will point out what is the exact problem, needless to say if you need it yo ucan paste the output here so we could diagnose it together

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #10 on: May 18, 2009, 10:41:23 am »
Hi  coastdweller,

Could you also post the output of:

Code: [Select]
apt-cache policy ebox-squid
apt-cache policy ebox-dansguardian

Thanks

coastdweller

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #11 on: May 20, 2009, 04:41:46 pm »
ebox-squid:
Code: [Select]
  Installed: 1.1.10~svn13593-0ubuntu1~ppa1~hardy1
  Candidate: 1.1.10~svn13593-0ubuntu1~ppa1~hardy1
  Version table:
 *** 1.1.10~svn13593-0ubuntu1~ppa1~hardy1 0
        100 /var/lib/dpkg/status
     1.0.1-0ubuntu1~ppa1~hardy2 0
        500 http://ppa.launchpad.net hardy/main Packages
Code: [Select]
apt-cache policy ebox-dansguardian
W: Unable to locate package ebox-dansguardian

When I have it installed it loops, as we use it locally to serve about a terabyte of archived data and a gateway I had to take a break from it (Hence the delay in my reply).

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #12 on: May 20, 2009, 05:02:10 pm »
Quote
apt-cache policy ebox-dansguardian
W: Unable to locate package ebox-dansguardian

That should be:

Code: [Select]
apt-cache policy dansguardian

coastdweller

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dansguardian Error
« Reply #13 on: May 20, 2009, 05:14:30 pm »
dansguardian:
 
Code: [Select]
Installed: 2.9.9.7-2~hardy2ebox
  Candidate: 2.9.9.7-2~hardy2ebox
  Version table:
 *** 2.9.9.7-2~hardy2ebox 0
        500 http://ppa.launchpad.net hardy/main Packages
        100 /var/lib/dpkg/status
     2.9.9.7-2~hardy2 0
        500 http://security.ubuntu.com hardy-security/universe Packages

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian Error
« Reply #14 on: May 31, 2009, 01:15:05 pm »
alfademon,
 i forgot there is a error when dansguardian logs rotations, is fixed now but if you upgrade it may remain.
Please take a look to your /etc/logrotate.d/dansguardian and compare with it this. In case you have a different file copy it and restart the ebox-squid module.
« Last Edit: June 01, 2009, 11:31:23 am by sixstone »