arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.94k stars 4.76k forks source link

Tasmota 7.1.2.2. stuck in minimal after upgrade. #7139

Closed theorician closed 4 years ago

theorician commented 4 years ago

PROBLEM DESCRIPTION

After upgrading to 7.1.2.2. my lightbulb socket is stuck in 7.1.2.2. minimal.

REQUESTED INFORMATION

TO REPRODUCE

🤷‍♂ Flash from 7.0.0.6 to 7.1.2.2 and have it fail? I have a few more of these but am not about to experiment...

EXPECTED BEHAVIOUR

I expect it to flash via the minimal firmware to the actual firmware, but it's stuck on the minimal.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Now that it's stuck, I've tried flashing via the OtaUrl and via the web upload. I've tried various versions. None have any effect. It says the upload has succeeded and the device will restart momentarily. When it does, it comes back in minimal and just stops there. No further restarts happen and the device does not finish flashing.

I've also tried doing a reset 5, hasn't helped at all.

(Please, remember to close the issue when the problem has been addressed)

theorician commented 4 years ago

So it's reporting as minimal firmware but it connects to MQTT and does autodiscovery in Home Assistant. It works, but the web frontend displays as minimal. Every feature works though. This is confusing.

arendst commented 4 years ago

I guess it's sometung to do with commit https://github.com/arendst/Tasmota/commit/758b25507822ad3c862216feb4c1af4fd5d53e78

I'm also unable to load anything new.

Investigating.

theorician commented 4 years ago

Thanks for the quick reply!

kristofejro commented 4 years ago

I have the same issue. All of my sonoffs are on minimal now. 1

I was OTA upgrading from 7.1.1

Xsev1 commented 4 years ago

Same problem here. I was upgrading from 7.0.3 i think... Downgrading with an older minimal firmware, is not working too now.

scargill commented 4 years ago

