Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion

It should be in RC4 which will be available on Friday (or you can update from http://download.eclipse.org/staging/oxygen tomorrow).

I just tried cloning org.eclipse.remote.git and it built fine. You may have something stale in your local maven repo cache (~/.m2 on *nix, not sure where on Windows). Try removing it before you build.

Regards,
Greg

On Mar 5, 2018, at 5:38 PM, David Wootton <dwootton@xxxxxxxxxx> wrote:

Greg
I tried running the Maven build command after resetting all the source for PTP and remote back to PTP_9_1 and master, respectively and then running a pull for both to get latest changes for both branches and I get the error pasted below. I'm not sure whether my workspace is messed up or if it's due to something leaking thru from my base IDE which is at Oxygen SR2.

I decided maybe it would be simpler to just download an Eclipse SR3 Parallel Application Developer since everything should be packaged. I ended up downloading the RC3 image. I tried my proxy connection and got a popup telling me 'Launch Error' and 'Unable to locate server bundle org.eclipse.remote.proxy.server.linux.ppc64le' when I specified the IBM Platform LSF Interactive TSC and then selected my proxy connection.

Is that RC3 build too early?

---
[INFO] --- tycho-compiler-plugin:0.26.0:compile (default-compile) @ org.eclipse.remote.core ---
[INFO] Compiling 57 source files to C:\git\PTP-REMOTE\bundles\org.eclipse.remote.core\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Remote Parent ...................................... SUCCESS [ 0.810 s]
[INFO] org.eclipse.remote.target .......................... SUCCESS [ 0.532 s]
[INFO] org.eclipse.remote.core ............................ FAILURE [ 3.259 s]
[INFO] org.eclipse.remote.jsch.core ....................... SKIPPED
[INFO] org.eclipse.remote.ui .............................. SKIPPED
[INFO] org.eclipse.remote.jsch.ui ......................... SKIPPED
[INFO] org.eclipse.remote.proxy.protocol.core ............. SKIPPED
[INFO] org.eclipse.remote.proxy.core ...................... SKIPPED
[INFO] org.eclipse.remote.proxy.ui ........................ SKIPPED
[INFO] org.eclipse.remote.proxy.server.core ............... SKIPPED
[INFO] org.eclipse.remote.proxy.server.product ............ SKIPPED
[INFO] org.eclipse.remote.proxy.server.linux.x86_64 ....... SKIPPED
[INFO] org.eclipse.remote.proxy.server.macosx.x86_64 ...... SKIPPED
[INFO] org.eclipse.remote.console ......................... SKIPPED
[INFO] org.eclipse.remote.serial.core ..................... SKIPPED
[INFO] org.eclipse.remote.serial.ui ....................... SKIPPED
[INFO] org.eclipse.remote.telnet.core ..................... SKIPPED
[INFO] org.eclipse.remote.telnet.ui ....................... SKIPPED
[INFO] org.eclipse.remote.doc.isv ......................... SKIPPED
[INFO] org.eclipse.remote ................................. SKIPPED
[INFO] org.eclipse.remote.proxy ........................... SKIPPED
[INFO] org.eclipse.remote.console ......................... SKIPPED
[INFO] org.eclipse.remote.serial .......................... SKIPPED
[INFO] org.eclipse.remote.telnet .......................... SKIPPED
[INFO] org.eclipse.remote.repo ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.176 s
[INFO] Finished at: 2018-03-05T17:04:03-05:00
[INFO] Final Memory: 50M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.26.0:compile (default-compile) on project org.eclipse.remote.core: Compilation failure: Compilation failure:
[ERROR] C:\git\PTP-REMOTE\bundles\org.eclipse.remote.core\src\org\eclipse\remote\internal\core\services\local\LocalResource.java:[54]
[ERROR] fResource.refreshLocal(IResource.DEPTH_INFINITE, monitor);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The type org.eclipse.core.runtime.jobs.ISchedulingRule cannot be resolved. It is indirectly referenced from required .class files
[ERROR] 1 problem (1 error)
[ERROR] -> [Help 1]

Dave

<graycol.gif>Greg Watson ---03/05/2018 03:23:27 PM---It looks like the org.eclipse.remote.proxy.server.linux.ppc64le plugin doesn't contain a proxy.serve

From: Greg Watson <g.watson@xxxxxxxxxxxx>
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Date: 03/05/2018 03:23 PM
Subject: Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
Sent by: ptp-dev-bounces@xxxxxxxxxxx





It looks like the org.eclipse.remote.proxy.server.linux.ppc64le plugin doesn't contain a proxy.server.tar.gz file. You need to run a 'mvn clean install' from the org.eclipse.remote.build directory to generate the gz file and copy it to the plugin directory.

Greg
      On Mar 5, 2018, at 11:48 AM, David Wootton <dwootton@xxxxxxxxxx> wrote:

      Greg
      Yes, it should be enabled. I normally start my runtime instance with all workspace and enabled target plugins selected in the Plug-ins tab of the run configuration.


      Dave.


      <graycol.gif>
      Greg Watson ---03/05/2018 10:10:02 AM---Do you have org.eclipse.remote.proxy.server.linux.ppc64le enabled in your run configuration? Greg

      From:
      Greg Watson <g.watson@xxxxxxxxxxxx>
      To:
      Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
      Date:
      03/05/2018 10:10 AM
      Subject:
      Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
      Sent by:
      ptp-dev-bounces@xxxxxxxxxxx






      Do you have org.eclipse.remote.proxy.server.linux.ppc64le enabled in your run configuration?


      Greg
              On Mar 1, 2018, at 8:50 AM, David Wootton <dwootton@xxxxxxxxxx> wrote:

              Greg
              I looked at the proxy connection again. I added some echo statements to the boostrap.sh script. The do_check function sends back 'ok:not_found...' which results in state being set to DOWNLOAD at line 144 of ProxyConnectionBootstrap.

              Stepping thru that code, it ends up back in the state machine loop then in the process method at 165.

              Execution proceeds until the call to FileLocator.find at line 171 which fails, process() returns false and the next message sent to bootstrap.sh is 'exit', so the do_download function never runs.

              If I click over the 'serverBundle' variable in the debugger variable view, I see
              org.eclipse.remote.proxy.server.linux.ppc64le_1.0.0.qualifier

              the bundleName variable has the value
              org.eclipse.remote.proxy.server.linux.ppc64le

              Is it possible that something is still not properly packaging the files to handle the ppc64le case?

              Dave

              <graycol.gif>
              Greg Watson ---02/15/2018 07:44:25 PM---Hi Dave, Once the bootstrap.sh sends back the "ok/not_found/linux/ppc64le", the next step should be

              From:
              Greg Watson <g.watson@xxxxxxxxxxxx>
              To:
              Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
              Date:
              02/15/2018 07:44 PM
              Subject:
              Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
              Sent by:
              ptp-dev-bounces@xxxxxxxxxxx






              Hi Dave,

              Once the bootstrap.sh sends back the "ok/not_found/linux/ppc64le", the next step should be sending the proxy.server.tar.gz file. It sends a base 64 encoded version that is read the "dd" command and saved in a file called "proxy.b64", then the base64 command is used to decode it. Finally it is uncompressed using the "tar" command. Can you check your target system has "dd", "base64", and "tar" installed?

              Greg
                              On Feb 15, 2018, at 5:03 PM, David Wootton <dwootton@xxxxxxxxxx> wrote:

                              Greg
                              I tried pasting the command into a shell prompt while in the .eclipsesettings directory and got

                              -bash-4.2$ java -cp proxy/plugins/org.eclipse.equinox.launcher_1.*.jar org.eclipse.equinox.launcher.Main -application org.eclipse.remote.proxy.server.core.application -noExit
                              Error: Could not find or load main class org.eclipse.equinox.launcher.Main
                              -bash-4.2$

                              There is no proxy directory in the .eclipsesettings directory. I don't know how it gets there.

                              The only new file that appears in the .eclipsesettings directory is the bootstrap.sh and that file is only there while the request Eclipse sent to the remote system is running. I set a breakpoint at line 139 of ProxyConnectionBootstrap.java and can see that file. But if I continue execution it's gone.

                              This is the contents of .eclipsesettings before I try to connect


                              about.html LML_color lml-driver.tar pom.xml util
                              build.properties LML_combiner LML_specs README.txt
                              lib LML_da_driver.pl META-INF rms
                              LML2LML LML_da.pl plugin.properties samples


                              And while sitting at the breakpoint

                              about.html LML2LML LML_da.pl plugin.properties samples
                              bootstrap.sh LML_color lml-driver.tar pom.xml util
                              build.properties LML_combiner LML_specs README.txt
                              lib LML_da_driver.pl META-INF rms


                              Dave

                              <graycol.gif>
                              Greg Watson ---02/15/2018 04:40:09 PM---Hi Dave, The $1 variable should be the version of the plugin not the architecture. Since you're runn

                              From:
                              Greg Watson <g.watson@xxxxxxxxxxxx>
                              To:
                              Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
                              Date:
                              02/15/2018 04:40 PM
                              Subject:
                              Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
                              Sent by:
                              ptp-dev-bounces@xxxxxxxxxxx







                              Hi Dave,

                              The $1 variable should be the version of the plugin not the architecture. Since you're running from your workspace, the version will be "1.0.0.qualifier" which won't ever match the version that is in .eclipsesettings, so this will cause a new copy of the server to be downloaded. This is expected behavior and it doesn't happen when you're using an installed version of the plugins.

                              I think the "Unable to start server: null" must be something going wrong with the java launch command in the start_server() function. You could try running the following command from the .eclipsesettings directory to see if you get any other messages:

                              java -cp proxy/plugins/org.eclipse.equinox.launcher_1.*.jar org.eclipse.equinox.launcher.Main -application org.eclipse.remote.proxy.server.core.application -noExit

                              If it just sits there you can try typing something and it should say "invalid command: ...". Let me know if you get any other error message.

                              You can open a connection using the Remote Development preference page. First click on the Remote Development preference and make sure you have PROXY set as the Default connection type. Next open Remote Development and click on Remote Connections. Select PROXY from the Remote Services dropdown. Now create a connection, click Apply, then click Open. If you already have a connection you can try opening it (it MUST be a PROXY connection). Opening the connection will cause the server to be downloaded and started. Note: SSH connections will not interact with the PROXY connections so there's no use using them.

                              Regards,
                              Greg
                                                              On Feb 15, 2018, at 3:02 PM, David Wootton <dwootton@xxxxxxxxxx> wrote:

                                                              Greg
                                                              That fixed the build problem. Now when I try to start the proxy connection, I got message
                                                              Unable to start server: null because bootstrap.sh is sending back ok:not_found/linux/ppc64le apparently because org.eclipse.remote.proxy.server.core_$1.jar is not found in ~/.eclipsesettings (line 57 of bootstrap.sh) where I think $1 is ppc64le.

                                                              I thought deleting .eclipsesettings and refreshing it might help, but ran into more problems, where I unfortunately did not take notes as I went.

                                                              I was unable to connection at that point, and the only way I could populate .eclipsesettings was to connect with a ssh connection and then try to run an application (using the IBM PE target system configuration), which failed, but did populate .eclipsesettings.

                                                              I also think I had problems seeing the ssh connection in the run configuration dialog unless the default connection type was ssh, but now I can see both the ssh and proxy connections so I'm not sure what was happening.

                                                              Dave

                                                              <graycol.gif>
                                                              Greg Watson ---02/15/2018 01:56:25 PM---Dave, I think it was my fault. Try running 'mvn clean install' instead of 'mvn clean package'. I jus

                                                              From:
                                                              Greg Watson <g.watson@xxxxxxxxxxxx>
                                                              To:
                                                              Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
                                                              Date:
                                                              02/15/2018 01:56 PM
                                                              Subject:
                                                              Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
                                                              Sent by:
                                                              ptp-dev-bounces@xxxxxxxxxxx







                                                              Dave,

                                                              I think it was my fault. Try running 'mvn clean install' instead of 'mvn clean package'. I just checked the pom.xml and it looks like the copy happens in the install phase.

                                                              Thanks,
                                                              Greg
                                                                                                                              On Feb 15, 2018, at 1:07 PM, David Wootton <dwootton@xxxxxxxxxx> wrote:

                                                                                                                              Greg
                                                                                                                              This is the contents
                                                                                                                              wootton@IBM748-PBT5D6Y MINGW64 ~/git/org.eclipse.remote/releng/org.eclipse.remote.proxy.server.product/target/products (master)
                                                                                                                              $ ls
                                                                                                                              proxy.server/ proxy.server-macosx.cocoa.x86_64.tar.gz
                                                                                                                              proxy.server-linux.gtk.ppc64le.tar.gz proxy.server-win32.win32.x86.zip
                                                                                                                              proxy.server-linux.gtk.x86.tar.gz proxy.server-win32.win32.x86_64.zip
                                                                                                                              proxy.server-linux.gtk.x86_64.tar.gz

                                                                                                                              There's a lot of files in the proxy.server subdirectory, so a recursive list of that is attached.

                                                                                                                              Dave

                                                                                                                              (See attached file: proxy.server.list)




                                                                                                                              <graycol.gif>
                                                                                                                              Greg Watson ---02/15/2018 12:13:34 PM---From: Greg Watson <g.watson@xxxxxxxxxxxx> To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>

                                                                                                                              From:
                                                                                                                              Greg Watson <g.watson@xxxxxxxxxxxx>
                                                                                                                              To:
                                                                                                                              Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
                                                                                                                              Date:
                                                                                                                              02/15/2018 12:13 PM
                                                                                                                              Subject:
                                                                                                                              Re: [ptp-dev] IRemoteProcess.isCompleted occaisionally fails to report process completion
                                                                                                                              Sent by:
                                                                                                                              ptp-dev-bounces@xxxxxxxxxxx







                                                                                                                              What's in org.eclipse.remote.proxy.server.product/target/products?

                                                                                                                              Greg
On Feb 15, 2018, at 11:57 AM, David Wootton <dwootton@xxxxxxxxxx> wrote:

Greg
All three copy tasks are in the pom.xml
There is no proxy.server.tar.gz anywhere in my local git repository before I start the build
The build failed
There is still no proxy.server.tar.gz anywhere in my local git repository

I'm assuming the git repository is where the build output goes. If build output goes somewhere else, I have no idea where that would be.

Dave

<graycol.gif>
Greg Watson ---02/15/2018 09:44:31 AM---From: Greg Watson <g.watson@xxxxxxxxxxxx> To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>

From:
Greg Watson <g.watson@xxxxxxxxxxxx>
To:
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Date:
02/15/2018 09:44 AM
Subject:
Re: [ptp-dev] Fw: IRemoteProcess.isCompleted occaisionally fails to report process completion
Sent by:
ptp-dev-bounces@xxxxxxxxxxx







Dave,

I'm not sure what is going on, but I'm wondering if it might be a Windows issue. The build step for org.eclipse.remote.proxy.server.product should copy the tar files to the correct plugins. Can you do the following:

1. Check that the org.eclipse.remote.proxy.server.product/pom.xml contains the three <copy> tasks.
2. Remove the proxy.server.tar.gz from all of the plugins.
3. Rerun the build. When it fails, check if any of the plugins contain proxy.server.tar.gz

If not, then check in org.eclipse.remote.proxy.server.product/target/products and see if there are proxy.server files for each architecture. If there is, you might need to manually copy them into the plugins.

Regards,
Greg

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_ptp-2Ddev&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=yA1Giwd7Ls577uUKQ3fQWICGHopYggQ46OvlB30WK5M&m=_8SG_9SFDTfIgp-wL3vC_ejM6vGFghWTGfY5Bmsi708&s=6O7nVlOm8oN_vLybKBLkZL0QUueXETZIz7M5BPJAuqY&e=


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top