Why does the MATLAB Web App Server service fail to start?

I am using MATLAB Web App Server (product version). When I attempt to start my server using webapps-start or webapps-restart, I receive the following error:
MATLAB Web App Server service failed to start.
Check the logs files for more information:
C:\ProgramData\MathWorks\webapps\R2024a\logs\webapps_<timestamp>.log
C:\ProgramData\MathWorks\webapps\R2024a\logs\webapps_service_start.err
C:\ProgramData\MathWorks\webapps\R2024a\logs\webapps_service_start.out
How do I troubleshoot this?

 Accepted Answer

There are a number of reasons the MATLAB Web App Server services may fail to start. 
To troubleshoot this issue, consult the logs listed in the output for a more specific error. Enable verbose logging for best results.
If you are still unable to resolve the issue, try the following troubleshooting steps:
  • If this is a new installation of MATLAB Web App Server,
    • Confirm that your environment meets the Product Requirements. For unsupported Linux distributions, ensure all necessary libraries are present via this MATLAB Answer.
    • Try a clean reinstallation of the product.
  • If there have been any recent changes to the product configuration or server environment, attempt to undo these changes and confirm if it resolves the issue. Consult documentation before attempting these changes again.
  • Clear the USR folder and attempt to restart the Web App Server. The USR folder can be found in the same directory that contains the apps, logs, and config folders as listed here. If the server fails to start after following these steps, refer to the next bullet for next steps.
  • Set up the server again by running webapps-uninstall followed by webapps-setup and see if this resolves the issue. You may want to run webapps-config get beforehand and record the output to make it easier to restore the any settings.

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!