carbonio-avdb-updat...
 
Notifications
Clear all

[Solved] carbonio-avdb-updater.service not running, is my antivirus update up and running ?

27 Posts
2 Users
2 Reactions
636 Views
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

I noticed that 

output of

systemctl list-unit-files "carbonio*"

The state of carbonio-avdb-updater.service is disabled.

Running " systemctl restart carbonio-avdb-updater.service" again gets the following in syslog.

 

Aug 7 09:45:26 mail1 systemd[1]: carbonio-avdb-updater.service: Deactivated successfully.
Aug 7 09:45:26 mail1 systemd[1]: carbonio-avdb-updater.service: Consumed 2.103s CPU time.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.859 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.868 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.868 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.869 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.869 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'AVDB Scheduler' with instanceId 'NON_CLUSTERED'
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: NOT STARTED.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: Currently in standby mode.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: Number of jobs executed: 0
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 1 threads.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.869 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'AVDB Scheduler' initialized from default resource file in Quartz package: 'quartz.properties'
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.869 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
Aug 7 09:45:26 mail1 carbonio-avdb-updater[1004475]: 09:45:26.870 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: com.zextras.avdb.injection.quartz.InjectableJobFactory@4d14b6c2
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: Exception in thread "main" com.zextras.avdb.exceptions.HttpRequestException: Call to host failed:
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: status code - 500
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: response message - {"Header":{"context":{"_jsns":"urn:zimbra"}},"Body":{"Fault":{"Code":{"Value":"soap:Sender"},"Reason":{"Text":"unknown document: zextras"},"Detail":{"Error":{"Code":"service.UNKNOWN_DOCUMENT","Trace":"qtp688593710-10327:1723016727290:0e6654f0668be2fb","_jsns":"urn:zimbra"}}}},"_jsns":"urn:zimbraSoap"}
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.client.networking.OkHttpClientImpl.post(OkHttpClientImpl.java:78)
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.utils.LicenceHandler.retrieveLicences(LicenceHandler.java:80)
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.utils.LicenceHandler.hasValidLicence(LicenceHandler.java:57)
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.Starter.throwWithoutLicence(Starter.java:74)
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.Starter.start(Starter.java:44)
Aug 7 09:45:27 mail1 carbonio-avdb-updater[1004475]: #011at com.zextras.avdb.Main.main(Main.java:12)

 

 

 

 


   
Quote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

Can someone share their original  /opt/zextras/conf/freshclam.conf of a Carbonio CE 24.x with me ?

 


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s 

Hi,

carbonio-avdb-updater.service does not belong to Carbonio Community Edition. It is available in Carbonio only. Check out the official documentation of Carbonio.

About the original freshclam.conf file, check the attached file.

Regards,

Sharif


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

@sharif 

Huh..., that's strange. Probably something went wrong while upgrading Carbonio CE in april from 23.x to 24.3 because I am running CE version. Could there be a messed up upgrade, or is it normal that it shows when executed systemctl list-unit-files "carbonio*" but then disabled.

If things are messed up, then it could be that I found the reason for the amount of problems I have with spamfiltering in Carbonio.


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

@sharif 

So probably I am running pieces of software that are not CE version. Can I just remove them with apt on ubuntu ?


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s

Many things has changed since 23.x to 24.3 therefore, rather using systemctl list-unit-files "carbonio*" try following steps to check if your upgrade is okay or not.

# su - zextras -c "zmcontrol -v && zmcontrol status"
# consul members
# curl -s -v  http://127.78.0.4:10000/health  | jq
# systemctl list-units carbonio*

And check all features and functions (i.e. mail send/receive, filter etc). If the result is okay then you don't need to worry about other things.


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

Ok, thanks @sharif. I will try that and see.

 

regards, Max


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

@sharif

root@mail1:~# su - zextras -c "zmcontrol -v && zmcontrol status"

Carbonio Release 24.3.0
Host mail1.xxxxxxxxx
antispam Running
antivirus Stopped
zmfreshclamctl is not running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s 

Hi,

I don't see the Amavis service and you can try restarting Antivirus (for zmfreshclamctl). If your email send receiving is okay with other features than you can consider the upgradation okay. 

One thing that worries me is that right now version 24.7.1 is running so I think you should make plan to upgrade to the latest version of CE by following the official doc.

Regards,

Sharif 


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

So I updated the server from 24.3 and noew it show version 24.7.0

