Matlab Production Server error

I am trying to deplay a matlab script which connects to a remote MongoDB database in orde to retrieve data and return a matrix. The script runs just fine on my computer and I used to the Comiler SDK in order to generate a deployable file for the production server which is set up on my local computer. I uploaded the application and deployed it to an instance. However, as soon as I run this code:
var data = JSON.stringify({
"rhs": [40633],
"nargout": 1,
"outputFormat": {"mode": "small", "nanType": "string"}
});
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "http://localhost:9910/myMatlabQC/myMatlabQC");
xhr.setRequestHeader("content-type", "application/json");
xhr.send(data);
I receive this error:
{"error":{"id":"MATLAB:builtins:MessageCatalogLoadFailed","message":"Unable to load a message catalog 'mongodb:mongodb'. Please check the file location and format.","stack":[{"file":"C:\\MPS-Workspace\\mps_workspace\\Instances\\mps_4\\.mps_deployed\\myMatlabQC_3\\toolbox\\database\\database\\supportpackages\\mongodb\\mongo.m","line":166,"name":"mongo.mongo"},{"file":"C:\\MPS-Workspace\\mps_workspace\\Instances\\mps_4\\.mps_deployed\\myMatlabQC_3\\myMatlabQC\\ConnectToMarvel.m","line":16,"name":"ConnectToMarvel"},{"file":"C:\\MPS-Workspace\\mps_workspace\\Instances\\mps_4\\.mps_deployed\\myMatlabQC_3\\myMatlabQC\\myMatlabQC.m","line":37,"name":"myMatlabQC"}],"type":"matlaberror"}}.
I have also uploaded an dummy app which simly squares a given input and it worked just fine.
In order to connect to the MongoDB database you need an vpn. But since the MPS runs on my local machine which is already using the vpn this is probably not the issue (?).
The script calls two other scripts and is reliant on the Database Toolbox and the Database Toolbox Interface for MongoDB. But as far as I understand, the Compiler SDK automatically recognized the additional files that the script requires to run.
Could someone help me resolve this issue?

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler SDK についてさらに検索

質問済み:

2019 年 7 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by