eclipse-tractusx / sldt-semantic-hub

Apache License 2.0
7 stars 11 forks source link

Error in visualization and download #157

Closed arnoweiss closed 4 months ago

arnoweiss commented 1 year ago

In this deployment, there is an error when inspecting the WeekBasedCapacityGroup. Downloads return html instead of the desired artifacts and the frontend doesn't render the pages properly. Since neither function, I suspect this is a backend issue with the semantic hub and not due to the portal's visualization. Screenshot:

image

A failed download for the aspect-ttl looks like this:

<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABT1JREFUaEPlWT1MY0cQ/ubZkEhJ4TRJS9oIg9FhpFSBpDgp8SNcF0xxRkkPaS8Fpri0QJ8I7iTs64AzKZNAFQkjYWyU9qBMmoCUSLnEZqJ9frbfz+6+fTa6QLKlPW9nvtnZ+WZmCQMu3kQKr2EFQAGECZrH+YBbxvqcYkkHhLmMaTA2AYw4fxFmaB4Hg+wZ99u+AXAJawCWfQrvAgA3ZH4EkAl5604AKGELwEPpUd8RAC+6MR9EcUcAsPKi/R8B7PyUGUkmmw+JaITZzWbAJZgOmi1r78H7NW1ajpWFeBsZEE5u4gSE4UNDrRVmFCJS567FrdVPpn6uyeSMAXAZK2AUtcoMQmjnJJNKNFsrFEzBUQTAtGxP1TfC1y7iQy5jxCWr6SgdILyrY+Lvjt7LsJXY8YRK5JZeASJs5SYbi77fdDvwNpZAjtdTBpquKK+Wq1RHVwDSn6CBEhBv2JNnXQKVhpBDVq9jDdHx2VPJWKQFhyN8S3j9mpKbAIeJz8RgqQzP2Nkzp2QJAdAyrVzhlSjkKI/d4N+Vo7ElEK/3baf6wwM725gJAejD+EMQCsG4b6fGlijyou9Nz8hDAjlOYPAcgA90wIeH6Z374/VffSfAJQhvLRl4THi9SHlH3rdcr5veGzBwRYSCPdnwnWDlKL0FUpQsQqNFs/a9eqULwC2NRZEWtU5BmAt5/SSTSjYdrwvvGS0C9v5OJgoPJ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RU5ErkJggg=="><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="manifest" href="/manifest.json"/><title></title><script defer="defer" src="/static/js/main.7c721c40.js"></script><link href="/static/css/main.a00cac5d.css" rel="stylesheet"></head><body><div id="app"></div><script>const ENV={PORTAL_ASSETS_URL:"https://portal.int.demo.catena-x.net/assets",PORTAL_BACKEND_URL:"https://portal-backend.int.demo.catena-x.net",CENTRALIDP_URL:"https://centralidp.int.demo.catena-x.net/auth",BPDM_API_URL:"https://business-partners.int.demo.catena-x.net/api",SEMANTICS_URL:"https://semantics.int.demo.catena-x.net",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.int.demo.catena-x.net"}</script></body></html>
thomas-henn commented 9 months ago

@ma3u : HI Matthias, how is the current status on that? Thank you very much and best regards Thomas

@jjeroch: FYI from Jira Ticket CPLP-3437 and A1SLDT-1282

richaashara commented 9 months ago

@arnoweiss and @thomas-henn,

This issue in the Semantic Hub is specifically regarding image generation for models using the SDK. Which is already fixed in the Semantic Hub 0.2.15 version.

The error occurred during the generation of SVG or PNG images for models, as the SDK was creating new temporary files for each "get diagram" request. This process would eventually lead to memory saturation and subsequently, the pod will go down.

For the older version of the BAMM model, we were utilizing the Open Manufacturing SDK, while the BAMM 2.1 and SAMM models relied on the ESMF SDK for diagram generation.

I am pleased to inform you that I have successfully addressed and resolved this issue for the ESMF SDK. The corresponding pull request has already been merged in SDK version 2.2.3.

In our discussions with Roman and Matthias, we determined that we had not pursued a fix for the Open Manufacturing SDK, as we were aware of its impending removal from the Semantic Hub. Consequently, in the latest Semantic Hub version, the usage of Open Manufacturing SDK has been eliminated.

Please be advised that this image generation issue will persist only for older BAMM models, as the Open Manufacturing SDK is used. if we use SH version 0.2.14 or lower. We anticipated that this problem would persist until the older SDK is removed from the codebase.

If you have any further questions or concerns, please don't hesitate to reach out if not then I request to close this issue.

tunacicek commented 8 months ago

@richaashara , @ma3u , @arnoweiss : The backend is updated to the newest sdk (2.4.2). Is the UI Part done?

richaashara commented 8 months ago

@tunacicek , Could you please check from portal team for the UI issue.

ds-lcapellino commented 8 months ago

We could possibly look into the problem of the UI. For this we would need the following information:

We may also need support to run the test scenario locally. Although it should be easy to start the frontend locally, the question remains whether we can easily access the test scenario in the local development environment.

ds-lcapellino commented 7 months ago

FYI, a potential UI-issue fix is proposed in the PR https://github.com/catenax-ng/tx-portal-frontend/pull/426 on portal side.

RazvanZmau commented 4 months ago

Fixed