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.
採用された回答
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 件のコメント
varinder kaur
2018 年 4 月 12 日
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.
Kojiro Saito
2018 年 4 月 12 日
varinder kaur
2018 年 4 月 12 日
Thanks for quick reply. Is matlab production server not available in academic license? I am using academic license/
Kojiro Saito
2018 年 4 月 12 日
varinder kaur
2018 年 4 月 12 日
Thank you very much sir
Ziang
2023 年 4 月 2 日
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
Kojiro Saito
2023 年 4 月 3 日
Which version you're using and what error messages of PostgreSQL you got?
Ziang
2023 年 4 月 3 日
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)
Kojiro Saito
2023 年 4 月 3 日
Could you tell us the version?
Ziang
2023 年 4 月 3 日
My matlab version is R2022a, postgresql version cannot be found at the moment.
Ziang
2023 年 4 月 3 日
the version of postgresql is 10.17
Kojiro Saito
2023 年 4 月 3 日
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 (\).
Ziang
2023 年 4 月 3 日
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
marvellous
2023 年 5 月 19 日
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?

Kojiro Saito
2023 年 5 月 22 日
marvellous
2023 年 5 月 22 日
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?

Kojiro Saito
2023 年 5 月 22 日
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"
marvellous
2023 年 5 月 22 日
I did as you said, but the problem remains. What can I do to handle with the "admin" problem?

Kojiro Saito
2023 年 5 月 22 日
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"
marvellous
2023 年 5 月 23 日
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.


Kojiro Saito
2023 年 5 月 23 日
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?
marvellous
2023 年 5 月 23 日
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?

Kojiro Saito
2023 年 5 月 23 日
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.
marvellous
2023 年 5 月 23 日
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!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