I too have issues with 7.1.2.2 - yesterday using the latest TDM I updated a boatload of different devices - all core 2.6.1 according to TDM, all 7.x - to 7.1.2.2 - then his morning, one which was still on 7.1.2 I upgraded to 7.1.2.2 (I'm on Windows 10 64 bit Pro) and this last one would only go so far as minimal - it all seems to work but despite several refreshes, it still says Minimal. I ALSO took an old Sonoff DUAL which had not been on the system and loaded (using Tasmotize) 7.1 onto it. That worked but when I tried to upgrade it to 7.1.2.2 OTA (dev) I got the same - Minimal. As it was (is) still connected to serial I grabbed tasmota.bin (7.1.2.2) from the web and that one has now using Tasmotize upgraded to 7.1.2.2 but the first one I mentioned - which is not on serial as it is in my loft - is still displaying "Minimal". So as of last night/this morning it seems something has gone wrong.

I'm using TDM 2.5 (exe version) and there are other issues and the author says it is down to Tasmota. For example, ONE of my boards refuses to show the WebUI in TDM even though when using a browser the WebUI is just fine a- nd my other boards show WebUI both in TDM and stand alone in Chrome.

ALL my boards are on Core 2.6.1 and 7.1.2.2

arendst commented 4 years ago

As said before a recent commit is causing this issue.

I just reverted the commit. Expect functional binaries within two hours.

There is a workaround but you only have two seconds to act at the correct moment otherwise flash will corrupt (to early) or you'll be back in the same situation (to late).

So if you can serial flash I would recommend that.

If you can perform a reset (not a power cycle) then perform the following from the console:

17:10:04 CMD: upload 1
17:10:04 SRC: WebConsole from 192.168.2.1
17:10:04 CMD: Group 0, Index 1, Command "UPLOAD", Data "1"
17:10:04 MQT: stat/wemos2/RESULT = {"Upload":"Version 7.1.2.2 from http://domus1:80/api/arduino/tasmota.bin"}
17:10:05 CFG: Saved to flash at FB, Count 303, Bytes 4096
17:10:07 HTP: Web server stopped
17:10:07 UPL: http://domus1:80/api/arduino/tasmota.bin
17:10:19 HTP: Web server active on wemos2 with IP address 192.168.2.191
17:10:19 MQT: Attempting connection...
17:10:19 MQT: Connected
17:10:19 MQT: tele/wemos2/LWT = Online (retained)
17:10:19 MQT: cmnd/wemos2/POWER = 
17:10:19 MQT: Subscribe to cmnd/wemos2/#
17:10:19 MQT: Subscribe to cmnd/tasmotas/#
17:10:19 MQT: Subscribe to cmnd/DVES_15568C_fb/#
17:10:20 MQT: stat/wemos2/UPGRADE = Successful. Restarting

Now you have two seconds max to reset the device.

After the reset the device seems to stall a little but will then continue executing the uploaded code.

Sorry for any inconvenience this may cause.

See https://github.com/arendst/Tasmota/pull/7134 for background information.

arendst commented 4 years ago

Keep in mind this issue only occurs with the development version.

All releases do not have this issue so if you do not need the latest and greatest stick to the release version.

Xsev1 commented 4 years ago

Thank you for information and your work!!

scargill commented 4 years ago

I’ll go find something else to do for a couple of hours 😊 I just uploaded a YouTube video to say how great 7.1.2.2 is (and didn’t bother to keep the project ) – oh, well, I guess I’ll put a comment in and say how great 7.1.2.3 is 😊

For clarity will all 7.1.2.2 boards need a serial reflash when this is resolved or are we just taking about being patient for a few hours or so?

Regards

Pete

From: Theo Arends notifications@github.com Sent: 07 December 2019 16:18 To: arendst/Tasmota Tasmota@noreply.github.com Cc: Peter Scargill pete@scargill.org; Comment comment@noreply.github.com Subject: Re: [arendst/Tasmota] Tasmota 7.1.2.2. stuck in minimal after upgrade. (#7139)

As said before a recent commit is causing this issue.

I just reverted the commit. Expect functional binaries within two hours.

There is a workaround but you only have two seconds to act at the correct moment otherwise flash will corrupt (to early) or you'll be back in the same situation (to late).

So if you can serial flash I would recommend that.

If you can perform a reset (not a power cycle) then perform the following from the console:

17:10:04 CMD: upload 1 17:10:04 SRC: WebConsole from 192.168.2.1 17:10:04 CMD: Group 0, Index 1, Command "UPLOAD", Data "1" 17:10:04 MQT: stat/wemos2/RESULT = {"Upload":"Version 7.1.2.2 from http://domus1:80/api/arduino/tasmota.bin"} 17:10:05 CFG: Saved to flash at FB, Count 303, Bytes 4096 17:10:07 HTP: Web server stopped 17:10:07 UPL: http://domus1:80/api/arduino/tasmota.bin 17:10:19 HTP: Web server active on wemos2 with IP address 192.168.2.191 17:10:19 MQT: Attempting connection... 17:10:19 MQT: Connected 17:10:19 MQT: tele/wemos2/LWT = Online (retained) 17:10:19 MQT: cmnd/wemos2/POWER = 17:10:19 MQT: Subscribe to cmnd/wemos2/# 17:10:19 MQT: Subscribe to cmnd/tasmotas/# 17:10:19 MQT: Subscribe to cmnd/DVES_15568C_fb/# 17:10:20 MQT: stat/wemos2/UPGRADE = Successful. Restarting

Now you have two seconds max to reset the device.

After the reset the device seems to stall a little but will then continue executing the uploaded code.

Sorry for any inconvenience this may cause.

See #7134 https://github.com/arendst/Tasmota/pull/7134 for background information.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/7139?email_source=notifications&email_token=AAONJA7DBC5COKQ4345GLK3QXPEDLA5CNFSM4JXN44L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGKEPI#issuecomment-562864701 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAONJAYBYO66UW53TCN66FDQXPEDLANCNFSM4JXN44LQ . https://github.com/notifications/beacon/AAONJA2HA5PE6GP42MSITQ3QXPEDLA5CNFSM4JXN44L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGKEPI.gif

arendst commented 4 years ago

All boards with 7.1.2.2 AND commit https://github.com/arendst/Tasmota/commit/758b25507822ad3c862216feb4c1af4fd5d53e78 (datetime 20191207-13xxxx) have this issue. All others are fine.

scargill commented 4 years ago

In my case too late – I upgraded all my boards (20 or so) (thankfully only the ones in THIS building)…. I’m afraid I’m a little sad that I usually go for the very latest.. while I’m here – and as I guess most of us call in only when there’s a problem – this is CRACKINGLY GOOD generally – I’m looking forward to trying out Sonoff WiFi/Zigbee Gateway maybe next week along with a Zemismart WiFi/Zigbee gateway – not yet checked if they are supported but I will.

Pete

From: Theo Arends notifications@github.com Sent: 07 December 2019 16:22 To: arendst/Tasmota Tasmota@noreply.github.com Cc: Peter Scargill pete@scargill.org; Comment comment@noreply.github.com Subject: Re: [arendst/Tasmota] Tasmota 7.1.2.2. stuck in minimal after upgrade. (#7139)

Keep in mind this issue only occurs with the development version.

All releases do not have this issue so if you do not need the latest and greatest stick to the release version.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/7139?email_source=notifications&email_token=AAONJA2VVBVPUQJC72KEGODQXPETDA5CNFSM4JXN44L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGKHLQ#issuecomment-562865070 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAONJAYGG25VZTDPTYH2YRLQXPETDANCNFSM4JXN44LQ . https://github.com/notifications/beacon/AAONJAYZBWGXWJMOCLXZA3DQXPETDA5CNFSM4JXN44L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGKHLQ.gif

theorician commented 4 years ago

@arendst

First of all thank you for not just the very quick response on this but also your hard work in general on this project. It really is amazing.

I'd like to try the workaround. I'm not exactly clear on the sequence though. Could you elaborate?

I issue the command upload 1 and then wait for it to finish with

stat/wemos2/UPGRADE = Successful. Restarting

Then you say I have two seconds to "reset" the device. What exactly do you mean?

arendst commented 4 years ago

A wemos has a reset button. Other devices I don't know. So pressing this reset button is what I meant.

theorician commented 4 years ago

@arendst Aha, right. My bulb socket just has regular button which is just an on/off. I guess I'm stuck taking it apart for a serial flash...

theorician commented 4 years ago

@arendst Hm, I just tried taking it apart - my device is this thing: https://blakadder.github.io/templates/elegant_choice.html - and I don't think I can take it apart without breaking it entirely. It also doesn't have a reset button, just the regular hardware on/off button.

My device is therefore more or less bricked - it works in the current network configuration (server IP, MQTT credentials, etc) but any change will render it unusable. @scargill might be in a similar position, I'm not sure. A replacement wouldn't be too bad, since they're cheap, but it's a shame to waste the hardware.

If there's any other workaround you can give us, that would be immensely appreciated. Thanks again for your efforts!

scargill commented 4 years ago

I'm still seeing 7.1.2.2 in dev ??

ascillato commented 4 years ago

Yes, that is the actual version of the development branch. See tasmota_version.h file

joder79 commented 4 years ago

I'm also stuck here with two newly bought Gosund SP111. I just wanted to update the v6 Sonoff-Tasmota that was already pre-installed. As the noob I am, I don't have any clue how to get them unbricked again, I have never soldered before... any help on how to get them back to work without disassembling them would be highly appreciated. Thanks in advance and keep up the great work!

marcgrc commented 4 years ago

i have got same problem. i attend resolve bug

Tommy-LSA commented 4 years ago

As a noob I would only install release versions, no development versions. Development versions are for testing before release, to find exactly such issues. With Google you should find some pages which document serial flashing. E.g. https://www.bastelbunker.de/gosund-sp111-mit-tasmota/

Von meinem iPhone gesendet

Am 08.12.2019 um 00:29 schrieb joder79 notifications@github.com:

 I'm also stuck here with two newly bought Gosund SP111. I just wanted to update the v6 Sonoff-Tasmota that was already pre-installed. As the noob I am, I don't have any clue how to get them unbricked again, I have never soldered before... any help on how to get them back to work without disassembling them would be highly appreciated. Thanks in advance and keep up the great work!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

scargill commented 4 years ago

I hate to say this as a veteran but I didn't expect updatin issues with development versions... at least I know how to solder, in my cae life is more complicate as some of my kit is in another country - thankfully I didn't update any of those. To be fair it's a while since OTA has been an issue...but you're right, Tommy.. being patient and avoiding development versions except for handy units sitting on the workbench might be a sensinble thing - he says in hindsight. It is awfully tempting to want the very latest though...

sinesc commented 4 years ago

Is it possible the upgrade URL still points to a broken version? Just had this issue after upgrading via thehackbox.org/tasmota/release/tasmota.bin. In my case a reset 5 seems to have fixed the issue though. Note: super new to this, don't know what I'm doing.

scargill commented 4 years ago

Didnt work for me. I grabbed the release version of Tsamota.bin and stoerd it locally and tried that. the WebUI said "upload successful" but no change - still stuck on minimal after refreshing the browser. I even tried that twice. It's looking mor and more like a trip into the loft.

joder79 commented 4 years ago

As a noob I would only install release versions, no development versions. Development versions are for testing before release, to find exactly such issues.

Yeah, I know. Too bad I had to change the OTA-URL after the change from "sonoff-tasmota" to "tasmota" and I managed to enter "http://thehackbox.org/tasmota/tasmota-DE.bin" instead of "http://thehackbox.org/tasmota/release/tasmota-DE.bin"...

mbomhof commented 4 years ago

I have the same issue. All my devices are on minimal. Flashing them serial will be a pain because I have several units in the wall. Hope there will be a OTA solution soon...

s-hadinger commented 4 years ago

I deeply apologize for the commit that caused the OTA to fail...

Does anyone know a command that would generate a crash of the ESP8266? That would make it possible to force reboot, equivalent to the reset button, without RTC memory being mistakenly wiped.

arendst commented 4 years ago

But that command would write RTC call chain memory overwriting the ota/upload bootloader data ;-(

s-hadinger commented 4 years ago

Good point... Sadly...

s-hadinger commented 4 years ago

What about a quick sub-second power off-power on during that 2 seconds window? Would RTC memory survive a quick shutdown?

scargill commented 4 years ago

What about a quick sub-second power off-power on during that 2 seconds window? Would RTC memory survive a quick shutdown?

That assumes access and if you have that you may as well program serially. I'm trying to avoid dismantling a unit in the loft..... ideas for anything that can be done from a remote PC?

s-hadinger commented 4 years ago

I'm assuming it's easier to shut down power from the fuse panel than opening the device. It's not ideal but the best option I can think about.

scargill commented 4 years ago

Well guys - it turns out my unit wasn't in the loft so I used Tasmotizer to flash it serially. That worked so while connected I tried updating to dev version 7.1.2.2 (nothing to lose) and I can confirm that now works.... just a matter of sticking those screws back in now and this time I've given the unit a sensible name reflecting where it actually is :-).

theorician commented 4 years ago

@s-hadinger No worries, as a software dev I know that these things can happen. I usually flash the release version; for some reason the OtaUrl was set incorrectly for this device and I didn't check before hitting upgrade.

You think that a quick off-on during that two second window will do the trick? I can try that by plugging my device into another tasmota and telling it to restart.

theorician commented 4 years ago

No - that doesn't seem to do the trick unfortunately. Oh well. :)

joder79 commented 4 years ago

Any possibility to have a "fresh" restart via https://github.com/ct-Open-Source/tuya-convert maybe somehow?

s-hadinger commented 4 years ago

@joder79 No, it won't work with tuya-convert.

bburkett52 commented 4 years ago

Serial re-flash good! Subsequent OTA good! Thanks for all the work!

scargill commented 4 years ago

Erm all of my boards were earlier upgraded to 7.1.2.2 - and then I thought I may as well bring them bang up to date with 7.1.2.4 - everyone worked - except for one - an original Sonoff DUAL - which has stubbornly stayed at 7.1.2.2 - not minimal I may add, the full 7.1.2.2 - I've tried booting the board and turning TDM off and on then starting all over - it just will not move... I'm not suer I fully undterstand the console output but...

[01:20:46] stat/otherdual/RESULT {"OtaUrl":"http://thehackbox.org/tasmota/tasmota.bin"} [01:20:46] stat/otherdual/RESULT {"Upgrade":"Version 7.1.2.2 from http://thehackbox.org/tasmota/tasmota.bin"} [01:20:51] tele/otherdual/LWT Offline

It LOOKS like the DUAL has missed out in the current round of upgrades - am I right?

stevevg commented 4 years ago

I have the same issue (stuck on minimal firmware - please upgrade) trying to upgrade a teckin sp22 plug from 6.6.0 to latest 7.1.2 I had already done upgrades before (all in the 6.x major), which went smoothly, but now I'm stuck. Already tried to upload tasmota.bin via file upload, with no luck.

Xsev1 commented 4 years ago

Will we get an OTA update to fix the problem or is a new seriall flash the only way?

arendst commented 4 years ago

No OTA. Pls read above why.

Xsev1 commented 4 years ago

Thank you for info.

danbamford commented 4 years ago

I've just tried updating from 6.3.0 to 7.1.2 (release version) and had the exact same problem. 2x S26 plugs stuck on minimal. Is there anyway around this or is the only option to take them apart? This thread seems to indicate it's only the development version effected but like I say this was from the release page. Any help welcome, thanks.

sinesc commented 4 years ago

@danbamford Have you tried waiting a minute or so after the upgrade? I thought I had this issue, but simply waiting a bit longer for the bulbs to fully reboot seemed to have fixed the minimal state.

danbamford commented 4 years ago

@danbamford Have you tried waiting a minute or so after the upgrade? I thought I had this issue, but simply waiting a bit longer for the bulbs to fully reboot seemed to have fixed the minimal state.

Yes I waited and the device reset after the upgrade but just sat there on the minimal firmware, nothing changed after 10 minutes.

ascillato2 commented 4 years ago

Closing this issue as the problem in the firmware was fixed.

As explained in previous comments, if you have your device stuck on minimal due to this bug, you will need to flash by serial.

If you need assistant on that, please address this to the Tasmota support chat. Thanks.

Simon-N-Thornton commented 3 months ago

Device: NOUS A1T Smart Socket with power monitoring Original Verion: 13.0.0 Original features enabled: MQTT, Syslog Chipset: 8266, 1M Flash Upgrade path: 13.0.0-sensors -> 14.1.0 minimal -> 14.1.0 sensors (hopefully)

I have a lot of these smart sockets and the majority updated correctly apart from two; one is bricked and requires flashing via serial port and the other refuses to upgrade beyond minimal.

I've tried the upgrade via the web interface and from the console:

OtaUrl http://ota.tasmota.com/tasmota/release/tasmota-sensors.bin.gz Upgrade 1

It says it is upgrading and will reset but after reset it is still minimal. Upgrading via file upload does not work because of inadequate space.

Jun 7 11:50:45 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/stat/tasmotaXXXXXX/RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota-minimal.bin.gz"} Jun 7 11:51:18 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/tele/tasmotaXXXXXX/STATE = {"Time":"2024-06-07T10:51:18","Uptime":"0T00:20:10","UptimeSec":1210,"Vcc":3.667,"Heap":33,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"XXXXXXX","BSSId":"AA:BB:CC:DD:EE:FF","Channel":6,"Mode":"11n","RSSI":68,"Signal":-66,"LinkCount":1,"Downtime":"0T00:00:04"}} Jun 7 11:51:24 192.168.200.200 tasmota-XXXXXX ESP-CMD: otaurl http://ota.tasmota.com/tasmota/release/tasmota-sensors.bin.gz Jun 7 11:51:24 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/stat/tasmotaXXXXXX/RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota-sensors.bin.gz"} Jun 7 11:51:39 192.168.200.200 tasmota-XXXXXX ESP-CMD: upgrade 1 Jun 7 11:51:39 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/stat/tasmotaXXXXXX/RESULT = {"Upgrade":"Version 14.1.0 from http://ota.tasmota.com/tasmota/release/tasmota-sensors.bin.gz"} Jun 7 11:52:34 192.168.200.200 tasmota-XXXXXX ESP-MQT: Attempting connection... Jun 7 11:52:34 192.168.200.200 tasmota-XXXXXX ESP-MQT: Connected Jun 7 11:52:34 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/tele/tasmotaXXXXXX/LWT = Online (retained) Jun 7 11:52:34 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/cmnd/tasmotaXXXXXX/POWER = Jun 7 11:52:34 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/stat/tasmotaXXXXXX/RESULT = {"Command":"Unknown"} Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-CFG: Loaded from flash at FB, Count 192 Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-Project tasmota - sonoff11 Version 14.1.0(release-minimal)-2_7_6(2024-06-03T11:53:06) Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-WARNING This version does not support persistent settings Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-WIF: Connecting to AP1 YYYYYYY Channel 6 BSSId AA:BB:CC:DD:EE:FF in mode 11n as tasmota-XXXXXX... Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-WIF: Connected Jun 7 11:55:14 192.168.200.200 tasmota-XXXXXX ESP-HTP: Web server active on tasmota-XXXXXX with IP address 192.168.200.200 Jun 7 11:55:15 192.168.200.200 tasmota-XXXXXX ESP-MQT: Attempting connection... Jun 7 11:55:15 192.168.200.200 tasmota-XXXXXX ESP-MQT: Connected Jun 7 11:55:15 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/tele/tasmotaXXXXXX/LWT = Online (retained) Jun 7 11:55:15 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/cmnd/tasmotaXXXXXX/POWER = Jun 7 11:55:15 192.168.200.200 tasmota-XXXXXX ESP-MQT: pdu/tele/tasmotaXXXXXX/INFO1 = {"Info1":{"Module":"NOUS A1T","Version":"14.1.0(release-minimal)","FallbackTopic":"cmnd/DVESXXXXXX_fb/","GroupTopic":"pdu/cmnd/tasmotas/"}}

What is curious is that it has retained the syslog and MQTT settings, I'm still getting these messages evn though there isn't a config option for it.

Does anyone have any advice before I dismantle the socket and flash them via the serial port?

Thanks,

Simon