You are Here:
Linux Lite 5.0 Final is now available for download and installation



clamav and freshclam update failures

Author (Read 21010 times)

0 Members and 3 Guests are viewing this topic.

Re: clamav and freshclam update failures
« Reply #15 on: March 09, 2020, 11:12:57 AM »
 

ridenotwalk

  • New to Forums
  • *
  • 13
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • Kernel: 4.x
Thank you for your reply!  Ok, as I type this, I'm at the part where you have written as follows:
"Once the search has finished (it might find several directories/files) open the file as normal."

I'll rephrase to try and avoid confusion.

Once the search has finished, open the file "freshclam.conf" as you would normally open a file by double clicking on it. Check carefully before opening anything as the search may return several results which may be either directories or files.
You need to open the file named freshclam.conf
It should be: a text file of aprox 702 bytes located in /ect/clamav



I have the freshclam.conf open and it shows 24 files  - but none of them have the word "normal" in them.  Am I correctly understanding what you mean?


No you've misunderstood. You need to close what ever you opened and check what I wrote above
Last Edit: March 09, 2020, 11:15:07 AM by ridenotwalk
 


Re: clamav and freshclam update failures
« Reply #16 on: March 09, 2020, 12:14:25 PM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Thank you for the clarification.  Alright, I have now successfully changed both timeout times from 30 to 300 and saved the changes.  I'm back in the Terminal now and entered

sudo freshclam
the same four EEROR messages repeated themselves as below:
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateFileLog =  /var/log/clamav/freshclam.log)
ERROR: initialize: libfreshclam unit failed
ERROR: Initialization error
I typed both

sudo rm /var/log/clamav/freshclam.logsudo rm -rf /var/log/clamav/freshclam.log
but nothing at all happens now.  Do you think this may have something to do with that message I got when I opened freshclam.conf that said, "The search data base is more than 7 days old.  Update now?"
Or, do you think I should just start over again from the beginning with a purge of clamav as you first outlined?


 

Re: clamav and freshclam update failures
« Reply #17 on: March 09, 2020, 06:52:09 PM »
 

ridenotwalk

  • New to Forums
  • *
  • 13
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • Kernel: 4.x
1. Open terminal

2. sudo rm /var/log/clamav/freshclam.log       or       sudo rm -rf /var/log/clamav/freshclam.log     
Note: You do not need to do both, either will achieve the same outcome

3. enter password if asked
Note: it will look like nothing has changed but it has

4. sudo freshclam

5. enter password if asked     
Note: update should start once you press enter


From all my readings of clamav, once freshclam has been run once manually and the db is updated fully, freshclam will run automatically as per the amount of checks noted in the freshclam.conf file so there is no need to manually run it again. I've looked at the log file and it appears this is what happens.
Last Edit: March 09, 2020, 06:59:18 PM by ridenotwalk
 

Re: clamav and freshclam update failures
« Reply #18 on: March 09, 2020, 08:32:08 PM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Thank you for your reply.
I proceeded with sudo freshclam and it looked like things were starting to work -  but then more problems.
I got the message that the daily database was available for download. 

After that the first two databases downloaded and passed the database test.
The problem is now with the download of the 3rd database.  I get the message: 

^Clamd was NOT notified; Can't connect to clamd through /var/run/clamav/clamd.ctl:  No such file or directory. 

 ???


 
 

Re: clamav and freshclam update failures
« Reply #19 on: March 10, 2020, 05:11:32 AM »
 

ridenotwalk

  • New to Forums
  • *
  • 13
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • Kernel: 4.x
Sorry Jan but I can't help with that one. I didn't get that error when I did it and I'm now at the extent of my knowledge.
My only suggestion is to remove clamav, delete all clamav related files and start with a fresh install of clamav as per Jerry's how to tutorial.
If you still get the above error after that then someone else will need to help out because I don't know the answer.
Last Edit: March 10, 2020, 05:15:29 AM by ridenotwalk
 

Re: clamav and freshclam update failures
« Reply #20 on: March 10, 2020, 09:23:32 AM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Sorry Jan but I can't help with that one. I didn't get that error when I did it and I'm now at the extent of my knowledge.
My only suggestion is to remove clamav, delete all clamav related files and start with a fresh install of clamav as per Jerry's how to tutorial.
If you still get the above error after that then someone else will need to help out because I don't know the answer.

Thank you, Ridenotwalk, for all your efforts to help solve this one. 

I did follow your suggestion above to remove the clamav and reinstall as per Jerry's tutorial but still get the same message:

^Clamd was NOT notified: Can't connect to clamd through/var/run/clamav/clamd.ctl: No such file or directory.

 

Re: clamav and freshclam update failures
« Reply #21 on: March 10, 2020, 09:46:29 AM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Some years ago I had an issue with clamav on LXLE 12.04 not updating. It was down to permissions on the log file.

This was what I wrote at the time - don't know if it helps.

Quote
Noticed one issue - clamav cannot update sigs because the log file directory is missing.
If you run sudo freshclam you get error:-
Can't open /var/log/clamav/freshclam.log in append mode

As root I created /var/log/clamav, then:-
chown -R clamav:clamav /var/log/clamav

freshclam now updates sigs OK.

Thank you, robinc, for your reply when I first posted my issue with clamav and freshclam update failures. 

Given my current issue, ie., "^Clamd was NOT notified. Can't connect to clamd through /var/run/clamav/clamd.ctl:  No such file or directory.", I'm thinking that the solution that worked for you would not apply in my case.  I know very little about this subject matter, but thank you for taking the time to write and offer your suggestion. :)
 

Re: clamav and freshclam update failures
« Reply #22 on: March 10, 2020, 10:02:08 AM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x

The lock error = remove that log file, you may have cancelled/stopped a run - I tested on my old LL3.8 and mid scan cancelled tried update -- got locked error - rm commands ran, updated fine and a new scan ran..


I did get a notification it couldn't find a config file on initial 'freshclam' on 2nd run all up to date..


*use sudo and change directory to your home (I used 'yourusername')



Hi Firenice03, 

Thank you for your earlier response to my initial post. 

Given my current issue: ^Clamd was not installed.  Cant connect to clamd through /var/run/clamav/clamd.ctl:  No such file or directory. 

Do you think that your suggestion above would apply to my current issue?

 

Re: clamav and freshclam update failures
« Reply #23 on: March 11, 2020, 02:53:28 PM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
 

^Clamd was not installed.  Cant connect to clamd through /var/run/clamav/clamd.ctl:  No such file or directory. 

I think I must be jinxed!  Despite a fresh installation of LL 4.8, I've still run into ALL the exact same problems and error messages as before.  I'm currently back at my last and most recent error message as described above.  I'm totally exhausted.  Does anyone have a solution to this?  Many thanks!




 

Re: clamav and freshclam update failures
« Reply #24 on: March 11, 2020, 04:32:11 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1378
    Posts
  • Country: us
  • Reputation: 252
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
1st = Make a Time Shift back up = you wont have to reinstall if it goes sideways - you can revert back...

Not sure of your install process...


Following this 'should' get you clamav installed
https://www.linuxliteos.com/manual/tutorials.html?q=clamav&x=0&y=0&per_page=7&matchtype=0


Its also what I added in a prior post..


Clamd - is probably the daemon - see the link; did you install both? ClamAV and ClamAV-daemon ??


Code: [Select]
sudo apt-get install clamav clamav-daemon
Try that or... just the clamd

Code: [Select]
sudo apt-get install clamav-daemon
LL 4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL 4.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL 4.6 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

Re: clamav and freshclam update failures
« Reply #25 on: March 11, 2020, 05:08:11 PM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Thanks for your reply, Firenice03,
Yes, I've done all of that exactly as you've written. 
 

Re: clamav and freshclam update failures
« Reply #26 on: March 11, 2020, 07:22:31 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1378
    Posts
  • Country: us
  • Reputation: 252
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Thanks for your reply, Firenice03,
Yes, I've done all of that exactly as you've written. 


Whats the output when you try in a terminal ..

Code: [Select]
sudo apt-get install clamav-daemon


