problem with enable ClamAV after fresh install

12 posts / 0 new
Last post
#1 Wed, 10/31/2012 - 08:39
pesja

problem with enable ClamAV after fresh install

Hello,

After a fresh install (SL 6.3) I walk through the post-installation wizard of Virtualmin Pro. A problem occured when I want to enable the Clam AV Virusscanner in the virus section:

A problem occurred testing the ClamAV server scanner : ERROR: Can't connect to clamd: No such file or directory

when I chose NO I can walk through, but, off course, I did not want that. I didn't had that problem before with my other hosting servers

Can anyone help me out?

Wed, 10/31/2012 - 09:35
andreychek

Howdy,

Yeah, that is an unusual issue... what happens if you manually restart ClamAV, does that resolve the issue?

You can do that by running this command as root on your server:

/etc/init.d/clamd restart

Wed, 10/31/2012 - 13:26
pesja

Hello,

restart clamd gave:

Stopping Clam AntiVirus Daemon: [ OK ] Starting Clam AntiVirus Daemon: [ OK ]

So it's working fine. after setting it via webmin startup/shutdown. Maybe it's a problem within the install.sh/installation of virtualmin?

Did try it also with Ubuntu 12.04.1 and the same problem appeared when trying enable clam av virusscanning at the post installation wizard.

Wed, 10/31/2012 - 14:18
andreychek

Hmm, well, we haven't run into that problem before, and the installer hasn't changed recently.

Are you using a VPS, or a dedicated server?

If you're using a VPS, is it by chance using OpenVZ? If so, can you paste in the contents of your /proc/user_beancounters file?

-Eric

Wed, 10/31/2012 - 15:26
pesja

I am running several Hyper-V boxes with each 4 vps on it. I didn't had that problem before until this week.

Strange....

Sat, 11/03/2012 - 13:30
mojojuju

I just encountered the same problem as pesja.

My system is an OpenVZ VPS running Debian 6.

running /etc/init.d/clamd restart as andreycheck suggested didn't work. There is no clamd in /etc/init.d/

I instead ran /etc/init.d/clamav-daemon restart and the following was the output:

Stopping ClamAV daemon: clamd.
Clamav signatures not found in /var/lib/clamav ... failed!
Please retrieve them using freshclam ... failed!
Then run '/etc/init.d/clamav-daemon start' ... failed!

So as it says, I ran freshclam and the output was:

ClamAV update process started at Sat NovĀ  3 22:08:00 2012
Downloading main.cvd [100%]
main.cvd updated (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Downloading daily.cvd [100%]
daily.cvd updated (version: 15535, sigs: 278578, f-level: 63, builder: guitar)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 191, sigs: 37, f-level: 63, builder: neo)
Database updated (1323002 signatures) from db.local.clamav.net (IP: 194.47.250.218)

After that, I ran /etc/init.d/clamav-daemon start

The daemon started, I went back to Virtualmin's web interface, clicked "yes" for "Run ClamAV server scanner?", I hit "Next", and everything worked.

So in this case, the clamAV daemon wasn't even running. Running freshclam and starting the daemon made the Virtualmin setup process for ClamAV run smoothly.

Sun, 11/11/2012 - 12:06
beat

Didn't work here either (Ubuntu 12.04LTS):

FYI: I just had to start the deamon.

Looks like Virtualmin can't start it.

But this worked:

/etc/init.d/clamav-daemon start

(here too, there is no /etc.init.d/clamd )

I then also had same issue with Spamassin not getting started properly by Virtualmin's setup wizzard, but this fixed it: /etc/init.d/spamassassin start

Sun, 11/11/2012 - 12:14
pesja

Hello,

That worked for me also. When I run into de postinstalation, I also opened a terminal and started clamd (centos). Then I went to the step where I could select wether run clamav or not. Because I started clamd the selection was already to Yes and I went with no futher problem to the next screen.

I am sure that something is changed after the end of september, because that was the date I installed 4 VirtualMachine's with Centos and VM GPL. I didn't experienced that problem then.

Sun, 11/11/2012 - 16:01
Locutus

You might double-check if Webmin in general (recently) has a problem with starting/stopping services, by going to Webmin's "System / Bootup and Shutdown" module, and see if you can start/stop ClamAV and Spamassassin there.

If that works, it might just be the Virtualmin installer / post-install wizard that has a problem.

Wed, 08/14/2013 - 12:33
Karl

Same here today with 2nd installation of Debian 7 on a dedicated server. The 1st installation went without issues.

This worked here too:

/etc/init.d/clamav-daemon start

(here too, there is no /etc.init.d/clamd )

Wed, 08/14/2013 - 12:37
Karl

Again today with 3rd installation of Debian 7 on a virtual server.

That's what I did:

/etc/init.d/clamav-daemon start
[FAIL] Clamav signatures not found in /var/lib/clamav ... failed!
[FAIL] Please retrieve them using freshclam ... failed!
[FAIL] Then run '/etc/init.d/clamav-daemon start' ... failed!

freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

reboot

/etc/init.d/clamav-daemon start
[ ok ] Starting ClamAV daemon: clamd .

Sun, 07/07/2019 - 19:26
dblatner

Hey all!

The problem still persists with a fresh Ubuntu 18.04 LTS installation with current Webmin/Virtualmin setup.

Thanks for sharing your experience!

Topic locked