This time, we do see what the issue is:

 

Error setting credential on listener

java.lang.RuntimeException: Could not create proxy file

            at
org.globus.exec.service.utils.UserProxyCreator.run(UserProxyCreator.java:238
)

            at
org.globus.exec.service.utils.DelegatedCredential.setCredential(DelegatedCre
dential.java:333)

<snippet>

Caused by: java.lang.RuntimeException: Sudo is misconfigured to run the
globus-gram-local-proxy-tool script for user user.

            at
org.globus.exec.service.utils.UserProxyCreator.run(UserProxyCreator.java:185
)

            ... 35 more

 

Looks like sudo configuration required for GRAM is incorrect. This is one
document that describes how it should be set up:

 

http://www.globus.org/toolkit/docs/4.0/admin/docbook/quickstart.html#q-gram

 

Rachana

 

  _____  

From: Silviu Popescu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2008 6:14 AM
To: Rachana Ananthakrishnan; [EMAIL PROTECTED]
Cc: 'GlobusUserList'
Subject: RE: [gt-user] problem submitting a gram job in gt4.0.6 from java
client

 

Hi

I copied that jar in the specified directory but I don't see any changes.
I've attached the new logs but I don't see anything changed.

There is one host on which the command works fine.
I cheked the build log on the hosts with problems and there are some
warnings there. I don't know if is important but I've attached the build.log
too.

Thanks,
Silviu

Rachana Ananthakrishnan <[EMAIL PROTECTED]> wrote:

Hi,

 

There is a bug in Delegation Service that is preventing this error from
being reported correctly. The fix has been committed to GT 4.0.x branch. You
can download an updated jar from:
http://www-unix.mcs.anl.gov/~ranantha/globus_delegation_service.jar
<http://www-unix.mcs.anl.gov/%7Eranantha/globus_delegation_service.jar> 

 

Copy this jar to $GLOBUS_LOCATION/lib, ensuring that you over write the
existing jar. Once you do that, please run your test again and send us logs.

 

Thanks,

Rachana

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Silviu Popescu
Sent: Tuesday, March 11, 2008 10:28 AM
To: [EMAIL PROTECTED]
Cc: GlobusUserList
Subject: Re: [gt-user] problem submitting a gram job in gt4.0.6 from java
client

 

I've attached the 2 logfiles you have requested.

Thanks for help!

[EMAIL PROTECTED] wrote:

ok,

Can you please run

globusrun-ws -submit -job-delegate \
-F https://141.85.1.213:8443/wsrf/services/ManagedJobFactoryService \
-dbg -c /bin/date

and send the client-side output.

Also: please start the container in debug mode
(set log4j.category.org.globus=DEBUG in
$GLOBUS_LOCATION/container-log4j.properties)

and send the container logfile too after you submitted the above job.

Martin

