Author Topic: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)  (Read 3419 times)

jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #15 on: August 05, 2020, 08:32:48 am »
Hi doncamilo,

thank you for reply. I don´t have broken packages. I just checked it with "dpkg -l | grep -Ev '^(ii|rc)'
", mailfilter nad antivirus are still stopped.

Josef

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #16 on: August 05, 2020, 12:51:44 pm »
 :)

Correct, you don't have broken packages. It means your problem isn't the bug that was detected and fixed in this thread.

You'll have to study your logs. The first log you should check is '/var/log/zentyal/zentyal.log'. Check the status of the services through 'zs' and 'systemctl' too.

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #17 on: August 05, 2020, 04:08:37 pm »
Thanks for reply  ;)  this is how its look. I have clear installation, I didn´t make any change, but since I install antivir and mail filter, both modules are still STOPPED, below are statuses and records from log

Code: [Select]
Zentyal: status module antivirus:                       [ STOPPED ]

Code: [Select]
:~$ systemctl status bind9
● bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-08-05 01:46:40 CEST; 14h ago
     Docs: man:named(8)
 Main PID: 1709 (named)
    Tasks: 8 (limit: 4327)
   CGroup: /system.slice/bind9.service
           └─1709 /usr/sbin/named -f -u bind -4

Code: [Select]
2020/08/05 01:02:43 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/OQ9hqXPvQT.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: mail
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: mailfilter
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sogo
2020/08/05 01:02:43 ERROR> Base.pm:117 EBox::Exceptions::Base::throw - Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr at Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr at /usr/share/perl5/EBox/Sudo.pm line 221
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^J/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'^J/bin/chmod 755 \'/etc/default/sogo\'^J/bin/chown 0.0 \'/etc/default/sogo\'', -1, 'ARRAY(0x5594a5b58070)', 'ARRAY(0x5594a5b58088)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'', '/bin/chmod 755 \'/etc/default/sogo\'', '/bin/chown 0.0 \'/etc/default/sogo\'') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/bin/mv /var/lib/zentyal/tmp/fY8shraVgp \'/etc/default/sogo\'', '/bin/chmod 755 \'/etc/default/sogo\'', '/bin/chown 0.0 \'/etc/default/sogo\'') called at /usr/share/perl5/EBox/Module/Base.pm line 1063
EBox::Module::Base::_writeFileSave('/var/lib/zentyal/tmp/fY8shraVgp', '/etc/default/sogo', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/Module/Base.pm line 1142
EBox::Module::Base::writeConfFileNoCheck('/etc/default/sogo', 'sogo/sogo.mas', 'ARRAY(0x5594a3f76308)', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/Module/Service.pm line 1022
EBox::Module::Service::writeConfFile('EBox::SOGo=HASH(0x5594a52d9148)', '/etc/default/sogo', 'sogo/sogo.mas', 'ARRAY(0x5594a3f76308)', 'HASH(0x55949ecce820)') called at /usr/share/perl5/EBox/SOGo.pm line 227
EBox::SOGo::_writeSOGoDefaultFile('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/SOGo.pm line 98
EBox::SOGo::_setConf('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Service.pm line 940
EBox::Module::Service::_regenConfig('EBox::SOGo=HASH(0x5594a52d9148)') called at /usr/share/perl5/EBox/Module/Base.pm line 234


2020/08/05 01:02:43 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module sogo: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jI7MrbOnu1.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:43 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2020/08/05 01:02:48 ERROR> Service.pm:43 EBox::Service::manage - No such daemon: zentyal.loggerd at No such daemon: zentyal.loggerd at /usr/share/perl5/EBox/Service.pm line 43
EBox::Service::manage('zentyal.loggerd', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 746
EBox::Module::Service::_manageDaemon('EBox::Logs=HASH(0x5594a3ab0348)', 'HASH(0x5594a5b45808)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 728
EBox::Module::Service::_startDaemon('EBox::Logs=HASH(0x5594a3ab0348)', 'HASH(0x5594a5b45808)') called at /usr/share/perl5/EBox/Module/Service.pm line 772
EBox::Module::Service::_manageService('EBox::Logs=HASH(0x5594a3ab0348)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 797
EBox::Module::Service::_startService('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Service.pm line 996
EBox::Module::Service::_enforceServiceState('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Service.pm line 947
EBox::Module::Service::_regenConfig('EBox::Logs=HASH(0x5594a3ab0348)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233

2020/08/05 01:02:49 ERROR> Firewall.pm:207 EBox::Firewall::_enforceServiceState - Error restarting firewall: Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/STeBGFmfFF.cmd 2> /var/lib/zentyal/tmp/stderr
2020/08/05 01:02:49 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sysinfo
2020/08/05 01:02:50 ERROR> Base.pm:117 EBox::Exceptions::Base::throw - Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr at Failed to execute /usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr at /usr/share/perl5/EBox/Sudo.pm line 221
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/KA0kZufIj_.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^Jecho Europe/Prague > /etc/timezone^Jln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime', -1, 'ARRAY(0x5594a5beeb18)', 'ARRAY(0x5594a5bae878)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'echo Europe/Prague > /etc/timezone', 'ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('echo Europe/Prague > /etc/timezone', 'ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime') called at /usr/share/perl5/EBox/SysInfo.pm line 158
EBox::SysInfo::_setConf('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::SysInfo=HASH(0x5594a2ed7738)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55949f728ac0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5594a2dddb38)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x5594a2e9f7b0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5594a2dddb38)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30


jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #18 on: August 05, 2020, 07:07:38 pm »
I am running clear installation core version 6.2.3, I didn´t make any change, just install modules within initial installation process. But after reboot these two modules stayed  in STOPPED status....

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #19 on: August 07, 2020, 12:59:46 pm »
 :)

Your logs show that could be SOGo the module which is throwing the errors.  Bind9 is the DNS server, but you need information about the amavis, postfix and dovecot services.

Code: [Select]
sudo systemctl status dovecot
sudo systemctl status postfix
sudo systemctl status amavis
sudo systemctl status sogo

Probably, the last command will throw an error saying you to check this service with "journalctl..." do it, and paste here the output.

Cheers!

- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #20 on: August 07, 2020, 05:17:17 pm »
Hi Doncamilo,

currently I have only one module "STOPPED" (when i look via webadmin). When I try to check status like this

Code: [Select]
sudo systemctl status amavis

I get this info

Code: [Select]
mailsvr@mailsvrz:~$ sudo systemctl status amavis
● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated)
   Active: active (running) since Fri 2020-08-07 16:58:59 CEST; 14min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 3 (limit: 4327)
   CGroup: /system.slice/amavis.service
           ├─3145 /usr/sbin/amavisd-new (master)
           ├─3544 /usr/sbin/amavisd-new (virgin child)
           └─3545 /usr/sbin/amavisd-new (virgin child)

Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for       .rpm
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for       .swf
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for       .tar
Aug 07 16:58:59 mailsvrz amavis[3145]: No decoder for       .zoo
Aug 07 16:58:59 mailsvrz amavis[3145]: Using primary internal av scanner code for Clam Antivirus-clamd
Aug 07 16:58:59 mailsvrz amavis[3145]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
Aug 07 16:58:59 mailsvrz amavis[3145]: initializing Mail::SpamAssassin (0)
Aug 07 16:59:02 mailsvrz amavis[3185]: SA info: util: setuid: ruid=117 euid=117 rgid=125 125 egid=125 125
Aug 07 16:59:07 mailsvrz amavis[3145]: SpamControl: init_pre_fork on SpamAssassin done
Aug 07 16:59:07 mailsvrz amavis[3145]: extra modules loaded after daemonizing/chrooting: /etc/perl/Net/libnet.cfg, /usr/lib/x86_64-linux-gnu/perl5/5.26/auto/Net/SSLeay/
lines 1-20/20 (END)

SO I am confused now, is it workable or not? Could you advise what should I do now...

Thanks
Josef

jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #21 on: August 07, 2020, 05:54:45 pm »
And within few minutes...

Code: [Select]
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) Checking: d_3Jzo62qXGT [127.0.0.1] <martin@treml.org> -> <josef@treml.org>
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:26 mailsvrz amavis[20350]: (20350-01-5) Clam Antivirus-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (1)
Aug 07 17:52:27 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:27 mailsvrz amavis[20350]: (20350-01-5) (!)Clam Antivirus-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ct
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)Clam Antivirus-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All
Aug 07 17:52:33 mailsvrz amavis[20350]: (20350-01-5) (!)WARN: all primary virus scanners failed, considering backups
Aug 07 17:52:36 mailsvrz amavis[20351]: (20351-01-3) (!)Clam Antivirus - clamscan av-scanner FAILED: /usr/bin/clamscan KILLED, signal 9 (0009) at (eval 108) line 950.
Aug 07 17:52:36 mailsvrz amavis[20351]: (20351-01-3) (!!)AV: ALL VIRUS SCANNERS FAILED
~

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #22 on: August 10, 2020, 01:45:52 pm »
 :)

The key points is here:

Code: [Select]
sudo systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: inactive (dead)
Condition: start condition failed at Mon 2020-08-10 13:37:24 CEST; 6s ago
           └─ ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} was not met
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/

Run these commands:

Code: [Select]
# because "ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} was not met"
sudo freshclam
# enable and start the daemon
sudo systemctl start clamav-daemon.service
sudo systemctl enable clamav-daemon.service

Check your amavis system, for instance by sending the EICAR https://www.eicar.org/?page_id=3950

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

jtreml272

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #23 on: August 11, 2020, 09:49:53 pm »
Ok, so now, I have stopped these modules....
Antivirus, Mail, Domain services, Sogo...

i am wondering, that after clear installtion, i am not able to get this system workable. Every try crashed some module ... I have tried to install Zentyla 6.1 (it was workable before) but even this is not workable even when I do clear installation, I ame depressed :-(

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: unmet dependencies after Zentyal 6.2 installation (zentyal-antivirus)
« Reply #24 on: August 14, 2020, 01:45:13 pm »
 :)

Don't worry, all the sysadmins have had these experiences. Good sysadmins are those who learn from them.

Try to restart all the services:

Code: [Select]
sudo su -
services=(network dns samba mail clamav mailfiter sogo)
for service in "${services[@]}";do zs $service restart;done;

If this doesn't fix your issues, paste here the "/var/log/zentyal/zentyal.log" records regarding these modules (sanityze them, could contain private data)

cheers!

- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,