-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when calling submodel GET API after multiple users operating the same AAS #430
Comments
Thanks a lot for pointing out this issue. Can you also provide the configuration files used in your setup? Is there any reason why you are still using the 1.X Components of BaSyx? With the update of the meta model & REST API by the IDTA to V3, they are becoming obsolete. The new components conforming to the newest specifications by IDTA can be found here: |
The configs of aas registry and aas server are as follows:
registry.properties
context.properties
mongodb.properties
aas.properties
context.properties
mongodb.properties
I would like to migrate to V3 in the future, but I am hesitant to do now due to the following reasons:
|
We will take a look based on your configuration and come back to you. In regard to the migration:
|
Hi @hiroaki-yoshii , We tried to reproduce the issue based on the configurations and steps you provided, but we couldn't reproduce it at our end.
|
Sorry, the json content in step 3(calling Submodel PUT API) of the process is incorrect. request json{
"conceptDictionary": [],
"identification": {
"idType": "Custom",
"id": "https//example.com/aas/0"
},
"idShort": "test",
"dataSpecification": [],
"modelType": {
"name": "AssetAdministrationShell"
},
"asset": {
"identification": {
"idType": "Custom",
"id": "https//example.com/asset/0"
},
"idShort": "test_asset0",
"kind": "Instance",
"dataSpecification": [],
"modelType": {
"name": "Asset"
},
"embeddedDataSpecifications": []
},
"embeddedDataSpecifications": [],
"views": [],
"submodels": [
{
"keys": [
{
"idType": "Custom",
"type": "Submodel",
"value": "https//example.com/submodel/0",
"local": true
}
]
}
]
} |
Thanks for providing the updated requested body. |
Overview
When multiple users access one AAS, the submodel GET API hangs due to a certain pattern of access, does not return a response, and also does not output logs.
the problem is not resolved even after retrying, because a data integrity problem may be occurred .
Specifically, if you call the BaSyx AAS Repository API in the order below, no response will be returned in step 4.
This seems to be because the property
.submodels
in AAS GET API reponse is different from the submodel database.Impact of this issue
Applications using BaSyx cannot be deployed in an environment with multiple users, therefore it is not possible to move from Proof of Concept to the next step.
Steps to reproduce
Environment
Docker compose settings
A sample procesure
API operation:
GET /aasServer/shells/https%2F%2Fexample.com%2Faas%2F0
response json
API operation:
PUT /aasServer/shells/https%2F%2Fexample.com%2Faas%2F0/aas/submodels/test_sm1
request json
API operation:
PUT /aasServer/shells/https%2F%2Fexample.com%2Faas%2F0
request json
API Operation:
GET /aasServer/shells/https%2F%2Fexample.com%2Faas%2F0/aas/submodels/test_sm1/submodel
The text was updated successfully, but these errors were encountered: