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

Che Deployment on GCP - Debugging Failing to Run #16805

Closed
1 of 3 tasks
Les-Linux opened this issue Apr 29, 2020 · 18 comments
Closed
1 of 3 tasks

Che Deployment on GCP - Debugging Failing to Run #16805

Les-Linux opened this issue Apr 29, 2020 · 18 comments
Labels
area/languages Issues related to Language extensions or plugins integration. 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

@Les-Linux
Copy link

Describe the bug

Debugging Java Gradle deployed from the stack (Java Stack with OpenJDK 11 and Gradle 6.2.1) fails.

The Java Debug Console opens but then the following exception is thrown:
Failed to launch debuggee in terminal. Reason: com.sun.jdi.connect.TransportTimeoutException

The deployment in GCP is a vanilla instance, which I only completed configuring this morning.

Che version

Che-Theia@181d383 using Theia@9bc52ad1 v7.12
Built 4/23/2020, 4:58:50 PM

Steps to reproduce

  1. Deploy Java Gradle from Stack
  2. Set a Break-Point
  3. F5 for Debugging
  4. Wait on Language Support for Java 11 to Activate
  5. Check Notifications

Expected behavior

To reach breakpoint

Runtime

Cube Cluster 1.15.11-gke.9

Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.9", GitCommit:"2e808b7cb054ee242b68e62455323aa783991f03", GitTreeState:"clean", BuildDate:"2020-01-18T23:33:14Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-gke.9", GitCommit:"e1af17fd873e15a48769e2c7b9851405f89e3d0d", GitTreeState:"clean", BuildDate:"2020-04-06T20:56:54Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}

Screenshots

Installation method

  • chectl/7.12.0 linux-x64 node-v10.20.1 (operator)

Environment

  • my computer
    • macOS
  • Cloud
    • [ X] GCE

1588176702505.tar.gz

@Les-Linux Les-Linux added the kind/bug Outline of a bug - must adhere to the bug report template. label Apr 29, 2020
@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 Apr 29, 2020
@Les-Linux
Copy link
Author

I have noticed that if I add "console":"internalConsole" to the launch.json file, a 'Debug Console' window will open and the breakpoint is hit. If I omit the entry from the launch.json file, a '>_Java Debug Console ' window is opened and the error is thrown. The launch.json file was empty by the way, on creation of the project.
Screenshot 2020-04-30 at 09 30 26

@svor
Copy link
Contributor

svor commented Apr 30, 2020

@Les-Linux looks like the problem because Java language server wasn't completely initialized when you start your debug session.
If we start the workspace, open some java file and wait when Java language server will be activated, then by clicking F5 debug configuration should be auto generated and another click F5 will run the debugger.

@Les-Linux
Copy link
Author

I tried that too but the outcome was the same. Even with the Java language server activated, without the entry in the launch.json file it would fail. In the screen shot you see two different types of consoles opening, the first with the launch.json configuration attribute included, the second if it is removed from the launch.json file. Should the terminals not be identical if the java language server is active?

Thanks very much for your feedback.

Les

@svor
Copy link
Contributor

svor commented Apr 30, 2020

I can't reproduce it on my local Minishift deployment. Could you please provide a log from
View-->Output-->Extension Host (vscode-java) log
and it would be nice if you record the video with this problem

@Les-Linux
Copy link
Author

sure, let me see what I can do.

@Les-Linux
Copy link
Author

Extension Host Output
Screenshot 2020-04-30 at 10 53 23

@Les-Linux
Copy link
Author

Recording Available Here

@svor
Copy link
Contributor

svor commented Apr 30, 2020

And another log:
View --> Find Command (F1) --> Java: Open Java language server log file

@Les-Linux
Copy link
Author

Language Support for Java Log
Screenshot 2020-04-30 at 12 07 46

@Les-Linux
Copy link
Author

When I selected Java: Open Java language server log file 'No log file available' was initially thrown, just as an FYI.

@svor
Copy link
Contributor

svor commented Apr 30, 2020

When I selected Java: Open Java language server log file 'No log file available' was initially thrown, just as an FYI.

hmm..and i don't see Run | Debug labels in HelloWorld.java in your video
screenshot-che-che 192 168 99 133 nip io-2020 04 30-14_24_52

Looks like Java language server wasn't fully initialized.
Could you please start another Java Gradle workspace, open HelloWorld.java and wait when Java LS will be activated after that execute Java: Open Java language server log file command

@svor
Copy link
Contributor

svor commented Apr 30, 2020

I can reproduce it on GCP.
Probably it could be related to this platform. Also there was a similar issue in vscode-java-debug, as a workaround you can try microsoft/vscode-java-debug#637 (comment)

@Les-Linux
Copy link
Author

I have been looking at this all day, without becoming any wiser :). Changing the terminal to internalConsole get's you around the breakpoint matter, however if you want to read from stdin, then this will not be possible with the internalConsole.

@Les-Linux
Copy link
Author

I dropped over to codeenvy to see if the issue was reproducible outside of my GCP environment. I even want as far as to tether with my phone to eliminate my network as a problem. I deployed the gradle java stack and tried to debug, receiving the same error.

@Les-Linux
Copy link
Author

Screenshot from 2020-05-02 09-37-23
Uploading Screenshot from 2020-05-02 09-37-01.png…

@sleshchenko sleshchenko added area/plugins severity/P1 Has a major impact to usage or development of the system. area/languages Issues related to Language extensions or plugins integration. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. area/plugins labels May 4, 2020
@Les-Linux
Copy link
Author

I decided to install vscode on my Mac just to see if there are any issues with the debugger and reading from stdin. Everything works as expected with the mac native app and I can debug and input text as expected.

@svor
Copy link
Contributor

svor commented May 12, 2020

Can see this problem on che.openshift.io (in both cases: Ephemeral/not Ephemeral mode). Also there are logs from the browser console:

theia.579ea14b81530b612778.js:1 Uncaught (in promise) Error: Request 'getProcessInfo' failed
    at Proxy.<anonymous> (theia.579ea14b81530b612778.js:1)
    at n.get [as processInfo] (theia.579ea14b81530b612778.js:1)
    at n.<anonymous> (theia.579ea14b81530b612778.js:1)
    at theia.579ea14b81530b612778.js:1
    at Object.next (theia.579ea14b81530b612778.js:1)
    at theia.579ea14b81530b612778.js:1
    at new Promise (<anonymous>)
    at s (theia.579ea14b81530b612778.js:1)
    at n.t.executeCommand (theia.579ea14b81530b612778.js:1)
    at t.<anonymous> (theia.579ea14b81530b612778.js:1)

@svor
Copy link
Contributor

svor commented May 13, 2020

logs form theia-ide container


2020-05-13 07:29:31.992 root ERROR Request getProcessInfo failed with error: terminal "1" does not exist Params: Error: terminal "1" does not exist
--
  | at ShellTerminalServer.<anonymous> (/home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:118:27)
  | at step (/home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:59:23)
  | at Object.next (/home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:40:53)
  | at /home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:34:71
  | at new Promise (<anonymous>)
  | at __awaiter (/home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:30:12)
  | at ShellTerminalServer.BaseTerminalServer.getProcessInfo (/home/theia/node_modules/@theia/terminal/lib/node/base-terminal-server.js:113:16)
  | at JsonRpcProxyFactory.<anonymous> (/home/theia/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:218:73)
  | at step (/home/theia/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:47:23)
  | at Object.next (/home/theia/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:28:53)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/languages Issues related to Language extensions or plugins integration. 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

4 participants