- Add $MPS_ROOT\bin\win64 to your system PATH, where $MPS_ROOT is the directory where you have MATLAB Production Server installed. The $MPS_ROOT\bin\win64 folder contains DLLs that MATLAB Production Server uses.
- Also make sure any postgresql process running in the host is terminated and that the dashboard setup process is executed in admin mode.
Why does the MATLAB Production Server Dashboard installation process output a 'Command failed... pg_ctl' error message on a Windows machine?
1 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2018-1-20
编辑: MathWorks Support Team
2023-4-7
When running the .\setup.bat install for the MATLAB Production Server Dashboard installation, why do I get the following error:
server error: Command failed: C:\Windows\system32\cmd.exe /s /c ""C:\Program Files\MATLAB\MATLAB Production Server\R2017a\dashboard\PostgreSQL\bin\pg_ctl" -w -D "C:\mps\dashboard\data" init"
采纳的回答
MathWorks Support Team
2023-4-7
编辑:MathWorks Support Team
2023-4-7
This error can occur if Visual C++ Redistributable Packages for Visual Studio 2013 is not installed properly. To verify, run the following command in the Command Prompt:
"C:\Program Files\MATLAB\MATLAB Production Server\R2017a\dashboard\PostgreSQL\bin\pg_ctl" -w -D "<MPSDASHBOARDINSTALLATIONDIR>\dashboard\data" init
If the following error message is outputted, then Visual C++ Redistributable Packages for Visual Studio may not be installed:
MSCVR120.DLL is missing
To resolve this error, you must install Visual C++ Redistributable Packages for Visual Studio 2013. After installing the package, you can attempt the MPS Dashboard installation again. A successful install of the Dashboard will result in the following output:
cleaning workspace...
cleaned workspace
creating workspace...
created workspace
initializing database...
initiated database at <MPSDASHBOARDINSTALLATIONDIR>\data
starting database server...
started database server
stopping database server...
stopped database server
Successfully installed MATLAB Production Server Dashboard.
If you are still unable to set up MPS dashboard and the output from the command above is empty and does not mention the missing DLL, then try the following steps:
Note: "$MPS_ROOT" and <<MPSDASHBOARDINSTALLATIONDIR>" should be replaced with your MATLAB Production Server installation directory, such as "C:\Program Files\MATLAB\MATLAB Production Server\R2017a".
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!