IDE hangs on startup: "wsarecv: Une connexion existante ..."

Hi,

I have the same problem but with Windows 10 Enterprise LTSC 21H2 (there is no update for this OS!).
I stopped the firewall and the antivirus but it does not change anything.
Does anyone have an idea?
Thanks

Hi @iut-toulon. I'm going to ask you to provide some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
    A context menu will open
  5. Select "Open PowerShell window here" from the menu.
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: C:\Program Files\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:03:03.490Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:03:03.490Z"}
Starting backend process. PID: 3092
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Administrateur/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-12-10T15:38:35.339Z root INFO Backend Object.initialize: 5.5 ms [Finished 0.746 s after backend start]
2024-12-10T15:38:35.340Z root INFO Backend Object.configure: 4.4 ms [Finished 0.746 s after backend start]
2024-12-10T15:38:35.340Z root INFO Backend s.onStart: 2.3 ms [Finished 0.746 s after backend start]
2024-12-10T15:38:35.341Z root INFO Backend s.configure: 0.4 ms [Finished 0.778 s after backend start]
2024-12-10T15:38:35.342Z root INFO Backend d.onStart: 0.3 ms [Finished 0.778 s after backend start]
2024-12-10T15:38:35.343Z root INFO Backend d.configure: 0.1 ms [Finished 0.778 s after backend start]
2024-12-10T15:38:35.344Z root INFO Backend d.initialize: 31.7 ms [Finished 0.778 s after backend start]
2024-12-10T15:38:35.344Z root INFO Backend c.onStart: 0.4 ms [Finished 0.778 s after backend start]
2024-12-10T15:38:35.344Z root INFO Backend a.configure: 1.3 ms [Finished 0.780 s after backend start]
2024-12-10T15:38:35.346Z config INFO >>> Initializing CLI configuration...
2024-12-10T15:38:35.346Z root INFO Backend c.initialize: 0.6 ms [Finished 0.780 s after backend start]
2024-12-10T15:38:35.347Z root INFO Backend x.onStart: 0.9 ms [Finished 0.781 s after backend start]
2024-12-10T15:38:35.347Z config INFO Loading CLI configuration from c:\Users\Administrateur\.arduinoIDE\arduino-cli.yaml...
2024-12-10T15:38:35.348Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-12-10T15:38:35.349Z root INFO Backend a.initialize: 0.5 ms [Finished 0.782 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend w.onStart: 1.4 ms [Finished 0.783 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend r.configure: 2.2 ms [Finished 0.783 s after backend start]
2024-12-10T15:38:35.349Z discovery-log INFO start
2024-12-10T15:38:35.349Z discovery-log INFO start new deferred
2024-12-10T15:38:35.349Z root INFO Backend d.initialize: 0.5 ms [Finished 0.784 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend y.onStart: 2.5 ms [Finished 0.786 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend r.configure: 2.1 ms [Finished 0.786 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend a.onStart: 0.6 ms [Finished 0.787 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend h.configure: 1.3 ms [Finished 0.788 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend s.configure: 0.2 ms [Finished 0.788 s after backend start]
2024-12-10T15:38:35.349Z root INFO Backend l.configure: 0.1 ms [Finished 0.789 s after backend start]
2024-12-10T15:38:35.353Z root INFO Theia app listening on http://127.0.0.1:56891.
2024-12-10T15:38:35.353Z root INFO Finished starting backend application: 3.8 ms [Finished 0.792 s after backend start]
2024-12-10T15:38:35.359Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrateur/.arduinoIDE/plugins does not exist.
2024-12-10T15:38:35.359Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Administrateur/.arduinoIDE/extensions does not exist.
2024-12-10T15:38:35.359Z root WARN The local plugin referenced by local-dir:C:\Users\Administrateur\.arduinoIDE\plugins does not exist.
2024-12-10T15:38:35.368Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\Administrateur\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\Administrateur\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-12-10T15:38:35.368Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-12-10T15:38:35.368Z config INFO Loaded the CLI configuration.
2024-12-10T15:38:35.370Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/Administrateur/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/Administrateur/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-12-10T15:38:35.370Z config INFO Validating the CLI configuration...
2024-12-10T15:38:35.371Z config INFO The CLI config is valid.
2024-12-10T15:38:35.371Z config INFO <<< Initialized the CLI configuration.
2024-12-10T15:38:35.387Z root INFO Resolve plugins list: 39.8 ms [Finished 0.826 s after backend start]
2024-12-10T15:38:35.477Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="arduino-cli version 1.1.1"
time="2024-12-10T16:38:35+01:00" level=info msg="Using config file: c:\\Users\\Administrateur\\.arduinoIDE\\arduino-cli.yaml"
time="2024-12-10T16:38:35+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:56893
{"IP":"127.0.0.1","Port":"56893"}
2024-12-10T15:38:35.477Z daemon INFO Daemon is running.
2024-12-10T15:38:35.561Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Checking signature" index="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-12-10T16:38:35+01:00" level=info msg="Loading hardware from: C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\packages"
time="2024-12-10T16:38:35+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip"
2024-12-10T15:38:35.581Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:ctags@5.8-arduino11 tool: Get "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip": read tcp 10.9.4.9:56896->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:35.582Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip"
2024-12-10T15:38:35.622Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:dfu-discovery@0.1.2 tool: Get "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip": read tcp 10.9.4.9:56897->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:35.623Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip"
2024-12-10T15:38:35.676Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:mdns-discovery@1.0.9 tool: Get "https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip": read tcp 10.9.4.9:56898->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:35.676Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.1_Windows_64bit.zip"
2024-12-10T15:38:35.679Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-discovery@1.4.1 tool: Get "https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.1_Windows_64bit.zip": read tcp 10.9.4.9:56899->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:35.680Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_Windows_64bit.zip"
2024-12-10T15:38:35.744Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-monitor@0.14.1 tool: Get "https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_Windows_64bit.zip": read tcp 10.9.4.9:56900->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:35.744Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: reading directory C:\Users\Administrateur\AppData\Local\Arduino15\packages\builtin\tools: open C:\Users\Administrateur\AppData\Local\Arduino15\packages\builtin\tools: Le chemin dÔÇÖacc├¿s sp├®cifi├® est introuvable.
2024-12-10T15:38:35.744Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
2024-12-10T15:38:35.744Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed
2024-12-10T15:38:35.744Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Loading tools from dir: C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-12-10T16:38:35+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\library_index.json"
2024-12-10T15:38:36.005Z daemon INFO time="2024-12-10T16:38:35+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-12-10T16:38:35+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Administrateur\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-12-10T15:38:36.058Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

2024-12-10T15:38:36.062Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-12-10T15:38:36.062Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-12-10T15:38:36.130Z root ERROR Failed to update platform indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:921712)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:949334)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:942356)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1028497
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeServerStreamRequest (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:949101)
    at s.updateIndex (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1013389)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:778402
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:778750
    at new Promise (<anonymous>)
    at v.doUpdateIndex (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:778729)
    at v.updatePlatformIndex (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:778374)
    at v.updateIndex (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:777742)
    at v.initInstanceWithFallback (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:776035)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-12-10T15:38:36.183Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Checking signature" index="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-12-10T16:38:36+01:00" level=info msg="Loading hardware from: C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\packages"
time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip"
time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.1_Windows_64bit.zip"
2024-12-10T15:38:36.183Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:mdns-discovery@1.0.9 tool: Get "https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip": read tcp 10.9.4.9:56903->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:36.210Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-discovery@1.4.1 tool: Get "https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.1_Windows_64bit.zip": read tcp 10.9.4.9:56904->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:36.211Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_Windows_64bit.zip"
2024-12-10T15:38:36.260Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:serial-monitor@0.14.1 tool: Get "https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_Windows_64bit.zip": read tcp 10.9.4.9:56905->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:36.260Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip"
2024-12-10T15:38:36.275Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:ctags@5.8-arduino11 tool: Get "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip": read tcp 10.9.4.9:56906->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:36.275Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip"
2024-12-10T15:38:36.316Z root ERROR Detected an error response during the gRPC core client initialization: code: 13, message: downloading builtin:dfu-discovery@0.1.2 tool: Get "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.2_Windows_64bit.zip": read tcp 10.9.4.9:56907->104.18.10.21:443: wsarecv: Une connexion existante a d├╗ ├¬tre ferm├®e par lÔÇÖh├┤te distant.
2024-12-10T15:38:36.316Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: reading directory C:\Users\Administrateur\AppData\Local\Arduino15\packages\builtin\tools: open C:\Users\Administrateur\AppData\Local\Arduino15\packages\builtin\tools: Le chemin dÔÇÖacc├¿s sp├®cifi├® est introuvable.
2024-12-10T15:38:36.316Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
2024-12-10T15:38:36.316Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed
2024-12-10T15:38:36.316Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Loading tools from dir: C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-12-10T16:38:36+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\library_index.json"
2024-12-10T15:38:36.345Z root INFO Deploy plugins list: 39.8 ms [Finished 1.785 s after backend start]
2024-12-10T15:38:36.541Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Administrateur\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
2024-12-10T15:38:36.541Z daemon INFO time="2024-12-10T16:38:36+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Administrateur\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-12-10T15:38:36.610Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

2024-12-10T15:38:36.610Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:777546
    at v.evaluateErrorStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:777562)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:777232)
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-12-10T15:38:37.407Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 153.1 ms [Finished 1.950 s after frontend start]
2024-12-10T15:38:37.407Z root WARN A command editor.action.toggleStickyScroll is already registered.

But, on the other hand, I installed Arduino 1.8.19 and it works fine !

On the first run after a fresh installation, Arduino IDE downloads some additional essential components from the Internet and installs them. If it can't install those components then the startup fails. So the computer must have access to the Internet on the first startup.

The errors indicate Arduino IDE is not able to access the Internet. This problem might be caused by your firewall or some other network security system (e.g., proxy or VPN) interfering with Arduino IDE's ability to access the Internet.

Are you aware of anything special about the configuration of the network you connect to the Internet through that might interfere with Arduino IDE's access to the Internet?

I am indeed behind my university's proxy
However, since Arduino 1.8.19 starts well, for it, I can configure the proxy.
Is there a configuration file to modify to configure the proxy of the IDE version 2.3.4?
Otherwise, can I manually install the files indicated in the log ?

Yes. Normally we could do this via a friendly configuration GUI, but unfortunately since the IDE won't start up that is not available. So instead it will be necessary to directly edit the configuration file where Arduino IDE stores the setting.

I'll provide instructions you can follow to do that:

  1. If the Arduino IDE is running, close the window.
  2. Use any text editor to open the file at the following path on your hard drive:
    c:\Users\Administrateur\.arduinoIDE\arduino-cli.yaml
    
  3. Add text in the following format to the bottom of the file:
    network:
      proxy: <scheme>://<username>:<password>@<host>:<port>
    
    (where each of the <> enclosed parts are placeholders you must replace with the appropriate values for your proxy)
  4. Replace <scheme> with either http or socks5.
  5. Replace <username> and <password> with your credentials for the proxy server.
  6. Replace <host> with the domain or IP address of the proxy server (e.g., example.com).
  7. Replace <port> with the port number on the proxy server.
  8. Save the file.

Now start Arduino IDE again. Hopefully it will start up and work as expected. You can start Arduino IDE normally this time instead of from the PowerShell terminal this time if you like.

Problem: I have a "+" in my proxy password.
Is that why Arduino IDE still doesn't work

Also there is no directory or file for Arduino in the "C:\ProgramData" directory.
Everything is in my "administrator" directories :frowning:
As these are computers that will be used by students, this will create a security hole

I will reboot my computer and see how it goes.

It is possible. Try replacing the + with its percent encoded equivalent: %2B.

You can configure the paths where Arduino IDE stores files via that same arduino-cli.yaml file. There is documentation here:

https://arduino.github.io/arduino-cli/latest/configuration/

The only thing you can't configure is the location of the arduino-cli.yaml file itself. So you would need to set the configuration in the file under the user folder in each student's account.

In the end, I put a WiFi card on the computer and Arduino works through it
In my university, I log in to WiFi with my login and password and it is the WiFi gateway that goes to the internet ... without going through the proxy.
This has already happened with other software that did not ask for authentication by the proxy during their installation. This allows you to get around the problem :wink:
As I can't see myself implementing a policy, the updates will not be done !
I will just install the libraries ... but in "C:\Users\Public\Documents\Arduino\libraries"

However, I hope that in future updates:

  • the proxy coordinates with the login and password will be requested during installation
  • the proxy login and password will be requested interactively if they are not provided in the "arduino-cli.yaml" file or in the Arduino IDE preferences
  • the ".arduinoIDE" will be in "C:/ProgramData" and not in the user's directory!

Thanks anyway for your help and for the documentation on the "arduino-cli.yaml" file

We are tracking the problem of Arduino IDE hanging on the first run when it can't access the Internet due to the use of a proxy here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

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