Since I wanted to upgrade to 24.7.1 and after searching how I noticed this in the upgrade guide and executed it. I am afraid I messed up my reposirory now

 

Manual Steps

In the upgrade to 24.7.1, the following manual steps are require

GPG Key of Grafana in Ubuntu 22.04

  • Remove existent repository

    # add-apt-repository -r "deb  https://packages.grafana.com/oss/deb 
    stable main"
    

  • Retrieve GPG key

    # wget -q -O -  https://packages.grafana.com/gpg.key  | \
    gpg --dearmor | sudo tee /usr/share/keyrings/grafana.gpg > \
    /dev/null
    

  • Add repository

    # echo"deb [signed-by=/usr/share/keyrings/grafana.gpg] \
     https://packages.grafana.com/oss/deb  stable main"|sudotee-a\
    /etc/apt/sources.list.d/grafana.list

     

 

So Running apt install carbonio-storages this is what I get now.

root@mail1:~# apt install carbonio-storages
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
carbonio-storages
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/49.6 MB of archives.
After this operation, 57.6 MB of additional disk space will be used.
(Reading database ... 187201 files and directories currently installed.)
Preparing to unpack .../carbonio-storages_0.0.9-1jammy_amd64.deb ...
Unpacking carbonio-storages (0.0.9-1jammy) ...
dpkg: error processing archive /var/cache/apt/archives/carbonio-storages_0.0.9-1jammy_amd64.deb (--unpack):
trying to overwrite '/etc/carbonio/storages/service-discover/intentions.json', which is also in package carbonio-storages-ce 1.0.13-1ubuntu
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/carbonio-storages_0.0.9-1jammy_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

Two Questions.

 

How to fix my repositry ?

How to install to 24.7.1 ?


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

@sharif 

Most problems I mentioned in this thread I fixed now. Only most important still stands.

So I upgraded the system and all works well except for the spamfiltering. 

The spamfiltering is still not working 

 

zextras@mail1:~/common/conf$ zmcontrol -v
Carbonio Release 24.7.1

zextras@mail1:~/common/conf$ zmcontrol status
Host mail1.bureaurotterdam.nl
antispam Running
antivirus Stopped
zmfreshclamctl is not running
directory-server Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running

 

Can you give me some advise where to look ?


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s 

Hi,

Could you please check the log of: (while starting and stopping zmfreshclamctl, zmantivirusctl and zmclamdctl)

zextras@mail:~/log$ tail -f /opt/zextras/log/clamd.log

and

zextras@mail:~/log$ tail -f /opt/zextras/log/freshclam.log

and also, try to stop carbonio services and check if any port (related to antivirus) is still listening. Kill all services then restart again.

Let us know how it goes.

Regards,

Sharif


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s 

What is the output of:

zextras@mail:~$ grep -i Mirror /opt/zextras/conf/freshclam.conf

and

zextras@mail:~$ grep -i Mirror /opt/zextras/conf/freshclam.conf.in

Regards,

Sharif


   
ReplyQuote
(@max_s)
Joined: 1 year ago
Posts: 81
Topic starter  

@sharif 

zextras@mail1:~/conf$ grep -i Mirror /opt/zextras/conf/freshclam.conf
# Default: 3 (per mirror)
# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# fall-back mirrors.
#PrivateMirror mirror1.example.com
#PrivateMirror mirror2.example.com
# clamav.net CDN and can only be used when updating from a private mirror.

 

 

 

zextras@mail1:~/conf$ grep -i Mirror /opt/zextras/conf/freshclam.conf.in
%%explode DatabaseMirror VAR:zimbraClamAVDatabaseMirror%%
# Default: 3 (per mirror)
# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# fall-back mirrors.
#PrivateMirror mirror1.example.com
#PrivateMirror mirror2.example.com
# clamav.net CDN and can only be used when updating from a private mirror.

 

 


   
ReplyQuote
(@sharif)
Admin
Joined: 3 years ago
Posts: 593
 

@max_s 

Could you please execute:

zextras@mail:~$ carbonio prov mcf zimbraClamAVDatabaseMirror database.clamav.net
zextras@mail:~$ zmantivirusctl restart
zextras@mail:~$ carbonio prov gcf zimbraClamAVDatabaseMirror

Now check the status of all services again.

Regards,

Sharif


   
ReplyQuote
Page 1 / 2