> Yes, it works.
>
> [EMAIL PROTECTED] wrote: Silviu,
>
> and it works to that machine if you don't delegate?
>
> Martin
>
>> Hi,
>>
>> I also saw that the problem appears when I run globusrun-ws with
>> -job-delegate .
>>
>> globusrun-ws -submit -job-delegate -F
>> https://141.85.1.213:8443/wsrf/services/ManagedJobFactoryService -c
>> /bin/date
>> Delegating user credentials...Done.
>> Submitting job...Failed.
>> Cleaning up any delegated credentials...Done.
>> globusrun-ws: Error submitting job
>> globus_soap_message_module: Failed receiving response
>> ManagedJobFactoryPortType_createManagedJob.
>> globus_soap_message_module: SOAP Message transport failed: Error in HTTP
>> response
>> globus_xio: Operation was canceled
>>
>>
>> Silviu Popescu wrote: Hi,
>>
>> I have a simple test client created in java for job submission which I
>> tested before on 4.0.5 containers but now I have some problems
>> submitting
>> a job to a 4.0.6 container.
>> globusrun-ws works fine with the same rls file.
>>
>> On server side:
>> 2008-03-10 20:31:30,794 ERROR factory.ManagedJobFactoryService
>> [ServiceThread-16,createManagedJob:346] Job creation failed.
>> org.globus.wsrf.ResourceException: ; nested exception is:
>> java.util.MissingResourceException: Can't find resource for
>> bundle
>> java.util.PropertyResourceBundle, key setCredError
>> at
>>
org.globus.exec.service.exec.ManagedExecutableJobResource.initSecurity(Manag
edExecutableJobResource.java:362)
>> at
>>
org.globus.exec.service.exec.ManagedExecutableJobResource.initialize(Managed
ExecutableJobResource.java:191)
>> at
>>
org.globus.exec.service.exec.ManagedExecutableJobResource.initializeWholeSta
te(ManagedExecutableJobResource.java:162)
>> at
>>
org.globus.exec.service.exec.PersistentManagedExecutableJobResource.initiali
zeWholeState(PersistentManagedExecutableJobResource.java:154)
>> at
>>
org.globus.exec.service.exec.ManagedExecutableJobHome.create(ManagedExecutab
leJobHome.java:348)
>> at
>>
org.globus.exec.service.factory.ManagedJobFactoryService.createManagedJob(Ma
nagedJobFactoryService.java:296)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>>
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:384
)
>> at
>>
org.globus.axis.providers.RPCProvider.invokeMethodSub(RPCProvider.java:107)
>> at
>>
org.globus.axis.providers.PrivilegedInvokeMethodAction.run(PrivilegedInvokeM
ethodAction.java:42)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.Subject.doAs(Subject.java:396)
>> at
>> org.globus.gsi.jaas.GlobusSubject.runAs(GlobusSubject.java:55)
>> at org.globus.gsi.jaas.JaasSubject.doAs(JaasSubject.java:90)
>> at
>> org.globus.axis.providers.RPCProvider.invokeMethod(RPCProvider.java:97)
>> at
>>
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:2
81)
>> at
>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
>> at
>>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> at
>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
>> at
>> org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:664)
>> at
>> org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:382)
>> at
>>
org.globus.wsrf.container.GSIServiceThread.process(GSIServiceThread.java:153
)
>> at
>> org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:291)
>> Caused by: java.util.MissingResourceException: Can't find resource for
>> bundle java.util.PropertyResourceBundle, key setCredError
>> at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
>> at java.util.ResourceBundle.getString(ResourceBundle.java:344)
>> at org.globus.util.I18n.getMessage(I18n.java:97)
>> at
>>
org.globus.delegation.service.DelegationResource.addListener(DelegationResou
rce.java:214)
>> at
>>
org.globus.delegation.service.DelegationResource.addRefreshListener(Delegati
onResource.java:187)
>> at
>>
org.globus.delegation.DelegationUtil.registerDelegationListener(DelegationUt
il.java:167)
>> at
>>
org.globus.exec.service.utils.DelegatedCredential.getDelegatedCredential(Del
egatedCredential.java:179)
>> at
>>
org.globus.exec.service.job.ManagedJobResourceImpl.getJobCredential(ManagedJ
obResourceImpl.java:421)
>> at
>>
org.globus.exec.service.exec.ManagedExecutableJobResource.initSecurity(Manag
edExecutableJobResource.java:354)
>> ... 28 more
>>
>> On client side:
>> submitting job ...
>> AxisFault
>> faultCode:
>> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: java.net.SocketTimeoutException: Read timed out
>> faultActor:
>> faultNode:
>> faultDetail:
>> {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
>> Read timed out
>> at java.net.SocketInputStream.socketRead0(Native Method)
>> at java.net.SocketInputStream.read(SocketInputStream.java:129)
>> at org.globus.gsi.gssapi.SSLUtil.read(SSLUtil.java:37)
>> at
>>
org.globus.gsi.gssapi.net.impl.GSIGssInputStream.readToken(GSIGssInputStream
.java:64)
>> at
>>
org.globus.gsi.gssapi.net.impl.GSIGssInputStream.readMsg(GSIGssInputStream.j
ava:39)
>> at
>> org.globus.gsi.gssapi.net.GssInputStream.hasData(GssInputStream.java:81)
>> at
>> org.globus.gsi.gssapi.net.GssInputStream.read(GssInputStream.java:55)
>> at
>> java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>> at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:237)
>> at
>>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.j
ava:545)
>> at
>> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:140)
>> at
>>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
>> at org.apache.axis.client.Call.invokeEngine(Call.java:2727)
>> at org.apache.axis.client.Call.invoke(Call.java:2710)
>> at org.apache.axis.client.Call.invoke(Call.java:2386)
>> at org.apache.axis.client.Call.invoke(Call.java:2309)
>> at org.apache.axis.client.Call.invoke(Call.java:1766)
>> at
>>
org.globus.exec.generated.bindings.ManagedJobFactoryPortTypeSOAPBindingStub.
createManagedJob(ManagedJobFactoryPortTypeSOAPBindingStub.java:1157)
>> at
>> org.globus.exec.client.GramJob.createJobEndpoint(GramJob.java:958)
>> at org.globus.exec.client.GramJob.submit(GramJob.java:464)
>> at TestSubmit.submitJob(TestSubmit.java:71)
>> at TestSubmit.main(TestSubmit.java:28)
>>
>> {http://xml.apache.org/axis/}hostname:silviup-laptop
>>
>> java.net.SocketTimeoutException: Read timed out
>> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>> at
>> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
>> at
>>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
>> at org.apache.axis.client.Call.invokeEngine(Call.java:2727)
>> at org.apache.axis.client.Call.invoke(Call.java:2710)
>> at org.apache.axis.client.Call.invoke(Call.java:2386)
>> at org.apache.axis.client.Call.invoke(Call.java:2309)
>> at org.apache.axis.client.Call.invoke(Call.java:1766)
>> at
>>
org.globus.exec.generated.bindings.ManagedJobFactoryPortTypeSOAPBindingStub.
createManagedJob(ManagedJobFactoryPortTypeSOAPBindingStub.java:1157)
>> at
>> org.globus.exec.client.GramJob.createJobEndpoint(GramJob.java:958)
>> at org.globus.exec.client.GramJob.submit(GramJob.java:464)
>> at TestSubmit.submitJob(TestSubmit.java:71)
>> at TestSubmit.main(TestSubmit.java:28)
>> Caused by: java.net.SocketTimeoutException: Read timed out
>> at java.net.SocketInputStream.socketRead0(Native Method)
>> at java.net.SocketInputStream.read(SocketInputStream.java:129)
>> at org.globus.gsi.gssapi.SSLUtil.read(SSLUtil.java:37)
>> at
>>
org.globus.gsi.gssapi.net.impl.GSIGssInputStream.readToken(GSIGssInputStream
.java:64)
>> at
>>
org.globus.gsi.gssapi.net.impl.GSIGssInputStream.readMsg(GSIGssInputStream.j
ava:39)
>> at
>> org.globus.gsi.gssapi.net.GssInputStream.hasData(GssInputStream.java:81)
>> at
>> org.globus.gsi.gssapi.net.GssInputStream.read(GssInputStream.java:55)
>> at
>> java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>> at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:237)
>> at
>>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.j
ava:545)
>> at
>> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:140)
>> ... 14 more
>>
>> Here is the java client source code :
>> import org.apache.axis.components.uuid.UUIDGen;
>> import org.apache.axis.components.uuid.UUIDGenFactory;
>> import org.apache.axis.message.addressing.ReferencePropertiesType;
>> import org.apache.axis.message.addressing.AttributedURI;
>> import org.apache.axis.message.addressing.EndpointReferenceType;
>> import org.globus.exec.client.GramJob;
>> import org.globus.exec.client.GramJobListener;
>> import org.globus.exec.generated.StateEnumeration;
>> import org.globus.exec.utils.ManagedJobConstants;
>> import org.globus.wsrf.impl.security.authentication.Constants;
>> import org.globus.wsrf.impl.security.authorization.Authorization;
>> import org.globus.wsrf.impl.security.authorization.HostAuthorization;
>> import org.globus.wsrf.impl.SimpleResourceKey;
>> import java.io.File;
>>
>>
>> public class TestSubmit implements GramJobListener{
>> private static Object waiter = new Object();
>>
>> public static void main(String[] args)
>> {
>>
>> TestSubmit client = new TestSubmit();
>> System.out.print("submitting job ... ");
>> try {
>> client.submitJob();
>> System.out.println("done");
>> System.out.println("Waiting for notification messages
>> ...");
>> synchronized (waiter) {
>> waiter.wait();
>> }
>> } catch (Exception e) {
>> e.printStackTrace();
>> }
>> }
>>
>> public void submitJob() throws Exception
>> {
>> // create factory epr
>> EndpointReferenceType endpoint = new
>> EndpointReferenceType();
>> AttributedURI address= new
>>
AttributedURI("https://c13.is.pub.ro/wsrf/services/ManagedJobFactoryService";
);
>> endpoint.setAddress(address);
>> ReferencePropertiesType props = new
>> ReferencePropertiesType();
>> SimpleResourceKey key
>> = new SimpleResourceKey(
>> ManagedJobConstants.RESOURCE_KEY_QNAME,
>> "Fork");
>> props.add(key.toSOAPElement());
>> endpoint.setProperties(props);
>>
>> // setup security
>> Authorization authz = HostAuthorization.getInstance();
>> Integer xmlSecurity = Constants.ENCRYPTION;
>>
>> boolean batchMode = false;
>> boolean limitedDelegation = true;
>>
>> // generate job uuid
>> UUIDGen uuidgen = UUIDGenFactory.getUUIDGen();
>> String submissionID = "uuid:" + uuidgen.nextUUID();
>>
>> // dam rsl prin fisier
>> GramJob job = new GramJob(new
>> File("/home/user/job2.xml"));
>> job.setAuthorization(authz);
>> job.setMessageProtectionType(xmlSecurity);
>> job.setDelegationEnabled(true);
>> job.addListener(this);
>>
>> job.submit(endpoint,
>> batchMode,
>> limitedDelegation,
>> submissionID);
>> }
>>
>> // GramJob calls this method when a job changes its state
>> // It's part of GramJobListener Interface
>> public void stateChanged(GramJob job)
>> {
>> StateEnumeration jobState = job.getState();
>> System.out.println(" got state notifiation: job is in
>> state " + jobState);
>> if (jobState.equals(StateEnumeration.Done)
>> || jobState.equals(StateEnumeration.Failed)) {
>> System.out.print("job finished. destroying job
>> resource ... ");
>> try {
>> job.removeListener(this);
>> job.destroy();
>> } catch (Exception e) {
>> e.printStackTrace();
>> } finally {
>> System.out.println("done");
>> synchronized (waiter) {
>> waiter.notify();
>> } } } }}
>>
>> Please help I can't find the cause of this errors.
>>
>> Regards,
>>
>>
>>
>> Silviu Popescu
>>
>>
>> Silviu Popescu
>
>
>
>
>
> Silviu Popescu







Silviu Popescu




Silviu Popescu

Reply via email to