Skip to content
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

Could not dial broker: dial tcp: lookup kafka-1.kafka.kafka-ca1.svc.cluster.local: device or resource busy #285

Closed
malonaz opened this issue Jun 1, 2019 · 4 comments

Comments

@malonaz
Copy link

malonaz commented Jun 1, 2019

Hey all,
I'm not sure if this qualifies for an issue, but I've been trying to setup a kafka on my micro-service project and I keep hitting the 'resource busy', when deploying on minikube.
I believe that my zookeeper/kafka setup is correct because I can run a node.js application that publishes and consumes from a topic successfully.
Is there some driver, library I must install on my docker image before I spin my golang binary?
Any help would be much appreciated, thank you.

@malonaz malonaz closed this as completed Jun 1, 2019
@malonaz
Copy link
Author

malonaz commented Jun 1, 2019

FIX: I was creating a statically linked go binary, which caused some issue for DNS look ups

@kabaluyot
Copy link

what does this mean? @malonaz

@pmahoney
Copy link

pmahoney commented Nov 22, 2019

We've run into a similar issue where, given a static go binary, seemingly anything ending in .local fails DNS resolution. I've run tcpdump and observed no DNS packets when trying to resolve such an address (while other addresses resolve fine and are observed through tcpdump).

Reading through Name Resolution and .local suggests that golang may correctly be treating .local differently. But also that when dynamically linked to the c library, will use that routine for .local, which explains the difference between static binary and dynamic.

Not sure I've got the details 100% yet, but wanted to post this here.

See also golang/go#16739, though I'm observing this when compiling with go 1.12.3.
See golang/go#35067

@prashant-shahi
Copy link

was facing the same issue.

Adding runtime environment GODEBUG to netdns=go resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants