Why do I receive an error that the MATLAB Parallel Server service launched but failed to start?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 22 Jul 2014
Edited: MathWorks Support Team
on 25 Jul 2024 at 10:23
When starting mjs on my Windows machine I receive the following error:
wrapper | Starting the MATLAB Parallel Server service...
wrapper | The MATLAB Parallel Server service was launched, but failed to start.
Accepted Answer
MathWorks Support Team
on 25 Jul 2024 at 0:00
Edited: MathWorks Support Team
on 25 Jul 2024 at 10:23
The mjs service may fail to start for a number of reasons and the more verbose error might be captured inside the mjs-service log found inside the LOGBASE of the machine (by default this is /var/log/mjs on Linux and C:\ProgramData\MJS on Windows). Consult this error first before taking any further steps.
If the error is unclear you may want to cleanly restart the MJS service to remove any stale state and pick up any fresh settings.
Caution: Executing these steps on the cluster headnode or machine running the jobmanager will cause the jobmanager database to be deleted and job data will be lost.
Instead of using the
-clean
flag use
-cleanPreserveJobs
to keep the database and job data.
In a terminal or cmd prompt inside matlabroot/toolbox/parallel/bin execute.
mjs stop -clean
And to start it back up:
mjs start -clean
Doing this will clear out the LOGBASE and CHECKPOINTBASE storage location and default mjs to the original state. If the above does not fix the issue, you will also want to uninstall the service:
mjs uninstall -clean
After which, you will want install and start it again:
mjs installmjs start
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown 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!