You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the components and am really happy right now with how everything is set up using MongoDB as backend.
While playing around with my deployment spinning up the containers on demand with a load balancer i noticed the binaries contained in my AASX where missing.
As it turns out when reading in the AASX file everything but the binaries, who will be retrieved with: http://localhost:8081/submodels/{submodelIdentifier}/submodel-elements/{idshortpath}/attachment
are stored in MongoDB.
When going on the hunt for my binaries i found them inMemory stored in the /tmp/ Dir of the container.
This can be shown with the response of: http://MY-IP:8081/submodels/My-Hash/submodel-elements/DeviceManual.DocumentVersion00.DigitalFile
which returns:
using: http://MY-IP:8081/submodels/My-Hash/submodel-elements/DeviceManual.DocumentVersion00.DigitalFile/attachment
will retrieve the file But..
This resulted in the binary missing when i rebooted the container, since /tmp will get cleaned up by the system and the AASX will not get reloaded when its ID already exists in MongoDB.
My current fix to persist the data by mounting the /tmp of basyx.aasenvironment to my filesystem as follows, but this increases the access times by 10x+ and is no longterm solution.
Maybe you can point me to the config option which will fix this behaviour but i believe this simply might be a bug.
Sadly my java aint good enough to make the PR but i hope this helps locate it.
This still is the best open source implementation of AAS-Infra.
Have a great week!
Edit:
I have seen there is a basyx.aasxfileserver component but i believe that is not intended to be a File/Artifact DB but a component to serve AASX files only
The text was updated successfully, but these errors were encountered:
Hello @mwly,
this was actually a bug.
We have fixed it in the PR mentioned above.
Please note that it will take some time to update the Docker images, there currently is no ETA for this
If you want to try it out, you can build the Docker Image yourself.
Hi,
I am using the components and am really happy right now with how everything is set up using MongoDB as backend.
While playing around with my deployment spinning up the containers on demand with a load balancer i noticed the binaries contained in my AASX where missing.
As it turns out when reading in the AASX file everything but the binaries, who will be retrieved with:
http://localhost:8081/submodels/{submodelIdentifier}/submodel-elements/{idshortpath}/attachment
are stored in MongoDB.
When going on the hunt for my binaries i found them inMemory stored in the /tmp/ Dir of the container.
This can be shown with the response of:
http://MY-IP:8081/submodels/My-Hash/submodel-elements/DeviceManual.DocumentVersion00.DigitalFile
which returns:
using:
http://MY-IP:8081/submodels/My-Hash/submodel-elements/DeviceManual.DocumentVersion00.DigitalFile/attachment
will retrieve the file But..
This resulted in the binary missing when i rebooted the container, since /tmp will get cleaned up by the system and the AASX will not get reloaded when its ID already exists in MongoDB.
My current fix to persist the data by mounting the /tmp of basyx.aasenvironment to my filesystem as follows, but this increases the access times by 10x+ and is no longterm solution.
Maybe you can point me to the config option which will fix this behaviour but i believe this simply might be a bug.
Sadly my java aint good enough to make the PR but i hope this helps locate it.
This still is the best open source implementation of AAS-Infra.
Have a great week!
Edit:
I have seen there is a basyx.aasxfileserver component but i believe that is not intended to be a File/Artifact DB but a component to serve AASX files only
The text was updated successfully, but these errors were encountered: