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
Whenever a new Edge is added, the bug mentioned in the title always occurs. At this time, checking http://localhost:4200/overview shows that the getEdges API outputs the error 'Unable to find edge with id [xxx]'. However, restarting the backend resolves the issue, and all edges, including the newly added one, are displayed on the dashboard.
Since the newly added Edge is not in the cache, the error throw new OpenemsException("Unable to find edge with id [" + edgeId + "]") occurs.
The cache is only updated during the initialization of the connection with PostgreSQL, so a restart is required after adding a new edge.
Screenshots
Operating System
macOS
How to reproduce the Error?
Steps to Reproduce:
Use Odoo as metadata.
While the backend is running, add a new Edge.
Launch the backend UI and navigate to /overview.
None of the edges registered in Odoo are displayed.
The text was updated successfully, but these errors were encountered:
katsuya
changed the title
When using Odoo as metadata, after adding a new Edge, all edges stop displaying on the backend UI dashboard.
When using Odoo as metadata, after adding a new Edge, all edges stop displaying on the backend UI dashboard
Sep 30, 2024
This is not an actual Issue but more of a "Feature" as it is not intended to add more edges in Production without Restarting. If you want you could see in my PR where i tried to fix this "Issue" !
Thank you for your response. I understand that this should be addressed as a feature rather than a bug. I would like to implement this as a feature, so it would be helpful if you could let me know why #2505 was not merged and what the issues were.
Description
Whenever a new Edge is added, the bug mentioned in the title always occurs. At this time, checking http://localhost:4200/overview shows that the getEdges API outputs the error 'Unable to find edge with id [xxx]'. However, restarting the backend resolves the issue, and all edges, including the newly added one, are displayed on the dashboard.
Here is the bug details:
InitializeEdgesWorker.java#L39-L52
getEdges
API calls thegetPageDevice
method:MetadataOdoo.java#L578
getPageDevice
callsconvertToEdgeMetadata
for each edge:MetadataOdoo.java#L596-L603
throw new OpenemsException("Unable to find edge with id [" + edgeId + "]")
occurs.Screenshots
Operating System
macOS
How to reproduce the Error?
Steps to Reproduce:
/overview
.The text was updated successfully, but these errors were encountered: