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

[Raft]nebula meta: Leader has not been elected, error code is E_RAFT_INVALID_PEER #5529

Closed
FoolishWall opened this issue Apr 27, 2023 · 5 comments
Labels
type/question Type: question about the product

Comments

@FoolishWall
Copy link

FoolishWall commented Apr 27, 2023

General Question

nebula-meta.INFO log

I20230427 07:03:06.335533 23613 RaftPart.cpp:1261] [Port: 9560, Space: 0, Part: 0] Start leader election...
I20230427 07:03:06.335579 23613 RaftPart.cpp:1289] [Port: 9560, Space: 0, Part: 0] Sending out an election request (space = 0, part = 0, term = 4690, lastLogId = 111506945, lastLogTerm = 4664, candidateIP = ip, candidatePort = 9560), isPreVote = 1
I20230427 07:03:06.335597 23613 RaftPart.cpp:1311] [Port: 9560, Space: 0, Part: 0] Sending AskForVoteRequest to [Port: 9560, Space: 0,Part: 0] [Host: ip:9560]
I20230427 07:03:06.335633 23613 RaftPart.cpp:1311] [Port: 9560, Space: 0, Part: 0] Sending AskForVoteRequest to [Port: 9560, Space: 0,Part: 0] [Host: ip:9560]
I20230427 07:03:06.335645 23613 RaftPart.cpp:1311] [Port: 9560, Space: 0, Part: 0] Sending AskForVoteRequest to [Port: 9560, Space: 0,Part: 0] [Host: ip:9560]
I20230427 07:03:06.335682 23631 ThriftClientManager-inl.h:47] Getting a client to "ip":9560
I20230427 07:03:06.335757 23631 ThriftClientManager-inl.h:38] Invalid Channel: 0x7f18b6f97500 for host: "ip":9560
I20230427 07:03:06.335763 23631 ThriftClientManager-inl.h:53] There is no existing client to "ip":9560, trying to create one
I20230427 07:03:06.335769 23631 ThriftClientManager-inl.h:74] Connecting to "ip":9560 for 4611 times
I20230427 07:03:06.335867 23631 ThriftClientManager-inl.h:47] Getting a client to "ip":9560
I20230427 07:03:06.336762 23631 AsyncSocket.cpp:2711] this=0x7f18b6f29400, AsyncSocket::handleRead() got 33 bytes
I20230427 07:03:06.336858 23631 AsyncSocket.cpp:2711] this=0x7f18b6f29800, AsyncSocket::handleRead() got 33 bytes
I20230427 07:03:06.863117 23572 MetaDaemonInit.cpp:113] Leader has not been elected, sleep 1s
I20230427 07:03:07.337045 23631 CollectNSucceeded-inl.h:59] Set Value [completed=3, total=3, Result list size=2]
I20230427 07:03:07.337152 23610 RaftPart.cpp:1327] [Port: 9560, Space: 0, Part: 0] AskForVoteRequest has been sent to all peers, waiting for responses
I20230427 07:03:07.337174 23610 RaftPart.cpp:1228] [Port: 9560, Space: 0, Part: 0] Receive response about askForVote from "ip":9560, error code is E_RAFT_INVALID_PEER, isPreVote = 1
I20230427 07:03:07.337188 23610 RaftPart.cpp:1228] [Port: 9560, Space: 0, Part: 0] Receive response about askForVote from "ip":9560, error code is E_RAFT_INVALID_PEER, isPreVote = 1
I20230427 07:03:07.337194 23610 RaftPart.cpp:1255] [Port: 9560, Space: 0, Part: 0] Did not get enough votes from election of term 4690, isPreVote = 1
I20230427 07:03:07.337244 23613 RaftPart.cpp:1384] [Port: 9560, Space: 0, Part: 0] Wait for a while and continue the leader election
I20230427 07:03:07.337267 23613 RaftPart.cpp:1397] [Port: 9560, Space: 0, Part: 0] Schedule new task
I20230427 07:03:07.863301 23572 MetaDaemonInit.cpp:113] Leader has not been elected, sleep 1s

@QingZ11 QingZ11 added the type/question Type: question about the product label Apr 28, 2023
@QingZ11
Copy link
Contributor

QingZ11 commented Apr 28, 2023

Please provide your nebulagraph core version, and let me know if the deployment is on a cluster or a single machine. If it's a cluster, how many machines are there?

By the way, I suggest that you check whether the IP address mentioned in the error message is a private IP address, and pay attention to protecting sensitive information.

@porscheme
Copy link

  • Please provide cluster configuration
  • Make sure metad nodes are odd numbered (such as 1 or 3)

@FoolishWall
Copy link
Author

FoolishWall commented May 4, 2023

  • version is 3.1.0

  • default configuration

  • 3 machines

It was working fine before

@luyade
Copy link
Contributor

luyade commented May 10, 2023

Do you have changed the ip address of metad machines?

@QingZ11
Copy link
Contributor

QingZ11 commented Aug 2, 2023

@FoolishWall hi, I closed this issue because there hasn't been any update in over a month. If your problem is still not resolved, please feel free to reopen the issue and provide more information. We're here to help!

@QingZ11 QingZ11 closed this as completed Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

4 participants