kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.49k stars 14.41k forks source link

random getting this error The connection to the server .... was refused - did you specify the right host or port? #4448

Closed pgnaleen closed 7 years ago

pgnaleen commented 7 years ago

install kubectl and others using kubeam

This is a...

Problem: you just need to run any kubectl command. getting above error. but sometimes it is working.

Proposed Solution:

Page to Update: http://kubernetes.io/...

pgnaleen commented 7 years ago

I think my probelm is api-server restarting always. i don't know why.

pgnaleen commented 7 years ago

what i did is adding following two lines to api-server start is there anything to do with these two lines.

i am used kubeam to install kubectl and others

pgnaleen commented 7 years ago

api server log attached.

{"log":"I0724 06:16:41.113509 1 server.go:112] Version: v1.7.1\n","stream":"stderr","time":"2017-07-24T06:16:41.114119136Z"} {"log":"W0724 06:16:41.634593 1 genericapiserver.go:325] Skipping API autoscaling/v2alpha1 because it has no resources.\n","stream":"stderr","time":"2017-07-24T06:16:41.6353909Z"} {"log":"W0724 06:16:41.637744 1 genericapiserver.go:325] Skipping API batch/v2alpha1 because it has no resources.\n","stream":"stderr","time":"2017-07-24T06:16:41.638173138Z"} {"log":"[restful] 2017/07/24 06:16:41 log.go:33: [restful/swagger] listing is available at https://192.168.56.103:6443/swaggerapi\n","stream":"stderr","time":"2017-07-24T06:16:41.785409448Z"} {"log":"[restful] 2017/07/24 06:16:41 log.go:33: [restful/swagger] https://192.168.56.103:6443/swaggerui/ is mapped to folder /swagger-ui/\n","stream":"stderr","time":"2017-07-24T06:16:41.785463193Z"} {"log":"I0724 06:16:51.367889 1 serve.go:85] Serving securely on 0.0.0.0:6443\n","stream":"stderr","time":"2017-07-24T06:16:51.368222995Z"} {"log":"I0724 06:16:51.368164 1 available_controller.go:201] Starting AvailableConditionController\n","stream":"stderr","time":"2017-07-24T06:16:51.368350158Z"} {"log":"I0724 06:16:51.368213 1 cache.go:32] Waiting for caches to sync for AvailableConditionController controller\n","stream":"stderr","time":"2017-07-24T06:16:51.368364395Z"} {"log":"I0724 06:16:51.368384 1 crd_finalizer.go:248] Starting CRDFinalizer\n","stream":"stderr","time":"2017-07-24T06:16:51.369088809Z"} {"log":"I0724 06:16:51.369588 1 tprregistration_controller.go:144] Starting tpr-autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.370088089Z"} {"log":"I0724 06:16:51.369721 1 controller_utils.go:994] Waiting for caches to sync for tpr-autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.370115324Z"} {"log":"I0724 06:16:51.370155 1 customresource_discovery_controller.go:152] Starting DiscoveryController\n","stream":"stderr","time":"2017-07-24T06:16:51.370561014Z"} {"log":"I0724 06:16:51.370230 1 naming_controller.go:284] Starting NamingConditionController\n","stream":"stderr","time":"2017-07-24T06:16:51.370586112Z"} {"log":"I0724 06:16:51.370320 1 apiservice_controller.go:113] Starting APIServiceRegistrationController\n","stream":"stderr","time":"2017-07-24T06:16:51.370594466Z"} {"log":"I0724 06:16:51.370639 1 cache.go:32] Waiting for caches to sync for APIServiceRegistrationController controller\n","stream":"stderr","time":"2017-07-24T06:16:51.371087986Z"} {"log":"I0724 06:16:51.372796 1 autoregister_controller.go:120] Starting autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.37304028Z"} {"log":"I0724 06:16:51.372836 1 cache.go:32] Waiting for caches to sync for autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.373595872Z"} {"log":"I0724 06:16:51.568629 1 cache.go:39] Caches are synced for AvailableConditionController controller\n","stream":"stderr","time":"2017-07-24T06:16:51.575237598Z"} {"log":"I0724 06:16:51.571003 1 cache.go:39] Caches are synced for APIServiceRegistrationController controller\n","stream":"stderr","time":"2017-07-24T06:16:51.57528208Z"} {"log":"I0724 06:16:51.597608 1 cache.go:39] Caches are synced for autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.636642159Z"} {"log":"I0724 06:16:51.688727 1 controller_utils.go:1001] Caches are synced for tpr-autoregister controller\n","stream":"stderr","time":"2017-07-24T06:16:51.689107462Z"} {"log":"I0724 06:16:56.376061 1 trace.go:61] Trace \"Create /api/v1/namespaces\" (started 2017-07-24 06:16:52.371126531 +0000 UTC):\n","stream":"stderr","time":"2017-07-24T06:16:56.406165735Z"} {"log":"[67.176µs] [67.176µs] About to convert to expected version\n","stream":"stderr","time":"2017-07-24T06:16:56.406201261Z"} {"log":"[96.984µs] [29.808µs] Conversion done\n","stream":"stderr","time":"2017-07-24T06:16:56.406207801Z"} {"log":"[4.002107721s] [4.002010737s] About to store object in database\n","stream":"stderr","time":"2017-07-24T06:16:56.406212116Z"} {"log":"\"Create /api/v1/namespaces\" [4.00489177s] [2.784049ms] END\n","stream":"stderr","time":"2017-07-24T06:16:56.406228934Z"}

pgnaleen commented 7 years ago

further i found that problem caused by following line to api-server start.

please tell me if anything wrong with this. after api-server starts kube controller and scheduler trying to start then they go to crashbackloop state then api-server restarting. when i removed above line it is working perfegctly.

zacharysarah commented 7 years ago

@pgnaleen :wave: This issue sounds more like a request for support and less like an issue specifically for docs. I encourage you to bring your question to the #kubernetes-users channel in Kubernetes slack. You can also search resources like Stack Overflow for answers to similar questions.