-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECONNREFUSED 127.0.0.1:3310 #29
Comments
Hi! |
No, i tried started with ClamAV in docker, but the error still remained |
But CRA is started inside container? If so, you cannot use localhost/127.0.0.1 as Clamavd address because localhost/127.0.0.1 inside container is not the same as your host ;) |
I'm sorry, I just started dealing with dockers and I don't understand a lot yet, so I can only give screenshots. |
OK. So here is the problem: you have not specified
|
clamav/clamav:latest - I'm running the clamav docker container & ip address added in .env CLAMD_IP - 172.17.0.2 got this ip address by below command But still getting error as ECONNREFUSED Ist there any steps to follow? |
You should not use it that way - that address will change every time you restart clamavd container.
|
@benzino77 I m facing the same error. I am trying to start P.S - I have tried with setting the ENV variables in different ways ( |
CRA will not start if there is no clamav daemon available (or I should rather say there is no clamavd with open 3310 port available). As I can see from the screenshot you provided you have not publish clamav port to the host. You should start clamav container by something similar to: docker run -d --name clamavd -p 3310:3310 clamav/clamav:stable The important part is |
Thank you, that worked! I think it is better to update the |
PRs are welcome ;) |
Hi i m running in kubernetes clamav and cra, i changed cra service type from nodeport to loadbalancer because i need an public ip for the endoint, is working for a day and after a day i receive |
Hi, could you please provide your setup: docker-compose.yaml or your k8s manifests? |
Hi, thank you for quick respose, please see the manifests below:
|
I am getting this log in clamav-api docker service Is this okay or should I do something? Here is my compose file services: clamav-api: |
clamav-api service depends on clamav service, which needs to be started to let clamav-api service to talk to it.
|
I do not know why, but during startup, the container is displayed as active and disappears after 2-3 seconds, this error is found in the logs
Cannot initialize clamav object: Error: connect ECONNREFUSED 127.0.0.1:3310
netstat -lnp | grep -E "(clam|3310|docker)"
->The text was updated successfully, but these errors were encountered: