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

panic: dial udp 8.8.8.8:80: connect: network is unreachable #938

Closed
lin2627 opened this issue Dec 1, 2020 · 4 comments · Fixed by #947
Closed

panic: dial udp 8.8.8.8:80: connect: network is unreachable #938

lin2627 opened this issue Dec 1, 2020 · 4 comments · Fixed by #947
Assignees
Labels
backend bug Something isn't working
Milestone

Comments

@lin2627
Copy link

lin2627 commented Dec 1, 2020

./manager-api 内网不能联外网,启动提示connect: network is unreachable
panic: dial udp 8.8.8.8:80: connect: network is unreachable
goroutine 1 [running]:
github.com/apisix/manager-api/internal/utils.GetOutboundIP(0x0, 0x0, 0x0)
/root/apisix-dashboard/api/internal/utils/utils.go:61 +0x133
github.com/apisix/manager-api/internal/utils.init.0.func1(0x0, 0xecb95ae00, 0x0)
/root/apisix-dashboard/api/internal/utils/utils.go:41 +0x2b
github.com/sony/sonyflake.NewSonyflake(0x0, 0x0, 0x0, 0xc0000e5eb0, 0x0, 0x3)
/root/go/pkg/mod/github.com/sony/[email protected]/sonyflake.go:75 +0x14a
github.com/apisix/manager-api/internal/utils.init.0()
/root/apisix-dashboard/api/internal/utils/utils.go:39 +0xb4

@lin2627 lin2627 added the bug Something isn't working label Dec 1, 2020
@membphis
Copy link
Member

membphis commented Dec 1, 2020

@gxthrj @nic-chen I think we should allow the user to set the DNS resolver via conf/config.yaml

@membphis membphis added this to the 2.1.1 milestone Dec 1, 2020
@gxthrj
Copy link
Contributor

gxthrj commented Dec 2, 2020

We use snowflake do not have to rely on external networks,we'd better to remove the network dependency .

@membphis
Copy link
Member

membphis commented Dec 2, 2020

@gxthrj @nic-chen I think we should allow the user to set the DNS resolver via conf/config.yaml

ignore what I said. ^_^

@membphis
Copy link
Member

membphis commented Dec 2, 2020

@lin2627 you can make a try with the latest master branch. please feel free to reopen this issue if you still have this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants