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

Advertise address in topology is invalid when IP is changed #110

Open
breezewish opened this issue Feb 8, 2022 · 0 comments
Open

Advertise address in topology is invalid when IP is changed #110

breezewish opened this issue Feb 8, 2022 · 0 comments
Assignees
Labels
type/bug Something isn't working

Comments

@breezewish
Copy link
Member

breezewish commented Feb 8, 2022

When network connection is re-established (so that local IP is changed), TiDB Dashboard keeps using a wrong advertise address, which makes TiDB Dashboard failed to connect to the ng-monitoring server:

$ bin/ng-monitoring-server --pd.endpoints "127.0.0.1:2379"

$ etcdctl get /topology --prefix
/topology/ng-monitoring/192.168.3.105:12020/info
{"git_hash":"1afcaa990af5c65b222e0ab59171867248645f4a","ip":"192.168.3.105","listening_port":12020,"start_timestamp":1644225105}
...

$ curl http://192.168.3.105:12020
curl: (56) Recv failure: Connection reset by peer

$ ifconfig
en0: 
...
	inet 192.168.126.218 netmask 0xfffffc00 broadcast 192.168.127.255
...

This case is pretty common in local development machines, where IP address are dynamically assigned.

Bug is introduced in #101

@breezewish breezewish added the type/bug Something isn't working label Feb 8, 2022
@breezewish breezewish added this to the GA milestone Feb 8, 2022
@breezewish breezewish changed the title Advertise address in topology is invalid Advertise address in topology is invalid when IP is changed Feb 8, 2022
@breezewish breezewish removed this from the GA milestone Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants