Solved: Flashing failing immediately on Linux

I have been trying to follow the Atom Echo tutorial to flash my first ESPHome device. I got stuck on step one immediately. My Pop_OS linux just wouldn’t even.

I found out that the process never even happened by opening the browser console and seeing the connection didn’t even initialize:

failed to execute ‘open’ on ‘SerialPort’: Failed to open serial port.

I googled for a bit and found out that on Linux you might need permissions to access a device. These can be gotten by running:

sudo setfacl -m u:USERNAME:rw /dev/ttyUSB0
13 Likes

Thank you this solved a headache I just couldn’t crack

Yes, Thank you! I just switched to Fedora from Windows and this has been my headache for the last two weeks.

Created an account just to say thanks. I’ve been trying to figure this out forever and this is what it was. Thanks again!

Good morning! Still helping users (me) with this, thanks!

leaving here for the future, in my case it was my user not assigned to dialup group, easy solution here Serial port terminal > Cannot open /dev/ttyS0: Permission denied - Ask Ubuntu