-
Notifications
You must be signed in to change notification settings - Fork 93
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
Debug Service 2.0 does not start #2144
Comments
Hi , thanks for your feedback . Here is the content of the output : .: echo "This should be the only text!" .: echo $HOME && cd && test -w $HOME /home/VSCODE: /QOpenSys/usr/bin/qsh /home/VSCODE: /QOpenSys/usr/bin/qsh /home/VSCODE: [ -d "/tmp" ] /home/VSCODE: echo $SHELL /home/VSCODE: rm -rf /tmp/code4itempO_CKP3mEgk0KY7j5o1znvs && mkdir -p /tmp/code4itempO_CKP3mEgk0KY7j5o1znvs /: /QOpenSys/usr/bin/qsh /home/VSCODE: rm -rf /tmp/code4itempO_CKP3mEgk0KY7j5o1znvs /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: rm -rf "/tmp/vscodetemp-O_0MVyQU46" { /: /QOpenSys/usr/bin/qsh /home/VSCODE: rm -rf /tmp/code4itempO_HmG25YYQIXqlanXSgnMm /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: test -r /QIBM/ProdData/IBMiDebugService/package.json { { /home/VSCODE: test -r /QIBM/ProdData/IBMiDebugService/package.json { /home/VSCODE: rm -rf "/tmp/vscodetemp-O_83LT6jT2" { { /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" { { { /home/VSCODE: rm -rf "/tmp/vscodetemp-O_BKoTDpQq" { { /home/VSCODE: test -f /QIBM/UserData/IBMiDebugService/certs/debug_service.crt /home/VSCODE: rm -rf "/tmp/vscodetemp-O_N2vXrEdn" { /home/VSCODE: echo $SHELL /home/VSCODE: test -f /QIBM/UserData/IBMiDebugService/.code4i.debug { { /home/VSCODE: test -f /QIBM/ProdData/IBMiDebugService/bin/certs/debug_service.pfx /home/VSCODE: rm -rf "/tmp/vscodetemp-O_k0Dh6aBD" { /home/VSCODE: rm -rf "/tmp/vscodetemp-O_e6dpYEil" /home/VSCODE: test -f /QIBM/UserData/IBMiDebugService/certs/debug_service.pfx /home/VSCODE: test -f /QIBM/UserData/IBMiDebugService/certs/debug_service.crt /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: rm -rf "/tmp/vscodetemp-O_KLflRifW" { /home/VSCODE: rm -rf "/tmp/vscodetemp-O_rSUqtXqk" /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: rm -rf "/tmp/vscodetemp-O_tMuRPZkP" /QIBM/UserData/IBMiDebugService: /QOpenSys/usr/bin/qsh /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: rm -rf "/tmp/vscodetemp-O_iGxlNXlT" /home/VSCODE: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')" /home/VSCODE: rm -rf "/tmp/vscodetemp-O_FnkfVTca" { /home/VSCODE: rm -rf "/tmp/vscodetemp-O_pRy58qIz" { |
@DamianoBonato I think I had the same issue recently.
This should give more information about what went wrong. |
Ciao Sebastien , here the spool file :
File . . . . . : QPRINT Pagina/Riga 1/6 It seems like a Java 11 problem. Java 11 is installed on the system IBM i. Maybe it’s an issue with some service configuration files. In which configuration file is the use of Java 11 set? I hope I have been clear. Sorry for my poor English. ChatGPT is helping me. Thank you very much, Sebastien. |
Ciao @DamianoBonato ! The main problem is you're using Java 11 from the open source repository (installed through yum). The Debug Service provided by IBM expects you to use Java 11 installed through licensed product 5770JV1 option 19: https://www.ibm.com/support/pages/download-installation-and-usage-java-11-ibm-i-os Your best bet is to install Java 11 this way and it will be fine. Alternatively, I'm trying to see if the Debug Service can actually run on Open Source Java 11. I can't guarantee it will. If you want to try it, you'll have to modify these scripts:
All these scripts have this line: You have to change it this way (remove You'll also have to update this file: /QIBM/ProdData/IBMiDebugService/bin/DebugService.env Look for the JAVA_HOME variable and change it to point to your current Java 11 folder. But at least you can give it a try! |
Thanks, Sebastien. I'll ask the system administrators to review the installation of JAVA 11 and then I'll update you. I'm currently on vacation. I'll see if I can also try the temporary solution. Ciao ! |
Prego! 😉 |
Hi Sebastien, my system administrator colleague confirms that he used the correct method to install Java according to the link you mentioned. Therefore, I deduce that the malfunction of the debug service is due to another reason. What do you think? Thanks again. Let me know if I need to perform any other checks on the IBM i systems. P.S. Sorry for my stubbornness, but I am trying to introduce the use of VSCode and fully free RPGLE in my company. |
No worries, that's commendable 😄 Now, I trust your sysadmin. But I also trust the spooled file output, and it prints the output from What to check now:
|
In my file /QIBM/ProdData/IBMiDebugService/bin/DebugService.env there isn't the variable JAVA_HOME . Here is the content of the file :
Second response Third response Seb edit: format env file content |
In my opinion, something is missing in my file /QIBM/ProdData/IBMiDebugService/bin/DebugService.env although I'm not sure why. |
My pleasure 😄 Run this command:
Then check DBGSVCE job status; if it's still running after 20 seconds, there are good chances the service is now up and running. At this point, you can refresh the IBM i debugger view and it should show the service as being running. As for your client's error, this is new...it seems to be a Java version related error. What's their Java version, debug service version and |
Prego 😊 |
Ciao Sebastien , Where does it take the value jdk80 when all configuration files express java 11 I don't understand where I'm going wrong. |
Ciao! I did some research on this JVMCFRE067 error and it seems that it happens when a Can you please run these two commands on your system and on your client's from a PASE terminal and compare the output? (paste them both here)
Thanks! |
@DamianoBonato As an IBM i system admin I immediately notice that your system admin has not updated the system with PTF group SF99725! PTF group SF99725 contains all updates for ALL Java versions in 5770-JV1, including Java11. And the Java11 version on the system in trouble is from 2020, which means a lot of fixes and security enhancements has not yet been applied. Please have the system admin update the IBM i with all latest PTF groups (or at least the Java PTF group) - a new function such as the debug service will not run well on old versions of the OS components. Keeping the system updated saves a lot of time and trouble - and worries about security! |
Thank you, Sebastien. I will have the system administrator check what you reported and will update you. Thanks again. |
@DamianoBonato try qualifying the full path to md5sum before running it:
|
@DamianoBonato Are you able to connect using regular SSH through the command line? |
Is it correct to use STRQSH, SSH USERNAME@hostname? |
@DamianoBonato No. Use your local device (Command Prompt, PowerShell, Windows Terminal) to connect. |
it seems to work. |
I am trying everything to solve the certificate issue for the debug 2.0 service, but so far I haven't succeeded. It's tough, but sooner or later I will manage. |
👉🏻 Issue text goes here.
Good morning, when i try to start the debug service , i get this error message :
J have installed Java 11 and the PTF SI85976 .
Thank for the help .
Damiano Bonato
The text was updated successfully, but these errors were encountered: