esphome / issues

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

No such file or directory: #699

Closed Spackstor closed 4 years ago

Spackstor commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

Just getting started. Mosquitto and esphome on raspberry pi4 ESP (ESP32/ESP8266, Board/Sonoff):

/ nodemcu lolin v3 **Affected component:** not applicable **Description of problem:** Yaml compiles but cannot be uploaded or downloaded because of directory **Problem-relevant YAML-configuration entries:** ```yaml PASTE YAML FILE HERE esphomeyaml: name: garage platform: ESP8266 board: nodemcuv2 wifi: ssid: password: # Enable logging logger: # Enable Home Assistant API api: ota: ``` **Logs (if applicable):**
PASTE DEBUG LOG HERE
Compiles without errors 
INFO Reading configuration...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d config/garage
WARNING ********************************************************************************
WARNING A new version of esphomeyaml is available: 1.13.6 (this is 1.10.1)
WARNING Changelog: https://esphomelib.com/esphomeyaml/changelog/index.html
WARNING Update Instructions: https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version
WARNING ********************************************************************************
Processing garage (board: nodemcuv2; framework: arduino; platform: espressif8266@1.8.0)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 1.8.0 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 1.40802.2 (4.8.2), tool-esptool 1.413.0 (4.13), framework-arduinoespressif8266 2.20402.4 (2.4.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS>
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncTCP> 1.1.3
|   |-- <ESP8266WiFi> 1.0
|-- <Hash> 1.0
|-- <esphomelib> 1.10.1
|   |-- <AsyncMqttClient> 0.8.2
|   |   |-- <ESPAsyncTCP> 1.1.3
|   |   |   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoJson-esphomelib> 5.13.3
|   |-- <ESP Async WebServer> 1.1.1
|   |   |-- <ESPAsyncTCP> 1.1.3
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <Hash> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ArduinoJson-esphomelib> 5.13.3
|   |-- <FastLED> 3.2.0
|   |   |-- <EspSoftwareSerial> 3.4.1
|   |-- <NeoPixelBus> 2.4.1
|   |   |-- <SPI> 1.0
|   |-- <ESP8266mDNS>
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESPAsyncTCP> 1.1.3
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoOTA> 1.0
|   |   |-- <ESP8266mDNS>
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <Wire> 1.0
Retrieving maximum program size .pio/build/garage/firmware.elf
Checking size .pio/build/garage/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
========================= [SUCCESS] Took 9.65 seconds =========================
INFO Successfully compiled program.

But binary will not download - windows end says "failed - server Problems"

At the Hassbian end there appears to be a directory error (permissions maybe)
esphomeyaml config/ dashboard
INFO Starting dashboard web server on port 6052 and configuration dir config/...
INFO 200 GET / (192.168.1.135) 106.40ms
INFO 200 GET /static/favicon.ico?hash=-825088632 (192.168.1.135) 8.48ms
INFO 304 GET /edit?configuration=garage.yaml (192.168.1.135) 5.13ms
INFO 101 GET /run (192.168.1.135) 3.05ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml run --upload-port /dev/ttyUSB0'
INFO 304 GET / (192.168.1.135) 4.59ms
INFO 101 GET /compile (192.168.1.135) 2.55ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml compile'
ERROR Uncaught exception GET /download.bin?configuration=garage.yaml (192.168.1.135)
HTTPServerRequest(protocol='http', host='192.168.1.101:6052', method='GET', uri='/download.bin?configuration=garage.yaml', version='HTTP/1.1', remote_ip='192.168.1.135')
Traceback (most recent call last):
  File "/home/pi/.local/lib/python2.7/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphomeyaml/dashboard/dashboard.py", line 210, in get
    with open(path, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'config/garage/.pioenvs/garage/firmware.bin'
ERROR 500 GET /download.bin?configuration=garage.yaml (192.168.1.135) 16.66ms
INFO 304 GET /edit?configuration=garage.yaml (192.168.1.135) 2.23ms
INFO 101 GET /compile (192.168.1.135) 2.27ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml compile'
ERROR Uncaught exception GET /download.bin?configuration=garage.yaml (192.168.1.135)
HTTPServerRequest(protocol='http', host='192.168.1.101:6052', method='GET', uri='/download.bin?configuration=garage.yaml', version='HTTP/1.1', remote_ip='192.168.1.135')
Traceback (most recent call last):
  File "/home/pi/.local/lib/python2.7/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphomeyaml/dashboard/dashboard.py", line 210, in get
    with open(path, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'config/garage/.pioenvs/garage/firmware.bin'
ERROR 500 GET /download.bin?configuration=garage.yaml (192.168.1.135) 4.72ms
pi@hassbian:~ $ esphomeyaml config/ dashboard
INFO Starting dashboard web server on port 6052 and configuration dir config/...
INFO 200 GET / (192.168.1.135) 106.40ms
INFO 200 GET /static/favicon.ico?hash=-825088632 (192.168.1.135) 8.48ms
INFO 304 GET /edit?configuration=garage.yaml (192.168.1.135) 5.13ms
INFO 101 GET /run (192.168.1.135) 3.05ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml run --upload-port /dev/ttyUSB0'
INFO 304 GET / (192.168.1.135) 4.59ms
INFO 101 GET /compile (192.168.1.135) 2.55ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml compile'
ERROR Uncaught exception GET /download.bin?configuration=garage.yaml (192.168.1.135)
HTTPServerRequest(protocol='http', host='192.168.1.101:6052', method='GET', uri='/download.bin?configuration=garage.yaml', version='HTTP/1.1', remote_ip='192.168.1.135')
Traceback (most recent call last):
  File "/home/pi/.local/lib/python2.7/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphomeyaml/dashboard/dashboard.py", line 210, in get
    with open(path, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'config/garage/.pioenvs/garage/firmware.bin'
ERROR 500 GET /download.bin?configuration=garage.yaml (192.168.1.135) 16.66ms
INFO 304 GET /edit?configuration=garage.yaml (192.168.1.135) 2.23ms
INFO 101 GET /compile (192.168.1.135) 2.27ms
INFO Running command 'esphomeyaml --dashboard config/garage.yaml compile'
ERROR Uncaught exception GET /download.bin?configuration=garage.yaml (192.168.1.135)
HTTPServerRequest(protocol='http', host='192.168.1.101:6052', method='GET', uri='/download.bin?configuration=garage.yaml', version='HTTP/1.1', remote_ip='192.168.1.135')
Traceback (most recent call last):
  File "/home/pi/.local/lib/python2.7/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/pi/.local/lib/python2.7/site-packages/esphomeyaml/dashboard/dashboard.py", line 210, in get
    with open(path, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'config/garage/.pioenvs/garage/firmware.bin'
ERROR 500 GET /download.bin?configuration=garage.yaml (192.168.1.135) 4.72ms

Additional information and things you've tried:

When I try to upload, it appears to be the same problem but the error appears in the browser interface INFO Reading configuration... INFO Generating C++ source... INFO Compiling app... INFO Running: platformio run -d config/garage WARNING **** WARNING A new version of esphomeyaml is available: 1.13.6 (this is 1.10.1) WARNING Changelog: https://esphomelib.com/esphomeyaml/changelog/index.html WARNING Update Instructions: https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version WARNING **** Processing garage (board: nodemcuv2; framework: arduino; platform: espressif8266@1.8.0)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html PLATFORM: Espressif 8266 1.8.0 > NodeMCU 1.0 (ESP-12E Module) HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES: toolchain-xtensa 1.40802.2 (4.8.2), tool-esptool 1.413.0 (4.13), framework-arduinoespressif8266 2.20402.4 (2.4.2) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 33 compatible libraries Scanning dependencies... Dependency Graph |-- 1.0 |-- | |-- 1.0 |-- 1.1.3 | |-- 1.0 |-- 1.0 |-- 1.10.1 | |-- 0.8.2 | | |-- 1.1.3 | | | |-- 1.0 | |-- 5.13.3 | |-- 1.1.1 | | |-- 1.1.3 | | | |-- 1.0 | | |-- 1.0 | | |-- 1.0 | | |-- 5.13.3 | |-- 3.2.0 | | |-- 3.4.1 | |-- 2.4.1 | | |-- 1.0 | |-- | | |-- 1.0 | |-- 1.0 | |-- 1.1.3 | | |-- 1.0 | |-- 1.0 | | |-- | | | |-- 1.0 | | |-- 1.0 | |-- 1.0 Retrieving maximum program size .pio/build/garage/firmware.elf Checking size .pio/build/garage/firmware.elf Memory Usage -> http://bit.ly/pio-memory-usage ========================= [SUCCESS] Took 9.55 seconds ========================= INFO Successfully compiled program. INFO Running: esptool.py --before default_reset --after hard_reset --chip esp8266 --port /dev/ttyUSB0 write_flash 0x0 config/garage/.pioenvs/garage/firmware.bin usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,40m,26m,20m,80m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--ignore-flash-encryption-efuse-setting] [--compress | --no-compress]

[
...] esptool write_flash: error: argument
: [Errno 2] No such file or directory: u'config/garage/.pioenvs/garage/firmware.bin'
brandond commented 4 years ago

Dude

WARNING A new version of esphomeyaml is available: 1.13.6 (this is 1.10.1)

OttoWinter commented 4 years ago

As @brandond said: 🚨🚨🚨

WARNING A new version of esphomeyaml is available: 1.13.6 (this is 1.10.1)

Closing until you try with a more recent version