openems icon indicating copy to clipboard operation
openems copied to clipboard

Missing response to getSystemUpdateState requests on OpenEMS systems

Open Lamarqe opened this issue 7 months ago • 4 comments

Description

I noticed that getSystemUpdateState requests remain unresponded in my local OpenEMS test system.

I analyzed and found that the following code https://github.com/OpenEMS/openems/blob/ab5b5d2258aa009375187b905b35373fd4ebc66d/io.openems.edge.core/src/io/openems/edge/core/host/SystemUpdateHandler.java#L83 calls an exception handler without providing an exception (ex == null).

I added a proper IOException. This resolves the issue and the requests are properly responded (with an error response)

Screenshots

No response

Operating System

Ubuntu 24.04

How to reproduce the Error?

Navigate in the WebUI to settings -> systems.

Trace the websocket communication in the browser console.

Lamarqe avatar Jun 05 '25 21:06 Lamarqe

Sorry, i can not reproduce the Issue as i have a dpkg - so this only happens if no dpkg is onstalled right?

Sn0w3y avatar Jun 05 '25 22:06 Sn0w3y

dpkg is installed. But there is no configuration in openems which defines update parameters like download url or package name. All these parameters are null. So the dpkg command line contains a null package name, which it apparently cannot find.

Where does the update information come from in your environment? And how does an openems debian package get built which can be updated via the debian package management?

Lamarqe avatar Jun 06 '25 04:06 Lamarqe

dpkg is installed. But there is no configuration in openems which defines update parameters like download url or package name. All these parameters are null. So the dpkg command line contains a null package name, which it apparently cannot find.

Where does the update information come from in your environment? And how does an openems debian package get built which can be updated via the debian package management?

It took me 2 Months to figure this out - quite frankly i don't know where i found it. But for a private Home EMS this is also not needed.

Sn0w3y avatar Jun 06 '25 06:06 Sn0w3y

There is limited value in focusing the discussion of this bug to a personal solution which you seem to no share here anyways.

Could you consider to contribute by providing feedback based on the officially available openems deployment?

Lamarqe avatar Jun 06 '25 07:06 Lamarqe

Fixed in #3170

sfeilmeier avatar Aug 03 '25 21:08 sfeilmeier