Control Web Panel
WebPanel => CentOS 6 Problems => Topic started by: brinsleyparagao on August 16, 2015, 01:06:44 AM
-
I make a new server and install clamav and extras, but in restart service i see this error log:
Stopping Clam AntiVirus Daemon: [ OK ]
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
[ OK ]
So, i try make a update on prompt with this: [root@server ~]# freshclam but i have this error
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
How to fix this ?
-
Hi,
Had same errors after CWP or Centos update.. could not receive emails from google some kind TLS error cant remember but there are paths changed to crt files. After fixed that in config had to change user from clam to root because clam could not scan any mail. Then I got that error since nothing with permissions didnt help I changed name of log file in config. Try that and see
Regards
-
Hi
Latest versions does not have any troubles with it.
ClamAV does not mostly bad permissions/owner to /var/clamav
-
Hi. I have problem with clamav. After I rebuilder postfix configuration with antivirus, spamasassin, DKIM and SPF is ttarted giving me error:
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days. ***
LibClamAV Warning: *** Please update it IMMEDIATELY! ***
LibClamAV Warning: **************************************************
And it did not start automatically.
Now I tried to rebuild again, only the antivirus section, and now I get this error:
Starting Clam AntiVirus Daemon: ERROR: Can't initialize the internal logger
ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).
What is wrong with this thing, and how do I fix it?
Thank You.
-
I have the same problem since after rebuilt the postfix.
Found the solution by myself.
Make sure the /var/lib/clamav & /var/log/clamav with the right user & group.
chown -R clam:clam /var/lib/clamav
chown -R clam:clam /var/log/clamav
Open the file /etc/freshclam.conf and make sure the lines are set to as below:
DatabaseDirectory /var/lib/clamav
DatabaseOwner clam
Also make sure the lines at file /etc/clamd.conf been set to:
DatabaseDirectory /var/lib/clamav
User clam
Then, restart the clamd service and update the database.
service clamd restart
freshclam
It should works, at least for me yes. ;)
-
I can confirm that infinitech07 ClamAV Update Tutorial worked for me.
Thank You! :)
Anyone could guide me how to make it auto boot now? Like all other services?
-
Anyone could guide me how to make it auto boot now? Like all other services?
CWP.admin:
"Services Config" -> "ChkConfig Manager" -> "Default On"
Command:
chkconfig clamd on
-
clamav updater is in /scripts folder
-
Sorry, but you can more detailed in your reply? i dont understand what means /scripts folder. What the location?
I get clamav updated using the following workaround but not could restart the service via CWP:
sudo chmod -R 777 /var/lib/clamav
sudo chmod -R 777 /var/log/clamav
sudo chmod -R 777 /var/log/clamav/freshclam.log
sudo freshclam
sudo chmod -R 640 /var/lib/clamav
sudo chmod -R 640 /var/log/clamav
sudo chmod -R 640 /var/log/clamav/freshclam.log
Thanks
-
Hello.
Just run next few commands from SSH:
sed -i 's/DatabaseDirectory.*$/DatabaseDirectory\ \/var\/lib\/clamav/g' /etc/freshclam.conf
sed -i 's/DatabaseOwner.*$/DatabaseOwner\ clam/g' /etc/freshclam.conf
sed -i 's/DatabaseDirectory.*$/DatabaseDirectory\ \/var\/lib\/clamav/g' /etc/clamd.conf
sed -i 's/User.*$/User\ clam/g' /etc/clamd.conf
chown -R clam:clam /var/lib/clamav
chown -R clam:clam /var/log/clamav
freshclam
service clamd restart
-
Igor S., i run these commands but receive this error on freshclam:
ERROR: Can't change dir to /var/lib/clamav
When i run "service clamd start" command, i receive the following error:
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/bytecode.cld
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/bytecode.cld
ERROR: Can't open file or directory
I was searching about this error on google but not find nothing about.
You have some idea?
Thanks
-
The commands was run without any errors? Are you sure?
-
Igor S., i run these commands but receive this error on freshclam:
ERROR: Can't change dir to /var/lib/clamav
When i run "service clamd start" command, i receive the following error:
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/bytecode.cld
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/bytecode.cld
ERROR: Can't open file or directory
I was searching about this error on google but not find nothing about.
You have some idea?
Thanks
mkdir //var/log/clamav
chown -R clam:clam /var/log/clamav
freshclam
service clamd restart
it's work
-
Where exactly in the config did you go to change the path ?? I am having the same issue. I also have an issue with dovecot that points to wrong path. I can manually edit the .conf files but everytime i rebuild or restart mail services, the old config that points to wrong certificate comes back. >:(
Hi,
Had same errors after CWP or Centos update.. could not receive emails from google some kind TLS error cant remember but there are paths changed to crt files. After fixed that in config had to change user from clam to root because clam could not scan any mail. Then I got that error since nothing with permissions didnt help I changed name of log file in config. Try that and see
Regards
-
Where exactly in the config did you go to change the path ?? I am having the same issue. I also have an issue with dovecot that points to wrong path. I can manually edit the .conf files but everytime i rebuild or restart mail services, the old config that points to wrong certificate comes back. >:(
why don't you simply enter your certificate data into the files which is used by default ?