Regarding MATLAB Production Server dashboard
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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.
채택된 답변
Kojiro Saito
2018년 4월 11일
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
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.
Thanks for quick reply. Is matlab production server not available in academic license? I am using academic license/
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.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Production Server에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
