Skip to content
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

No status in Ui since new firmware #93

Open
pascalwinters opened this issue Jan 28, 2025 · 16 comments
Open

No status in Ui since new firmware #93

pascalwinters opened this issue Jan 28, 2025 · 16 comments

Comments

@pascalwinters
Copy link

Since I updated to the last firmware 2025-01-20 I have issues in the UI.
Hardware v5 connected through ethernet.

The adapter works correctly on the background and communicates with the heatpump without any problem.

More info I can't provide, what do you need to start investigating?

See screenshot:

Image

@Koky05
Copy link

Koky05 commented Jan 28, 2025

When I open UI I have no option to do anything (whole time is show timeout error with load sign):

Image

Status from ebusctl:

version: ebusd 24.1.24.1
device: 192.168.2.31:9999, TCP, enhanced, firmware 1.1[4c15].1[4c15]
access: *
signal: acquired

@derjohn
Copy link

derjohn commented Jan 28, 2025

Because @john30 asked in john30/ebusd#1472 (comment)

...., but ebusd-esp32. thus closing here. please reopen there if needed.
anyway, since I can't reproduce and too little info is given here, please provide more details and check if the settings are still on the device when using the EBUS access point (button click+hold while the leds fade 3 times) ....

I don't get what info the should add? The settings are obvioulsy still there as we can access the thing via Wifi. I didn't change anything other than Wifi Settings. The GUI is still reachable (see screenshot) but can't retrieve /status (probably the API component. Do you want a settings file that we clould copy from somewhere on the device ?

And: All was fine until I did an OTA upgrade to the 202501 version.

@derjohn
Copy link

derjohn commented Jan 28, 2025

BTW changelog https://github.com/john30/ebusd-esp32/blob/main/CHANGELOG.md says it "Version 2024-12-21, reported as 1[4c15]". While I cannot see the version in the UI anymore I can remember it was called 202501xx when I clicked on the update. Did some unwanted release sneak in ?

@john30
Copy link
Owner

john30 commented Jan 28, 2025

very weird, so it seems that the http server has some issues. didn't recognize anything unusual when i ota updated my testing v5.
could someone connect the adapter to a pc and extract some logging from the serial repl available e.g. via the firmware update page, i.e. enter "log -l 0" in the "logs & console" cmdline or use putty/minicom doing the same?

@john30
Copy link
Owner

john30 commented Jan 30, 2025

can someone check which request exactly is done from the browser, e.g. for the /status endpoint?
just tried another v5 with that version but I don't see unusal behaviour with it.
maybe the approach used here helps, please try: john30/ebusd#1477 (comment)

@pascalwinters
Copy link
Author

can someone check which request exactly is done from the browser, e.g. for the /status endpoint? just tried another v5 with that version but I don't see unusal behaviour with it. maybe the approach used here helps, please try: john30/ebusd#1477 (comment)

This url is requested: http://xxx.xxx.x.xxx/api/v1/status
How can I use the CLI for testing "ota --run"?

@pascalwinters
Copy link
Author

I runned the command "ota --run" through the reply button and now the problem is solved.

Image

@Koky05
Copy link

Koky05 commented Jan 30, 2025

At first I was in that it was not working but after some time (cca 10 min) it start to work:

Image

@SzosszeNET
Copy link

It takes some time to update normally - think since the GUI gives some feedback what's happening it doesn't feel that long. But yeah CLI runinng ota feels longer, but don't think it is longer.

However - not sure what "progress 0"? Is that the "partition" the updte is on maybe? I'm pretty sure I saw "progress 1" on mine

At first I was in that it was not working but after some time (cca 10 min) it start to work:

Image

@SzosszeNET
Copy link

@john30 if it helps since now understand it's a non-breaking change could try to replicate the issue if it help, just not sure what data I could supply to help understand the problem.

@john30
Copy link
Owner

john30 commented Jan 30, 2025

I just tried again, i.e. flashed the 20241221 version, checked that it is running fine, and did an ota update to the recent one. no issues, neither with ebus connectivity now with the http server. really don't get it.
does anyone of you have non-default settings on the "WIFI station/client" section? e.g. a special channel or limited protocols?

