Open beta-tester opened 1 year ago
Maybe a firewall/netfilter running on your rpi?
Maybe a firewall/netfilter running on your rpi?
it is completely off / no rules enabled:
$ sudo iptables -S -v
-P INPUT ACCEPT -c 0 0
-P FORWARD ACCEPT -c 0 0
-P OUTPUT ACCEPT -c 0 0
$ sudo iptables -L -v -n
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
i think if there were firewall rule issues, then Arduino IDE would not see the OTA device as OTA able device and would not show it in the list of active OTA devices. and also asking for the OTA password and telling that the authentification was ok, would not happen, when there is a firewall preventing network traffic to the OTA port.
maybe i should mention, that the Raspberry Pi is acting as a WiFi access point for the OTA devices - using hostapd
and dnsmasq
without NAT
nor forwarding
, so the Ethernet (LAN) and WiFi (WLAN) has different IP address ranges.
I'm seeing this issue running Arduino IDE 1.8.19 on Arch Linux and ESP32-DevKit.
The OTAWebUpdater does work but BasicOTA does not. It never opens the update port so gets a connection refused error.
I asked Bard to run it also and supposedly it sees the same problem. Of course with Bard who knows if it would work anyway. Just another anecdotal data point.
Edit: Looking at the code it seems maybe(?) that if MDNS fails then arduinoOTA tries a TCP connection which then fails because the ArduinoOTAClass only does UDP. I'm not sure which way is suppose to work or if this is just unfinished code or ???
Having the same issue with Arduino IDE 2.3.2 on Windows 11 with ESP32-WROOM-32.
[ 22307][D][Updater.cpp:133] begin(): OTA Partition: app1
Start updating sketch
[ 25308][I][WiFiClient.cpp:260] connect(): select returned due to timeout 3000 ms for fd 49
Error[2]: Connect Failed
[ 25309][E][Updater.cpp:284] end(): premature end: res:0, pos:0/798448
Error[4]: End Failed
[ 25334][E][ArduinoOTA.cpp:356] _runUpdate(): Update ERROR: Aborted
Board
ESP32 Dev Module (NodeMCU ESP32 from JOY-iT)
Device Description
hi, i am using Arduino IDE 1.8.19 for Linux ARM 32 on my Raspberry Pi (32bit). and i try to get the
BasicOTA
example on myESP32 Dev Module
(NodeMCU from JOY-iT) to run.Hardware Configuration
nothing attached.
Version
v2.0.9
IDE Name
Arduino IDE 1.8.19 for Linux ARM 32bit
Operating System
RaspiOS Bullseye 32bit desktop
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
when i try to OTA update the sketch from Arduino IDE, it fails with
[ERROR]: No response from device
.i tried the different partition schemes:
but always the same result when i try to OTA update the device.
i can sucessfully compile/upload/OTA update with the example
OTAWebUpdater
with selecting a file and click Upload in its updater page.Sketch
Debug Message
Other Steps to Reproduce
compile and flash the example sketch
ArduinoOTA -> BasicOTA
to the ESP32 Dev Module via port: USBrun the ESP32 Deb Module with its BasicOTA sketch.
in Arduino IDE change the port to the now shown OTA device
myesp32
just compile&upload the same
BasicOTA
sketch via OTA in Arduino IDEin case password is enabled, you get ask for the password. when typing in the correct password you get a message
authentification OK
but few seconds later you get asked again because the upload failed.in case no password is enabled, you get the message
[ERROR]: No response from device
on the ESP32 Dev module you always get the same error log.
I have checked existing issues, online documentation and the Troubleshooting Guide
[X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.