Description
Describe the problem
The latest release (1.6.0) of the Cloud agent causes uploading any sketch to an ESP8266 board to fail:
Used platform Version Path
esp8266:esp8266 2.5.0 /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0
Flashing with command:{runtime.tools.esptool.path}/esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.usbserial-02856F96 -ca 0x00000 -cf /var/folders/sx/07hx_hp11nz50sf4ljwylj080000gn/T/arduino-create-agent189194775/new_sketch_1722490854405.bin
Start command: fork/exec {runtime.tools.esptool.path}/esptool: no such file or directory

We navigated to the "esptool" folder in the .arduino-create directory, but found that this folder is empty. After attempting to place the files it was looking for in the directory manually, it seemed as if the files were getting deleted when the agent attempts to flash the attached device.
We were able flash to the device and upload the new code by first quitting the agent that was running, then installing the previous version of the agent (version 1.5.0) and then running it. It then allowed us to upload the new code successfully. Going back to version 1.5.0 worked as long as the device didn't restart and the browser wasn't refreshed as a restart or browser refresh caused it to download and use version 1.6.0 again and the issue would happen again.
Here is a screenshot of how the error was displayed in the console:
To reproduce
To reproduce the issue, simply create a new sketch in Arduino Create (https://create.arduino.cc/editor).
Next, connect an ESP8266 board to the computer and attempt to upload any code to it. The error should show then.
Expected behavior
It is possible to upload to ESP8266 boards from Arduino Cloud.
Arduino Create Agent version
1.6.0
Operating system
- macOS
- Linux
Operating system version
- macOS: All operating system versions seems to be affected
- Ubuntu 22.04
Browser
Chrome
Browser version
All browser versions seems to be affected
Additional context
Uploading code to an ESP8266 board from Arduino Cloud using a Windows computer works fine.
Uploading code to non-ESP8266 boards (including ESP32-based boards) works fine even on Linux and macOS machines.
Additional reports
- https://forum.arduino.cc/t/esptool-file-not-found-in-ardunio-cloud-website/1287761
- https://forum.arduino.cc/t/upload-to-esp8266-fails-runtime-tools-esptool-path-esptool-no-such-file-or-directory/1288211
- https://forum.arduino.cc/t/problems-uploading-sketches-from-arduino-cloud/1288083
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest versionMy report contains all necessary details
Activity
[-]"Esptool: No such file or directory" error when uploading code to ESP8266 board on a Mac[/-][+]"Esptool: No such file or directory" error when uploading code to ESP8266 board[/+]umbynos commentedon Aug 5, 2024
The problem has been introduced in 1.6.0 (in #953, to be specific in 887b22b):
Running the same
curl
request:with 1.6.0 ⬇️
with 1.5.0
Xayton commentedon Aug 5, 2024
We discovered this is a regression caused by some changes in 1.6.0 and by a peculiar structure of the
esptool
packages. The package has a root folder "esptool" with the same name of the file contained in it ("esptool").add tests to install esptool to verify #980
add tests to install esptool to verify #980
esptool
after 1.6.0 #986Fix agent not able to install `esptool` after 1.6.0 (#986)
2 remaining items