I am attempting to run chectl server:stop to shutdown my server safely. When I do so, I am presented with an error:
chectl server:stop
โบ Current Kubernetes context: 'docker-desktop'
โ Verify Kubernetes API...OK
โ Verify if Eclipse Che is deployed into namespace "che"
โ Found running Eclipse Che deployment
โ Found running postgres deployment
โ Found running keycloak deployment
โ Found running plugin registry deployment
โ Found running devfile registry deployment
โ Check Eclipse Che server status...RUNNING (auth enabled)
ร Stop Eclipse Che server and wait until it's ready to shutdown
โ E_SHUTDOWN_CHE_SERVER_FAIL - Failed to shutdown Eclipse Che server. Login context is not set. Please login first.
Scale "che" deployment to zero
Scale "keycloak" deployment to zero
Scale "postgres" deployment to zero
Scale "devfile registry" deployment to zero
Scale "plugin registry" deployment to zero
Wait until Eclipse Che pod is deleted
Wait until Keycloak pod is deleted
Wait until Postgres pod is deleted
Wait until Devfile registry pod is deleted
Wait until Plugin registry pod is deleted
ยป Error: E_SHUTDOWN_CHE_SERVER_FAIL - Failed to shutdown Eclipse Che server. Login context is not set. Please login
ยป first.
So I attempted to run chectl auth:login and was presetnted with another error:
chectl auth:login
โบ Current Kubernetes context: 'docker-desktop'
Using https://che-che.169.254.45.252.nip.io/api server API URL to log in
Error: Command failed with exit code 1: oc status
error: you do not have rights to view project "default" specified in your config or the project doesn't exist
I've looked through the documentation, and there isn't any way to create a default project or give me rights to it.
chectl server:deploy --platform=docker-desktopchectl server:stopchectl auth:login
I expected the server to shutdown, or to properly login to be able to shutdown the server.
kubectl version)oc version)minikube version and kubectl version)minishift version and oc version)docker version and kubectl version)docker version
Client: Docker Engine - Community
Cloud integration: 1.0.2
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:00:27 2020
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.12)
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:07:04 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:41:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
md5-99e49a97fb33e38a2b6b0086561ea553
chectl server:deploy --platform=docker-desktop
โบ Current Kubernetes context: 'docker-desktop'
โบ Installer type is set to: 'operator'
โ Verify Kubernetes API...OK
โ ๏ฟฝ Looking for an already existing Eclipse Che instance
โ Verify if Eclipse Che is deployed into namespace "che"...it is not
โ โ๏ธ Docker Desktop preflight checklist
โ Verify if kubectl is installed
โ Verify if kubectl context is Docker Desktop: Found docker-desktop.
โ Verify remote kubernetes status...done.
โ Check Kubernetes version: Found v1.19.3.
โ Verify if nginx ingress is installed
โ Installing nginx ingress
โ Verify domain is set... auto-assigning domain to 169.254.45.252.nip.io....set to 169.254.45.252.nip.io.
โ Start following logs
โ Start following Operator logs...done
โ Start following Eclipse Che logs...done
โ Start following Postgres logs...done
โ Start following Keycloak logs...done
โ Start following Plugin registry logs...done
โ Start following Devfile registry logs...done
โ Start following events
โ Start following namespace events...done
โ ๏ฟฝโ Running the Eclipse Che operator
โ Copying operator resources...done.
โ Create Namespace (che)...Done.
โ Create ServiceAccount che-operator in namespace che...done.
โ Create Role che-operator in namespace che...done.
โ Create ClusterRole che-che-operator...done.
โ Create RoleBinding che-operator in namespace che...done.
โ Create ClusterRoleBinding che-che-operator...done.
โ Create CRD checlusters.org.eclipse.che...done.
โ Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
โ Create deployment che-operator in namespace che...done.
โ Operator pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Prepare Eclipse Che cluster CR...Done.
โ Create the Custom Resource of type checlusters.org.eclipse.che in the namespace che...done.
โ โ
Post installation checklist
โ PostgreSQL pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Keycloak pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Devfile registry pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Plugin registry pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Eclipse Che pod bootstrap
โ Scheduling...done
โ Downloading images...done
โ Starting...done
โ Eclipse Che status check
โ Retrieving Keycloak admin credentials...done
โ Retrieving Che self-signed CA certificate... done
โ Prepare post installation output...done
โ Show important messages
โ Eclipse Che 7.22.0-SNAPSHOT has been successfully deployed.
โ Documentation : https://www.eclipse.org/che/docs/
โ -------------------------------------------------------------------------------
โ Users Dashboard : https://che-che.169.254.45.252.nip.io
โ -------------------------------------------------------------------------------
โ Plug-in Registry : https://plugin-registry-che.169.254.45.252.nip.io/v3
โ Devfile Registry : https://devfile-registry-che.169.254.45.252.nip.io
โ -------------------------------------------------------------------------------
โ Identity Provider URL : https://keycloak-che.169.254.45.252.nip.io/auth
โ Identity Provider login : "admin:ehfNVt7cV2Bf".
โ -------------------------------------------------------------------------------
โ [ACTION REQUIRED] Please add Che self-signed CA certificate into your browser: C:\Users\samti\AppData\Local\Temp\
cheCA.crt.
Documentation how to add a CA certificate into a browser: https://www.eclipse.org/che/docs/che-7/overview/importing-
certificates-to-browsers/
Command server:deploy has completed successfully in 05:42.
md5-c1d0a178d575991b9fb1cacf088f32ca
chectl version
chectl/0.0.20201110-next.4213cef win32-x64 node-v10.23.0
I am using Windows 10 home, and as all of the other methods I've tried to deploy the server require Hyper-V, Docker is my only option.
@theMcQ
auth:login command should ask for user/password instead of failing.
Will be fixed by this https://github.com/che-incubator/chectl/pull/988
Meanwhile try in the following way:
chectl auth:login -u <user> -p <password>
Not sure why I got tagged on this. I'm PMC lead for the Eclipse Project and a committer on Orion, but I haven't done more than "try it" with Che.
Using chectl auth:login -u <user> -p <password> worked, and I was able to shutdown safely. I'll leave this open until che-incubator/chectl#988 is merged, as the original use of chectl auth:login is still broken.
PR is merged.
Most helpful comment
PR is merged.