Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

freshclam Verification: Can't verify database integrity

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


gcirino at cirelle

Jan 23, 2012, 9:29 AM

Post #1 of 5 (565 views)
Permalink
freshclam Verification: Can't verify database integrity

Hello

Since upgrading from 0.97 to 0.97.3 it's been less then satisfying on a
fedora c3 server, I have a 7.3 server without issues

Every time (it seems) i run freshclam on the FC3 machine it wants to
redownload the main.cvd database over and over, not sure why as that
database doesn't appear to change, but it keeps giving me messages such as
Malformed database and Can't verify database integrity. Happens after it
was successful once before.

Note: this sporadically happens with daily.cvd and occasionally bytecode.cvd

Every once in a while the download works as expected, but then it starts
over again with the same issues.

I've had to turn off freshclam and just wget databases to get clamd to
function at all without barking. This is also not 100%

After freshclam update
clamd log:
2012-01-23 11:45:05.642977500 LibClamAV Error: cli_tgzload: Invalid
checksum for file main.mdb
2012-01-23 11:45:05.643019500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Malformed database
2012-01-23 11:45:05.643089500 ERROR: Malformed database
2012-01-23 11:45:05.643131500 Closing the main socket.
2012-01-23 11:45:06.256845500 LibClamAV Error: cli_tgzload: Invalid
checksum for file daily.mdb
2012-01-23 11:45:06.256924500 LibClamAV Error: Can't load
/usr/local/share/clamav/daily.cvd: Malformed database
2012-01-23 11:45:06.257038500 ERROR: Malformed database
2012-01-23 11:45:06.257105500 Closing the main socket.
2012-01-23 11:45:07.763592500 LibClamAV Error: cli_tgzload: Invalid
checksum for file daily.mdb
2012-01-23 11:45:07.763664500 LibClamAV Error: Can't load
/usr/local/share/clamav/daily.cvd: Malformed database
2012-01-23 11:45:07.763800500 ERROR: Malformed database
2012-01-23 11:45:07.763864500 Closing the main socket.
2012-01-23 11:45:07.806658500 LibClamAV Error: cli_tgzload: Invalid
checksum for file 0000850930.cbc
2012-01-23 11:45:07.806729500 LibClamAV Error: Can't load
/usr/local/share/clamav/bytecode.cvd: Malformed database
2012-01-23 11:45:07.806838500 ERROR: Malformed database
2012-01-23 11:45:07.806902500 Closing the main socket.

After wget (wget http://db.us.clamav.net/main.cvd)
clamd log:
2012-01-23 12:17:40.927911500 Reading databases from /usr/local/share/clamav
2012-01-23 12:17:47.314079500 LibClamAV Error: cli_tgzload: Invalid
checksum for file main.mdb
2012-01-23 12:17:47.314162500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Malformed database
2012-01-23 12:17:47.314275500 ERROR: reload db failed: Malformed database
2012-01-23 12:17:47.524431500 Terminating because of a fatal error.
2012-01-23 12:17:48.150505500 LibClamAV Error: cli_tgzload: Invalid
checksum for file daily.mdb
2012-01-23 12:17:48.150583500 LibClamAV Error: Can't load
/usr/local/share/clamav/daily.cvd: Malformed database
2012-01-23 12:17:48.150711500 ERROR: Malformed database
2012-01-23 12:17:48.150776500 Closing the main socket.
2012-01-23 12:17:49.193302500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Can't verify database integrity
2012-01-23 12:17:49.193458500 ERROR: Can't verify database integrity
2012-01-23 12:17:49.193524500 Closing the main socket.
2012-01-23 12:17:50.996123500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Can't verify database integrity
2012-01-23 12:17:50.996278500 ERROR: Can't verify database integrity
2012-01-23 12:17:50.996349500 Closing the main socket.
2012-01-23 12:17:52.557196500 LibClamAV Error: cli_tgzload: Invalid
checksum for file main.db
2012-01-23 12:17:52.582467500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Malformed database
2012-01-23 12:17:52.582473500 ERROR: Malformed database
2012-01-23 12:17:52.582479500 Closing the main socket.
2012-01-23 12:17:59.584094500 Limits: Global size limit set to 104857600
bytes.
2012-01-23 12:17:59.584126500 Limits: File size limit set to 26214400 bytes.
2012-01-23 12:17:59.584156500 Limits: Recursion level limit set to 16.
2012-01-23 12:17:59.584187500 Limits: Files limit set to 10000.
2012-01-23 12:17:59.584216500 Limits: Core-dump limit is 0.
2012-01-23 12:17:59.584246500 Archive support enabled.
2012-01-23 12:17:59.584277500 Algorithmic detection enabled.
2012-01-23 12:17:59.584306500 Portable Executable support enabled.
2012-01-23 12:17:59.584335500 ELF support enabled.
2012-01-23 12:17:59.584372500 Mail files support enabled.
2012-01-23 12:17:59.584402500 OLE2 support enabled.
2012-01-23 12:17:59.584432500 PDF support enabled.
2012-01-23 12:17:59.584461500 HTML support enabled.
2012-01-23 12:17:59.584497500 Self checking every 600 seconds.
2012-01-23 12:17:59.584529500 Listening daemon: PID: 25777
2012-01-23 12:17:59.584568500 MaxQueue set to: 100


clamscan --detect-broken
LibClamAV Error: Can't load /usr/local/share/clamav/main.cvd: Can't verify
database integrity
ERROR: Can't verify database integrity

----------- SCAN SUMMARY -----------
Known viruses: 74989
Engine version: 0.97.3
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.549 sec (0 m 0 s)


configure command option --disable-zlib-vcheck the actual version is 1.2.1

bzip2 on problem and working machine is at 1.0.2, not sure this is an
issue as one works the other doesn't (also this didn't seem to be a
problem until the upgrade to 97.3)



