matlab -batch on SLURM prints errors when HOME is shared across many nodes
When launching MATLAB in batch mode on a SLURM cluster, stderr shows:
terminate called after throwing an instance of ‘matlabconnector::installationsregistry::InstallationsRegistryError’
what(): InstallationsRegistry:getMatlabConnectorVersion: More than one MATLAB Connector records were found
This appears during startup (even for a simple command like matlab -batch "disp(version); exit").
sbatch command (PROGLIST=/work/share/…/matlab2024a/bin/matlab):
srun "$PROGLIST" -batch "$CMD"
Find files in ~/.MATLABConnector as below:
~/.MATLABConnector/b01r2n13/LatestInstall.info
~/.MATLABConnector/b01r2n13/UpdatePending.json
~/.MATLABConnector/b01r2n13/locks
~/.MATLABConnector/b02r2n01/LatestInstall.info
~/.MATLABConnector/b02r2n01/UpdatePending.json
~/.MATLABConnector/b02r2n01/locks
…
Questions
Is this a known issue with MATLAB Connector on HPC systems where $HOME is shared across many nodes?
How to prevent MATLAB from throwing this error at startup?When launching MATLAB in batch mode on a SLURM cluster, stderr shows:
terminate called after throwing an instance of ‘matlabconnector::installationsregistry::InstallationsRegistryError’
what(): InstallationsRegistry:getMatlabConnectorVersion: More than one MATLAB Connector records were found
This appears during startup (even for a simple command like matlab -batch "disp(version); exit").
sbatch command (PROGLIST=/work/share/…/matlab2024a/bin/matlab):
srun "$PROGLIST" -batch "$CMD"
Find files in ~/.MATLABConnector as below:
~/.MATLABConnector/b01r2n13/LatestInstall.info
~/.MATLABConnector/b01r2n13/UpdatePending.json
~/.MATLABConnector/b01r2n13/locks
~/.MATLABConnector/b02r2n01/LatestInstall.info
~/.MATLABConnector/b02r2n01/UpdatePending.json
~/.MATLABConnector/b02r2n01/locks
…
Questions
Is this a known issue with MATLAB Connector on HPC systems where $HOME is shared across many nodes?
How to prevent MATLAB from throwing this error at startup? When launching MATLAB in batch mode on a SLURM cluster, stderr shows:
terminate called after throwing an instance of ‘matlabconnector::installationsregistry::InstallationsRegistryError’
what(): InstallationsRegistry:getMatlabConnectorVersion: More than one MATLAB Connector records were found
This appears during startup (even for a simple command like matlab -batch "disp(version); exit").
sbatch command (PROGLIST=/work/share/…/matlab2024a/bin/matlab):
srun "$PROGLIST" -batch "$CMD"
Find files in ~/.MATLABConnector as below:
~/.MATLABConnector/b01r2n13/LatestInstall.info
~/.MATLABConnector/b01r2n13/UpdatePending.json
~/.MATLABConnector/b01r2n13/locks
~/.MATLABConnector/b02r2n01/LatestInstall.info
~/.MATLABConnector/b02r2n01/UpdatePending.json
~/.MATLABConnector/b02r2n01/locks
…
Questions
Is this a known issue with MATLAB Connector on HPC systems where $HOME is shared across many nodes?
How to prevent MATLAB from throwing this error at startup? linux, batch MATLAB Answers — New Questions









