[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] permission trouble executing tcl jobs



Hi Gustavo,

Given the below wisdom from TJ, perhaps just try submitting your OpenSees job with the line "getenv=True" in your submit file, so all environment variables (including PATH) are copied from your condor_submit environment into the job's environment.

Also, please refrain from posting to htcondor-users zip files with executable or batch files embedded as it causes virus scanners to be unhappy... actually best to refrain from any attachments if possible, as many sites do not allow email with attachments from email lists.

regards,
Todd

On 6/25/2018 2:32 PM, John M Knoeller wrote:
return code -1073741515 is hex 0xC0000135.  which is NTstatus “DLL not found”

#define STATUS_DLL_NOT_FOUND             ((NTSTATUS)0xC0000135L)

So you will get this error when you try and run a program that needs a DLL, but the DLL cannot be found.  You may need to need to transfer the DLL (or perhaps more than one) along with the job to the execute machine. If OpenSees.exe is already installed on the execute machine, and you can run it interactively from there, then you probably

need to set an environment variable before you run the program.

For most programs the PATH environment variable is the one that needs to be set, but

the documentation for OpenSees.exe may indicate that it uses some other variable.

-tj

*From:* HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] *On Behalf Of *Gustavo Andres Ospina Idarraga
*Sent:* Friday, June 15, 2018 4:31 PM
*To:* htcondor-users@xxxxxxxxxxx
*Subject:* [HTCondor-users] permission trouble executing tcl jobs

*** UW-Madison Mail System warning: attached executable file was renamed ***

*

* Attached to this message is an executable file or an archive that

* contains an executable file.  The attachment has been renamed for

* your protection.

*

* The file was scanned by UW-Madison anti-virus scanners and no threat

* was found.  However, executable files should be treated with great

* caution.  It's possible for viruses to slip through undetected in

* the minutes before anti-virus definitions are published.

*

* Please confirm with the sender that the file was sent intentionally,

* and that the file is safe to run before renaming the file by

* removing the "_renamed" from the end of the filename.

*

* For more information and support, please visit the following link:

*

*https://kb.wisc.edu/office365/page.php?id=6056

*

*************************** end of warning *********************************

*** UW-Madison Mail System warning: attached executable file was renamed ***

*

* Attached to this message is an executable file or an archive that

* contains an executable file.  The attachment has been renamed for

* your protection.

*

* The file was scanned by UW-Madison anti-virus scanners and no threat

* was found.  However, executable files should be treated with great

* caution.  It's possible for viruses to slip through undetected in

* the minutes before anti-virus definitions are published.

*

* Please confirm with the sender that the file was sent intentionally,

* and that the file is safe to run before renaming the file by

* removing the "_renamed" from the end of the filename.

*

* For more information and support, please visit the following link:

*

*https://kb.wisc.edu/office365/page.php?id=6056

*

*************************** end of warning *********************************

Hi,

I'm setting up a condor pool to run OpenSees files. The machines run on Windows 7, 64 bits, with condor version 8.7.8. Simple tests with batch files querying date, time, machine name, etc, work perfectly, but when running a tcl script (Opensees input) it ends abnormaly. What could be misconfigured? When I run the batch file from a command window it runs as expected. Here're the contents of the files I'm using (attached, along other config files). My only guess is that there's some security issue, maybe the antivirus or something else. What else should I try to make it work?

*Submit file:*

executable = modelupdbatch.bat
should_transfer_files = YES
transfer_executable = TRUE
log = joblogfile.log
error = errlogfile.log
queue 1

*batch file (modelupdbatch.bat):*

"C:\Opensees\OpenSees.exe" "step0.tcl"

*tcl file (step0.tcl)*:

set systemTime [clock seconds]
set machinename [info hostname];
set filename "testresults$machinename.out";
set fileId [open $filename "w"]
puts $fileId "The time is: [clock format $systemTime -format %H:%M:%S]"
puts $fileId "The date is: [clock format $systemTime -format %D]"
puts $fileId "Hostname is: $machinename"
close $fileId

*Job's log:*

...

005 (293.000.000) 06/15 16:10:04 Job terminated.
     (1) Normal termination (return value -1073741515)
         Usr 0 00:00:00, Sys 0 00:00:00  -  Run Remote Usage
         Usr 0 00:00:00, Sys 0 00:00:00  -  Run Local Usage
         Usr 0 00:00:00, Sys 0 00:00:00  -  Total Remote Usage
         Usr 0 00:00:00, Sys 0 00:00:00  -  Total Local Usage
     0  -  Run Bytes Sent By Job
     57  -  Run Bytes Received By Job
     0  -  Total Bytes Sent By Job
     57  -  Total Bytes Received By Job
     Partitionable Resources :    Usage  Request Allocated
        Cpus                 :                 1         1
        Disk (KB)            :        9        1  19339332
        Memory (MB)          :        0        1       506

...

thanks!

1517427987376_Outlook-1486572014.png
Gustavo A. Ospina| Docente Interno | Facultad de Ingeniería Civil| Universidad Pontificia Bolivariana | Km. 7 Autopista a Piedecuesta Oficina K-406C. Bucaramanga, COLOMBIA
Tel: +57(7) 679 62 20 | Ext. 20165
gustavo.ospina@xxxxxxxxxx <mailto:ledy.layton@xxxxxxxxxx>__| www.upb.edu.co <https://sn2prd0202.outlook.com/owa/redir.aspx?C=p6bcbAdxLUycBRCvd-t-EI2r-GQqqM4Ih9mXd_vwtXVwCHD4q-4dD8sAsBDR_nanDcGXEaCpAgk.&URL=http%3a%2f%2fwww.upb.edu.co%2f>

CONFIDENCIALIDAD: Este mensaje de correo electrónico contiene información privilegiada y confidencial; si usted no es el destinatario real del mismo, elimínelo de manera inmediata, reenvíelo a su remitente o informe de esta inconsistencia al correo datos.personales.bga@xxxxxxxxxx <mailto:datos.personales.bga@xxxxxxxxxx>. Así mismo, puede solicitar actualización de sus datos personales o la eliminación de nuestras listas de distribución a éste mismo correo. Para ver más sobre nuestra política de tratamiento y protección de datos personales ingrese al sitio http://politicadp.bucaramanga.upb.edu.co



_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/



--
Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
Center for High Throughput Computing   Department of Computer Sciences
HTCondor Technical Lead                1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                  Madison, WI 53706-1685