Code Monkey home page Code Monkey logo

Comments (6)

JoeHogan avatar JoeHogan commented on July 28, 2024

Im also having issues with the freshclam proxy. i set the HTTPProxyServer and HTTPProxyPort through environement variables, which works, but i get the response "Message: SSL peer certificate or SSH remote key was not OK" - looks like a cert issue, but not sure why the docker image doesnt recognize the cert...

from docker-clamav.

mko-x avatar mko-x commented on July 28, 2024

A little more information is needed. Could you turn on debug output via conf?

It may be a network configuration error in Docker or the host. Please provide your network configurations?

from docker-clamav.

infiniityr avatar infiniityr commented on July 28, 2024

Here are the logs with debug on.

Attaching to opt_clamav_1
clamav_1                 | Connecting via 10.100.*.*
clamav_1                 | Fri Jun 19 10:05:32 2020 -> ClamAV update process started at Fri Jun 19 10:05:32 2020
clamav_1                 | Fri Jun 19 10:05:52 2020 -> ^Can't query current.cvd.clamav.net
clamav_1                 | Fri Jun 19 10:05:52 2020 -> ^Invalid DNS reply. Falling back to HTTP mode.
clamav_1                 | Fri Jun 19 10:05:52 2020 -> Reading CVD header (daily.cvd): Fri Jun 19 10:05:53 2020 -> OK
clamav_1                 | Fri Jun 19 10:05:53 2020 -> daily database available for update (local version: 25842, remote version: 25847)
clamav_1                 | LibClamAV debug: in cli_untgz()
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/COPYING
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.info
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.cfg
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.ign
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.ign2
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.ftm
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.hdb
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.hdu
clamav_1                 | LibClamAV debug: cli_untgz: Unpacking /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.hsb
clamav_1                 | Fri Jun 19 10:05:55 2020 -> ^[LibClamAV] cli_untgz: Wrote 0 instead of 512 (/var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp/daily.hsb)
clamav_1                 | LibClamAV debug: in cli_untgz_cleanup()
clamav_1                 | Fri Jun 19 10:05:55 2020 -> !mkdir_and_chdir_for_cdiff_tmp: Can't unpack daily.cvd into /var/lib/clamav/tmp.b56f2/clamav-d72e6ccd9d98eab68fa7834d67af8413.tmp
clamav_1                 | Fri Jun 19 10:05:55 2020 -> ^Incremental update failed, trying to download daily.cvd
clamav_1                 | /bootstrap.sh: line 35:    15 Killed                  clamd

I can't provide you all my network configuration but here is what I have :

~/.docker/config.json

{
 "proxies":
 {
   "default":
   {
     "httpProxy": "http://10.100.*.*:80",
     "httpsProxy": "http://10.100.*.*:80"
   }
 }
}

docker-compose.yml

services:
  clamav:
    image: mkodockx/docker-clamav
    volumes:
      - ./clamav/freshclam.conf:/etc/clamav/freshclam.conf
    mem_limit: 256m
    networks:
      - back
networks:
  front:
  back:

The proxy configuration works fine for all others images.

from docker-clamav.

mko-x avatar mko-x commented on July 28, 2024

To me it seems like ClamAV isn't able to write to the volume as it cannot update the database.

from docker-clamav.

mko-x avatar mko-x commented on July 28, 2024

Did you check if your volume

/var/lib/clamav/

has right permissions?

from docker-clamav.

mko-x avatar mko-x commented on July 28, 2024

Closed by stalebot.

from docker-clamav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.