No permission to access USB port on sketch download [Solved]

I am in the process of working out a couple bugs after reinstalling 1.8.19 IDE.
I am getting denied permission to access the USB port the ESP32 is connected to.
The port does show on the IDE port assignment under Tools / Port:.

IDE error output:

Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, Core 1, Core 1, None"

Sketch uses 659645 bytes (50%) of program storage space. Maximum is 1310720 bytes.
Global variables use 37588 bytes (11%) of dynamic memory, leaving 290092 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.1
Serial port /dev/ttyUSB0
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ed/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 4582, in <module>
    _main()
  File "/home/ed/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 4575, in _main
    main()
  File "/home/ed/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 4074, in main
    esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
  File "/home/ed/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 120, in get_default_connected_device
    _esp = chip_class(each_port, initial_baud, trace)
  File "/home/ed/.arduino15/packages/esp32/tools/esptool_py/3.1.0/esptool.py", line 313, in __init__
    self._port = serial.serial_for_url(port)
  File "/usr/lib/python3/dist-packages/serial/__init__.py", line 88, in serial_for_url
    instance.open()
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
the selected serial port serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
 does not exist or your board is not connected

This error is described in thousands of places on the Internet.
Add the user from which you run the Arduino ide to the dialout group

Unable to complete troubleshooting as hard drive crashed. Installing new drive.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.