Closed gemitro closed 7 years ago
Hi,
same for me with this error:
Failed Update error: ERROR[6]: Stream Read Timeout
I use "1M no SPIFFS / DOUT" and also tested a Reset 2
before... Upgrading with "Sonoff-minimal.bin" is also impossible.
Greetings
Blocked loop happens if the network takes too long to get acknowledges trying to retrieve the firmware. Does happen to me if I update 20 devices at once from my local webserver,
Stream Read Timeout means there is a network problem and it is hard to get your firmware from the internet.
Check your networks.
Hi, I already checked the network and restarted everything (router and so on). I also reduced the distance between one Sonoff and the wifi access point... no success. The signal quality is round about 95-98%.
I notice the same problem with upgrading many devices at the same time. Therefore I started the upgrade procedure for every device manualy.
Seems that I need to flash the devices via serial.
are you trying to download the update from the Internet or from a local server? k
Upgrade rules:
Hi and thanks for our help... Six devices ignore the update. Some of them answer with
Failed Update error: ERROR[6]: Stream Read Timeout
These steps are tested:
Its a bit frustrating... I will upgrade via serial today. Greetings
I tried both from the internet and from a local server, with the same results. It's definitely better when I upgrade a device at a time, but even so I have to try two or three times. I can not be sure, but I think the problems started with v5.3.0
It's not a Tasmota problem since @arendst use the standard OTA library. I recomand to fire the upgrade of one device at a time and read MQTT messages for Succes, otherwise retry upgrade until succed, then start the upgrade of the second device
Yeah feel the same... since 5.3.0. I had no trouble with version 2.x or 3.x but since version 5.x its a bit "try and error". I only get this short "ERROR[6]" with active debug loglevel.
Fabi
I've also updated all my devices (~20) at the same time to various 5.x releases without issues every time.
I use an Apache server on a VM locally to serve the firmware.bin
Hi, what sort of hardware do you use as server?
Greetings Fabi
As @pascalsaul I also use a Virtual Machine (VM) on my Intel NAS running Debian Jessy and VirtualBox.
The VM runs Debian Jessy too with Mosquitto, Apache 2.4 and Domoticz slave. A Raspberry Pi is my Domoticz master.
Ok so you are updating the devices via the powerful vm... I will install an apache system on my ubuntu destop pc and make another test. At the moment I use the raspberry pi with apache server for updates.
https://www.zotac.com/us/product/mini_pcs/zbox_c_series (I use the older CI323 nano). These boxes got more power to handle the requests. I'm runining multiple Ubuntu 16.04 with Pimatic, Apache, Mosquitto etc.
@arendst Maybe you could built-in an option to schedule the upgrade with a random generated delay within a 5 minute timeframe to minimise the load. So you can spread the load from the devices over 5 minutes.
Thank you for the link. At the moment I make device Groups Sonoffs_Group1
... Sonoffs_Group2
... and so on. Every group with 5-10 devices. Later I upgrade the devices with the command cmnd/Sonoffs_Group1/Upgrade -m "1"
. Not the best solution but working for me.
The OTA upgrade routine contains some kind of retry mode which should cater for a busy webserver although in practice it probably ends up with a restart using the old version.
If it restarts using the old version you could try command cmnd/sonoffs/upgrade <new-version>
in which case devices with the \<new version> will ignore the update but the once with the \<old version> will try to upgrade.
So suppose some of your devices run Tasmota version 5.3.0 and others run 5.4.0 then you could execute command cmnd/sonoffs/upgrade 5.4.0
to upgrade only the 5.3.0 version devices.
This feature is available starting with version 5.2.3. Forgot to update the Wiki. Just did.
Hi Theo,
thanks for the tip, this is a nice feature. Now I can upgrade the devices with an older version without searching for the correct ID...
Greetings Fabi
Short update: I told you that some of my devices ignored the upgrade to a version after 5.4.0. Now I erased the flash with esptool.py -p /dev/ttyUSB0 erase_flash
and flashed the firmware 5.5.0. I upgraded to the newer version 5.5.2 via ota after this procedure... working fine now. I will update this issue after some tests.
Greetings Fabi
Seems that the upgrades working now... You can close it.
Hι I have problems when I try to upgrade my sonoffs to v5.5.0 I succeeded in upgrading them after more than ten (10) attempts for each device. When the upgrade failed in "information" I was reading: "Reset reason Blocked Loop". Thanks