The service 'clamav-freshclam' on server * is currently down

websterPL

Verified User
Joined
Oct 7, 2021
Messages
83
Hello, in DA (1.645) Service Monitor I have 2 stopped services:
  1. clamav-freshclam
  2. clamd@scan
When I try to run that services, there are errors:

Cannot find the script in /etc/systemd/system, /usr/lib/systemd/system, nor /lib/systemd/system
/lib/systemd/system/clamav-freshclam.service

Cannot find the script in /etc/systemd/system, /usr/lib/systemd/system, nor /lib/systemd/system
/lib/systemd/system/[email protected]


At this moment in CustomBuild options I have ClamAV-related Settings -> all set to "no".

Also I cant remove that services and the message system send to me SPAM mails about services currently down.

This all happen when I update ClamAV from 0.104.4 to "OS" by CustomBuild (also exim.conf from 4.5.42 to 4.5.43). Maybe downgrade will solve the problem ?

Can someone help ?
 

Attachments

  • Options.png
    Options.png
    16.7 KB · Views: 23
  • Plugins.png
    Plugins.png
    15 KB · Views: 21
  • Show Services.png
    Show Services.png
    34.1 KB · Views: 21
Or try this:
Code:
yum update
yum reinstall clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
cd /usr/local/directadmin/custombuild
./build update
./build set clamav yes
./build clamav
 
DatabaseMirror database.clamav.net -> already in /etc/freshclam.conf
After use "systemctl status clamav-freshclam" -> "Unit clamav-freshclam.service could not be found."
Also rebuild DA no fixed the problem (./build all d).

Or try this:
Code:
yum update
yum reinstall clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
cd /usr/local/directadmin/custombuild
./build update
./build set clamav yes
./build clamav

After "yum reinstall clamav-server ..." :
Last metadata expiration check: 0:11:24 ago on Mon 12 Dec 2022 07:20:25 PM UTC.
Package clamd available, but not installed.
No match for argument: clamav-server
Package clamav-data available, but not installed.
No match for argument: clamav-data
Package clamav-update available, but not installed.
No match for argument: clamav-update
Package clamav-filesystem available, but not installed.
No match for argument: clamav-filesystem
Package clamav available, but not installed.
No match for argument: clamav
Package clamd available, but not installed.
No match for argument: clamav-scanner-systemd
Package clamav-devel available, but not installed.
No match for argument: clamav-devel
Package clamav-lib available, but not installed.
No match for argument: clamav-lib
Package clamd available, but not installed.
No match for argument: clamav-server-systemd
Error: No packages marked for reinstall.
So after "yum install clamav-server ..." :
Last metadata expiration check: 0:12:08 ago on Mon 12 Dec 2022 07:20:25 PM UTC.
Error:
Problem 1: conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.7-1.el8.x86_64
Problem 2: conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 3: package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 4: package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 5: package clamav-devel-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamav-devel-0.103.7-1.el8.x86_64 requires libclammspack.so.0()(64bit), but none of the providers can be installed
- package clamav-devel-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
After "./build clamav" (the same as above and) :
grep: /etc/clamd.d/scan.conf: No such file or directory
./build: line 18406: /etc/clamd.d/scan.conf: No such file or directory
grep: /etc/clamd.d/scan.conf: No such file or directory
./build: line 18409: /etc/clamd.d/scan.conf: No such file or directory
grep: /etc/clamd.d/scan.conf: No such file or directory
Can't open /etc/clamd.d/scan.conf: No such file or directory.
grep: /etc/freshclam.conf: No such file or directory
Enabling clamd in systemd...
Failed to enable unit: Unit file [email protected] does not exist.
Failed to enable unit: Unit file clamav-freshclam.service does not exist.
Restarting freshclam.
Failed to restart clamav-freshclam.service: Unit clamav-freshclam.service not found.
Restarting clamd.
Failed to restart [email protected]: Unit [email protected] not found.
Done ClamAV.

Do you have imunify360 installed by any chance there? What will you see if you run:

Code:
rpm -qa | grep -i clam
?
Just nothing
 
Maybe try this because it seems you're missing the json package:
yum install json-c -y
after that it might be working or you can try reinstalling again.

Which distro and version are you using?
Do you have any other repo's enabled except for the ones from the OS and maybe the Epel repo?
Are you using cloudlinux?
 
Maybe try this because it seems you're missing the json package:
yum install json-c -y
after that it might be working or you can try reinstalling again.

Which distro and version are you using?
Do you have any other repo's enabled except for the ones from the OS and maybe the Epel repo?
Are you using cloudlinux?

Last metadata expiration check: 1:46:15 ago on Tue 13 Dec 2022 06:30:03 AM UTC.
Package json-c-0.13.1-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.

Only DA software is installed, no external repo. This is dedicated server.
Is it possible to remove email messages from ClamAV ?
 
Yes, it is. Remove the stopped services from /usr/local/directadmin/data/admin/services.status
Very nice, thanks for that!

# dnf install clamav -y
Last metadata expiration check: 1:54:14 ago on Tue 13 Dec 2022 06:30:03 AM UTC.
Error:
Problem: conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.7-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

# yum install json-c
Last metadata expiration check: 1:55:40 ago on Tue 13 Dec 2022 06:30:03 AM UTC.
Package json-c-0.13.1-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

# repoquery -l json-c
Last metadata expiration check: 1:56:25 ago on Tue 13 Dec 2022 06:30:03 AM UTC.
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/42897e45ea50cd14aee873f6b0137b859f86a8
/usr/lib/libjson-c.so.4
/usr/lib/libjson-c.so.4.0.0
/usr/share/licenses/json-c
/usr/share/licenses/json-c/AUTHORS
/usr/share/licenses/json-c/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/fb0273565de78192f69be8b060350d0f2b0ee1
/usr/lib64/libjson-c.so.4
/usr/lib64/libjson-c.so.4.0.0
/usr/share/licenses/json-c
/usr/share/licenses/json-c/AUTHORS
/usr/share/licenses/json-c/COPYING

So system have /usr/lib/libjson-c.so.4 or /usr/lib64/libjson-c.so.4
 
Nice try but after "yum install clamav-server":
CentOS Linux 8 - AppStream 13 MB/s | 8.4 MB 00:00
CentOS Linux 8 - BaseOS 11 MB/s | 4.6 MB 00:00
CentOS Linux 8 - Extras 32 kB/s | 10 kB 00:00
CentOS Linux 8 - PowerTools 11 MB/s | 2.3 MB 00:00
Error:
Problem 1: conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.7-1.el8.x86_64
Problem 2: conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 3: package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
- package clamd-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 4: package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PUBLIC)(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires libclamav.so.9(CLAMAV_PRIVATE)(64bit), but none of the providers can be installed
- package clamav-update-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
Problem 5: package clamav-devel-0.103.7-1.el8.x86_64 requires libclamav.so.9()(64bit), but none of the providers can be installed
- package clamav-devel-0.103.7-1.el8.x86_64 requires libclammspack.so.0()(64bit), but none of the providers can be installed
- package clamav-devel-0.103.7-1.el8.x86_64 requires clamav-lib = 0.103.7-1.el8, but none of the providers can be installed
- conflicting requests
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.7-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
 
Thanks to user @Active8 we now know the root cause. You should migrate to AlmaLinux 8 as there're no official repositories for CentOS 8. The migration is rather straight-forward. You might do it yourself.
 
Thanks You ALL guys, the system is upgraded to AlmaLinux without any problems.

Or try this:
Code:
yum update
yum reinstall clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
cd /usr/local/directadmin/custombuild
./build update
./build set clamav yes
./build clamav
Now it works!
 

Attachments

  • clamd.png
    clamd.png
    4.4 KB · Views: 10
Hi guys,

I'm having the exact same problem, except that I'm on CentOS 7. I understand that upgrading to AlmaLinux is probably the long-term way to go, but CentOS 7 is still good to until 2024 and I'm currenty traveling, so upgrading isn't really an option right now.

What are my alternatives - if any?

Thanks!
 
Back
Top