Comments (6)
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.
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.
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.
To me it seems like ClamAV isn't able to write to the volume as it cannot update the database.
from docker-clamav.
Did you check if your volume
/var/lib/clamav/
has right permissions?
from docker-clamav.
Closed by stalebot.
from docker-clamav.
Related Issues (20)
- Feature Request: add environment variable to delay clamav and freshclam startup HOT 10
- init contributors HOT 62
- detailed logs for clamav HOT 2
- bootstrap.sh crashes container HOT 1
- Question to help fix a configuration HOT 4
- Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: Connection refused HOT 4
- Container Won't Start Up HOT 12
- Reasoning for non-default config options HOT 2
- ClamAV installation is outdated HOT 1
- upgrade libcrypto1.1 and libssl1.1 for vulnerability issue HOT 5
- upgrade busybox, ssl_client , zlib and libcurl for vulnerability issues HOT 1
- upgrade gzip and zlib1g for vulnerability issues HOT 3
- mkodockx/docker-clamav:alpine-idb-amd64 does not respond in Azure HOT 2
- Root Login to Container HOT 4
- Upgrade openssl to the newer version (>1.1.1q-r0) for fixing the CVE-2022-2097 HOT 2
- Custom Dockerfile From ClamAV Base Image with Server HOT 1
- Update Error HOT 1
- Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl: No such file or directory HOT 2
- docker image rebuild HOT 2
- Memory Spike / Slowly decrease over time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-clamav.