-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Even if the nomad provider health check is tcp, it wants a GET method. #14861
Comments
Hi @Great-Stone; the client log line you have included is coming from the Nomad HTTP API and not the client internal health checking process. In particular, it is stating that something wishes to view the health checks for allocation I tested locally running Nomad
The
|
Hi @jrasell, It was a mistake in my configuration. As you mentioned the version of Nomad Client was 1.3.5 as opposed to version 1.4.1 of Nomad Server. I checked this log on Nomad Server, so I thought it was server dependent. After upgrading Windows Nomad Client, it works fine. |
Actually this was a bug, @Great-Stone - one that i just fixed in #14868. Nomad should have avoided placing the job on a known-to-be-outdated node (and now will in a future release). So, thanks for reporting! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v1.4.1 (2aa7e66)
Operating system and Environment details
Linux
Issue
Even if the nomad provider health check is tcp, it wants a GET method.
Reproduction steps
service {
tags = ["api"]
port = "api"
provider = "nomad"
meta {
meta = "Api"
}
check {
type = "tcp"
port = "api"
interval = "10s"
timeout = "2s"
}
}
Expected Result
Success Health check via TCP
Actual Result
Oct 10 03:34:58 raspberrypi nomad[11410]: 2022-10-10T03:34:58.109+0100 [ERROR] http: request failed: method=GET path=/v1/client/allocation/0fbc59e0-8690-9373-1d90-4ec40517dc39/checks error="rpc: can't find method Allocations.Checks" code=500
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
Oct 10 03:34:58 raspberrypi nomad[11410]: 2022-10-10T03:34:58.109+0100 [ERROR] http: request failed: method=GET path=/v1/client/allocation/0fbc59e0-8690-9373-1d90-4ec40517dc39/checks error="rpc: can't find method Allocations.Checks" code=500
The text was updated successfully, but these errors were encountered: