Forums » User questions »
create a proxy
Added by Guterl Patrick almost 13 years ago
Hi,
Hello,
I am trying to generate a proxy with JSAGA, the file i am using is sent as an attachment.
<context type="MyProxy">
<attribute name="Server" value="myproxy.cern.ch"/>
<attribute name="LifeTime" value="PT48H"/>
<attribute name="UserProxy" value="/home/dsa/.globus/biomed_proxy.txt"/>
<attribute name="UserPass" value="xxxx"/>
<attribute name="CertRepository" value="/home/dsa/.globus/certificates"/>
</context>
The following output is produced :
Your identity: O=GRID-FR,C=FR,O=CNRS,OU=IPHC,CN=Patrick Guterl
Creating proxy, please wait...
Your proxy is valid until Fri May 04 19:35:37 CEST 2012
But when i launch a jsaga-run a error message is display
Your identity: O=GRID-FR,C=FR,O=CNRS,OU=IPHC,CN=Patrick Guterl
Creating proxy, please wait...
Your proxy is valid until Fri May 04 19:40:04 CEST 2012
Exception in thread "main" java.lang.NullPointerException
at fr.in2p3.jsaga.adaptor.cream.job.CreamJobControlAdaptor.connect(CreamJobControlAdaptor.java:61)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:66)
at fr.in2p3.jsaga.engine.factories.JobAdaptorFactory.connect(JobAdaptorFactory.java:61)
at fr.in2p3.jsaga.impl.job.AbstractSyncJobFactoryImpl.doCreateJobServiceSync(AbstractSyncJobFactoryImpl.java:72)
at fr.in2p3.jsaga.impl.job.JobFactoryImpl.doCreateJobService(JobFactoryImpl.java:35)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:202)
at org.ogf.saga.job.JobFactory.createJobService(JobFactory.java:146)
at fr.in2p3.jsaga.command.JobRun.main(JobRun.java:77)
jsaga-job-run.sh -b \
-Executable run1.sh \
-Output job1.out \
-Error job1.err \
-FileTransfer '/home/dsa/grid/uha/job/job1.out\<job1.out,/home/dsa/grid/uha/job/
job1.err\<job1.err,/home/dsa/grid/uha/run/run1.sh\>run1.sh \
-r cream://sbgce2.in2p3.fr:8443/cream-pbs-biomed
With a VOMS context it's work fine unfortunately i need a lifetime > 24H00
where the use of the proxy
Patrick
Replies (4)
RE: create a proxy
-
Added by Schwarz Lionel almost 13 years ago
Patrick,
I tried with a MyProxy context and had no problems.
I do not understand how you get this NullPointerException, the stacktrace does not match the current JSAGA version.
What JSAGA version are you using? Is it possible to try a more recent version? And if you still get this error, please send the stacktrace so that we can check this in the code.
As an alternative, you might use the "VOMSMyProxy" context, so that you can use the 48h lifetime.
Regards,
Lionel
RE: create a proxy
-
Added by Guterl Patrick almost 13 years ago
Hi,
The NullPointerException is resolved because the <context type="MyProxy"> are commented
But a problem exist:
without the MyProxy context
I having setting the lifetime
<attribute name="LifeTime" value="PT4H"/>
with the command jsaga-context-info.sh
Security context: biomed (VOMS)
subject : O=GRID-FR,C=FR,O=CNRS,OU=IPHC,CN=Patrick Guterl,CN=proxy
issuer : O=GRID-FR,C=FR,O=CNRS,OU=IPHC,CN=Patrick Guterl
identity : /O=GRID-FR/C=FR/O=CNRS/OU=IPHC/CN=Patrick Guterl
type : full legacy globus proxy
strength : 512 bits
timeleft : 3 h, 59 min, 58 sec
=== VO biomed extension information ===
VO : biomed
subject : /O=GRID-FR/C=FR/O=CNRS/OU=IPHC/CN=Patrick Guterl
issuer : /O=GRID-FR/C=FR/O=CNRS/OU=CC-IN2P3/CN=cclcgvomsli01.in2p3.fr
attribute : /biomed/Role=NULL/Capability=NULL
attribute : /biomed/lcg1/Role=NULL/Capability=NULL
attribute : /biomed/team/Role=NULL/Capability=NULL
timeleft : 3 h, 59 min, 58 sec
it's OKJ
but when i launch a job with jsaga-job-run.sh and the <attribute name="UserPass" configured
the proxy value on the Cream node is 10H and the biomed extension is 12H
the simalary problem exist with the Myproxy context
jsaga-context-info.sh
Security context: MyProxy2 (MyProxy)
Your identity: O=GRID-FR,C=FR,O=CNRS,OU=IPHC,CN=Patrick Guterl
Creating proxy, please wait...
Your proxy is valid until Sat May 12 12:18:10 CEST 2012
Owner : /O=GRID-FR/C=FR/O=CNRS/OU=IPHC/CN=Patrick Guterl
default:
StartTime: Thu May 10 12:13:11 CEST 2012
EndTime : Sat May 12 12:18:10 CEST 2012
LifeTime : 1 days, 23 h, 59 min, 58 sec
Delegated LifeTime : 47 h, 59 min, 58 sec
but the real value on the Cream node is 22H and the biomed extension is 24H
and the proxy don' t actived.
RE: create a proxy
-
Added by Guterl Patrick almost 13 years ago
--------------------------------------------------------------------------------------------
without the <attribute name="UserPass" and Liftime 4H the job stopprd after 2 hours
because in the proxy file send to the CE ,for the Security context: biomed (VOMS) the value of lifetime is 2H and for the biomed extension the lifetime value is 4H
but with jsaga-context-info.sh the two values are 4H
test in progress : Myproxy without UserPass
-------------------------------------------------------------------------------------------------
RE: create a proxy
-
Added by Schwarz Lionel almost 13 years ago
If the "UserPass" attribute is present and valid, then the proxy is created at every action (jsaga-context-info, jsaga-job-run...). Otherwise, you have to create the proxy with jsaga-context-init and then this proxy will be used for every action.
I am doing some tests to understand your issue with lifetime values.
Lionel