Regarding MATLAB Production Server dashboard

I check the link https://in.mathworks.com/help/mps/server/setup-and-log-in-to-matlab-production-server-dashboard.html. I installed Matlab R2018a. but i am unable to set up matlab-production-server-dashboard. as i not contain mps-dashboard setup. Kindly provide the steps how i setup MATLAB Production Server dashboard.

 Accepted Answer

I assume you machine is Windows. To setup MATLAB Production Server Dashboard, please read the following steps.
1. Install Visual C++ Redistributable Packages
Download Visual C++ Redistributable Packages for Visual Studio 2013 from this link . Choose "vcredist_x64.exe".
2. Setup MATLAB Production Server Dashboard
Open Command Prompt and cd to $MPS_INSTALL\dashboard where $MPS_INSTALL is installation folder of MATLAB Production Server, for example, "C:\Program Files\MATLAB\MATLAB Production Server\R2018a".
cd C:\Program Files\MATLAB\MATLAB Production Server\R2018a\dashboard
mps-dashboard.bat setup
Then, specify any folder (for example, C:\Work\MPS_Dashboard_Work) for Dashboard work folder.
3. (Optional) Configure Dashboard settings
If you want to change default port numbers for dashboard and database, Edit $MPS_INSTALL\dashboard\config\config.txt.
4. Start Dashboard
Open Command Prompt and cd to $MPS_INSTALL\dashboard, then do
mps-dashboard.bat start
5. Access to Dashboard
Open web browser and access to http://localhost:9910 (by default port number) Login page will appear. Default account is User: admin and Password: admin
6. Creating MPS instance using Dashboard
After log in to Dashboard, click "Create New" for creating new MPS instance. Input Name and Description(Optional), click "Create".
After creating a instance, click a hyperlink of the instance, then go to "Application" tab. Click "Upload and Deploy New Archive" from triangle-bottom, and upload your .ctf file (which you've compiled from Production Server Compiler).
Next, go to "Settings" tab. Change MPS instance configurations as you like. For example,
Core -> MATLAB Runtime path
HTTP -> HTTP/HTTPS port number and edit CORS Allowed Origins
Worker -> Maximum Workers
License -> License server info
and click "Save" in the bottom and click green triangle in the top. MPS instance will be started.
Hope this would help you.

25 Comments

Thanks for detailed steps. but after installing R2018a setup, MATLAB Production Server folder not found in C:\Program Files\MATLAB\MATLAB Production Server. from where can i download matlab production server free.
You can ask for a trial license of MATLAB Production Server from this trial license request page.
Thanks for quick reply. Is matlab production server not available in academic license? I am using academic license/
No, MATLAB Production Server is also available for Academic License.You can ask a request for a trial license from here and price information from here.
Thank you very much sir
Hello, I also have this problem, I follow the steps you said, run under cmd, directly got an error, the error is that the application cannot start normally (0xc0150002), I also installed Visual C++ Redistributable Packages, but still can not be solved, adding $MPS_ROOTbinwin64 to the path can not be solved, I also get an error clicking Run Postgresql, I would like to ask how to fix it
Which version you're using and what error messages of PostgreSQL you got?
I run mps-dashboard.bat setup error under cmd is Command failed: "E:Program FilesMATLABsyspostgresqlwin64PostgreSQLbinpg_ctl" -w -D "C:MPSdata" init I start pg_ ct1.exe error is that the application failed to start normally (0xc0150002)
Could you tell us the version?
My matlab version is R2022a, postgresql version cannot be found at the moment.
the version of postgresql is 10.17
I cannot reproduce your issue and "mps-dashboard setup" works well in R2022a.
I wonder why the command "E:Program FilesMATLABsyspostgresqlwin64PostgreSQLbinpg_ctl" does not include any folder separation (\).
Now I run mps-dashboard.bat the error with setup is
EBUSY: resource busy or locked, rmdir 'C:\MPS\data'
############ server error begin ############
server error : Command failed: "E:\Program Files\MATLAB\sys\postgresql\win64\PostgreSQL\bin\createuser" -s admin
createuser: could not connect to database template1: received invalid response to SSL negotiation: H
I hope you can help me with that
Possibly, the default TCP port 9080 for PostreSQL was used in another process.
Launch Command Prompt as Admin, and check the following.
netstat | findstr "9080"
You can change the port number by editing
<MATLAB Production Server Install>\dashboard\config\config.txt
For example, from
--databasePort 9080
to
--databasePort 9070
Hi, sorry to trouble you. I did all things you said above but also met with the problem. I can not set up the MATLAB Production Server dashboard under CMD, my MATLAB version is R2018a. Here attached is the error code, could you please help me? What should I do?
Thank you for your reply. I 've tried the answer in " Why does the MATLAB Production Server Dashboard installation process output a 'Command failed... pg_ctl' error message on a Windows machine?". I installed Visual C++ Redistributable Packages for Visual Studio 2013, added $MPS_ROOT\bin\win64 to my system path. However, the error code has changed as the figure shows. What can I do to fix it?
It seems that database folder was created in "D:\MATLAB\MATLAB\data" before and there was admin user in it.
You need to delete "D:\MATLAB\MATLAB\data" folder first.
And the folder is different frrom the one spcified in mps-dashboard.bat setup. You need to add double quoatation (" ") to prevent space parsing.
mps-dashboard.bat setup -C "D:\MATLAB\MATLAB Production Server\dashboard"
I did as you said, but the problem remains. What can I do to handle with the "admin" problem?
I didn' notice that you're specifying install folder with "-C" option.
How about changing the folder to somewhere else which you have write permissions.
mps-dashboard.bat setup -C "D:\dashboard"
Yes, I have created a new folder named "dashboard" under "D:" as you said. However, I found a blue square before its Read-only attribute as the figure shows. I don't know why and how to cancel it, I also have no idea if this matters. I ran the command under CMD and the problem remained.
It looks weird. How about changing the database user name from admin to others.
There is a config file named config.txt in<MATLAB Production Server Install>\dashboard\config\config.txt.
You can edit
--databaseUser admin
to
--databaseUser hoge
Then, could you run mps-dashboard.setup again?
Thank you very much!!!!! The dashboard finally works! Could you please tell me why this time the solution worked? I just can not figure it out by myself. What actually happened to my MATLAB?
I'm not sure the reason, but it seems that admin user already exists in PostgreSQL (port 9080). I suspect port 9080 was in use and admin user was added before mps-dashboard setup.
Oh, I see. Thank you for your time, your help is greatly appreciated.

Sign in to comment.

More Answers (0)

Products

Release

R2018a

Community Treasure Hunt

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

Start Hunting!