Author Topic: error when adding/starting mailfilter module  (Read 1659 times)

zippydan

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +1/-0
    • View Profile
error when adding/starting mailfilter module
« on: December 26, 2013, 09:04:10 pm »
added antivirus and mailfilter package to existing 3.0.32 installation

started antivirus package successfully (*)

trying to start mailfilter from admin interface, and get a message about a failure and to check logs.  zentyal.log shows following:

Code: [Select]
2013/12/26 14:51:50 ERROR> Sudo.pm:233 EBox::Sudo::_rootError - root command /bin/cat /var/lib/zentyal/conf/sa-mysql.passwd failed.
Error output: /bin/cat: /var/lib/zentyal/conf/sa-mysql.passwd: No such file or directory

Command output: .
Exit value: 1
2013/12/26 14:51:50 ERROR> GlobalImpl.pm:654 EBox::GlobalImpl::__ANON__ - Failed to save changes in module mailfilter: root command /bin/cat /var/lib/zentyal/conf/sa-mysql.passwd failed.
Error output: /bin/cat: /var/lib/zentyal/conf/sa-mysql.passwd: No such file or directory

Command output: .
Exit value: 1
2013/12/26 14:51:50 INFO> Base.pm:230 EBox::Module::Base::save - Restarting service for module: logs
2013/12/26 14:51:50 ERROR> GlobalImpl.pm:711 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: mailfilter

(*)actually on initial attempt to start antivirus module, the web admin stopped responding.  additionally, sudo /etc/init.d/zentyal restart was completely unresponsive through ssh.  additionally, sudo shutdown -r now was also unsuccessful.  had to hard reboot the server to get everything working again.  but antivirus module did start without errors after reboot.  unfortunately in the admin interface, it said that the antivirus database had never been updated.  i decided to uninstall the antivirus module and then reinstall it again, and had no problems with the antivirus module - no freezes, no problems starting, and the web admin said it was up to date.  this did not fix the mail filter problem however
« Last Edit: December 27, 2013, 04:33:21 pm by zippydan »

zippydan

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +1/-0
    • View Profile
Re: error when adding mailfilter package
« Reply #1 on: December 27, 2013, 03:16:59 pm »
found the solution in this bug report

http://trac.zentyal.org/ticket/6058

the summary is that the mailfilter install is failing to create the spamassassin DB

if you create it manually using the

# sudo /usr/share/zentyal-mailfilter/create-spamassassin-db

then you can stop and restart the mailfilter module successfully