Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Freshclam Malformed database

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      philled
      last edited by

      I've been having internet access issues and tracked it down to the fact that the clamav database is broken because the freshclam downloads aren't working. If I run freshclam from a shell (for testing purposes) this is what I get:

      /usr/local/bin/freshclam
      ClamAV update process started at Sun Mar 12 22:56:19 2017
      main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
      Downloading daily-23193.cdiff [100%]
      Downloading daily-23194.cdiff [100%]
      Downloading daily-23195.cdiff [100%]
      Downloading daily-23196.cdiff [100%]
      ERROR: During database load : WARNING: [LibClamAV] cli_dbgets: Invalid data or internal buffer too small [...] ERROR: Failed to load new database: Malformed database
      WARNING: Database load exited with status 55
      ERROR: Failed to load new database
      

      Does anyone know how to fix this? There are posts on it around the place but nothing concrete other than enabling bypass which apparently turns off antivirus filtering which is the one and only reason I installed squid and squidguard in the first place.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        
        rm -rf /var/db/clamav/*
        
        
        1 Reply Last reply Reply Quote 1
        • P
          philled
          last edited by

          Thanks, I'll try that.

          Why does this happen in the first place and how is it best avoided? It's a bit of a big deal because it prevents people from viewing web pages. Is there a way of auto detecting it and fixing the problem without manual intervention?

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Never seen it. And no, apparently there's no way to fix it automatically, as you can see from the output.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.