-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
bug: Connection refused (os error 111) #7686
Comments
You don't need to |
This certainly reads like #6751. |
true |
has anyone looked at this? |
bump +1 |
Same thing appeared again on my setup. Suddenly with the recent update of the docker image (denoland/latest) Iam not able to connect to my mariadb nodes anymore. If lucky I get the os error 111, if not the entire thread just get hung. Also reproductable with the smalest possible mysql connection sample excluding all higher level libs. |
Same here @Merulast 😞 We're also having issues with our application on production connecting to our supabase postgres db. No issues when running the application locally or when connecting to the database directly. |
@littledivy please take a look |
We resolved it by updating our deno postgres driver to the latest version. We were on |
Trying to fix this error: denoland/deno#7686 and connection auth errors that recently appeared on the server
I’m having the same issue. I can’t connect to the local postgres database (using supabase). |
It works when using |
I have the same issue. Thanks for sharing @hamanuha , replacing |
I had the same issue connecting from deno to mongodb over docker. This solved my issue. Thank you so much for shareing! |
Wow this just worked! I am using supabase and deno edge function. Could you explain how this works? |
-- hey ! i was getting the same error while working with supabase -- i have tried to change it to 172.17.0.1 it did not work it is giving connection timed out error can you help me with this |
This is likely related to |
I run deno in the docker container in the k8s pod for as a REST API service. Every N seconds this deno service sends a POST request with metrics data over to another service in k8s, prometheus pushgateway
here is the code snippet of how the POST request is being made with fetch:
permissions for the network calls are wide open:
CMD ["deno", "run", "--cached-only", "--unstable", **"--allow-net"**, "--allow-read=./workers", "--allow-env", "--v8-flags=--disallow-code-generation-from-strings", "main.ts"]
request comes through OK if I run it outside of k8s (not using k8s dns service host name e.g.
pgURL=http://pushgateway.mynamespace.svc.cluster.local:9091
): bring up 2 docker containers attached to the same network, so the deno service POST tohttp://pushgateway:9091
, pushgateway is the name of the second container deno service is POSTing toif I run it in the k8s I get the following error:
unexpected error: failed to POST to pushgateway URL http://myenv-pushgateway.mynamespace.svc.cluster.local:9091/metrics/job/myjob/instance/1234567890, Http: error sending request to url (http://myenv-pushgateway.mynamespace.svc.cluster.local:9091/metrics/job/myjob/instance/1234567890): error trying to connect: tcp connect error: Connection refused (os error 111)
looks like a Rust error message:
error trying to connect: tcp connect error: Connection refused (os error 111)
I can exec into the deno container in k8s and curl pushgateway, so it's not related to k8s network policies
not sure if these 2 issues are related:
#7660
#6751
using:
@bartlomieju @kitsonk @hayd can you please take a look
The text was updated successfully, but these errors were encountered: