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

chectl operator installer failed to deploy to Minikube #19807

Closed
19 tasks
fredcsfaria opened this issue May 16, 2021 · 11 comments
Closed
19 tasks

chectl operator installer failed to deploy to Minikube #19807

fredcsfaria opened this issue May 16, 2021 · 11 comments
Assignees
Labels
area/chectl Issues related to chectl, the CLI of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.

Comments

@fredcsfaria
Copy link

Describe the bug

Che server:deploy fails to deploy on Minikube

Current Kubernetes context: 'minikube'
V Verify Kubernetes API...OK
V ?? Looking for an already existing Eclipse Che instance
V Verify if Eclipse Che is deployed into namespace "eclipse-cheop"...it is not
?? Minikube preflight checklist
V Verify if kubectl is installed
V Verify if minikube is installed
V Verify if minikube is running
↓ Start minikube [skipped]
→ Minikube is already running.
V Check Kubernetes version: Found v1.20.2.
× Verify if minikube ingress addon is enabled
→ Unexpected token E in JSON at position 0
Enable minikube ingress addon
Retrieving minikube IP and domain for ingress URLs
Checking minikube version
Check if cluster accessible
» Error: SyntaxError: Unexpected token E in JSON at position 0
» Command server:deploy failed.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

Expected behavior

The eclipse-che should be deployed on Minikube namespace.

Runtime

  • kubernetes (include output of kubectl version)
    - [ ] Openshift (include output of oc version)
  • [X ] minikube (include output of minikube version and kubectl version)

C:>minikube version
Enable colors error: Parâmetro incorreto.
minikube version: v1.20.0
commit: c61663e942ec43b20e8e70839dcca52e44cd85ae

C:> kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.1
6.1", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.1
5.5", Compiler:"gc", Platform:"linux/amd64"}

  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Current Kubernetes context: 'minikube'
V Verify Kubernetes API...OK
V ?? Looking for an already existing Eclipse Che instance
V Verify if Eclipse Che is deployed into namespace "eclipse-cheop"...it is not
?? Minikube preflight checklist
V Verify if kubectl is installed
V Verify if minikube is installed
V Verify if minikube is running
↓ Start minikube [skipped]
→ Minikube is already running.
V Check Kubernetes version: Found v1.20.2.
× Verify if minikube ingress addon is enabled
→ Unexpected token E in JSON at position 0
Enable minikube ingress addon
Retrieving minikube IP and domain for ingress URLs
Checking minikube version
Check if cluster accessible
» Error: SyntaxError: Unexpected token E in JSON at position 0
» Command server:deploy failed. Error log: C:\Users\fcharles\AppData\Local\chectl\error.log Eclipse Che logs: C:\Users\fcharles\AppData\Local\Temp\chectl-logs\1621176

Installation method

  • [X ] chectl

    • provide a full command that was used to deploy Eclipse Che (including the output)
      chectl server:deploy --installer operator -p minikube -n eclipse-cheop
    • provide an output of chectl version command
      >chectl version
      chectl/7.30.1 win32-x64 node-v12.22.1
  • OperatorHub

  • I don't know

Environment

  • my computer
    • [ X] Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • Dev Sandbox (workspaces.openshift.com)
  • other: please specify

Eclipse Che Logs

2021-05-16T14:56:22.202Z Error: SyntaxError: Unexpected token E in JSON at position 0
2021-05-16T14:56:22.202Z Command server:deploy failed. Error log: C:/Users/fcharles/AppData/Local/chectl/error.log Eclipse Che logs: C:/Users/fcharles/AppData/Local/Temp/chectl-logs/1621176978937
2021-05-16T14:56:22.202Z at Object.error (C:/Users/fcharles/AppData/Local/chectl/client/7.30.1/node_modules/@oclif/errors/lib/index.js:26:15)
2021-05-16T14:56:22.202Z at Deploy.error (C:/Users/fcharles/AppData/Local/chectl/client/7.30.1/node_modules/@oclif/command/lib/command.js:60:23)
2021-05-16T14:56:22.202Z at Deploy. (C:/Users/fcharles/AppData/Local/chectl/client/7.30.1/lib/commands/server/deploy.js:253:22)
2021-05-16T14:56:22.202Z at Generator.throw ()
2021-05-16T14:56:22.202Z at rejected (C:/Users/fcharles/AppData/Local/chectl/client/7.30.1/node_modules/tslib/tslib.js:115:69)

Additional context

@fredcsfaria fredcsfaria added the kind/bug Outline of a bug - must adhere to the bug report template. label May 16, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label May 16, 2021
@fredcsfaria
Copy link
Author

Steps to reproduce:

chectl server:deploy --installer operator -p minikube -n eclipse-cheop

@flacatus
Copy link
Contributor

Hi @fredcsfaria !
I'm not able to reproduce your issue... I can deploy 7.30.1 normally in my local Windows 10.
I've installed minikube 1.20.0 using hyperv driver.

image

@flacatus flacatus self-assigned this May 17, 2021
@ericwill ericwill added area/chectl Issues related to chectl, the CLI of Che severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels May 17, 2021
@fredcsfaria
Copy link
Author

Hello @flacatus

I am using the stack Minikube, Windows 7 and Virtual Box. I had already Che running before in that configuration using early releases of Minikube/Kubectl.

image

@flacatus
Copy link
Contributor

flacatus commented May 17, 2021

@fredcsfaria Can you try to run first minikube addons enable ingress and then install che, please?

@fredcsfaria
Copy link
Author

@flacatus Sure.

image

@flacatus
Copy link
Contributor

Do you have powershell in W7? Can u try running as administrator?

@fredcsfaria
Copy link
Author

Sure. Power Shell as admin:

image

@tolusha
Copy link
Contributor

tolusha commented May 18, 2021

@flacatus
did you use the same v1.20.0 minikube version ?

@fredcsfaria
What does this print? Accordingly to source code it fails on parsing the following output.
minikube addons list -o json

@fredcsfaria
Copy link
Author

@tolusha
would the issue to be due to the message "Enable colors error" in the first line of output ? I dont know this parameter.
ps:Sorry, i had closed the issue by mistake

image

@fredcsfaria fredcsfaria reopened this May 18, 2021
@tolusha
Copy link
Contributor

tolusha commented May 19, 2021

@fredcsfaria
yes, I guess that's the reason.

@flacatus
Are you aware how to configure a terminal to avoid such a message ?

@tolusha
Copy link
Contributor

tolusha commented Jun 7, 2021

I close this issue since it is not related to chectl it self.

@tolusha tolusha closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chectl Issues related to chectl, the CLI of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants