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

Re: [HTCondor-users] Negative return value after submission



that error code is

The application failed to initialize properly (0xc0000022)

 

Which generally indicates a missing .dll file.

 

Your submit file has these statements

 

executable=C:\ProgramData\Anaconda2\python.exe

executable=testrun.bat

transfer_executable = True

 

Only the second executable= line has any effect.  so your executable is effectively testrun.bat

and it is being transferred.  and (presumably) started, so the question now is: what does testrun.bat contain?

 

Also, this statement

 

PYTHONPATH=C:\Python

 

is assuming that python is installed on the execute node in c:\Python,  can we verify that?

perhaps add

 

dir c:\Python

 

to the start of testrun.bat?

 

The fact that you are submitting from Linux and running on Windows should not be a problem.

 

-tj

 

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Peter Ellevseth
Sent: Wednesday, January 9, 2019 3:05 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Negative return value after submission

 

Hi

 

The return value is «-1073741790».

 

My submit file looked like this:

universe=vanilla

executable=C:\ProgramData\Anaconda2\python.exe

executable=testrun.bat

 

error=ais_submit.error

output=ais_submit.out

log=ais_submit.log

 

requirements = Machine=="XXXXXXX && OpSys == "WINDOWS"

environment = PYTHONPATH=C:\Python

transfer_input_files = average.py

 

transfer_executable = True

arguments= average.py

Queue

 

Conda is pre-installed on the node. I can e.g. activate it through anaconda shell or run python scripts directly on the node.

 

I have tried having conda in my home directory on the execute node (c:\Users\...) and also the one in the submit-file above. No difference there.

 

I was suspecting some sort of permission-issue, but the condor-slot users are member of the Users group and they have proper rights to the folder. Also I tried giving them permissions directly without luck.

 

I should probably mention  that I am submitting from a Linux machine (Centos 7). This is the only Windows-machine in our cluster.

 

P

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of John M Knoeller
Sent: onsdag 9. januar 2019 17.21
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Negative return value after submission

 

What is the actual value of the return?  that value may tell us something useful.

Can you show what is in your submit file? 

Is conda pre-installed on the execute node? or are you transferring it is part of the job?

Is the path to conda somewhere in your user directory? (i.e.  something like c:\Users\Ellevseth\conda)

 

-tj

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Peter Ellevseth
Sent: Tuesday, January 8, 2019 4:23 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] Negative return value after submission

 

Hello all

 

I am trying to use condor to execute a python script via anaconda. I have installed anaconda (on windows) and created an environment. However, when I put the path the to python.exe within my environment, as executable in my submit file I get a negative return value in my log, no errors and no output.

 

I tried doing the same, but substituting the environment python.exe to the one in my anaconda installation and it works fine.

 

Anybody have any good suggestions?

 

P

 

Image removed by sender. http://signature.safetec.no/images/SafeTec_Logo2.jpg

Peter Ellevseth

Senior Safety Engineer / Senior sikkerhetsingeniør
Dir: +47 93 43 56 01 / Tel: +47 51 93 92 20 (Stavanger)
peter.ellevseth@xxxxxxxxxx
www.safetec.no


Image removed by sender. http://signature.safetec.no/images/fbnew.png Image removed by sender. http://signature.safetec.no/images/linnew.png

 

Visste du at i 2017 satt kun 60 % av alle drepte i trafikken i en bil? De resterende var enten syklister, fotgjengere eller moped/motorsyklister. Sjekk din kommune her