matlab -batch on SLURM prints errors when HOME is shared across many nodes
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!