-
Notifications
You must be signed in to change notification settings - Fork 637
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
Telnet OTA command is broken #2562
Comments
What's the server it fails to connect to? |
I did all tasks as always. Same server. HFS program on Windows 10. Running on same Notebook. In fact, old compilations work fine here. Last one is from may 2022. |
I have no idea what version is may 2022 though, git commit is the only way to determine build tree contents with certainty |
Does it immediately disconnect after the command? Perhaps there is a |
Now, I tried from same Sonoff Mini flashed with compillation "full". I mean, Web UI, home assistant, mqtt, etc. Same results, ota command doesn't work.
|
I tried with another Sonoff Mini devices, compilations from january and may, and ota command works like a charm. |
So, zero |
Not working, yesterday compilation: Working: |
No error. It remains without output. After >3 min, extra info again: |
Going back to 2.7.4 might help Other issue I have in mind is Windows... But, you'll need to fetch https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.1.0-gcc10.3/x86_64-w64-mingw32.xtensa-lx106-elf-e5f9fec.220621.zip and c/p replace |
Should give any debug info if I run ota command on Espurna debug windows? |
I don't think is Windows related. I brought bin files compiled from another house/PC. They failed and I compiled again on my notebook to not avail. |
Have you tried to change toolchain version though? |
Last snapshot is from june, isn't it? |
I,ll try just now |
espurna-1.15.0-dev.git70d25aea+github221116-espurna-minimal-arduino-ota-1m.bin |
Have you tried caddy?
|
I'll try. But HFS works with all my old compilations. I don't think it should be problem. |
Caddy, same results. |
Our error reporting might be to blame here, OTA needs debug enabled which minimal builds disable. But you should've seen at least this while using normal ones
(don't really see the reason to not at least generate 'Connecting' message in #2562 (comment)) Still (strongly) suggest to use the toolchain update regardless of whether it helps OTA or not. This is not some hearsay - just a known bug that will crash our code at random when using Windows builds |
Not sure if understood. Does windows build mean compiled in a Windows OS machine? |
Do you suggest to update Espurna using an old minimal bin that works? |
Thinking twice. Snapshots are PIO build, aren't them? |
Two separate issues; toolchain package shipped with ESP8266 Core 3.0.2 is partially broken on Windows for our builds. You are building on Windows, hence my warning. ^ is my log printout on a sonoff-basic .bin downloaded from the releases page, which works for me just fine. You should be able to see OTA logs when using non-minimal builds. -minimal .bin does not include them because of disabled |
One interesting issue to add. No way to Telnet with password. Connection is always refused in spite password is right. I tried "fibonacci" too to no avail. More detailed: My full working compilation from last may, sorry to don't know github commit: And now, Snapshot build (github221116): And Putty disconnection error!` I don't know if this new issue is somehow connected to OTA one. Hope it helps. |
Are you using telnet mode or something like that? |
I always use Putty. Never had any problem. I can Putty Telnet now to all my Espurna devices 2.7.4 Core version. |
I mean, do any other commands work? |
As I told, I can Telnet (Putty) to 3.0.2 Core on minimal bin or full Espurna bin in case Telnet is set without authentication. Odd. |
I´ll flash again. Let me one minute |
No response at all from these commands. ` |
...in favour of a 2nd issue. This is a telnet server problem, not ota |
It makes sense |
See #2563 |
OTA still not working for me. 12/12/2022 16:40.50 /home/mobaxterm telnet 192.168.1.50 I always get an error for the first command and OTA silently fails. Is there a simple way to recover to a working image from this MINIMAL_OTA build? |
^ for PuTTY, switch to raw protocol instead of telnet (#2563) |
Isn't the PuTTY bug fixed in the latest snapshot? I have flashed a 1.14.1 with ESPURNA_MINIMAL_ARDUINO_OTA from today (2022-12-12) as a first step because there was insufficient memory. Next step is to flash the latest 1.15.0 dev snapshot or revert to 1.14.1. Tried with raw too but OTA still silently failed both from MobaXterm and PuTTY |
Only the 'unable to use any command' part of the issue. TELNET in PuTTY is silently sending some extra data before you even start typing anything, causing the 'first command' error. We can't guarantee our workarounds for telnet always work though, so I would suggest to switch to RAW mode instead to avoid any more issues
espota.py works in both AP and STA modes and it should have the same IP & hostname on the network you used with a normal build
Command wouldn't have worked anyway. We don't handle redirects and HTTPS support is missing.
Not logging that upgrade did not happen is an issue, though |
Not having much success, letting the device boot ESPURNA_MINIMAL_ARDUINO_OTA and then trying espota.py gives the following: - Is there something else that needs to be done to make it accept a new firmware? 12/12/2022 20:36.01 /home/mobaxterm telnet 192.168.1.50 With debug: - 12/12/2022 20:39.49 /home/mobaxterm python espota.py --progress --debug --ip 192.168.1.50 --auth XXXXXXXX --file espurna-1.14.1-neo-coolcam-power-plug-wifi.bin |
Make sure espota.py isn't blocked by firewall, it would listen on :RANDOM_PORT_10000_TO_60000 and device would open a connection there I would also caution about 1.15 -> 1.14.1. Anything could happen to our config, it does not expect version downgrades |
Thanks, it was Windows defender. Downgrade worked fine. |
Device
Sonoff Mini
Version
ESPURNA_MINIMAL_ARDUINO_OTA dev 220212
Bug description
ESPURNA_MINIMAL_ARDUINO_OTA today dev compilation. Telnet connection is OK. But OTA command doesn't connect to http server. Tested on Sonoff mini three times. Compiled and esptool flashed. After that, I flashed my last compilation, from may 19th and it works flawlessly.
Steps to reproduce
No response
Build tools used
Arduino ide 1.8.19
Putty 0.74
HFS 2.3M
Any relevant log output (when available)
No response
Decoded stack trace (when available)
No response
The text was updated successfully, but these errors were encountered: