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

Errors when a workspace starts up with several remote plugins #12762

Closed
4 tasks
tolusha opened this issue Feb 26, 2019 · 9 comments
Closed
4 tasks

Errors when a workspace starts up with several remote plugins #12762

tolusha opened this issue Feb 26, 2019 · 9 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@tolusha
Copy link
Contributor

tolusha commented Feb 26, 2019

Description

Errors when a workspace starts up with several remote plugins

Reproduction Steps

When I try to start a workspace with several remote plugins (java, go, ts, xml, yaml, node debug) I can observer several error (listed below).

OS and version:
Minikube start command:
minikube start --cpus 4 --memory 10240 --docker-opt userland-proxy=false --extra-config=apiserver.authorization-mode=RBAC
minikube version: v0.28.2

Diagnostics:

  • all plugins have been successfully processed
    stream error: stream ID 1; HTTP_1_1_REQUIRED
    Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: stream error: stream ID 1; HTTP_1_1_REQUIRED"

  • Starting VS Code extensions processing
    zip: not a valid zip file
    Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: zip: not a valid zip file

  • write /tmp/vscode-extension-broker817819086/plugin/extension/server/org.eclipse.lsp4xml-uber.jar: cannot allocate memory
    Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: write /tmp/vscode-extension-broker817819086/plugin/extension/server/org.eclipse.lsp4xml-uber.jar: cannot allocate memory"

  • Plugin installation timeout

@tolusha tolusha added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 26, 2019
@garagatyi
Copy link

Can you provide workspace configuration to reproduce the issue?

@tolusha
Copy link
Contributor Author

tolusha commented Feb 27, 2019

{
  "defaultEnv": "default",
  "environments": {
    "default": {
      "machines": {
        "ws/dev": {
          "attributes": {
            "memoryLimitBytes": "536870912"
          },
          "servers": {},
          "volumes": {
            "projects": {
              "path": "/projects"
            }
          },
          "installers": [],
          "env": {}
        }
      },
      "recipe": {
        "type": "kubernetes",
        "content": "kind: List\nitems:\n - \n  apiVersion: v1\n  kind: Pod\n  metadata:\n   name: ws\n  spec:\n   containers:\n    - \n     image: 'eclipse/che-dev:6.18.1'\n     name: dev\n     resources:\n      limits:\n       memory: 512Mi\n",
        "contentType": "application/x-yaml"
      }
    }
  },
  "projects": [],
  "name": "wksp-nbt1",
  "attributes": {
    "editor": "org.eclipse.che.editor.theia:1.0.0",
    "plugins": "che-machine-exec-plugin:0.0.1,ms-vscode.node-debug2:1.31.6,ms-vscode.node-debug:1.32.1,ms-vscode.typescript:1.30.2,redhat.vscode-xml:0.3.0,redhat.vscode-yaml:0.3.0"
  },
  "commands": [],
  "links": []
}

@tolusha
Copy link
Contributor Author

tolusha commented Feb 27, 2019

it is also necessary to deploy plugin registry with all latest plugins
https://github.com/eclipse/che-plugin-registry/tree/master/plugins

@garagatyi
Copy link

@l0rd @ibuziuk Should OSIO-Che team include this issue into the upcoming sprint? Seems to be important and can block languages team

@l0rd
Copy link
Contributor

l0rd commented Feb 27, 2019

Yes it looks critical

@garagatyi
Copy link

I reproduced this case:

* Starting VS Code extensions processing
  zip: not a valid zip file
  Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: zip: not a valid zip file

it is related to blocking brokers because of API rate limit on marketplace side.
Wasn't able to reproduce next cases:

* all plugins have been successfully processed
  stream error: stream ID 1; HTTP_1_1_REQUIRED
  Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: stream error: stream ID 1; HTTP_1_1_REQUIRED"

* write /tmp/vscode-extension-broker817819086/plugin/extension/server/org.eclipse.lsp4xml-uber.jar: cannot allocate memory
  Error: Failed to run the workspace: "Plugins installation process failed. Error: Plugin broking process for workspace workspaceozixry8v80yfou5l failed with error: write /tmp/vscode-extension-broker817819086/plugin/extension/server/org.eclipse.lsp4xml-uber.jar: cannot allocate memory"

@tolusha how often do you see these cases? Any ideas how to reproduce them?

@tolusha
Copy link
Contributor Author

tolusha commented Feb 28, 2019

Unfortunately I wan't able to reproduce other errors. I always faced zip: not a valid zip file issue. I guess once it is fixed and a new plugin broker is released I will try one more time.

@garagatyi
Copy link

@tolusha zip: not a valid zip file issue should be tackled now - broker will retry to download extension or show pretty error message about rate limiting. Apart from that, it is possible that workspace start would timeout when retries and regular extensions downloads take too much time.

@garagatyi
Copy link

Closing this issue since reproduced case is fixed. Feel free to reopen if other cases are reproduced

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.
Projects
None yet
Development

No branches or pull requests

3 participants