clamtk
clamtk copied to clipboard
Clamtk and Clamav do not update automatically
I have a problem with clamav 0.103.1-1 and ClamTK 6.06-1.
I use it under Manjaro and I can't get an automatic update. Also, the update and the update times are not saved.
If I start the update manually, it works. When will this bug be fixed?
My system is :
inxi -Fxxxzo
System: Kernel: 5.4.100-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: Xfce 4.16.0 tk: Gtk 3.24.24
info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux
Machine: Type: Desktop System: Dell product: OptiPlex 360 v: N/A serial:
Hi @Lehmeiers ,
Do you mean signature updates? If so, please update to version 6.09.
https://github.com/dave-theunsub/clamtk/releases/tag/v6.09
respectfully, Dave M
Thanks for the tip. I have written to the packer for Manjaro to see if he can provide this package in a timely manner, as it will certainly affect more users than just me.
Sincerely, R.Lehmeier
Hi @Lehmeiers ,
Thank you for reporting the issue and following up. Please keep us up to date and let us know if we can help.
respectfully, Dave M
I have to thank you and will report back whether it worked or not.
Sincerely, R.Lehmeier
So I am now using ClamTK 6.09-1 and Clamav 0.103.1-1 in Manjaro.
Unfortunately, the problem is still there. It does not update automatically. Also, the times of the update and the automatic scanning of the files are not saved (at least they are not displayed again when I have closed it once and opened it again).
If I do it manually, it works - but that is not the purpose of a scanner. It is supposed to do its work silently in the background and provide security.
Translated with www.DeepL.com/Translator (free version)
Hi @Lehmeiers ,
How are you updating manually?
Also, what is the output of grep Update ~/.clamtk/prefs
?
respectfully, Dave M
I go via "Updates => Update" and then update by confirmation so that the process is initiated.
An automatic update via "Updates => Update wizard => My computer automatically receives updates" does not work. Although I set 00:30 under "Scheduler => Set the check time with a 24-hour clock" and set "Select a time at which your signatures should be updated ( 1 hour )".
Updates should be imported at 00:30 and the signatures updated every hour. And confirm these changes by closing.
When I go back to Planner after closing, everything is back to 0 and my entries are not visible.
Is the programme also updated under Manjaro, where the system updates normally go via the package management (Pamac / Octopi)?
I also assume that updates are made up if the computer was switched off at the time entered.
The terminal entry resulted in :
grep Update ~/.clamtk/prefs Update=single
Translated with www.DeepL.com/Translator (free version)
Hi @Lehmeiers ,
Sorry for the delay. Please try this: open the Scheduler, remove the scheduled update, and re-add it.
respectfully, Dave M
Hello!
I have now times ClamTK completely uninstalled and the directory .clamtk also deleted and then reinstalled the whole thing.
Unfortunately, is still not updated.
Here is a screenshot.
Hi @Lehmeiers ,
Did uninstalling clamtk change your crontab?
If you type crontab -l
at the command line, it will list what you have scheduled. So, please remove the scan (not the program), re-add it, and see if that works. Sorry if I am not understanding.
respectfully,
Dave M
I deleted the cron file in the ~/.clamtk/ folder and restarted clamtk, but everything remained as it is. I changed the cron file from 30 0 * * * /usr/bin/clamscan ... to 30 45 * * * /usr/bin/clamscan ... but it is not taken into account.
When I type crontab -l I get : 30 0 * * * /usr/bin/clamscan --exclude-dir=/home/ralf/.clamtk/viruses --exclude-dir=smb4k --exclude-dir=/run/user/ralf/gvfs --exclude-dir=/home/ralf/.gvfs --exclude-dir=.thunderbird --exclude-dir=. mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail -i -r /home/ralf --log="$HOME/.clamtk/history/$(date +%b-%d-%Y).log" 2>/dev/null # clamtk-scan
So updating the signatures doesn't work. Even if I let it run overnight ( 0:35 ? ).
I wonder what happens if it is switched off during the set time - is this done at the next start?
Translated with www.DeepL.com/Translator (free version)
Hi @Lehmeiers ,
No, I don't think it will run when switched back on. I have not tested that, though.
respectfully,
Dave M
Hi @Lehmeiers ,
No, I don't think it will run when switched back on. I have not tested that, though.
respectfully, Dave M
What else do I have to do to make it work?
Hi @Lehmeiers ,
See image: remove from the Scheduler, and re-add.
respectfully,
Dave M
Ok, but I don't have a plus sign when updating the signatures (see red circle).
Is it possible that this is why it does not work?
How do I get the plus sign back?
After uninstalling Clamtk and deleting the Clamtk directory in my home folder, I get the following output :
crontab -l
35 0 * * * /usr/bin/clamscan --exclude-dir=/home/ralf/.clamtk/viruses --exclude-dir=smb4k --exclude-dir=/run/user/ralf/gvfs --exclude-dir=/home/ralf/.gvfs --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail -i -r /home/ralf --log="$HOME/.clamtk/history/$(date +%b-%d-%Y).log" 2>/dev/null # clamtk-scan
The way I see it, it's the missing button (for whatever reason it's missing). So it seems that the signatures are not updated, even if Clamtk tells me that updates are available.
How do I get it back - or does that not help to get the automatic update going?
Hi @Lehmeiers ,
Ok, from the command line, do this:
crontab -r
This will delete your scheduled entries.
Now go to the Scheduler and try to re-add.
respectfully, Dave M
It's still the same problem and the plus sign to add the signature update is still missing.
Hi @Lehmeiers ,
This is weird! I'm going to play around and see if I can duplicate this. I haven't been able to yet, but I'll try again. This one is hard to figure out. Thank you for being patient and testing things to help diagnose.
respectfully, Dave M
But always happy to. If you still need data on the system or something, just get in touch. I also want it to work and am glad that the error is not ignored or put on the back burner.
I have Clamtk 6.0.9 from the official Manjaro repositories.
Hi @Lehmeiers ,
I have good news and bad news. The good news is that I can duplicate the issue now, so I can work on debugging/fixing without posting back a million times. The bad news is... there's an issue. Not sure how or why... there are no error messages.
I'll post back when I have something.
respectfully,
Dave M
Thanks for the feedback. It is nice that you can now reproduce the error, then perhaps there will soon be a solution and nothing will stand in the way of using Clamtk.
I wish you good luck with the troubleshooting and a big thank you for taking care of the error, even on Easter.
Yours sincerely, R.Lehmeier
Hi @Lehmeiers ,
Sorry, one more question, and no obligation to answer on Easter, either. Can you tell me if you have the file "freshclam.conf" in your .clamtk directory?
ls ~/.clamtk/db
I think I figured it out. We have to specify the freshclam.conf location. So for me, I'd type:
/usr/bin/freshclam --config-file=/home/dave/.clamtk/db/freshclam.conf --datadir=/home/dave/.clamtk/db --log=/home/dave/.clamtk/db/freshclam.log
and then it seems to work.
respectfully, Dave M
Great that you found the error. But where do I have to enter like /usr/bin/freshclam --config-file=/home/dave/.clamtk/db/freshclam.conf --datadir=/home/dave/.clamtk/db --log=/home/dave/.clamtk/db/freshclam.log ?
Hi @Lehmeiers ,
I'll do that part for you. Can you tell me the output of this:
ls -l ~/.clamtk/db
respectfully,
Dave M
Ok I did it ( you should also enter your own name if your name is not Dave. ;-) ) .
When I type ls -l ~/.clamtk/db I get :
total 218540 -rw-r--r-- 1 ralf ralf 293670 4 Apr 21:16 bytecode.cvd -rw-r--r-- 1 ralf ralf 105614180 4 Apr 21:13 daily.cvd -rw-r--r-- 1 ralf ralf 63 3 Apr 12:35 freshclam.conf -rw-r----- 1 ralf ralf 928 4 Apr 21:16 freshclam.log -rw-r--r-- 1 ralf ralf 117859675 4 Apr 21:16 main.cvd
Hopefully the signatures will be updated now. Even though I couldn't enter a time yet, because the corresponding plus sign is missing.
Translated with www.DeepL.com/Translator (free version)
Hi @Lehmeiers ,
Excellent. So this should work:
/usr/bin/freshclam --config-file=/home/ralf/.clamtk/db/freshclam.conf --datadir=/home/ralf/.clamtk/db --log=/home/ralf/.clamtk/db/freshclam.log
This is the command clamtk will run. It seems to work for me. So if it works for you, I can release a new version with this fix.
respectfully,
Dave M
Yes, it worked, but it still lacks the plus sign so I can set times when the signatures are updated. Or is this always done when there is no time set ?
Hi @Lehmeiers ,
Now that part I can't explain. It is there for the scanning, so it should be there for the signature updates.
Here's something we can try:
- Download the attached zip
- From the command line, type
unzip clamtk-6.11.zip
- type
cd clamtk-6.11
- type
./clamtk
- now go to the Scheduler, and see if the + is there.
I want to see if it's a packaging problem, or if it's something else. Although it says 6.11, it's actually just 6.10.
respectfully,
Dave M
clamtk-6.11.zip
I downloaded and unzipped the file and then went into the unzipped directory clamtk-6.11 and started with ./clamtk. The old problem came up again - the plus sign is missing.