**UPDATE**
I reran a
Code: [Select]
sudo freshclam..
I get a similar - Cant find or parse configuration file /etc/clamav/clamd.conf


Ran a 2nd time - no error...


Run sudo freshclam a 2nd time to see if error continues to report.
I checked - it in fact doesn't exist on mine - most all refer to freshclam...


I do appear to update although the error did occur once




*** Update 2 ***
I installed on my LL4.8 lappy.. I had the timeout issue on download - I tried changing timeouts - but eh - Easier to wget the file into the /var/lib/clamav directory... But anywho


Yup similar the 3.8 box Cant find or parse configuration file /etc/clamav/clamd.conf
A 2nd run (sudo freshclam) working fine..  Not sure why you're failing - I installed via the Help Manual line for line... 
Last Edit: March 11, 2020, 09:06:55 PM by firenice03
LL 4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL 4.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL 4.6 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

Re: clamav and freshclam update failures
« Reply #27 on: March 11, 2020, 11:22:39 PM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x

Whats the output when you try in a terminal ..

Code: [Select]
sudo apt-get install clamav-daemon


**UPDATE**
I reran a
Code: [Select]
sudo freshclam..
I get a similar - Cant find or parse configuration file /etc/clamav/clamd.conf

When I do the above I get the response that "clamav-daemon is already the newest version."

However, it then lists two packages that were automatically installed but are no longer needed.  These are:

libllvm8 linux-image-unsigned -4.15.0-72 generic
linux modules-4.15.0-72 generic

To remove them, its says use

sudo apt autoremove

I did that and then ran as you said

sudo freshclam

And, voila, it says the data base is up to date.  (Yay!!!)
Time to run the virus scan.  Following the tutorial exactly, I entered
sudo clamscan -r -i / | grep FOUND >> /home/the user name on my computer/virus-scan-report.txt
Next comes a long stream of Warnings! like:
LibClamAV Warnings: fmap_readpage: pread fail: asked for 4077 bytes to offset 19, got 0WARNING: Can't open file /sys/module/drm/ uevent: Permission denied.
There are more sys/module WARNINGS, too numerous to mention, but outcome is; Permission denied. 

I'm just letting this continue it's run, and will see if I get a virus scan report eventually,  but this sure doesn't look good right now.


 

Re: clamav and freshclam update failures
« Reply #28 on: March 11, 2020, 11:38:14 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1378
    Posts
  • Country: us
  • Reputation: 252
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@Jan
I think its ok... Look at some of those earlier links to the forum..
Where you can exclude... exclude /sys /proc & /dev maybe some thing like...
--exclude-dir=sys

Now the output will only show anything found.. grepping FOUND

You can test on a smaller directory.. say like pics/download or tmp something with some files...

clamscan flags -r recursive =looks in folders -i infected
Also -v verbos on screen

So test by clamscan -vri /home/user/Pictures or what have you..

It'll show scanning each file and a status at end, using grep FOUND doesn't display status (not matched)
But this will give an idea of what's happening
Last Edit: March 11, 2020, 11:40:52 PM by firenice03
LL 4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL 4.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL 4.6 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

Re: clamav and freshclam update failures
« Reply #29 on: March 12, 2020, 09:23:33 AM »
 

Jan

  • New to Forums
  • *
  • 36
    Posts
  • Country: 00
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Acer Aspire 5517 AMD Athlon dual core L310 1200MHz laptop

  • MEMORY: 4Gb

  • VIDEO CARD: Windows Aero (not sure about the kernel below)

  • Kernel: 5.x
Good morning, firenice03,
I let the scan run its course and this is the message I received:
LibClamAV Warning:  cli_scanxz:decompress file size exceeds limits -only scanning 27262976 bytes
Not sure what to do next.  ClamAV still does not show up in my applications folder. 

To this point, I've installed LL4.8 as a dual boot with my old Windows 7 OS.  I'm thinking maybe the simplest solution would be a total scrub of both OSs just to completely get rid of LL and whatever is going on with it.  (Oh, and I did go back to an earlier Restore point that I'd made with Timeshift.  Still exact same result.) :(   
 


Tags:
 


Linux Lite 5.0 Final is now available for download and installation