Clear Filters
Clear Filters

Why do I receive Error 5201 - Unable to access services required to run MATLAB?

11,101 views (last 30 days)
When I try launch to MATLAB, I get the following error:
Unable to access services required to run MATLAB (error 5201).
How do I resolve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Jun 2024
Edited: MathWorks Support Team on 14 Jun 2024
This error indicates that MATLAB has encountered a licensing issue. Follow the steps below to resolve this error:
 

1. End MathWorks Service Host processes and/or uninstall and reinstall the MathWorks Service Host

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?

 

2. Allow MATLAB and the MathWorks Service Host on antivirus, security software, VPNs, or proxy servers

If you have any antivirus, security software, VPNs, or proxy servers, please try 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

 

3. (Windows Only) Finish updates

If you have only partially or failed to install a recent Windows update, please complete, reattempt, or remove the unfinished update.

 

4. (macOS Only) Remove and re-add Full Disk Access for MATLAB

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.

 

5. Contact Support

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

More Answers (0)

Categories

Find more on Install Products 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!