OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« previous next »
  • Print
Pages: [1]

Author Topic: [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)  (Read 10255 times)

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
[Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« on: April 26, 2019, 01:17:52 pm »
I have to reopen this issue: https://forum.opnsense.org/index.php?topic=5988.0

New 19.1.6 installation, plugins clamav and c-icap installed. Even when I try this timing delay, I get error when starting c-icap.

Code: [Select]
root@fw01:/var/log/c-icap # /usr/local/etc/rc.d/clamav-clamd start
Starting clamav_clamd.
WARNING: Ignoring deprecated option AllowSupplementaryGroups at /usr/local/etc/clamd.conf:14
root@fw01:/var/log/c-icap # sleep 5
root@fw01:/var/log/c-icap # /usr/local/etc/rc.d/c-icap restart
c_icap not running? (check /var/run/c-icap/c-icap.pid).
Starting c_icap.

/var/log/c-icap/server.log

Code: [Select]
Fri Apr 26 13:11:58 2019, main proc, clamd_init: Not valid response from server:
Fri Apr 26 13:11:58 2019, main proc, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:12:18 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:12:18 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:13:08 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:13:08 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:14:00 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!
Fri Apr 26 13:14:00 2019, 41119/689028864, Registry 'virus_scan::engines' does not exist!

Since no connection to clamav, all eicar downloads pass.
« Last Edit: May 02, 2019, 05:30:52 pm by hbc »
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #1 on: April 26, 2019, 01:29:56 pm »
I thought I had removed this already ... do you something on console when starting OPN?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #2 on: April 26, 2019, 01:37:42 pm »
Quote from: mimugmail on April 26, 2019, 01:29:56 pm
I thought I had removed this already ... do you something on console when starting OPN?

Sorry, don't get it. What shall I do in console? I activated services and rebooted. Problem exists.
I secured shelled into opnsense and applied
Code: [Select]
#!/bin/sh

/usr/local/etc/rc.d/clamav-clamd start
sleep 5
/usr/local/etc/rc.d/c-icap restart

like in issue https://github.com/opnsense/plugins/issues/276.

Can a machine be too powerful for opnsense? Too much memory, cores, etc.? It is pretty strange. I have less powerful machines without problems. ATM I have this issue and no firewall live view and I did not apply any manual tweaks. Configuration is not so special. ok, many 10g interfaces and chelsio cards.

I just loaded ioat module (I/O advanced technology), but this should not cause issues, could it?
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #3 on: April 26, 2019, 02:12:55 pm »
Sorry, was focused only on the AllowSupplementaryGroup warning ...
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #4 on: April 26, 2019, 04:32:52 pm »
Quote from: mimugmail on April 26, 2019, 02:12:55 pm
Sorry, was focused only on the AllowSupplementaryGroup warning ...
Well, think that warning is easy to fix. Just remove config entry in next release. Had this warning on other clamav installations. Comment that # fix it.

But any ideas about this missing registry?
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #5 on: April 26, 2019, 05:14:07 pm »
Yep, fixed it already: https://github.com/opnsense/plugins/pull/1314

So with your sleep 5 it works again or still doesn't work?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #6 on: April 26, 2019, 07:38:26 pm »
The hint about deprecated option is just a warning. Should not have any influence on the function. My problem is the registry error. The 5s sleep does not help.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #7 on: May 02, 2019, 05:30:39 pm »
I found the problem. Too much tuning.
Code: [Select]
# Enable the optimized version of the soreceive() kernel socket interface for
# stream (TCP) sockets. NOTE: disable net.inet.tcp.soreceive_stream when using
# rndc to update BIND DNS records otherwise the following error will trigger,
# "rndc: recv failed: host unreachable".
#
#net.inet.tcp.soreceive_stream="1"  # (default 0)

it needs to stay '0' (default). Seems as the new socket version is not supported by this daemon.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #8 on: May 02, 2019, 06:01:56 pm »
Nice finding :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

hboxhorn

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #9 on: September 17, 2019, 10:03:31 pm »
Maybe I have a brainfart but which file needs to be changed ?
Logged

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
« Reply #10 on: September 17, 2019, 10:30:54 pm »
If you manually changed net.inet.tcp.soreceive_stream to another value than 0, you have to revert it in the file where you added this setting.
If you did not manually add this option to any file, no file needs to be changed.
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [Solved] ClamAV + C-ICAP (Registry 'virus_scan::engines' does not exist!)
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2