ESP32 Debugger showing an error(Using ESP-Prog)

I have connected an esp-prog device to my esp32dev module.
When I run the debugger in vscode I get this error:
image

I am using platformio on Linux Mint(Debian based). I am not sure what the error is.
I have followed all the steps here:

I installed udev and added the rules file.

I reconnected the esp prog several times but I still keep getting this error.

This is what the debug console says:

Open On-Chip Debugger  v0.10.0-esp32-20190708 (2019-07-08-11:03)

Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Info : ftdi: if you experience problems at higher adapter clocks, try the command “ftdi_tdo_sample_edge falling”
Info : clock speed 20000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…

Not sure what the issue is.