Project

General

Profile

Still not able to submit job to windows using ssh adapter

Added by R Balachandar over 14 years ago

Hi all,

I am trying to submit job to my windows machine using ssh adapter. I created a folder .jsaga and a file called jsaga-user.properties in it. The file content is as follws:-
'local.default.ShellPath=C:\Home\BAAMARNA5617\cygwin\bin\sh.exe'. This file is present in the locatioc 'c:\Home\BAAMARNA5617\'

I encounter the follwoing exception when i ran my code,

******************************************************
Exception in thread "main" NoSuccess: Invalid security context: SSH
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:110)
at fr.in2p3.jsaga.impl.job.AbstractSyncJobFactoryImpl.doCreateJobServiceSync(AbstractSyncJobFactoryImpl.java:65)
at fr.in2p3.jsaga.impl.job.JobFactoryImpl.doCreateJobService(JobFactoryImpl.java:35)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:98)
at org.ogf.saga.job.JobFactory$createJobService.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:129)
at org.eads.groovy_ved.SimpleJob.main(SimpleJob.groovy:36)
Caused by: IncorrectState: Missing attribute(s): <UserKey>
at fr.in2p3.jsaga.impl.context.ContextImpl.getCredential(ContextImpl.java:250)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:108)
... 8 more

Any hint on this issue will be helful to me,

with thanks and regards
Balachandar


Replies (1)

RE: Still not able to submit job to windows using ssh adapter - Added by Reynaud Sylvain over 14 years ago

Hi Balachandar,

local.default.ShellPath is a configuration attribute for the "local" plug-in only. You don't need it with the "ssh" plug-in.

The "ssh" and "sftp" plug-ins require a security context, which type is either UserPass or SSH. SSH context requires to set attribute UserKey to the path to your SSH key file. This can be configured in the etc/jsaga-universe.xml configuration file.

Tools that can help you to configure your security context are:
  • jsaga-help -s usage
  • jsaga-context-info
  • for each plug-in, a configuration example is provided on JSAGA web site (click on Adaptors / the_adaptor_you_are_trying_to_use / Example).

Regards,
Sylvain

    (1-1/1)