Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] PTP synchronized projects - Ooops, remote make doesn't execute ?

On Tuesday, October 30, 2012 16:57:55 John Eblen <jeblen@xxxxxxx> wrote:

> Hi

>

> The true build command is constructed in the method "constructCommand" in

> the file:

>

> org.eclipse.ptp.rdt.sync.core.remotemake.SyncCommandLauncher

>

> If you have a development environment handy, you can set a breakpoint here.

>

> The actual command executed depends on whether you are using environment

> management. If so,

> PTP creates a temporary file using "mktemp" and runs it with "bash -l <temp

> file>" If not, PTP uses

> "bash -l -c <make command>. Thus testing "mktemp" and running commands with

> bash might offer some clues.

 

John,

 

thanks for the hints so far.

 

I actually managed to

* set up a development environment,

* start a debug session,

* import the synchronized project with failing remote make,

* set up the remote connection (that somehow wasn't imported)

* start the remote make

* stop at the break point

* single step through the method

( using else branch of "if (projectProperties.isEnvMgmtEnabled()) "

- which is what I expected)

* ending up with command == [bash, -l, -c, make all ]

( which again is what I expected)

 

Soon after the session hangs at "return new RemoteToolsProcessBuilder(...)".

.ptp-sync is created neither locally nor remotely.

On the remote host, I am seeing the following.

[k205001@blizzard2 ~]$ ps -ef | grep k205001 | grep sftp-server

k205001 8716338 24969556 0 23:45:24 - 0:00 /usr/sbin/sftp-server -m /etc/ssh/sshd_config -m /etc/ssh/sshd_config

k205001 2687404 21037784 0 23:49:16 pts/13 0:00 grep sftp-server

k205001 13042046 24969556 0 23:45:24 - 0:00 /usr/sbin/sftp-server -m /etc/ssh/sshd_config -m /etc/ssh/sshd_config -m /etc/ssh/sshd_config

k205001 15008520 24969556 0 23:45:24 - 0:00 /usr/sbin/sftp-server -m /etc/ssh/sshd_config

 

Are these multiple "-m /etc/ssh/sshd_config" what I should expect ? I have never seen these before. At any rate this means that my eclipse session made contact to the remote site, correct ?

 

What is the command that the local site executes ? Is it (close to) the following ?

ssh k205001@xxxxxxxxxxxxxxxx ' \

cd /work/ki0437/k205001/bench/LRZ_2010/seissol; \

bash -l -c make all'

At any rate, when I try this, it hangs.

 

Next I logged in to the remote site and tried 'bash -l -c <some_command>'. I got a command line prompt, but no execution of "some_command". Apparently, the -l inhibited the -c option. I had to drop the -l option in order to get "some command" executed.

 

For the bash in question I get the following.

cp@sirius:~$ ssh blizzard.dkrz.de bash --version

GNU bash, version 4.0.10(1)-release (powerpc-ibm-aix5.3.0.0)

Copyright (C) 2009 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

 

Does this explain the behavior as detailed above ?

 

What precisely gets executed when calling "bash -l ..." ? Could it be that I need to look for some oddity in $HOME/.bashrc or /etc/profile or ...?

--

 

Mit freundlichen Grüßen / Kind regards

 

Dr. Christoph Pospiech

High Performance & Parallel Computing

Phone: +49-351 86269826

Mobile: +49-171-765 5871

E-Mail: christoph.pospiech@xxxxxxxxxx

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter

Geschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, Dieter Scholz, Gregor Pillen, Joachim Heel, Christian Noll

Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940

 


Back to the top