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

Error when starting workspace, created from devfile #13040

Closed
evidolob opened this issue Apr 2, 2019 · 0 comments
Closed

Error when starting workspace, created from devfile #13040

evidolob opened this issue Apr 2, 2019 · 0 comments
Assignees
Labels
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

@evidolob
Copy link
Contributor

evidolob commented Apr 2, 2019

Description

Got error:

Error: Failed to run the workspace: "Failure executing: POST at: https://10.96.0.1/apis/extensions/v1beta1/namespaces/che/ingresses. Message: Ingress.extensions "ingressu8jd0bx7" is invalid: metadata.labels: 
Invalid value: "serveri23ah6hp-theia-endpoint-runtime-che-machine-exec-server-4444": must be no more than 63 characters.
 Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.labels, message=Invalid value: "serveri23ah6hp-theia-endpoint-runtime-che-machine-exec-server-4444": 
must be no more than 63 characters, reason=FieldValueInvalid, additionalProperties={})], group=extensions, kind=Ingress, name=ingressu8jd0bx7, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Ingress.extensions "ingressu8jd0bx7" is invalid: metadata.labels: 
Invalid value: "serveri23ah6hp-theia-endpoint-runtime-che-machine-exec-server-4444": 
must be no more than 63 characters, metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={})."

Reproduction Steps

  1. Create workspace from devfile, using chectl
specVersion: 0.0.1
name: cheTheia-in-che-remote
projects:
  - name: che-theia-samples
    source:
      type: git
      location: 'https://github.com/eclipse/che-theia-samples.git'
  - name: theia
    source:
      type: git
      location: 'https://github.com/theia-ide/theia.git'
components:
  - name: theia-editor
    type: cheEditor
    id: org.eclipse.che.editor.theia:next
  - name: exec-plugin
    type: chePlugin
    id: che-machine-exec-plugin:0.0.1
  - name: theia-endpoint-runtime
    type: dockerimage
    image: eclipse/che-theia-endpoint-runtime:next
    endpoints:
      - name: theia-remote-end
        port: 10000
        attributes:
          protocol: ws
          public: 'true'
    memoryLimit: 1Gi
    mountSources: true
 # - name: git
 #   type: dockerimage
 #   image: sunix/git-devtools
 #   mountSources: true
 #   memoryLimit: 256M
  - name: che-dev
    type: chePlugin
    id: org.eclipse.che.theia.dev:0.0.1
commands:
  - name: init ... che-theia
    actions:
      - type: exec
        component: che-dev
        command: >
                 cd /projects/theia/ &&
                 che:theia init --dev
        workdir: /projects/theia
  - name: clean ... che-theia
    actions:
      - type: exec
        component: che-dev
        command: >
                 cd /projects/theia/ &&
                 che:theia clean
        workdir: /projects/theia
  - name: build ... che-theia
    actions:
      - type: exec
        component: che-dev
        command: >
                 killall node || true &&
                 cd /projects/theia/ &&
                 yarn
        workdir: /projects/theia
  - name: build ... hello-world-backend-plugin
    actions:
      - type: exec
        component: che-dev
        command: >
                 killall node || true &&
                 cd /projects/che-theia-samples/samples/hello-world-backend-plugin &&
                 yarn
        workdir: /projects/che-theia-samples/samples/
  - name: run ... remote theia endpoint
    actions:
      - type: exec
        component: theia-endpoint-runtime
        command: >
                 killall node || true &&
                 echo export THEIA_PLUGIN_REMOTE_ENDPOINT_helloworld='ws://${HOSTNAME}:10000' > /projects/endpoint.env &&
                 export THEIA_PLUGINS='local-dir:///projects/che-theia-samples/samples/hello-world-backend-plugin' &&
                 export THEIA_PLUGIN_ENDPOINT_PORT='10000' &&
                 node /home/theia/lib/node/plugin-remote.js
        workdir: /home/theia/
  - name: run ... che-theia
    actions:
      - type: exec
        component: che-dev
        command: >
                 killall node || true &&
                 mkdir -p /projects/theiadev_projects &&
                 export CHE_PROJECTS_ROOT=/projects/theiadev_projects &&
                 . /projects/endpoint.env &&
                 cd /projects/theia/examples/assembly &&
                 export GIT_EXEC_PATH=/usr/libexec/git-core && export USE_LOCAL_GIT=true && export LOCAL_GIT_DIRECTORY=/usr &&
                 yarn start /projects/theiadev_projects --hostname=0.0.0.0 --port=3010
        workdir: /projects/che-theia

  
  1. Open workspace, on workspace loader you will see error:
    Screen Shot 2019-04-02 at 10 15 03

Diagnostics:
Che master server has error log:

2019-04-02 07:14:24,228[aceSharedPool-0]  [WARN ] [.i.k.KubernetesInternalRuntime 245]  - Failed to start Kubernetes runtime of workspace workspacekkdhufqrba9weqwr. Cause: Failure executing: POST at: https://10.96.0.1/apis/extensions/v1beta1/namespaces/che/ingresses. Message: Ingress.extensions "ingressxab2vcva" is invalid: metadata.labels: Invalid value: "serverz8rxxvtk-theia-endpoint-runtime-che-machine-exec-server-4444": must be no more than 63 characters. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.labels, message=Invalid value: "serverz8rxxvtk-theia-endpoint-runtime-che-machine-exec-server-4444": must be no more than 63 characters, reason=FieldValueInvalid, additionalProperties={})], group=extensions, kind=Ingress, name=ingressxab2vcva, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Ingress.extensions "ingressxab2vcva" is invalid: metadata.labels: Invalid value: "serverz8rxxvtk-theia-endpoint-runtime-che-machine-exec-server-4444": must be no more than 63 characters, metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
2019-04-02 07:14:24,435[aceSharedPool-0]  [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 803]   - Workspace 'che:cheTheia-in-che-remote_1' with id 'workspacekkdhufqrba9weqwr' start failed
@evidolob evidolob added the kind/bug Outline of a bug - must adhere to the bug report template. label Apr 2, 2019
@skabashnyuk skabashnyuk added team/platform severity/P1 Has a major impact to usage or development of the system. labels Apr 2, 2019
@metlos metlos self-assigned this Apr 10, 2019
@l0rd l0rd mentioned this issue Apr 11, 2019
@metlos metlos closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants