Arduino IDE 2.0.1 not starting: ERROR Failed to start the backend application

Hello,

My IDE 2RC is working since June. It stopped working today, not starting, no splash screen.
Three Arduino_ide running 0% cpu in task manager.

I tried IDE 2.0.1 .exe, .msi, .zip, as Admin, for all users and for my user.
Install is successfull, but IDE is not starting.

My config:
Windows 10 pro up to date, domain, OneDrive, Security software Cortex XDR from Palo Alto.
Nothing (no Arduino) connected on USB.

Computer rebooted, uninstall executed, ccleaner executed.

Here below is the output when launching IDE (zip version) using powershell.

Thank you for your help,

Jean.

Arduino IDE 2.0.1
Starting backend process. PID: 18948
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+.webview..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/xxx/.theia'
root INFO Backend Object.initialize: 6.4 ms [Finished 3.149 s after backend start]
root INFO Backend Object.configure: 5.0 ms [Finished 3.149 s after backend start]
root INFO Backend MessagingContribution.onStart: 2.3 ms [Finished 3.149 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.5 ms [Finished 3.207 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.5 ms [Finished 3.207 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.2 ms [Finished 3.207 s after backend start]
root WARN Backend LocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 57.8 ms [Finished 3.208 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.3 ms [Finished 3.208 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 3.1 ms [Finished 3.211 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.6 ms [Finished 3.211 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 1.4 ms [Finished 3.212 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.5 ms [Finished 3.214 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 2.0 ms [Finished 3.216 s after backend start]
root INFO Backend NodeFileUploadService.configure: 3.7 ms [Finished 3.216 s after backend start]
daemon INFO Starting daemon from C:\Users\xxx\Downloads\arduino-ide_2.0.1_Windows_64bit\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 1.4 ms [Finished 3.219 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 3.5 ms [Finished 3.222 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.7 ms [Finished 3.223 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.9 ms [Finished 3.224 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.6 ms [Finished 3.225 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 3.226 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 1.8 ms [Finished 3.228 s after backend start]
root ERROR Failed to start the backend application:
root ERROR Error: getaddrinfo ENOENT localhost
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
root ERROR Uncaught Exception:
root ERROR Error: getaddrinfo ENOENT localhost
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
root WARN The local plugin referenced by local-dir:/c%3A/Users/xxx/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/xxx/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\xxx.arduinoProIDE\plugins does not exist.
[19324:1105/192905.465:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is

Hi @jdraye

A tool named "Arduino CLI" provides all the non-GUI functionality for Arduino IDE 2.x.

When Arduino IDE starts up, it must establish a communication channel with Arduino CLI via a TCP/IP port on localhost (e.g., http://localhost:6777). The IDE is not able to make this connection on your computer for some reason.

Do you know of anything unusual about your network configuration that would prevent this?

Thank you for the analysis.

A few weeks before, the IT department moved to Cortex XDR from Palo Alto.
Arduino IDE was still working last week, so I didn't associate both events.

I will look at the firewall, and also, the port could be used by something else.

I will keep you informed,

Jean.

1 Like

Hello Ptillisch,

Not found in netstat, so port is not used.

Jean.

Hello Ptillisch,

Is it a service, or a process spawned by Arduino IDE ?
What could be it's name ?

Jean.

The http://localhost:6777 port I mentioned was merely an example. Arduino CLI picks a random free port, so it could be any number.

It is a process.

The name is arduino-cli.exe

Hello Ptillisch,

Found the exe in resources\app\node_modules\arduino-ide-extension\build.
Well noted that the port is random.
So, I should see a process named arduino-cli.exe listening on a tcp port.
If not, I have to look at arduino-cli.exe.

On the other hand, after trying Arduino IDE on the web, and fighting against the agent and the com port not found,
I restarted the zip version: it seems to work now, I can open one of my projects and I can access the serial port of the Uno.

Unfortunately, I don't know what broke and what repaired my setup.

Tomorrow, I will retry the installed version.

Thank you for sharing your experience,

Jean.

Your topic has been moved to the dedicated IDE2.0 section of the forum.

Hello Ptillisch,

The zip version is still working.
Don't know what happened.

Thank you for your time,

Jean.

You are welcome. I'm glad it is working. Thanks for the update.

Please let us know if you have any more problems.

Regards,
Per

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