Author Topic: [SOLVED] mailfilter error after update to 2.2  (Read 2932 times)

sheck

  • Zen Monk
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
[SOLVED] mailfilter error after update to 2.2
« on: March 05, 2012, 09:31:29 am »
Dear all,

we just migrated our mailserver from zentyal 2.0 to zentyal 2.2 (it´s a zentyal slave). Everything works fine, expect the mailfilter module. When I enable it it shows the follwing error after saving:

Code: [Select]
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/
The following modules failed while saving their changes, their state is unknown: mailfilter

zentyal.log does contain the following error:
Code: [Select]
2012/03/05 09:25:25 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'changes' => [
                         'add',
                         [
                           'objectClass',
                           'vdmailfilter',
                           'domainMailPortion',
                           '@mydomain.com'
                         ]
                       ]
        };
2012/03/05 09:25:25 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - Unknown error at EBox::MailFilter::VDomainsLdap::_addVDomain objectClass: value #0 invalid per syntax
2012/03/05 09:25:25 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module mailfilter: Unknown error at EBox::MailFilter::VDomainsLdap::_addVDomain objectClass: value #0 invalid per syntax
2012/03/05 09:25:25 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: logs
2012/03/05 09:25:25 ERROR> GlobalImpl.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: mailfilter

I already deinstalled and reinstalled mailfilter, but the problem persists... any ideas?

Thanks for any help / hints!

Steve
« Last Edit: March 07, 2012, 03:07:20 pm by sheck »

sheck

  • Zen Monk
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: mailfilter error after update to 2.2
« Reply #1 on: March 05, 2012, 01:13:42 pm »
When reinstalling mailfilter zentyal.log shows:

Code: [Select]
2012/03/05 13:11:21 INFO> install-packages:56 main::__ANON__ - Starting package installation process
2012/03/05 13:11:24 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /usr/bin/sudo -p sudo: -u postgres psql -c "GRANT SELECT, INSERT, UPDATE, DELETE ON spamassassin TO ebox" eboxlogs failed.
Error output: ERROR:  relation "spamassassin" does not exist

Command output: .
Exit value: 1

may this be the root-cause of my problem? how to fix it?

Thanks

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: mailfilter error after update to 2.2
« Reply #2 on: March 07, 2012, 12:58:21 pm »
This a setup bug.

It is fixed in http://trac.zentyal.org/ticket/3898#comment:1 . There are also repair instructions for servers hit by this error.

Regards,

Javier
« Last Edit: March 07, 2012, 03:11:53 pm by Javier Amor Garcia »

sheck

  • Zen Monk
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: mailfilter error after update to 2.2
« Reply #3 on: March 07, 2012, 01:59:07 pm »
Hi,

thanks for your answer - I followed the instructions, but I still have the following error when trying to enable the mailfilter-module:

Code: [Select]
2012/03/07 13:53:04 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall
2012/03/07 13:53:06 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: mailfilter
2012/03/07 13:53:15 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'changes' => [
                         'add',
                         [
                           'objectClass',
                           'vdmailfilter',
                           'domainMailPortion',
                           '@mydomain.com'
                         ]
                       ]
        };
2012/03/07 13:53:15 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - Unknown error at EBox::MailFilter::VDomainsLdap::_addVDomain objectClass: value #0 invalid per syntax
2012/03/07 13:53:15 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module mailfilter: Unknown error at EBox::MailFilter::VDomainsLdap::_addVDomain objectClass: value #0 invalid per syntax

I think there is something wrong with my ldap (maybe due to the 2.0 -> 2.2 update?). Is there an easy way to reconfigure ldap or do I need to reinstall everything? Just re-installing mailfilter wont solve the problem...

Thanks again!
Steve

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: mailfilter error after update to 2.2
« Reply #4 on: March 07, 2012, 02:10:21 pm »
Hi,

it is other, non-related, error. It seems that you have missing LDAP schemas.

Try the following commands as root:

Code: [Select]
perl -MEBox -MEBox::Global -e'EBox::init(); $mf = EBox::Global->modInstance('mailfilter'); $mf->performLDAPActions(); 1'
/etc/init.d/zentyal mailfilter restart

« Last Edit: March 07, 2012, 03:12:08 pm by Javier Amor Garcia »

sheck

  • Zen Monk
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: mailfilter error after update to 2.2
« Reply #5 on: March 07, 2012, 03:06:24 pm »
That worked!!!!

Thanks so much!