Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE hangs on startup: "connectex: A connection attempt failed because the remote host did not respond ..." #2546

Open
3 tasks done
tps800 opened this issue Oct 30, 2024 · 0 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@tps800
Copy link

tps800 commented Oct 30, 2024

Describe the problem

After starting Arduino IDE 2.3.3 it fails to start into an usable state. It stays with a pumping icon nothing happening any more

Arduino IDE 2.3.3
Checking for frontend application configuration customizations. Module path: C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\PRGS\aide\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.3" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.0.4" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-09-25T09:41:18.242Z" (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.3","cliVersion":"1.0.4","buildDate":"2024-09-25T09:41:18.242Z"}
Starting backend process. PID: 6116
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/sct-muc/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-10-30T14:28:18.792Z root INFO Backend Object.initialize: 7.4 ms [Finished 0.951 s after backend start]
2024-10-30T14:28:18.797Z root INFO Backend Object.configure: 6.0 ms [Finished 0.951 s after backend start]
2024-10-30T14:28:18.797Z root INFO Backend a.onStart: 3.7 ms [Finished 0.951 s after backend start]
2024-10-30T14:28:18.798Z root INFO Backend a.configure: 0.5 ms [Finished 0.992 s after backend start]
2024-10-30T14:28:18.799Z root INFO Backend d.onStart: 0.3 ms [Finished 0.993 s after backend start]
2024-10-30T14:28:18.800Z root INFO Backend d.configure: 0.3 ms [Finished 0.993 s after backend start]
2024-10-30T14:28:18.801Z root INFO Backend d.initialize: 41.7 ms [Finished 0.993 s after backend start]
2024-10-30T14:28:18.801Z root INFO Backend c.onStart: 0.3 ms [Finished 0.993 s after backend start]
2024-10-30T14:28:18.802Z root INFO Backend s.configure: 5.2 ms [Finished 0.999 s after backend start]
2024-10-30T14:28:18.805Z config INFO >>> Initializing CLI configuration...
2024-10-30T14:28:18.805Z root INFO Backend c.initialize: 0.9 ms [Finished 0.999 s after backend start]
2024-10-30T14:28:18.805Z root INFO Backend x.onStart: 1.0 ms [Finished 1.000 s after backend start]
2024-10-30T14:28:18.806Z config INFO Loading CLI configuration from c:\Users\sct-muc\.arduinoIDE\arduino-cli.yaml...
2024-10-30T14:28:18.807Z daemon INFO Starting daemon from C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-10-30T14:28:18.807Z root INFO Backend s.initialize: 0.5 ms [Finished 1.001 s after backend start]
2024-10-30T14:28:18.807Z root INFO Backend w.onStart: 1.9 ms [Finished 1.002 s after backend start]
2024-10-30T14:28:18.807Z root INFO Backend r.configure: 2.8 ms [Finished 1.003 s after backend start]
2024-10-30T14:28:18.808Z discovery-log INFO start
2024-10-30T14:28:18.808Z discovery-log INFO start new deferred
2024-10-30T14:28:18.808Z root INFO Backend d.initialize: 0.8 ms [Finished 1.004 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend y.onStart: 3.1 ms [Finished 1.006 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend r.configure: 2.8 ms [Finished 1.007 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend s.onStart: 0.8 ms [Finished 1.009 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend h.configure: 0.7 ms [Finished 1.009 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend a.configure: 0.2 ms [Finished 1.009 s after backend start]
2024-10-30T14:28:18.808Z root INFO Backend l.configure: 0.1 ms [Finished 1.009 s after backend start]
2024-10-30T14:28:22.753Z root INFO Theia app listening on http://127.0.0.1:64424.
2024-10-30T14:28:22.753Z root INFO Finished starting backend application: 3945.2 ms [Finished 4.954 s after backend start]
2024-10-30T14:28:22.999Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\sct-muc\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\sct-muc\\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-10-30T14:28:22.999Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-10-30T14:28:22.999Z config INFO Loaded the CLI configuration.
2024-10-30T14:28:23.065Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/sct-muc/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/sct-muc/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-10-30T14:28:23.065Z config INFO Validating the CLI configuration...
2024-10-30T14:28:23.067Z config INFO The CLI config is valid.
2024-10-30T14:28:23.067Z config INFO <<< Initialized the CLI configuration.
2024-10-30T14:28:23.149Z root INFO Resolve plugins list: 4343.2 ms [Finished 5.350 s after backend start]
2024-10-30T14:28:23.476Z daemon INFO time="2024-10-30T15:28:23+01:00" level=info msg="arduino-cli version 1.0.4"
time="2024-10-30T15:28:23+01:00" level=info msg="Using config file: c:\\Users\\sct-muc\\.arduinoIDE\\arduino-cli.yaml"
time="2024-10-30T15:28:23+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:64426
{"IP":"127.0.0.1","Port":"64426"}
2024-10-30T14:28:23.476Z daemon INFO Daemon is running.
2024-10-30T14:28:23.710Z daemon INFO time="2024-10-30T15:28:23+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-30T14:28:25.420Z root INFO Deploy plugins list: 4343.2 ms [Finished 7.621 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-10-30T14:28:26.117Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 408.0 ms [Finished 3.202 s after frontend start]
2024-10-30T14:28:26.130Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-10-30T14:29:05.889Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.10.21:443: connectex: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
2024-10-30T14:29:05.890Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: Das System kann die angegebene Datei nicht finden.
2024-10-30T14:29:05.890Z daemon INFO time="2024-10-30T15:29:05+01:00" level=info msg="Loading hardware from: C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\packages"
time="2024-10-30T15:29:05+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\library_index.json"
2024-10-30T14:29:05.891Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2024-10-30T14:29:05.892Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2024-10-30T14:29:05.892Z daemon INFO time="2024-10-30T15:29:05+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-10-30T15:29:05+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\sct-muc\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-30T14:29:05.895Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\library_index.json: Das System kann die angegebene Datei nicht finden.
2024-10-30T14:29:07.470Z 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: Loading index file: loading json index file C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: Das System kann die angegebene Datei nicht finden.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\library_index.json: Das System kann die angegebene Datei nicht finden.

2024-10-30T14:29:07.473Z daemon INFO time="2024-10-30T15:29:07+01:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-30T14:29:07.476Z daemon INFO time="2024-10-30T15:29:07+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-30T14:29:07.477Z daemon INFO time="2024-10-30T15:29:07+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-30T14:29:07.480Z root INFO core-client-provider [platform-index] Index wird heruntergeladen: package_index.tar.bz2

2024-10-30T14:29:07.483Z root INFO core-client-provider [library-index] Index wird heruntergeladen: library_index.tar.bz2

2024-10-30T14:29:49.498Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Einige Indizes konnten nicht aktualisiert werden.
    at t.callErrorFromStatus (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:940342)
    at Object.onReceiveStatus (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:933364)
    at C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:1019505
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:940109)
    at a.updateIndex (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:1004397)
    at C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:771327
    at C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:771675
    at new Promise (<anonymous>)
    at v.doUpdateIndex (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:771654)
    at v.updatePlatformIndex (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:771299)
    at v.updateIndex (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:770667)
    at v.initInstanceWithFallback (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:768960)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-10-30T14:29:49.505Z daemon INFO time="2024-10-30T15:29:49+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-30T14:30:31.596Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Fehler beim Herunterladen des Index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.11.21:443: connectex: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
2024-10-30T14:30:31.603Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Indexdatei wird geladen: json-Indexdatei laden C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: Das System kann die angegebene Datei nicht finden.
2024-10-30T14:30:31.604Z daemon INFO time="2024-10-30T15:30:31+01:00" level=info msg="Loading hardware from: C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\packages"
2024-10-30T14:30:31.616Z daemon INFO time="2024-10-30T15:30:31+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\library_index.json"
2024-10-30T14:30:31.617Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Fehler beim Laden der Hardware-Plattform: Discovery builtin:serial-discoverywurde nicht gefunden
2024-10-30T14:30:31.618Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Fehler beim Laden der Hardware-Plattform: Discovery builtin:mdns-discoverywurde nicht gefunden
2024-10-30T14:30:31.626Z daemon INFO time="2024-10-30T15:30:31+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\sct-muc\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
2024-10-30T14:30:31.626Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Indexdatei wird geladen: lese library_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\library_index.json: Das System kann die angegebene Datei nicht finden.
2024-10-30T14:30:31.627Z daemon INFO time="2024-10-30T15:30:31+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\sct-muc\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-30T14:30:32.709Z 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: Indexdatei wird geladen: json-Indexdatei laden C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: Das System kann die angegebene Datei nicht finden.
[library-index] - code: 9, message: Indexdatei wird geladen: lese library_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\library_index.json: Das System kann die angegebene Datei nicht finden.

2024-10-30T14:30:32.709Z 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: Indexdatei wird geladen: json-Indexdatei laden C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\package_index.json: Das System kann die angegebene Datei nicht finden.
[library-index] - code: 9, message: Indexdatei wird geladen: lese library_index.json: open C:\Users\sct-muc\AppData\Local\Arduino15\library_index.json: Das System kann die angegebene Datei nicht finden.

    at C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:770471
    at v.evaluateErrorStatus (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:770487)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (C:\PRGS\aide\Arduino IDE\resources\app\lib\backend\main.js:2:770157)

It is the same for

  • Windows 10
  • Windows 11
  • Linux:
    • Debian 12
    • Ubuntu 24.04, 24.10
    • Fedora 40

Even the latest nightly builds do not start, showing the pumping icon forever.

To reproduce

Install Arduino IDE on Windows, Linux

Expected behavior

Starting completely

Arduino IDE version

2.3.3

Operating system

N/A

Operating system version

Any

Additional context

Even with cleaned out data within ${HOME} it is the same: does not start.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@tps800 tps800 added the type: imperfection Perceived defect in any part of project label Oct 30, 2024
@per1234 per1234 changed the title Arduino IDE 2.3.3 fails to start IDE hangs on startup: "connectex: A connection attempt failed because the remote host did not respond ..." Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant