[Swift-user] Error with SSH and SSH-CL

Scherer, Justin C. jscherer at anl.gov
Mon Mar 30 16:10:54 CDT 2015


I have been trying to get the simple hello.swift script to run on a remote host that I have set up with another researcher. I will post my sites.xml, config file, and tc.data files along with this message. After going through all of the steps to get ssh to work, I get the following error  for running it in ssh mode:

RunID: 20150330-1550-ut0jr8rf
Progress:  time: Mon, 30 Mar 2015 15:50:36 -0500
Execution failed:
	Could not initialize shared directory on remotehost
Caused by:
	org.globus.cog.abstraction.impl.file.FileResourceException: Error while communicating with the SSH server on 146.137.66.189:22
Caused by:
	Invalid private key or passphrase
Caused by:
	Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
	greeting, hello.swift, line 9

I tried both the dsa algorithm and putting in the rsa algorithm for this. Here is my sites.xml for this:

<config>
  <pool handle="remotehost">
    <execution provider="coaster" jobmanager="ssh:local" url="<blanked out for obvious reasons>"/>
    <filesystem provider="ssh" url="146.137.66.189"/>
    <profile namespace="karajan" key="jobThrottle">0</profile>
    <profile namespace="karajan" key="initialScore">10000</profile>
    <workdirectory>/home/swift-user/temp</workdirectory>
  </pool>
</config>

also, here is the tc.data file:

#This is the transformation catalog.
#
#It comes pre-configured with a number of simple transformations with
#paths that are likely to work on a linux box. However, on some systems,
#the paths to these executables will be different (for example, sometimes
#some of these programs are found in /usr/bin rather than in /bin)
#
#NOTE WELL: fields in this file must be separated by tabs, not spaces; and
#there must be no trailing whitespace at the end of each line.
#
# sitename  transformation  path   INSTALLED  platform  profiles
localhost 	echo 	/bin/echo	INSTALLED	INTEL32::LINUX	null
localhost 	cat 	/bin/cat	INSTALLED	INTEL32::LINUX	null
localhost 	ls 	/bin/ls		INSTALLED	INTEL32::LINUX	null
localhost 	grep 	/bin/grep	INSTALLED	INTEL32::LINUX	null
localhost 	sort 	/bin/sort	INSTALLED	INTEL32::LINUX	null
localhost 	paste 	/bin/paste	INSTALLED	INTEL32::LINUX	null
localhost 	cp 	/bin/cp         INSTALLED	INTEL32::LINUX	null
localhost 	touch 	/bin/touch      INSTALLED	INTEL32::LINUX	null
localhost	wc	/usr/bin/wc	INSTALLED	INTEL32::LINUX	null
localhost	sleep	/bin/sleep	null	null 	null
remotehost	echo	/bin/echo	INSTALLED	INTEL32::LINUX	null

and the configuration file is exactly like what is shown in the documentation.

If I try to do the ssh-cl interface, I get the following error:

RunID: 20150330-1529-4b3sr1u4
Progress:  time: Mon, 30 Mar 2015 15:29:20 -0500
Execution failed:
	Exception in echo:
    Arguments: [Hello, world!]
    Host: remotehost
    Directory: hello-20150330-1529-4b3sr1u4/jobs/c/echo-c3z4un6m

Caused by:
	Could not submit job
Caused by:
	Could not start coaster service
Caused by:
	java.lang.NullPointerException
	at org.globus.cog.abstraction.impl.execution.coaster.AutoCA.ensureCACertsExist(AutoCA.java:143)
	at org.globus.cog.abstraction.impl.execution.coaster.AutoCA.createProxy(AutoCA.java:128)
	at org.globus.cog.abstraction.impl.execution.coaster.ServiceManager.setupGSIProxy(ServiceManager.java:238)
	at org.globus.cog.abstraction.impl.execution.coaster.ServiceManager.startService(ServiceManager.java:194)
	at org.globus.cog.abstraction.impl.execution.coaster.ServiceManager.reserveService(ServiceManager.java:132)
	at org.globus.cog.abstraction.impl.execution.coaster.ServiceManager.reserveService(ServiceManager.java:151)
	at org.globus.cog.abstraction.impl.execution.coaster.JobSubmissionTaskHandler.getChannel(JobSubmissionTaskHandler.java:119)
	at org.globus.cog.abstraction.impl.execution.coaster.JobSubmissionTaskHandler.submit(JobSubmissionTaskHandler.java:105)
	at org.globus.cog.abstraction.impl.common.AbstractTaskHandler.submit(AbstractTaskHandler.java:45)
	at org.globus.cog.karajan.scheduler.submitQueue.NonBlockingSubmit.run(NonBlockingSubmit.java:97)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

	greeting, hello.swift, line 9

There is no shared folder, so I have to use scheduling.

I am using Swift version 0.94.1 from the main website. Any help is appreciated. Thank you!

Justin Scherer


More information about the Swift-user mailing list