Any Ideas?


Best Regards
Greg

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


edwintorok at gmail

Jan 23, 2012, 10:02 AM

Post #2 of 5 (509 views)
Permalink
Re: freshclam Verification: Can't verify database integrity [In reply to]

On 01/23/2012 07:29 PM, Greg Cirino wrote:
> Hello
>
> Since upgrading from 0.97 to 0.97.3 it's been less then satisfying on a
> fedora c3 server, I have a 7.3 server without issues
>
> Every time (it seems) i run freshclam on the FC3 machine it wants to
> redownload the main.cvd database over and over, not sure why as that
> database doesn't appear to change, but it keeps giving me messages such as
> Malformed database and Can't verify database integrity. Happens after it
> was successful once before.
>
> Note: this sporadically happens with daily.cvd and occasionally bytecode.cvd

Might be bad RAM, run a memtest to make sure thats not the case.

>
>
> configure command option --disable-zlib-vcheck the actual version is 1.2.1

Thats quite old, do you still have problems if you upgrade to latest version?

Best regards,
--Edwin

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


gcirino at cirelle

Jan 23, 2012, 10:27 AM

Post #3 of 5 (527 views)
Permalink
freshclam Verification: Can't verify database integrity [In reply to]

Here is the clamd log with no changes except I had lunch

2012-01-23 12:17:59.584529500 Listening daemon: PID: 25777
2012-01-23 12:17:59.584568500 MaxQueue set to: 100
2012-01-23 12:28:00.034109500 No stats for Database check - forcing reload
2012-01-23 12:28:00.318747500 Reading databases from /usr/local/share/clamav
2012-01-23 12:28:04.330376500 LibClamAV Error: cli_tgzload: Invalid
checksum for file main.hdb
2012-01-23 12:28:04.330458500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Malformed database
2012-01-23 12:28:04.330566500 ERROR: reload db failed: Malformed database
2012-01-23 12:28:04.373648500 Terminating because of a fatal error.
2012-01-23 12:28:09.737290500 LibClamAV Error: cli_tgzload: Invalid
checksum for file main.mdb
2012-01-23 12:28:09.737333500 LibClamAV Error: Can't load
/usr/local/share/clamav/main.cvd: Malformed database
2012-01-23 12:28:09.737403500 ERROR: Malformed database
2012-01-23 12:28:09.737444500 Closing the main socket.
2012-01-23 12:28:16.676138500 Limits: Global size limit set to 104857600
bytes.
2012-01-23 12:28:16.676170500 Limits: File size limit set to 26214400 bytes.
2012-01-23 12:28:16.676207500 Limits: Recursion level limit set to 16.
2012-01-23 12:28:16.676238500 Limits: Files limit set to 10000.
2012-01-23 12:28:16.676268500 Limits: Core-dump limit is 0.
2012-01-23 12:28:16.676297500 Archive support enabled.
2012-01-23 12:28:16.676328500 Algorithmic detection enabled.
2012-01-23 12:28:16.676357500 Portable Executable support enabled.
2012-01-23 12:28:16.676391500 ELF support enabled.
2012-01-23 12:28:16.676421500 Mail files support enabled.
2012-01-23 12:28:16.676452500 OLE2 support enabled.
2012-01-23 12:28:16.676482500 PDF support enabled.
2012-01-23 12:28:16.676510500 HTML support enabled.
2012-01-23 12:28:16.676546500 Self checking every 600 seconds.
2012-01-23 12:28:16.676578500 Listening daemon: PID: 32757
2012-01-23 12:28:16.676616500 MaxQueue set to: 100
2012-01-23 12:38:20.307033500 No stats for Database check - forcing reload
2012-01-23 12:38:20.517357500 Reading databases from /usr/local/share/clamav
2012-01-23 12:38:27.147959500 Database correctly reloaded (1119366
signatures)
2012-01-23 12:48:29.232337500 SelfCheck: Database status OK.
2012-01-23 12:58:32.896595500 SelfCheck: Database status OK.
2012-01-23 13:08:32.542060500 SelfCheck: Database status OK.
2012-01-23 13:18:34.916892500 SelfCheck: Database status OK.

This makes little sense to me

Best Regards
Greg

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


hutchlists at midwales

Jan 23, 2012, 12:20 PM

Post #4 of 5 (521 views)
Permalink
Re: freshclam Verification: Can't verify database integrity [In reply to]

