Skip to content

"Esptool: No such file or directory" error when uploading code to ESP8266 board #980

Closed
@FlynnMarlie

Description

@FlynnMarlie

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
error 1

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:

image

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

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedos: linuxSpecific to Linux operating systemos: macosSpecific to macOS operating systemtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions