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

Got rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found) #17

Closed
Tochemey opened this issue May 6, 2023 · 1 comment

Comments

@Tochemey
Copy link

Tochemey commented May 6, 2023

Hello @shaj13

I am getting the following error:

ERROR: raft.membership: sending message to member 24669d2775c8b223: rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "text/plain; charset=utf-8"

I am running the application on k8 with a replica of 2.

These are the logs from the two Pods:

Pod-1:

{"level":"debug","ts":1683374970.9820142,"msg":"raft node URL=:3100"}
{"level":"debug","ts":1683374972.0948684,"msg":"kubernetes has discovered 1 nodes"}
2023/05/06 12:09:32 INFO: 61cca80dec1edadd switched to configuration voters=()
2023/05/06 12:09:32 INFO: 61cca80dec1edadd became follower at term 0
2023/05/06 12:09:32 INFO: newRaft 61cca80dec1edadd [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2023/05/06 12:09:32 INFO: 61cca80dec1edadd became follower at term 1
2023/05/06 12:09:32 INFO: 61cca80dec1edadd switched to configuration voters=(7047192294677469917)
2023/05/06 12:09:32 INFO: 61cca80dec1edadd switched to configuration voters=(7047192294677469917)
2023/05/06 12:09:33 INFO: 61cca80dec1edadd is starting a new election at term 1
2023/05/06 12:09:33 INFO: 61cca80dec1edadd became candidate at term 2
2023/05/06 12:09:33 INFO: 61cca80dec1edadd received MsgVoteResp from 61cca80dec1edadd at term 2
2023/05/06 12:09:33 INFO: 61cca80dec1edadd became leader at term 2
2023/05/06 12:09:33 INFO: raft.node: 61cca80dec1edadd elected leader 61cca80dec1edadd at term 2
2023/05/06 12:10:00 INFO: 61cca80dec1edadd switched to configuration voters=(2622956625795265059 7047192294677469917)
2023/05/06 12:10:01 ERROR: raft.membership: sending message to member 24669d2775c8b223: rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "text/plain; charset=utf-8"

Pod-2:

{"level":"debug","ts":1683374999.3820262,"msg":"raft node URL=:3100"}
{"level":"debug","ts":1683375000.8786376,"msg":"kubernetes has discovered 2 nodes"}
2023/05/06 12:10:01 INFO: 24669d2775c8b223 switched to configuration voters=()
2023/05/06 12:10:01 INFO: 24669d2775c8b223 became follower at term 0
2023/05/06 12:10:01 INFO: newRaft 24669d2775c8b223 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2023/05/06 12:10:01 INFO: 24669d2775c8b223 became follower at term 1
2023/05/06 12:10:01 INFO: 24669d2775c8b223 switched to configuration voters=(2622956625795265059)
2023/05/06 12:10:01 INFO: 24669d2775c8b223 switched to configuration voters=(2622956625795265059 7047192294677469917)
2023/05/06 12:10:01 INFO: 24669d2775c8b223 switched to configuration voters=(2622956625795265059 7047192294677469917)
2023/05/06 12:10:01 INFO: 24669d2775c8b223 switched to configuration voters=()
2023/05/06 12:10:01 INFO: 24669d2775c8b223 became follower at term 0
2023/05/06 12:10:01 INFO: newRaft 24669d2775c8b223 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]

I am sure I am doing something wrong

@Tochemey
Copy link
Author

Tochemey commented May 6, 2023

@shaj13 Never mind. I figure it out.

@Tochemey Tochemey closed this as completed May 6, 2023
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

1 participant