djcart
Verified User
- Joined
- Jun 29, 2021
- Messages
- 122
@dmtinc Unfortunately, the instructions did not help me. ClamAV reinstalled, but the service clamd@scan still resets
Please can you share the output of:@dmtinc Unfortunately, the instructions did not help me. ClamAV reinstalled, but the service clamd@scan still resets
clamav-0.103.7-1.el8.x86_64Please can you share the output of:
rpm -qa | grep -i clamav
looks fine, try to re-do only the uninstall and reinstall, considering additionally:clamav-0.103.7-1.el8.x86_64
clamav-devel-0.103.7-1.el8.x86_64
clamav-filesystem-0.103.7-1.el8.noarch
clamav-data-0.103.7-1.el8.noarch
clamav-lib-0.103.7-1.el8.x86_64
clamav-update-0.103.7-1.el8.x86_64
rm -rf /var/lib/clamav
rm -rf /etc/clamd.d
rm -f /etc/freshclam.*
[root@dgh yum.repos.d]# rpm -qa | grep clamav
clamav-0.103.7-1.el8.x86_64
clamav-update-0.103.7-1.el8.x86_64
clamav-devel-0.103.7-1.el8.x86_64
clamav-lib-0.103.7-1.el8.x86_64
clamav-filesystem-0.103.7-1.el8.noarch
clamav-data-0.103.7-1.el8.noarch
[root@dgh yum.repos.d]# ps axu | grep clam
clamupd+ 12051 0.0 0.2 215464 17132 ? Ss 12:06 0:02 /usr/bin/freshclam -d --foreground=true
clamscan 12055 3.6 16.3 1596136 1327736 ? Ssl 12:06 2:23 /usr/sbin/clamd -c /etc/clamd.d/scan.conf
root 20434 0.0 0.0 12144 1140 pts/0 S+ 13:11 0:00 grep --color=auto clam
[root@dgh yum.repos.d]# uname -a
Linux dgh.hostednode.cl 4.18.0-425.13.1.el8_7.x86_64 #1 SMP Thu Feb 2 13:01:45 EST 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@dgh yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)
[root@dgh yum.repos.d]#
looks fine, try to re-do only the uninstall and reinstall, considering additionally:
after dnf erase clamav* , execute:
Code:rm -rf /var/lib/clamav rm -rf /etc/clamd.d rm -f /etc/freshclam.*
and try to reinstall clamav with custombuild.
This is the reference from my server:
Code:[root@dgh yum.repos.d]# rpm -qa | grep clamav clamav-0.103.7-1.el8.x86_64 clamav-update-0.103.7-1.el8.x86_64 clamav-devel-0.103.7-1.el8.x86_64 clamav-lib-0.103.7-1.el8.x86_64 clamav-filesystem-0.103.7-1.el8.noarch clamav-data-0.103.7-1.el8.noarch [root@dgh yum.repos.d]# ps axu | grep clam clamupd+ 12051 0.0 0.2 215464 17132 ? Ss 12:06 0:02 /usr/bin/freshclam -d --foreground=true clamscan 12055 3.6 16.3 1596136 1327736 ? Ssl 12:06 2:23 /usr/sbin/clamd -c /etc/clamd.d/scan.conf root 20434 0.0 0.0 12144 1140 pts/0 S+ 13:11 0:00 grep --color=auto clam [root@dgh yum.repos.d]# uname -a Linux dgh.hostednode.cl 4.18.0-425.13.1.el8_7.x86_64 #1 SMP Thu Feb 2 13:01:45 EST 2023 x86_64 x86_64 x86_64 GNU/Linux [root@dgh yum.repos.d]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.7 (Ootpa) [root@dgh yum.repos.d]#
Redirecting to /bin/systemctl status [email protected]
● [email protected] - clamd scanner (scan) daemon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor pres>
Active: failed (Result: exit-code) since Wed 2023-03-01 17:18:13 CET; 3s ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Process: 58757 ExecStart=/usr/sbin/clamd -c /etc/clamd.d/scan.conf (code=exit>
Main PID: 35245 (code=exited, status=0/SUCCESS)
mar 01 17:18:13 server.server.pl systemd[1]: [email protected]: Service Rest>
mar 01 17:18:13 server.server.pl systemd[1]: [email protected]: Scheduled re>
mar 01 17:18:13 server.server.pl systemd[1]: Stopped clamd scanner (scan) dae>
mar 01 17:18:13 server.server.pl systemd[1]: [email protected]: Start reques>
mar 01 17:18:13 server.server.pl systemd[1]: [email protected]: Failed with >
mar 01 17:18:13 server.server.pl systemd[1]: Failed to start clamd scanner (s>
mar 01 17:32:49 server.server.pl freshclam[89085]: See https://docs.clamav.net/faq/faq-eol.html for details.
mar 01 17:32:49 server.server.pl freshclam[89085]: 2. Run FreshClam no more than once an hour to check for updates.
mar 01 17:32:49 server.server.pl freshclam[89085]: FreshClam should check DNS first to see if an update is needed.
mar 01 17:32:49 server.server.pl freshclam[89085]: 3. If you have more than 10 hosts on your network attempting to download,
mar 01 17:32:49 server.server.pl freshclam[89085]: it is recommended that you set up a private mirror on your network using
mar 01 17:32:49 server.server.pl freshclam[89085]: cvdupdate (https://pypi.org/project/cvdupdate/) to save bandwidth on the
mar 01 17:32:49 server.server.pl freshclam[89085]: CDN and your own network.
mar 01 17:32:49 server.server.pl freshclam[89085]: 4. Please do not open a ticket asking for an exemption from the rate limit,
mar 01 17:32:49 server.server.pl freshclam[89085]: it will not be granted.
mar 01 17:32:49 server.server.pl freshclam[89085]: WARNING: You are still on cool-down until after: 2023-03-01 21:32:18
Its the same issue, the clamscan process cant start and enter in a loop of trying to start this service and the cpu usage goes up 100% (one core)I'm having the same issue. clamd/clamscan is running with 100% cpu usage.
CentOS 7
Is there a way to see what clamd is actually doing, why it's using 100% cpu?
[root@server: /var/lib/clamav]# ps faux | grep clamd@scan
root 11102 0.0 0.0 112812 984 pts/0 S+ 18:02 0:00 \_ grep --color=auto clamd@scan
root 10986 0.0 0.0 115408 1252 ? S 18:01 0:00 | \_ sh -c /usr/bin/systemctl restart [email protected] >/dev/null 2>/dev/null
root 10987 0.0 0.0 134900 1448 ? S 18:01 0:00 | \_ /usr/bin/systemctl restart [email protected]
root 11091 0.0 0.0 115408 1456 ? S 18:02 0:00 \_ sh -c /usr/bin/systemctl start [email protected] >/dev/null 2>/dev/null
root 11092 0.0 0.0 134900 1452 ? S 18:02 0:00 \_ /usr/bin/systemctl start [email protected]
[root@server /var/lib/clamav]#
root 10987 0.0 0.0 134900 1448 ? S 18:01 0:00 | \_ /usr/bin/systemctl restart [email protected]
root 11091 0.0 0.0 115408 1456 ? S 18:02 0:00 \_ sh -c /usr/bin/systemctl start [email protected] >/dev/null 2>/dev/null
ERROR: Can't open/parse the config file /etc/clamd.d/service.conf
Mar 1 18:19:41 server25 clamd: LibClamAV debug: init_tdb: Signature for Xls.Downloader.Emotet-b600c9ff3ec1c136-9950239-0 not loaded (required f-level
: 150)
Mar 1 18:19:41 server25 clamd: LibClamAV debug: init_tdb: Signature for Xls.Downloader.Emotet-adc2d23d2dc26dd0-9950240-0 not loaded (required f-level
: 150)
Mar 1 18:19:41 server25 clamd: LibClamAV debug: init_tdb: Signature for Xls.Downloader.Emotet-ea85857e7e81817a-9950241-0 not loaded (required f-level
: 150)
Mar 1 18:19:41 server25 clamd: LibClamAV debug: init_tdb: Signature for Xls.Downloader.Emotet-add2d22d2bc26dd0-9950243-0 not loaded (required f-level
: 150)
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7056
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7062
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7065
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7068
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7083
Mar 1 18:19:42 server25 clamd: LibClamAV debug: Ignoring signature Pdf.Exploit.Agent-7085
Mar 1 18:26:49 server25 clamd: LibClamAV debug: bytecode: JIT disabled
Mar 1 18:26:49 server25 clamd: LibClamAV debug: Cannot prepare for JIT, LLVM is not compiled or not linked
Mar 1 18:26:49 server25 clamd: LibClamAV debug: Bytecode: 0 bytecode prepared with JIT, 91 prepared with interpreter, 91 total
Mar 1 18:26:49 server25 clamd: ERROR: TCP: Cannot bind to [127.0.0.1]:3310: Address already in use
@Active8 Solution is not working. Looks like it works, but then restart clamd@scan from DA and service will be stopped again afterwards.
ps faux | grep clamd
that nothing is starting or restarting and if still running use the killall -9 clamd
command to stop it running.ps faux | grep clamd@scan
to see if something is left.systemctl start clamd@scan
systemctl status clamd@scan
shows running.This may be a problem, for example if the service goes down by a update the DA service monitor will try to restart the service and the problem will come again.Do not use the DA service monitor to stop and start or restart the service, or the same problem will occur again.
Exactly, also as I've showed above, looks like the service is being started twice at the same time by DA.This may be a problem,
while this normally is scan.conf.ERROR: Can't open/parse the config file /etc/clamd.d/service.conf
service clamd@scan stop
service clamav-freshclam stop
dnf erase clamav*
rm -rf /var/lib/clamav
rm -rf /etc/clamd.d
rm -f /etc/freshclam.*
cd /usr/local/directadmin/custombuild
./build clamav