On 23/01/12 18:27, Greg Cirino wrote:
> Here is the clamd log with no changes except I had lunch
>
> 2012-01-23 12:17:59.584529500 Listening daemon: PID: 25777
> 2012-01-23 12:17:59.584568500 MaxQueue set to: 100
> 2012-01-23 12:28:00.034109500 No stats for Database check - forcing reload
> 2012-01-23 12:28:00.318747500 Reading databases from /usr/local/share/clamav
> 2012-01-23 12:28:04.330376500 LibClamAV Error: cli_tgzload: Invalid
> checksum for file main.hdb
> 2012-01-23 12:28:04.330458500 LibClamAV Error: Can't load
> /usr/local/share/clamav/main.cvd: Malformed database
> 2012-01-23 12:28:04.330566500 ERROR: reload db failed: Malformed database
> 2012-01-23 12:28:04.373648500 Terminating because of a fatal error.
> 2012-01-23 12:28:09.737290500 LibClamAV Error: cli_tgzload: Invalid
> checksum for file main.mdb
> 2012-01-23 12:28:09.737333500 LibClamAV Error: Can't load
> /usr/local/share/clamav/main.cvd: Malformed database
> 2012-01-23 12:28:09.737403500 ERROR: Malformed database
> 2012-01-23 12:28:09.737444500 Closing the main socket.
> 2012-01-23 12:28:16.676138500 Limits: Global size limit set to 104857600
> bytes.
> 2012-01-23 12:28:16.676170500 Limits: File size limit set to 26214400 bytes.
> 2012-01-23 12:28:16.676207500 Limits: Recursion level limit set to 16.
> 2012-01-23 12:28:16.676238500 Limits: Files limit set to 10000.
> 2012-01-23 12:28:16.676268500 Limits: Core-dump limit is 0.
> 2012-01-23 12:28:16.676297500 Archive support enabled.
> 2012-01-23 12:28:16.676328500 Algorithmic detection enabled.
> 2012-01-23 12:28:16.676357500 Portable Executable support enabled.
> 2012-01-23 12:28:16.676391500 ELF support enabled.
> 2012-01-23 12:28:16.676421500 Mail files support enabled.
> 2012-01-23 12:28:16.676452500 OLE2 support enabled.
> 2012-01-23 12:28:16.676482500 PDF support enabled.
> 2012-01-23 12:28:16.676510500 HTML support enabled.
> 2012-01-23 12:28:16.676546500 Self checking every 600 seconds.
> 2012-01-23 12:28:16.676578500 Listening daemon: PID: 32757
> 2012-01-23 12:28:16.676616500 MaxQueue set to: 100
> 2012-01-23 12:38:20.307033500 No stats for Database check - forcing reload
> 2012-01-23 12:38:20.517357500 Reading databases from /usr/local/share/clamav
> 2012-01-23 12:38:27.147959500 Database correctly reloaded (1119366
> signatures)
> 2012-01-23 12:48:29.232337500 SelfCheck: Database status OK.
> 2012-01-23 12:58:32.896595500 SelfCheck: Database status OK.
> 2012-01-23 13:08:32.542060500 SelfCheck: Database status OK.
> 2012-01-23 13:18:34.916892500 SelfCheck: Database status OK.
>
> This makes little sense to me

I would suggest that this is incipient hardware failure, could be
memory, hard drive or even nic, if the box is more than 2 or 3 years old
I would replace it with a new one ASAP.

>
> Best Regards
> Greg
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>
>


--
-----------------
Bob Hutchinson
Midwales dot com
-----------------
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


gcirino at cirelle

Jan 23, 2012, 2:22 PM

Post #5 of 5 (516 views)
Permalink
Re: freshclam Verification: Can't verify database integrity [In reply to]

|> 2012-01-23 12:28:16.676546500 Self checking every 600 seconds.
|> 2012-01-23 12:28:16.676578500 Listening daemon: PID: 32757
|> 2012-01-23 12:28:16.676616500 MaxQueue set to: 100
|> 2012-01-23 12:38:20.307033500 No stats for Database check - forcing
|> reload
|> 2012-01-23 12:38:20.517357500 Reading databases from
|> /usr/local/share/clamav
|> 2012-01-23 12:38:27.147959500 Database correctly reloaded (1119366
|> signatures)
|> 2012-01-23 12:48:29.232337500 SelfCheck: Database status OK.
|> 2012-01-23 12:58:32.896595500 SelfCheck: Database status OK.
|> 2012-01-23 13:08:32.542060500 SelfCheck: Database status OK.
|> 2012-01-23 13:18:34.916892500 SelfCheck: Database status OK.
|>
|> This makes little sense to me
|
| I would suggest that this is incipient hardware failure, could be
| memory, hard drive or even nic, if the box is more than 2 or 3 years old
| I would replace it with a new one ASAP.
|

Thank you for your response, but I'm not 100% sure it's hardware

It may well be, but it isn't responding that way server wide, just with clam
which raises doubts about the hardware approach in my mind.

Thanks tho

Best Regards
Greg

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.