Hello All ! I am trying to use HTCondor on my local windows CPU for running multiple instances of MATLAB for my simulations. However, HTCondor Job Fails with MATLAB License Error (-39) Despite Valid Installation. I'm submitting a MATLAB batch job using HTCondor with the following submit file: universe = vanilla executable = run_matlab.bat arguments = script transfer_input_files = script.m output = job_output.txt error = job_error.txt log = job_log.txt should_transfer_files = YES when_to_transfer_output = ON_EXIT transfer_output_files = result.mat, matlab_log.txt, runtime_dir_list.txt, bat_debug.txt, dummy_from_bat.txt queue The batch script run_matlab.bat looks like this: @echo off echo BAT script started > bat_debug.txt echo Current directory: %CD% >> bat_debug.txt set MATLABEXE="C:\Program Files\MATLAB\R2024b\bin\matlab.exe" set TMP=%CD% set TEMP=%CD% set USERPROFILE=%CD% set MATLAB_PREFDIR=%CD%\MyDocuments\MATLAB mkdir MyDocuments mkdir MyDocuments\MATLAB echo Hello from Condor > dummy_from_bat.txt echo About to run MATLAB >> bat_debug.txt call "C:\Program Files\MATLAB\R2024b\bin\matlab.exe" -batch "run(fullfile(pwd, 'script.m'))" echo MATLAB command finished >> bat_debug.txt echo BAT script ended >> bat_debug.txt However, when the job runs, MATLAB fails with the following license error: License checkout failed. License Manager Error -39 Your system administrator has not authorized you to use MATLAB. Licensing error: -39,147. MATLAB does launch and run the batch file (confirmed in the log), but can't check out a license. This suggests the job environment is not authorized for MATLAB, even though it works fine outside Condor on the same machine. What I've tried:
Questions:
Thanks in advance for any help or suggestions! (log file:) Job was held. |