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

[HTCondor-users] $ENV evaluation is not working in submit files submitted though dagman



Hi,

I am trying to evaluate $ENV() in vanilla condor submit file for log file path. It is not working. I am not sure what is going wrong in submit file.Â

When I submit below condor file through dagman, it is not able to evaluateÂ$ENV(_OUTPUT_DIR)Âhowever $ENV(_OUTPUT_DIR_PRIO) is evaluating fine. I checked dag configuration whetherÂ_OUTPUT_DIRÂis being passed or not. It is passing correctly. I can access them as arguments in it in executesScript.sh. In further testing, I replacedÂ_OUTPUT_DIRÂwithÂ_OUTPUT_DIR_PRIO. It is also not working however I am getting any error for that.Â

Am I missing something here?

$CondorVersion: 7.8.10 Jan 19 2015 BuildID: RH-7.8.10-0.2.el6 $
$CondorPlatform: X86_64-ScientificLinux_6.6 $

stacktrace:
ÂWARNING: can't determine whether log file /$ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.log is on NFS.
05/22/15 06:37:14 DAGMan::Job:8001:ERROR: Unable to monitor log file for nodeÂDOWNLOAD_FILES|ReadMultipleUserLogs:9004:Error getting file ID inÂmonitorLogFile()|ReadMultipleUserLogs:9004:Error initializing log file /$ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.log|MultiLogFiles:9001:Error (2, No such file or directory) opening file /$ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.log for creation or truncation

submit file:

executable = Â/usr/local//files/dev/scripts/dev1/executesScript.sh
Arguments    = DOWNLOAD_FILES $ENV(JOB_ID) $ENV(_OUTPUT_DIR) $ENV(_SCRIPT_DIR)
get_env = true

error  = $ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.err
Log   = $ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.log
output Â= $ENV(_OUTPUT_DIR)/logs/DOWNLOAD_FILES.out

Requirements = Memory >= 5048 && Cpus >=1
request_cpus = 1
request_memory = 5048
Priority = $ENV(_OUTPUT_DIR_PRIO)
Rank = 500 - TotalLoadAvg

Queue