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

The error message of monitor port conflict is misleading #965

Closed
JaySon-Huang opened this issue Dec 3, 2020 · 2 comments · Fixed by #966
Closed

The error message of monitor port conflict is misleading #965

JaySon-Huang opened this issue Dec 3, 2020 · 2 comments · Fixed by #966
Labels
category/monitoring Categorizes issue or PR related to monitoring components. type/bug Categorizes issue as related to a bug.

Comments

@JaySon-Huang
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

I try to deploy a cluster that has a monitor port conflict with a previous cluster. TiUP tells me that there exists a port conflict between pd and tiflash:

>  tiup cluster deploy j2 v4.0.8 topo.yaml 
Error: Deploy port conflicts to an existing cluster (spec.deploy.port_conflict)

The port you specified in the topology file is:
  Port:      9110
  Component: pd 172.16.5.81

It conflicts to a port in the existing cluster:
  Existing Cluster Name: xxx
  Existing Port:         9110
  Existing Component:    tiflash 172.16.5.81

Please change to use another port or another host.

But the port 9110 is the port of monitored.node_exporter_port

  1. What did you expect to see?

TiUP tells me that there exists a port conflict of monitor port

  1. What did you see instead?

TiUP tells me that there exists a port conflict between pd and tiflash

  1. What version of TiUP are you using (tiup --version)?

v1.2.5 tiup
Go Version: go1.13
Git Branch: release-1.2
GitHash: 5b9cf5d

@JaySon-Huang JaySon-Huang added the type/bug Categorizes issue as related to a bug. label Dec 3, 2020
@9547
Copy link
Contributor

9547 commented Dec 3, 2020

This error message looks strange, but it is not. IMO, it is telling the user what components are running on this node, and two of these components have port conflicts, so it is necessary for the user to detect whether the node is deployed across the two clusters(PD VS TiFlash)

@JaySon-Huang
Copy link
Contributor Author

After seeing that error message, I use the display command to check the tiflash port of cluster xxx and check the pd port defined in my yaml file. Both of them do not contain port 9110. I can not even find port 9110 shown in the display command because the monitor is not a standalone component.

I am very confused and do not know how to solve that conflict.

If the error message tells that port is the monitor's port, I will go check the monitored part in my yaml file.

@AstroProfundis AstroProfundis added the category/monitoring Categorizes issue or PR related to monitoring components. label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/monitoring Categorizes issue or PR related to monitoring components. type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants