[GE users] Re: [GE globus] [GE users] Problem sending jobs with globusrun-ws: Current job state: Unsubmitted

Esteban Freire Garcia esfreire at cesga.es
Thu Dec 20 09:47:33 GMT 2007


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi Otheus,

Great!!..now the patch works perfectly and it creates the log.

[esfreire at svgd ~]$ cat /tmp/jobmanager-sge.log
Thu Dec 20 10:18:00 2007 JM_SCRIPT: /usr/local/globus-4.0.5
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Entering SGE submit
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Determining job WALL time
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   using queue default
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Determining job CPU time
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   using queue default
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Building job script
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Using jm supplied job dir: 
/home/cesga/cyteduser/.globus/75210a50-aedc-11dc-a14f-bb561185c28a
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   script location: 
/home/cesga/cyteduser/.globus/75210a50-aedc-11dc-a14f-bb561185c28a/sge_job_script.25108 

Thu Dec 20 10:18:00 2007 JM_SCRIPT:   email(s) will not be sent
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Checking project details
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   Project not specified
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Determining job type
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   Job is of type multiple
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   forking multiple requests
Thu Dec 20 10:18:00 2007 JM_SCRIPT: SGE job script successfully built! :-)
Thu Dec 20 10:18:00 2007 JM_SCRIPT: Submitting a job
Thu Dec 20 10:18:00 2007 JM_SCRIPT:   successfully submitted
Thu Dec 20 10:23:10 2007 JM_SCRIPT: /usr/local/globus-4.0.5
Thu Dec 20 10:23:10 2007 JM_SCRIPT: cancel job 1420708
Thu Dec 20 10:23:14 2007 JM_SCRIPT: /usr/local/globus-4.0.5
Thu Dec 20 10:23:14 2007 JM_SCRIPT: Using jm supplied job dir: 
/home/cesga/cyteduser/.globus/75210a50-aedc-11dc-a14f-bb561185c28a
Thu Dec 20 10:23:14 2007 JM_SCRIPT: cache_cleanup(enter)
Thu Dec 20 10:23:14 2007 JM_SCRIPT: Cleaning files in job dir 
/home/cesga/cyteduser/.globus/75210a50-aedc-11dc-a14f-bb561185c28a
Thu Dec 20 10:23:14 2007 JM_SCRIPT: Removed 2 files from 
/home/cesga/cyteduser/.globus/75210a50-aedc-11dc-a14f-bb561185c28a
Thu Dec 20 10:23:14 2007 JM_SCRIPT: cache_cleanup(exit)

[esfreire at svgd ~]$  globusrun-ws -submit -pft -T 120000 -s -S -F  
https://svgd.cesga.es:8443/wsrf/services/ManagedJobFactoryService -Ft 
SGE -c /bin/hostname
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:74dae296-aedc-11dc-9e6f-000423ac0723
Termination time: 12/21/2007 09:17 GMT
Current job state: Unsubmitted
Canceling...Canceled.
Destroying job...Done.
Cleaning up any delegated credentials...Done.
globusrun-ws: Operation was canceled

[esfreire at svgd ~]$  globusrun-ws -submit -pft -T 120000 -s -S -F  
https://svgd.cesga.es:8443/wsrf/services/ManagedJobFactoryService -Ft 
Fork -c /bin/hostname
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:36bf8c40-aedd-11dc-80ba-000423ac0723
Termination time: 12/21/2007 09:23 GMT
Current job state: Active
Current job state: CleanUp-Hold
svgd.cesga.es
Current job state: CleanUp
Current job state: Done
Destroying job...Done.
Cleaning up any delegated credentials...Done.

I expect that the output help to us!!

Thank you very much,
Esteban



Otheus (aka Timothy J. Shelling) escribió:
> Right, let's try this. It's a "heavy hack" but if this doesn't get it 
> going, ... uh I'm completely lost. Again, modify the sge.pm 
> <http://sge.pm> routine as marked in comments below.
>
>
>
> #
> # As required by JobManager.pm
> #
> sub new
> {
> my $proto = shift;
> my $description = shift;
> my $class = ref($proto) || $proto;
>
> #if (!defined $description->logfile())
> {
> #$description->logfile("/tmp/jobmanager-sge.log");
>
> $description->{"logfile"} = "/tmp/jobmanager-sge.log";
> }
> my $self = $class->SUPER::new($description, @_);
>
> # NEW CODE
>         local(*FH);
>         open(FH, '>>'. "/tmp/jobmanager-sge.log");
>         select((select(FH),$|=1)[$[]);
>         $self->{log} = *FH;
> # END NEW CODE
>
> $self->log($ENV{"GLOBUS_LOCATION"});
>
> bless $self, $class;
> }
>
>
>
> -- 
> Otheus
> otheus at gmail.com <mailto:otheus at gmail.com>
> +43.699.1049.7813 




More information about the gridengine-users mailing list