Why does the MATLAB Parallel Server status in the Admin Center show as unavailable after I have started the MATLAB Parallel Server services?

6 views (last 30 days)
Why does the MATLAB Parallel Server status in the Admin Center show as unavailable after I have started the MATLAB Parallel Server services?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Feb 2022
Edited: MathWorks Support Team on 28 Feb 2022
This is most likely caused by a DNS issue where the Hostname is not getting resolved. When a connection test is performed an error similar to the one below will be displayed :
ERROR: "java.net.UnknownHostException: The Hostname (BGL-RPADIYAT.ad.mathworks.com) could not be resolved. Set the Hostname manually in the mjs_def file and restart the mjs service"
To resolve this issue, please follow the below steps:
  1. Stop the MJS Services. You can do so in the Windows Services or use the following commands in a Terminal for non-Windows machines\n
    cd $MATLAB\toolbox\parallel\bin
    ./mjs stop
  2. Navigate to the mjs_def file.
  3. To locate the mjs_def file navigate to $MATLAB/toolbox/parallel/bin (where $MATLAB represents the folder where MATLAB is installed).
  4. Open this file with a text editor and modify the field "set HOSTNAME=%strHostname%.%strDomain%"
  5. Replace the default value with the Hostname,
  6. Restart the MATLAB Parallel Server services. You can do so in the Windows Services or use the following commands in a Terminal for non-Windows machines\n
    cd $MATLAB\toolbox\parallel\bin
    ./mjs start
  7. Update the Admin Center. 
This should resolve the issue.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!