tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.69k stars 471 forks source link

Cannot update OpenDTU from 23.10.9 to 24.1.4. #1663

Closed micha1221 closed 5 months ago

micha1221 commented 5 months ago

What happened?

Hi, I tried to change the firmware on my esp32 OpenDTU, but after uploading the firmware, I got a "bad http request" error.

To Reproduce Bug

I tried it very often with the "master" and the 24.1.4 firmware, and also with latest files ... everythings the same.

Expected Behavior

sucessful update to the latest firmware

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v23.10.9

Relevant log/trace output

No response

Anything else?

No response

micha1221 commented 5 months ago

Sorry - new version 24.1.14 !

nkappler commented 5 months ago

Are you using a vpn? Had this issue, although with another version. For me it was the periodically refreshing connection that caused the error and turning off the vpn helped...

ituri commented 5 months ago

Have you tried rebooting? I'm under the impression that if your OpenDTU has been running for a couple of days, the memory will be too full to store the new firmware upgrade. Rebooting "cleans" the memory and allows for enough space for the update - at least that's my amateur theory why a reboot has always helped if updates failed beforehand.

micha1221 commented 5 months ago

Are you using a vpn? Had this issue, although with another version. For me it was the periodically refreshing connection that caused the error and turning off the vpn helped...

No, I'm using no vpn.

micha1221 commented 5 months ago

Have you tried rebooting? I'm under the impression that if your OpenDTU has been running for a couple of days, the memory will be too full to store the new firmware upgrade. Rebooting "cleans" the memory and allows for enough space for the update - at least that's my amateur theory why a reboot has always helped if updates failed beforehand.

offcourse I thought of that too ... and did many times - with no effect

tbnobody commented 5 months ago

Please provide a screenshot of "Info" -->"System". Especially from the Memory Information.

micha1221 commented 5 months ago

By the way: same behavior with the V24.1.18 from today ...

nkappler commented 5 months ago

Have you tried rebooting? I'm under the impression that if your OpenDTU has been running for a couple of days, the memory will be too full to store the new firmware upgrade. Rebooting "cleans" the memory and allows for enough space for the update - at least that's my amateur theory why a reboot has always helped if updates failed beforehand.

I'm facing the same issue now, Seconds after a reboot, the file upload will reach ~60% then it suddenly pauses and after some more time it aborts.

If I get a response to the update call at all, it always seems to be OTA could not begin

nkappler commented 5 months ago

image image

nkappler commented 5 months ago

Of course the moment I try to make a screen recording it succeeded... It was my seventh try or so in total, a few minutes after reboot. So maybe if it doesn't work immediately after a reboot and it doesn't work a long time after a reboot, try it a few minutes after rebooting.

micha1221 commented 5 months ago

this is my screenshot: screenshot

micha1221 commented 5 months ago

and the errror: screenshot-bad

tbnobody commented 5 months ago

@micha1221 your initial setup was done using the old partition layout. You have to upgrade it to install new updates: This is also mentioned very large at the start page. Here is a direct link: https://github.com/tbnobody/OpenDTU/blob/master/docs/UpgradePartition.md

It is the same problem as mentioned here #1592

micha1221 commented 5 months ago

OK - this was. Since I've done it seems to work.

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.