[gt-user] Simple GRAM Job Failing... I think i know the problem but not the solution... :(

Peter G. Lane lane at mcs.anl.gov
Tue Sep 19 10:23:48 CDT 2006


I just responded to your original thread, but I'll repost here. You need to edit your 
$GLOBUS_LOCATION/etc/gram-service/globus_gram_fs_map_config.xml file and replace all occurrences of 
"localhost.localdomain" with the correct host name.

Peter

Asim Munawar wrote:
> Actually the previous mail thread "Why this simple GRAM job is 
> failing...Any Help" became little confusing therefore i thought its 
> better to start a new thread with clear problem description...
>  
> Actually i am running a simple GRAM job... but it is failing ...
>  
> *Then Job File Is:*
> <job>
>     <executable>/usr/bin/env</executable>
>     <stdout>${GLOBUS_USER_HOME}/stdout</stdout>
>     <stderr>${GLOBUS_USER_HOME}/stderr</stderr>
> 
>     <fileCleanUp>
>         <deletion>
>                <file>file:///${GLOBUS_USER_HOME}/stdout</file>
>         </deletion>
>         <deletion>
>                <file>file:///${GLOBUS_USER_HOME}/stderr</file>
>         </deletion>
>     </fileCleanUp>
> </job>
> 
> I tried to submit the JOB directly to GRAM using "globusrun-ws " and 
> this is what happens...
> 
> user1 at ca:/demogridapp$ globusrun-ws -submit -S -f 
> /demogridapp/gram/simple.xml
> Delegating user credentials...Done.
> Submitting job...Done.
> Job ID: uuid:df085690-478f-11db-8c6a-000ea66d95f2
> Termination time: 09/20/2006 03:35 GMT
> Current job state: Active
> Current job state: CleanUp-Hold
> JAVA_HOME=/usr/java/j2sdk1.4.2_10/jre
> HOME=/home/user1
> X509_USER_KEY=
> LOGNAME=user1
> GLOBUS_LOCATIonfiltered=/usr/local/globus-4.0.2
> GLOBUS_GRAM_JOB_HANDLE=https://192.168.0.201:8443/wsrf/services/ManagedExecutableJobService?df085690-478f-11db-8c6a-000ea66d95f2
> X509_USER_CERT=
> SCRATCH_DIRECTORY=/home/user1/.globus/scratch
> X509_CERT_DIR=/etc/grid-security/certificates
> X509_USER_PROXY=
> Current job state: CleanUp
> Current job state: Failed
> Destroying job...Done.
> Cleaning up any delegated credentials...Done.
> user1 at ca:/demogridapp$        
> 
>  
> According to the recommendations of Mr Wilfred Li ... I tested my 
> GridFtp and it is working fine...
>  
> user1 at ca:~$ echo "Hello">/tmp/Input.txt
> user1 at ca:~$ cat /tmp/Input.txt
> Hello
> user1 at ca:~$ globus-url-copy file:///./tmp/Input.txt file://./tmp/Output.txt
> user1 at ca:~$ cat /tmp/Output.txt
> Hello
> user1 at ca:~$ globus-url-copy 
> gsiftp://ca.cims.hokudai.ac.jp/tmp/Input.txt gsiftp://ca.cims.hokudai.ac.jp/tmp/Output2.txt
> user1 at ca:~$ cat /tmp/Output2.txt
> Hello
> user1 at ca:~$  
>  
>  
> On recommendation of Mr Murali Krishna I checked my RFT and that also 
> seems to be working without any problem...
> user1 at ca:~$ cp
> /usr/local/globus-4.0.2/share/globus_wsrf_rft_test/transfer.xfr
> /tmp/rft.xfr
> user1 at ca:~$  vim /tmp/rft.xfr
> user1 at ca:~$ cat /tmp/rft.xfr
> true
> 16000
> 16000
> false
> 1
> true
> 1
> null
> null
> false
> 10
> gsiftp://ca.cims.hokudai.ac.jp:2811/tmp/rftTest.tmp
> gsiftp://ca.cims.hokudai.ac.jp:2811/tmp/rftTest_Done.tmp
> user1 at ca:~$ echo "This is a test file" > /tmp/rftTest.tmp
> user1 at ca:~$ rft -h ca.cims.hokudai.ac.jp -f
> /tmp/rft.xfr
> Number of transfers in this request: 1
> Subscribed for overall status
> Termination time to set: 60 minutes
> 
> Overall status of transfer:
> Finished/Active/Failed/Retrying/Pending
> 0/1/0/0/0
> 
> Overall status of transfer:
> Finished/Active/Failed/Retrying/Pending
> 1/0/0/0/0
> All Transfers are completed
> user1 at ca:~$ diff /tmp/rftTest.tmp
> /tmp/rftTest_Done.tmp
> user1 at ca:~$      
>  
> I notice one thing very strange... I think this can be a clue to the 
> exact problem... Its a strange kind of error message when i submit the 
> GRAM job... to have a look at the error message PLEASE SEE THE ERROR 
> MESSAGES IN RED COLOR...
>  
> Starting SOAP server at:
> https://192.168.0.201:8443/wsrf/services/
> With the following services:
> 
> [1]:https://192.168.0.201:8443/wsrf/services/TriggerFactoryService
> [2]:https://192.168.0.201:8443/wsrf/services/DelegationTestService
> [3]:https://192.168.0.201:8443/wsrf/services/SecureCounterService
> ..........................................
> ..........................................
> [51]:https://192.168.0.201:8443/wsrf/services/CASService
> [52]:https://192.168.0.201:8443/wsrf/services/ManagedJobFactoryService
>  
> 
> 2006-09-19 14:47:43,607 INFO  exec.StateMachine
> [RunQueue Other,logJobAccepted:3236] Job
> 5d808878-47a2-11db-92bc-000ea66d95f2 accepted for
> local user 'user1'
> 2006-09-19 14:47:48,742 ERROR service.TransferWork
> [Thread-19,run:722] Terminal transfer error:
> [Caused by: Authentication failed [Caused by:
> Operation unauthorized (Mechanism level: *Authorization
> failed. Expected "/CN=host/localhost.localdomain"
> target but received
> "/O=Grid/OU=GlobusTest/OU=simpleCA-ca.cims.hokudai.ac.jp/CN=host/ca.cims.hokudai.ac.jp")]]
> *
> . Caused by
> Authentication failed
> . Caused by
> GSSException: Operation unauthorized (Mechanism level:
> Authorization failed. Expected
> "/CN=host/localhost.localdomain" target but received
> "/O=Grid/OU=GlobusTest/OU=simpleCA-ca.cims.hokudai.ac.jp/CN=host/ca.cims.hokudai.ac.jp")
> at 
> org.globus.gsi.gssapi.GlobusGSSContextImpl.initSecContext(GlobusGSSContextImpl.java:509)
> at 
> org.globus.ftp.extended.GridFTPControlChannel.authenticate(GridFTPControlChannel.java:203)
> at org.globus.ftp.GridFTPClient.authenticate(GridFTPClient.java:99)
> at org.globus.ftp.GridFTPClient.authenticate(GridFTPClient.java:84)
> at 
> org.globus.transfer.reliable.service.DeleteClient.<init>(DeleteClient.java:103)
> at 
> org.globus.transfer.reliable.service.TransferWork.getDeleteClient(TransferWork.java:406)
> at 
> org.globus.transfer.reliable.service.TransferWork.run(TransferWork.java:684)
> at 
> org.globus.wsrf.impl.work.WorkManagerImpl$WorkWrapper.run(WorkManagerImpl.java:345)
> at java.lang.Thread.run(Thread.java:534)
> 2006-09-19 14:47:48,996 ERROR service.TransferWork
> [Thread-20,run:722] Terminal transfer error:
> [Caused by: Authentication failed [Caused by:
> Operation unauthorized (Mechanism level: Authorization
> failed. Expected "/CN=host/localhost.localdomain"
> target but received
> "/O=Grid/OU=GlobusTest/OU=simpleCA-ca.cims.hokudai.ac.jp/CN=host/ca.cims.hokudai.ac.jp")]]
> 
> . Caused by
> Authentication failed
> . Caused by
> GSSException: Operation unauthorized (Mechanism level:
> Authorization failed. Expected
> "/CN=host/localhost.localdomain" target but received
> "/O=Grid/OU=GlobusTest/OU=simpleCA-ca.cims.hokudai.ac.jp/CN=host/ca.cims.hokudai.ac.jp")
> at 
> org.globus.gsi.gssapi.GlobusGSSContextImpl.initSecContext(GlobusGSSContextImpl.java:509)
> at 
> org.globus.ftp.extended.GridFTPControlChannel.authenticate(GridFTPControlChannel.java:203)
> ......................
> ......................
>  
> I have checked my GridMapFile and that is also fine.... Why is the 
> authorization failing...... I have configured every thing as given in 
> the quickstart manual... including security, gridFTP, GRAM, RFT .... so 
> now What can be the possible problem.... I have tried doing every 
> possible thing that i was able to think of .... I will be really glad to 
> get any help on this one or any idea of how to correct this problem....
>  
>  
> Asim
> 
> 
> Asim Munawar
> Research Student,
> H#102, 2-5, Howaito Haitsu
> Kita 21 Joo, Nishi 4 Choome
> Kita Ku, Sapporo, Japan
> Phone(Room) : ????
> Phone(mobile): 0081-80-60902442
> Email : asimm_81 at yahoo.com
> 
> ------------------------------------------------------------------------
> All-new Yahoo! Mail 
> <http://us.rd.yahoo.com/evt=43256/*http://advision.webevents.yahoo.com/mailbeta>- 
> Fire up a more powerful email and get things done faster.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3804 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.globus.org/pipermail/gt-user/attachments/20060919/4b82adc4/attachment.bin>


More information about the gt-user mailing list