Hi,
you defined in jobdescriptor
<stdout>${GLOBUS_USER_HOME}/stdout.txt</stdout>
but, in stageout attempt to access the file testout.txt
you can use:
.....
<fileStageOut>
<transfer>
<sourceUrl>file:///${GLOBUS_USER_HOME}/stdout.txt</sourceUrl>
<destinationUrl>gsiftp://
heplw26.phys.uvic.ca:2811/hepuser/patricka/Desktop/testout.txt
</destinationUrl>
</transfer>
</fileStageOut>
......
or change
<stdout>${GLOBUS_USER_HOME}/stdout.txt</stdout>
in
<stdout>${GLOBUS_USER_HOME}/testout.txt</stdout>
2008/6/5, Patrick Armstrong <[EMAIL PROTECTED]>:
>
> Hi.
>
> I've just installed Globus 4.0.7 from source on two Scientific Linux 5.1
> machines, and am having a strange problem when staging files back from
> the execution machine. heplw26 is the workstation I am submitting the
> job from, and gridhn is the execution host. My certificate is mapped to
> dev08 on gridhn and patricka on heplw26.
>
> When I run the following job, I get an error staging back:
>
> <job>
> <executable>testscript</executable>
> <directory>${GLOBUS_USER_HOME}</directory>
> <stdout>${GLOBUS_USER_HOME}/stdout.txt</stdout>
> <stderr>${GLOBUS_USER_HOME}/stderr.txt</stderr>
>
> <fileStageIn>
> <transfer>
> <sourceUrl>gsiftp://
> heplw26.phys.uvic.ca:2811/hepuser/patricka/Desktop/testscript</sourceUrl>
> <destinationUrl>file:///${GLOBUS_USER_HOME}/testscript</destinationUrl>
> </transfer>
> </fileStageIn>
>
> <fileStageOut>
> <transfer>
> <sourceUrl>file:///${GLOBUS_USER_HOME}/testout.txt</sourceUrl>
> <destinationUrl>gsiftp://
> heplw26.phys.uvic.ca:2811/hepuser/patricka/Desktop/testout.txt
> </destinationUrl>
> </transfer>
> </fileStageOut>
>
> </job>
>
> testscript is simply a shell script that creates a file on the execution
> host:
> #!/bin/sh
>
> whoami
> whoami > testout.txt
>
>
> This is what happens when I run the job:
>
> [EMAIL PROTECTED] Desktop]$ globusrun-ws -submit -s -F
> gridhn.phys.uvic.ca -Ft Fork -f testjob.xml
> Delegating user credentials...Done.
> Submitting job...Done.
> Job ID: uuid:8295dc48-3342-11dd-bbae-001e8c04a58b
> Termination time: 06/06/2008 21:01 GMT
> Current job state: StageIn
> Current job state: StageOut
> dev08
> Current job state: Failed
> Destroying job...Done.
> Cleaning up any delegated credentials...Done.
> globusrun-ws: Job failed: Staging error for RSL element fileStageOut.
> Can't do MLST on non-existing file/dir /home/dev08/testout.txt on server
> heplw26.phys.UVic.CA [Caused by: Server refused performing the request.
> Custom message: Server refused MLST command (error code 1) [Nested
> exception message: Custom message: Unexpected reply: 500-Command
> failed : System error in stat: No such file or directory
> 500-A system call failed: No such file or directory
> 500 End.]]
>
>
> The strange thing is, /home/dev08/testout.txt *does* exist on gridhn:
>
> [EMAIL PROTECTED] ~]$ ls -l /home/dev08/testout.txt
> -rw-r--r-- 1 dev08 grid 6 Jun 5 14:01 /home/dev08/testout.txt
>
> What is even more strange is that when I touch /home/dev08/testout.txt
> on my workstation, this error changes to:
>
> [EMAIL PROTECTED] Desktop]$ globusrun-ws -submit -s -F
> gridhn.phys.uvic.ca -Ft Fork -f testjob.xml
> Delegating user credentials...Done.
> <snip>
> globusrun-ws: Job failed: Staging error for RSL element fileStageOut.
> Non-Extended 3rd-party transfer
> heplw26.phys.UVic.CA:2811/home/dev08/testout.txt -->
> gridhn.phys.UVic.CA:2811/hepuser/patricka/Desktop/testout.txt failed
> [Caused by: Server refused performing the request. Custom message:
> (error code 1) [Nested exception message: Custom message: Unexpected
> reply: 500-Command failed. : globus_l_gfs_file_open failed.
> 500-globus_xio: Unable to open
> file /hepuser/patricka/Desktop/testout.txt
> 500-globus_xio: System error in open: No such file or directory
> 500-globus_xio: A system call failed: No such file or directory
> 500 End.]]
>
> Then, if I create a file on gridhn
> called /hepuser/patricka/Desktop/testout.txt, but owned by root, I get:
>
> [...]Cleaning up any delegated credentials...Done.
> globusrun-ws: Job failed: Staging error for RSL element fileStageOut.
> Setting permissions on /hepuser/patricka/Desktop/testout.txt failed on
> server gridhn.phys.UVic.CA [Caused by: Server refused performing the
> request. Custom message: (error code 1) [Nested exception message:
> Custom message: Unexpected reply: 500-Command failed : System error in
> chmod: Operation not permitted
> 500-A system call failed: Operation not permitted
> 500 End.]]
>
> Then if I change the owner of the file to dev08, I get no error:
>
> Delegating user credentials...Done.
> Submitting job...Done.
> Job ID: uuid:e7386c04-3344-11dd-b048-001e8c04a58b
> Termination time: 06/06/2008 21:18 GMT
> Current job state: StageIn
> Current job state: Active
> Current job state: StageOut
> Current job state: CleanUp-Hold
> dev08
> Current job state: CleanUp
> Current job state: Done
> Destroying job...Done.
> Cleaning up any delegated credentials...Done.
>
> But there is no file testout.txt on heplw26:
> [EMAIL PROTECTED] Desktop]$ ls /hepuser/patricka/Desktop/testout.txt
> ls: /hepuser/patricka/Desktop/testout.txt: No such file or directory
>
>
> What exactly is going on here? Is this some bug where the source and
> destination are swapped?
>
> Any insight would be great, thanks.
>
>
> --patrick
>
>