Problem running Arduino 2.0 on Ubuntu

Hi, Im having trouble running the new IDE.

I unzipped the .zip file into the home directory and cded into it and ran $ ./arduino-ide. I then get the following read out:

Starting backend process. PID: 5220
[5242:1018/133541.666801:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///home/m/.theia'
root INFO Backend Object.initialize: 7.0 ms [Finished 1.495 s after backend start]
root INFO Backend Object.configure: 5.7 ms [Finished 1.495 s after backend start]
root INFO Backend MessagingContribution.onStart: 2.4 ms [Finished 1.495 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.8 ms [Finished 1.589 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.6 ms [Finished 1.589 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.3 ms [Finished 1.590 s after backend start]
root WARN Backend LocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 94.4 ms [Finished 1.590 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.4 ms [Finished 1.590 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 1.5 ms [Finished 1.592 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.6 ms [Finished 1.592 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 1.1 ms [Finished 1.593 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.5 ms [Finished 1.594 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.2 ms [Finished 1.595 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.5 ms [Finished 1.595 s after backend start]
daemon INFO Starting daemon from /home/m/arduino-ide_2.0.0/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 1.2 ms [Finished 1.597 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.7 ms [Finished 1.597 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.5 ms [Finished 1.599 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.6 ms [Finished 1.599 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 1.600 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.600 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 1.6 ms [Finished 1.602 s after backend start]
root ERROR Failed to start the backend application:
root ERROR Error: listen EADDRNOTAVAIL: address not available 19.168.2.2
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)
root ERROR Uncaught Exception: 
root ERROR Error: listen EADDRNOTAVAIL: address not available 19.168.2.2
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)
root WARN The local plugin referenced by local-dir:/home/m/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/home/m/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:/home/m/.arduinoProIDE/plugins does not exist.
^CStored workspaces roots: 
Could not terminate the backend process. It was not running.

I have googled the errors with no luck so far, has anyone had the same issue or could suggest how I can fix this?

Im running on :
|Description:|Ubuntu 22.04.1 LTS|
|Release:|22.04|
|Codename:|jammy|

Thanks,

Mogo

Hi @MogoBaggins

Arduino IDE uses a tool named Arduino CLI that provides all the non-GUI functionality. They communicate via a TCP port on localhost. It seems unusual that your system is resolving localhost resolves to the IP address 19.168.2.2.

Do you know of anything special about your networking configuration that might cause this?

Have you modified the setting for localhost in your /etc/host file?

Thank you for the fast reply, I changed the resolv.conf file whilst fixing my VPN, would that have done it?

Do you have 127.0.0.1 in the resolv.conf file?

No, here is whats in the resolv.conf file:

# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search fritz.box

Ok, so here is what in the hosts.conf file:

# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on

I guess it should say:

# The "order" line is only used by old versions of the C library. order hosts,bind multi on 19.168.2.2. localhost 19.168.2.2. someDomainName EADDRNOTAVAIL

any idea what someDomainName is? what does your etc/hosts.conf file look like?

Here it is:

127.0.0.1	localhost
127.0.1.1	per-HP-EliteBook-8470p

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I don't know whether any of this is modified from a vanilla Ubuntu installation. The per-HP-EliteBook-8470p is the name of my computer.

Same here, except computer name

1 Like

Thanks for posting that, I've tried 15 different variations of changing the host.conf file with no luck. no mater what I put in I got a 'bad command' complaint, even when I copy and paste your file and change the name of the computer.

I get the same result when i tried to run the ardiono-ide command after each change to the host.conf file.

I could change the DNS again, do you think than might help?

Hi
I added this line to /etc/hosts in my debian desktop and after that arduino ide 2 opened with out any problem ,

127.0.0.1	localhost
1 Like

Please post the full and exact text of the "complaint".

Do you get it when you are starting the Arduino IDE?

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