k8s-cluster-installation icon indicating copy to clipboard operation
k8s-cluster-installation copied to clipboard

Error from server (InternalError): an error on the server ("") has prevented the request from succeeding

Open Newbsylberry opened this issue 4 years ago • 3 comments

I'm getting an error when trying to interact with the API server after running the ansible playbooks.

For example:

kubectl version -v=7

returns:

I0919 15:36:53.284723 26829 helpers.go:216] server response object: [{ "metadata": {}, "status": "Failure", "message": "an error on the server (\"\") has prevented the request from succeeding", "reason": "InternalError", "details": { "causes": [ { "reason": "UnexpectedServerResponse" } ], "retryAfterSeconds": 1 }, "code": 500 }] F0919 15:36:53.290235 26829 helpers.go:115] Error from server (InternalError): an error on the server ("") has prevented the request from succeeding

more verbose log:

I0919 15:36:44.210820 26829 loader.go:375] Config loaded from file: /root/.kube/config I0919 15:36:44.219184 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:44.219278 26829 round_trippers.go:427] Request Headers: I0919 15:36:44.219329 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:44.219373 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:44.223377 26829 round_trippers.go:446] Response Status: in 3 milliseconds I0919 15:36:44.223647 26829 request.go:907] Got a Retry-After 1s response for attempt 1 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:45.224344 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:45.224479 26829 round_trippers.go:427] Request Headers: I0919 15:36:45.224553 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:45.224626 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:45.230181 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:45.230423 26829 request.go:907] Got a Retry-After 1s response for attempt 2 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:46.230990 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:46.231127 26829 round_trippers.go:427] Request Headers: I0919 15:36:46.231201 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:46.231263 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:46.236819 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:46.237126 26829 request.go:907] Got a Retry-After 1s response for attempt 3 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:47.237777 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:47.237910 26829 round_trippers.go:427] Request Headers: I0919 15:36:47.237985 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:47.238058 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:47.243364 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:47.243747 26829 request.go:907] Got a Retry-After 1s response for attempt 4 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:48.244409 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:48.244600 26829 round_trippers.go:427] Request Headers: I0919 15:36:48.244691 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:48.244759 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:48.249878 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:48.250088 26829 request.go:907] Got a Retry-After 1s response for attempt 5 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:49.250792 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:49.250926 26829 round_trippers.go:427] Request Headers: I0919 15:36:49.251010 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:49.251081 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:49.256156 26829 round_trippers.go:446] Response Status: in 4 milliseconds I0919 15:36:49.256523 26829 request.go:907] Got a Retry-After 1s response for attempt 6 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:50.257103 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:50.257229 26829 round_trippers.go:427] Request Headers: I0919 15:36:50.257305 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:50.257386 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:50.263074 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:50.263310 26829 request.go:907] Got a Retry-After 1s response for attempt 7 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:51.263902 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:51.264035 26829 round_trippers.go:427] Request Headers: I0919 15:36:51.264099 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:51.264160 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:51.269304 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:51.269703 26829 request.go:907] Got a Retry-After 1s response for attempt 8 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:52.270287 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:52.270417 26829 round_trippers.go:427] Request Headers: I0919 15:36:52.270502 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:52.270575 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:52.275766 26829 round_trippers.go:446] Response Status: in 5 milliseconds I0919 15:36:52.275985 26829 request.go:907] Got a Retry-After 1s response for attempt 9 to https://192.168.1.200:8443/version?timeout=32s I0919 15:36:53.276607 26829 round_trippers.go:420] GET https://192.168.1.200:8443/version?timeout=32s I0919 15:36:53.276732 26829 round_trippers.go:427] Request Headers: I0919 15:36:53.276860 26829 round_trippers.go:431] Accept: application/json, */* I0919 15:36:53.276935 26829 round_trippers.go:431] User-Agent: kubectl/v1.18.6 (linux/arm64) kubernetes/dff82dc I0919 15:36:53.282774 26829 round_trippers.go:446] Response Status: in 5 milliseconds Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:58:53Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/arm64"} I0919 15:36:53.284723 26829 helpers.go:216] server response object: [{ "metadata": {}, "status": "Failure", "message": "an error on the server (\"\") has prevented the request from succeeding", "reason": "InternalError", "details": { "causes": [ { "reason": "UnexpectedServerResponse" } ], "retryAfterSeconds": 1 }, "code": 500 }] F0919 15:36:53.290235 26829 helpers.go:115] Error from server (InternalError): an error on the server ("") has prevented the request from succeeding

Newbsylberry avatar Sep 19 '20 15:09 Newbsylberry

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Sep 19 '20 15:09 issue-label-bot[bot]

@Newbsylberry is this still occurring? Where there any errors in the playbook execution? Is this also a single node cluster?

xunholy avatar Sep 28 '20 10:09 xunholy

@Newbsylberry just confirming if this is still an occurring issue or if I can close this ticket?

xunholy avatar Dec 06 '20 09:12 xunholy