Why do I get a "pid" or "endpoint" file error when trying to start my MATLAB Production Server (MPS) instance?

2 views (last 30 days)
When I try to start my MATLAB Production Server (MPS) instance, I get one of the following errors:
Error: ping: main pid file exists, but control endpoint file missing
or
Error: ping: control endpoint file exists, but main pid file missing
How do I resolve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Feb 2024
Edited: MathWorks Support Team on 8 Feb 2024
The issue occurs if the MATLAB Production Server (MPS) instance process is killed abruptly. Follow the steps given below to resolve this issue.
  1. Navigate to MPS script directory, which by default is $MPS_INSTALL/script.
  2. From here, run the command below. This will remove working files in the instance directory. These files are usually removed during a graceful shutdown. For more information on using the "mps-stop" command check the following link: https://www.mathworks.com/help/mps/server/mpsstop.html
    mps-stop --purge -C path/to/mpsInstance 
  3. The steps above are preferred. However, if you run into further issues, you may manually delete the "main.pid" file from the pid directory, and control & http files from the endpoint directory.
  4. After following the steps above, restart your MPS instance.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!