While having a more robust client side to downloading the databases is a good idea, I think the server side should be more robust too.
Why doesn't the file get uploaded to a temporary filename and then moved to the real filename? Unix file semantics guarantee this is atomic. JE On Tue, Jul 01, 2003, Ted Fines <[EMAIL PROTECTED]> wrote: > Hi all, > > A simple solution to the database checksum failure might be as simple as > changing the download procedure to: > > * check for new databases > * if database is new, download it TO A TEMP FILE > * perform checksum on temp file > * Good checksum -> install > * Bad checksum -> log problem, continue with old db > > As for the last step, you might want to have it immediately try again, or > just try again on the next scheduled upload time. > > It sounds like the current download procedure is just to download & install > before doing a checksum check. > > This sounds like a pretty simple change to me. Make sense? > > Ted > > --On Tuesday, July 01, 2003 1:15 PM +0100 Brian Read > <[EMAIL PROTECTED]> wrote: > > > ok, re-run it on my local machine and it worked fine. But it means my > > customers' systems will all be a day behind, as they all download at the > > same time (mmm - perhaps that is not a good idea). > > > > I am not 100% happy with the situation that if a download catches an > > upload, then we get a failure. Perhaps freshclam should try again. I > > thought the 0.6 version did, but in my case (on my test server), that one > > apparently failed as well. > > > > Cheers > > > > Brian > > > > > > > > At 12:24 01/07/2003, Diego d'Ambra wrote: > >> It seems that you tried to download new db while I was uploading new > >> database. > >> > >> Just run fresclam again. > >> > >> Best regards, > >> Diego d'Ambra > >> > >> -----Original Message----- > >> From: Brian Read [mailto:[EMAIL PROTECTED] > >> Sent: 1. juli 2003 13:19 > >> To: [EMAIL PROTECTED] > >> Subject: [clamav-users] checksum failure again? > >> > >> > >> My daily update has just failed with this: > >> > >> Current working dir is /usr/share/clamav > >> Checking for a new database - started at Tue Jul 1 12:00:01 2003 > >> Connected to clamav.elektrapro.com. Reading md5 sum (viruses.md5): OK > >> Reading md5 sum (viruses2.md5): OK Downloading viruses.db > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ........................................................................ > >> ....................................... > >> done > >> Downloading viruses.db2 > >> ........................................................................ > >> ..... > >> done > >> ERROR: The checksum of viruses.db2 database isn't ok. Please check it > >> yourself or try again. > >> > >> This is (still) clam 0.54. > >> > >> cheers > >> > >> Brian > >> > >> Brian J Read > >> www.abandonmicrosoft.co.uk > >> www.theonlineorganiser.com > >> www.thepersonalknowledgebase.com > >> Moderator for Mitel SMEserver Contributions and Howtos: www.contribs.org > >> +44 1695 723723 > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > Brian J Read > > www.abandonmicrosoft.co.uk > > www.theonlineorganiser.com > > www.thepersonalknowledgebase.com > > Moderator for Mitel SMEserver Contributions and Howtos: www.contribs.org > > +44 1695 723723 > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]