anyway, just compiled a new version with more updates from esp-idf and you might want to give it a try by explicitly flashing to it like that:

@SzosszeNET
Copy link

I just tried again, i.e. flashed the 20241221 version, checked that it is running fine, and did an ota update to the recent one. no issues, neither with ebus connectivity now with the http server. really don't get it. does anyone of you have non-default settings on the "WIFI station/client" section? e.g. a special channel or limited protocols?

anyway, just compiled a new version with more updates from esp-idf and you might want to give it a try by explicitly flashing to it like that:

* point your browser to http://IPADDRESS/?file=testing.bin

* select "UPDATE FIRMWARE"

* select "UPDATE TO SPECIFIC FILE: TESTING.BIN"

Have already resolved by updating from CLI, but flashed the test firmware - completed without any issues.

Not sure what would be non-standard, but don't think anything in here is non-standard?

Image

@derjohn
Copy link

derjohn commented Jan 30, 2025

Requesting http://192.0.2.30/?file=testing.bin redirects me tohttp://192.0.2.30/?file=testing.bin#/status and show the same error. No selector there.

And no, I dont habe anything special in the setup. I just did chose a Wifi on the first install. That's it.

@SzosszeNET
Copy link

Requesting http://192.0.2.30/?file=testing.bin redirects me tohttp://192.0.2.30/?file=testing.bin#/status and show the same error. No selector there.

And no, I dont habe anything special in the setup. I just did chose a Wifi on the first install. That's it.

Yes, I think that's expected, the update button would appear on the status section.

I think you can update from cli - by the "Repl" button in the top right corner. To specify the testing.bin I think you want to run "ota --file=testing.bin" or something like that.

@derjohn
Copy link

derjohn commented Jan 30, 2025

It takes some time to update normally - think since the GUI gives some feedback what's happening it doesn't feel that long. But yeah CLI runinng ota feels longer, but don't think it is longer.

However - not sure what "progress 0"? Is that the "partition" the updte is on maybe? I'm pretty sure I saw "progress 1" on mine

At first I was in that it was not working but after some time (cca 10 min) it start to work:
Image

That fixed it for me, too. I wasn't aware about the web-cli until I saw the screenshot. Thx.

easi>
Build: unknown
ebusd device string: "undefined:/dev/ttyACM0" (number may vary)
WiFi station/client: inactive
WiFi access point: inactive
Ethernet: inactive
Chip ID: unknown,
Hostname: unset
Up time: 0
Free heap: 0 / 0
eBUS: inactive
REPL
execute: ota --run

OTA: last progress 0, status unknown

shutdown_ebus: shutting down

read_host_tcp: recv: errno 128

close_client: socket closed

close_client: socket closed

shutdown_ebus: proto up

OTA: current: ota_1 ver 20241221

OTA: started

esp-x509-crt-bundle: Certificate validated

OTA: connected

esp_https_ota: Starting OTA...

esp_https_ota: Writing to partition subtype 16 at offset 0x10000

OTA: read desc

OTA: new image: ebusd-esp32 ver 20250120

OTA: verify chip: 5

OTA: read: 1024 / 1402336

OTA: read: 22528 / 1402336

update running: running, progress 2

@puni2k
Copy link

puni2k commented Jan 31, 2025

Had this happen to two of my ESPs.

OTA updated my v5 Adapter from 2024-12-21 to 2025-01-20 and it showed the same error.
ebusd however was able to communicate with it, although the ESP constantly rebooted very frequently.

I then got one of my backup C6 adapters out of storage and OTA updated this as well. Same problem.

Flashing 2025-01-20 via USB worked, luckily.

Field config is:
Wifi Station and AP disabled
Ethernet enabled (USR-ES1)
MQTT enabled

However when I updated the backup C6 Wifi Station was enabled and the Ethernet Shield not connected (can't remember but it might even not have been configured). Was also not connected to the ebus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants