Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

running a task/che-commands is showing error: Request {taskname} failed with error: Information not found #155

Closed
sunix opened this issue Apr 3, 2019 · 7 comments
Assignees

Comments

@sunix
Copy link
Contributor

sunix commented Apr 3, 2019

Description

When trying to run a che-command, Request {taskname} failed with error: Information not found message is display and the command is not executed

Reproduction Steps

Run this devfile:

specVersion: 0.0.1
name: sunix-devfiles
projects:
  - name: devfiles
    source:
      type: git
      location: 'https://github.com/sunix/devfiles.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: git
    type: dockerimage
    image: sunix/git-devtools
    mountSources: true
    memoryLimit: 256M
  - name: theia-endpoint-runtime
    type: dockerimage
    image: eclipse/che-theia-endpoint-runtime:nightly
    endpoints:
      - name: theia-remote-endpoint
        port: 10000
        attributes:
          protocol: ws
          public: 'true'
    memoryLimit: 512M
    mountSources: true
  - name: vscode-yaml
    type: chePlugin
    id: redhat.vscode-yaml:0.3.0
commands:
  - name: run
    actions:
      - type: exec
        component: git
        command: pwd

run the command run it is supposed to execute the command pwd but it is not and showing in a dialog box: Error launching task 'run': Request run failed with message: Information not found

and in theia ide logs:

root ERROR Request run failed with error: Information not found Error: Information not found
    at CheTask.<anonymous> (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/lib/node/che-task-service.js:216:35)
    at step (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/lib/node/che-task-service.js:54:23)
    at Object.next (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/lib/node/che-task-service.js:35:53)
    at fulfilled (/home/theia/node_modules/@eclipse-che/theia-plugin-ext/lib/node/che-task-service.js:26:58)
    at <anonymous>
task ERROR Error launching task 'init ... che-theia': Request run failed with message: Information not found

OS and version:
Minikube - che7 started with chectl

@sunix sunix added the kind/bug Something isn't working label Apr 3, 2019
@tolusha
Copy link
Contributor

tolusha commented Apr 4, 2019

It is impossible to test new stacks with plugins ^(
eclipse-che/che#12944

@tsmaeder
Copy link
Contributor

tsmaeder commented Apr 5, 2019

@tolusha could you explain why this prevents testing?

@tolusha
Copy link
Contributor

tolusha commented Apr 5, 2019

It doesn't prevent testing anymore. I've found workaround by testing commands without plugins.

@tolusha
Copy link
Contributor

tolusha commented Apr 5, 2019

It is possible to test commands with python stack which doesn't use sidecars.

@vparfonov vparfonov added the status/in-progress Indicates the issue is taken in progress by assignee label Apr 9, 2019
@RomanNikitenko
Copy link
Member

The bug is reproduced when we have at least one active remote plugin, so I tested it with typescript plugin.
We create one RPC per host, so at least one rpc for typescript plugin and one for 'main' host. Next we initialize CheApiProvider - so in my case - twice - for each rpc - as result I get two proxy.

root INFO onMessage {"pluginID":"vscode_typescript_language_features","content":["{"type":1,"id":"20","proxyId":"CheTask","method":"$getTaskInfo" ,"args":[0]}"]}

As I can see from logs, requests for runtime info of a task are redirected on remote plugin side (typescript plugin in my case).

I'm not sure about current behavior - is it OK that remote plugin creates own proxy for this case and tries to handle all requests?
If so, I'll provide PR which will handle case when we have a few proxy and should analyze responses from them.
@benoitf could you take a look

@slemeur
Copy link

slemeur commented Apr 15, 2019

Who is handling this issue?

@RomanNikitenko
Copy link
Member

@slemeur I'm testing some fix for @eclipse-che/theia-plugin-ext side and going to provide the PR.
But it would be great to get answer on question above - may be the problem is deeper and we can have another potential issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants