Why do I receive Error 5201 - Unable to access services required to run MATLAB?
16,533 views (last 30 days)
Show older comments
MathWorks Support Team
on 1 Oct 2022
Edited: MathWorks Support Team
about 11 hours ago
When I try launch to MATLAB, I get the following error: How do I resolve this?
Unable to access services required to run MATLAB (error 5201).
Accepted Answer
MathWorks Support Team
about 18 hours ago
Edited: MathWorks Support Team
about 5 hours ago
This error indicates that MATLAB has encountered a licensing issue. Follow the steps below to resolve this error:
Follow the directions from the link below to end the service host process. If this does not work, then uninstall and reinstall the MathWorks Service Host from the same link below.
How do I uninstall and reinstall the MathWorks Service Host?
If you have any antivirus, security software, VPNs, or proxy servers, please try temporarily disabling them or adding an exception for the MathWorks Service Host to be unblocked. The executable's full path for each Operating System can be found below. You will need to replace the version number with the version you have installed, as well as the username with your computer's username.
Windows
C:\Users\%username%\AppData\Local\MathWorks\ServiceHost\(VersionNumber)\bin\win64\MathWorksServiceHost.exe
macOS
~/Library/Application Support/MathWorks/ServiceHost/(VersionNumber)/MathWorksServiceHost.app
Linux
~/.MathWorks/ServiceHost/$HOSTNAME/(VersionNumber)/bin/glnxa64/MathWorksServiceHost
If you are unable to fully disable these or if you are unsure if you can, please add MATLAB and the MathWorks Service Host to its whitelist, so they may function properly.
If you have only partially or failed to install a recent Windows update, please complete, reattempt, or remove the unfinished update.
If you have given MATLAB Full Disk Access, please remove its permissions to this and then attempt to launch MATLAB. If this does not resolve the issue, you may grant it Full Disk Access again to see if this resolves the issue.
If these steps do not resolve your issue, please find your Service Host log files, contact MathWorks Support, and send the log files to us. If you do not know where those files might be, please view the link below:
Where are the Installation, Activation, & Service Host log files located for MATLAB?
Contact Support
0 Comments
More Answers (0)
See Also
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!