esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Update via USB cable doesn't work after OS/Hassio update #2400

Open Spirituss opened 3 years ago

Spirituss commented 3 years ago

The problem

Firmware successfully compiles, esphome sees USB cable but bin uploading can't be done following by "Connecting....____.... " and finally by error "A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header". Nevertheless, the blue status led on ESP board is blinking during upload retries. I tried to reinstall esphome docket container (both Hassio Addon and docker container versions), to fulfil esphome site recommendations with no effect. This host worked successfully for a long time and becomes broken after host update my Raspbian OS by "apt-get update + upgrade". Googling leads to the similar issue: https://github.com/Koenkk/zigbee2mqtt/issues/8663

Which version of ESPHome has the issue?

v2021.8.2

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2021.9.3

What platform are you using?

ESP8266

Board

Wemos D1 mini, generic Nodemcu

Component causing the issue

Possibly, USB driver

Example YAML snippet

No response

Anything in the logs that might be useful for us?

NFO Running:  esptool.py --before default_reset --after hard_reset --baud 460800 --chip esp8266 --port /dev/ttyUSB1 write_flash 0x0 /data/test/.pioenvs/test/firmware.bin
esptool.py v2.8
Serial port /dev/ttyUSB1
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header

Additional information

No response

Spirituss commented 3 years ago

Critical issue but there is no any reaction. I am confused.

trave commented 2 years ago

May be related to https://github.com/espressif/esptool/issues/656 Can you check manually fix with --before no_reset option for esptool?

Spirituss commented 2 years ago

May be related to espressif/esptool#656 Can you check manually fix with --before no_reset option for esptool?

I will check, thanx!

Spirituss commented 2 years ago

Found issues with similar diagnosis https://github.com/espressif/esptool/issues/653 https://bugzilla.kernel.org/show_bug.cgi?id=214131

alexreddy78 commented 2 years ago

Same issue, but on HA 2021.10.2, ESPHOME 2021.9.3…

InnerLive commented 2 years ago

Same error. Tried with different ESP8266 boards.

 Add-on version: 2021.10.3
 You are running the latest version of this add-on.
 System: Ubuntu 20.04.3 LTS  (amd64 / intel-nuc)
 Home Assistant Core: 2021.10.6
 Home Assistant Supervisor: 2021.10.8