Mailing List Archive

[clamav-users] Need help | Clamav installation on SUSE Linux Enterprise Server 12
Hello Team,

I am looking for a help to install and configure clamav, I tried 2 ways to get it done:-

1) Using repo

able to install ( zypper install -y clamav) but not able to start the service

Error logs :-

clamd[26656]: Received 0 file descriptor(s) from systemd.
clamd[26656]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Running as user vscan (UID 65, GID 480)
Log file size limited to 1048576 bytes.
Reading databases from /var/lib/clamav
Not loading PUA signatures.
Bytecode: Security mode set to "TrustSigned".
LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory
Can't open file or directory
clamd.service: Control process exited, code=exited status=1
Failed to start Clamav antivirus Deamon.
clamd.service: Unit entered failed state.
clamd.service: Failed with result 'exit-code'

2) Using a tar file clamav-0.103.1.tar.gz ,

Issue :-

/usr/local/clamav/bin/clamscan -r

LibClamAV Error: cl_load(): No such file or directory: /usr/local/clamav/share/clamav
ERROR: Can't get file status

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.103.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.004 sec (0 m 0 s)
Start Date: 2021:03:23 04:52:52
End Date: 2021:03:23 04:52:52

2) Need help to know to download and update the freshclam database offline as machine don't have internet connectivity as now getting below error.

/usr/local/clamav/bin/freshclam
ERROR: Please edit the example config file /usr/local/clamav/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/clamav/etc/freshclam.conf


Mit freundlichen Gr??en/Kind Regards
Amit Singh
Senior Consultant-IT/GIC
--------------------------------------------
Mercedes-Benz Research and Development India Private Limited.
Embassy Crest
Whitefield Road, Bangalore 560066
Mobile : +91 9902949155
email : amit.a.singh@daimler.com<mailto:amit.a.singh@daimler.com>


If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.
[clamav-users] Need Help | Clamav installation on SUSE Linux Enterprise Server 12 [ In reply to ]
Hello Team,

I am looking for a help to install and configure clamav, I tried 2 ways to get it done:-

1) Using repo

able to install ( zypper install -y clamav) but not able to start the service

Error logs :-

clamd[26656]: Received 0 file descriptor(s) from systemd.
clamd[26656]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Running as user vscan (UID 65, GID 480)
Log file size limited to 1048576 bytes.
Reading databases from /var/lib/clamav
Not loading PUA signatures.
Bytecode: Security mode set to "TrustSigned".
LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory
Can't open file or directory
clamd.service: Control process exited, code=exited status=1
Failed to start Clamav antivirus Deamon.
clamd.service: Unit entered failed state.
clamd.service: Failed with result 'exit-code'

2) Using a tar file clamav-0.103.1.tar.gz ,

Issue :-

/usr/local/clamav/bin/clamscan -r

LibClamAV Error: cl_load(): No such file or directory: /usr/local/clamav/share/clamav
ERROR: Can't get file status

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.103.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.004 sec (0 m 0 s)
Start Date: 2021:03:23 04:52:52
End Date: 2021:03:23 04:52:52

2) Need help to know to download and update the freshclam database offline as machine don't have internet connectivity as now getting below error.

/usr/local/clamav/bin/freshclam
ERROR: Please edit the example config file /usr/local/clamav/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/clamav/etc/freshclam.conf

Mit freundlichen Gr??en/Kind Regards
Amit Singh
Senior Consultant-IT/GIC
--------------------------------------------
Mercedes-Benz Research and Development India Private Limited.
Embassy Crest
Whitefield Road, Bangalore 560066
Mobile : +91 9902949155
email : amit.a.singh@daimler.com<mailto:amit.a.singh@daimler.com>


If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.
Re: [clamav-users] Need Help | Clamav installation on SUSE Linux Enterprise Server 12 [ In reply to ]
Hi there,

On Tue, 23 Mar 2021, amit.a.singh--- via clamav-users wrote:

> ...
> LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
> ...

This error message is perfectly clear. You did not have the required
databases in the configured database directory. If you had simply put
them there, then (give or take systemd) your problems might well have
been solved. Usually it will be much simpler to install from packages
than from source. I recommend that you persevere with the packages
rather than jumping from the frying pan into the fire.

Unfortunately an installation from the distribution packaging system
and an installation from the upstream tarball will often conflict -
the locations of things like binaries, libraries and configuration
files might all be different - so if you try to install from source
after installing from a package things will generally be simpler if
you first *purge* the packaged version from the system (that is
completely remove all traces of it). This will also help to avoid
confusion, because otherwise you will often not know which files your
installation is using, what needs to be updated, etc.. I guess that
you did not do that before your (first) item 2. It might not be very
easy for you to purge the files from a failed source installation but
with luck they won't do any harm (other than causing some confusion)
if you try again to install from the distribution's packages. It is
likely that the distribution's packages will contain an older version
of ClamAV than the current source, but hopefully not very much older.

> 2) Using a tar file clamav-0.103.1.tar.gz ,

Please will you explain *exactly* what you did to install it?

> ...
> /usr/local/clamav/bin/clamscan -r

Can you explain what you expected that this command would do for you?
Did you read the documentation for this command?

> ...
> LibClamAV Error: cl_load(): No such file or directory: /usr/local/clamav/share/clamav

This message appears to be saying that your installation has not been
completed properly. Please answer my previous questions.

> 2) Need help to know to download and update the freshclam database
> offline as machine don't have internet connectivity as now getting
> below error.
>
> /usr/local/clamav/bin/freshclam
> ERROR: Please edit the example config file /usr/local/clamav/etc/freshclam.conf
> ERROR: Can't open/parse the config file /usr/local/clamav/etc/freshclam.conf

You must learn to take note of the content of error messages. Again,
these messages are very clear - and they have nothing to do with the
presence or absence of the database files. The freshclam utility is
telling you that it looked for its configuration file 'freshclam.conf'
and failed to find it. This is because the installation was not done
correctly. There is a utility which lists the entire configuration of
the ClamAV system. I invite you to find it, read its documentation,
run it, copy the output to a text file, and mail it to us here.

Finally, as the machine has no conection to the Internet, what is your
assessment of the threats it faces? How do you intend to use ClamAV
to mitigate them? It seems to me that until you have a clear picture
of these things in your mind, trying to install ClamAV might just be a
waste of your time and, worse, you might pose a greater danger to your
system than any of the supposed threats.

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Need Help | Clamav installation on SUSE Linux Enterprise Server 12 [ In reply to ]
On 23.03.21 05:07, amit.a.singh--- via clamav-users wrote:
>I am looking for a help to install and configure clamav, I tried 2 ways to get it done:-
>
>1) Using repo
>
>able to install ( zypper install -y clamav) but not able to start the service
>
>Error logs :-
>
>clamd[26656]: Received 0 file descriptor(s) from systemd.
>clamd[26656]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)


this is strange, according to https://www.suse.com/security/cve/CVE-2020-3481/
clamav 0.103 should be available for SLES 12.

>2) Using a tar file clamav-0.103.1.tar.gz ,

better don't. vendors are often more qualified to provide patches and
updates.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Need Help | Clamav installation on SUSE Linux Enterprise Server 12 [ In reply to ]
Looks like your error is right here.

Sent from my ? iPhone

On Mar 23, 2021, at 01:08, amit.a.singh--- via clamav-users <clamav-users@lists.clamav.net> wrote:

/usr/local/clamav/bin/freshclam
ERROR: Please edit the example config file /usr/local/clamav/etc/freshclam.conf