IDE hangs on startup: "dial tcp: lookup downloads.arduino.cc: no such host"

[sterretje edit]
Topic split from IDE 2.3.3 doesn't start
[/edit]

I also have the same issue. below is output from the powershell

PS C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE> "C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\ 2.3.3
Checking for frontend application configuration customizations. Module path: C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\L-Anthony.Matthews\AppData\Local\Programs\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: 10052
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/L-Anthony.Matthews/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-10-09T15:17:29.142Z root INFO Backend Object.initialize: 3.1 ms [Finished 0.418 s after backend start]
2024-10-09T15:17:29.142Z root INFO Backend Object.configure: 2.6 ms [Finished 0.418 s after backend start]
2024-10-09T15:17:29.142Z root INFO Backend a.onStart: 1.2 ms [Finished 0.418 s after backend start]
2024-10-09T15:17:29.143Z root INFO Backend a.configure: 0.3 ms [Finished 0.435 s after backend start]
2024-10-09T15:17:29.143Z root INFO Backend d.onStart: 0.2 ms [Finished 0.435 s after backend start]
2024-10-09T15:17:29.144Z root INFO Backend d.configure: 0.1 ms [Finished 0.435 s after backend start]
2024-10-09T15:17:29.144Z root INFO Backend d.initialize: 17.8 ms [Finished 0.436 s after backend start]
2024-10-09T15:17:29.145Z root INFO Backend c.onStart: 0.3 ms [Finished 0.436 s after backend start]
2024-10-09T15:17:29.145Z root INFO Backend s.configure: 1.1 ms [Finished 0.437 s after backend start]
2024-10-09T15:17:29.146Z config INFO >>> Initializing CLI configuration...
2024-10-09T15:17:29.146Z root INFO Backend c.initialize: 0.4 ms [Finished 0.437 s after backend start]
2024-10-09T15:17:29.146Z root INFO Backend x.onStart: 0.6 ms [Finished 0.438 s after backend start]
2024-10-09T15:17:29.147Z config INFO Loading CLI configuration from c:\Users\L-Anthony.Matthews\.arduinoIDE\arduino-cli.yaml...
2024-10-09T15:17:29.147Z daemon INFO Starting daemon from C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-10-09T15:17:29.147Z root INFO Backend s.initialize: 0.3 ms [Finished 0.438 s after backend start]
2024-10-09T15:17:29.147Z root INFO Backend w.onStart: 0.8 ms [Finished 0.439 s after backend start]
2024-10-09T15:17:29.147Z root INFO Backend r.configure: 1.3 ms [Finished 0.439 s after backend start]
2024-10-09T15:17:29.148Z discovery-log INFO start
2024-10-09T15:17:29.148Z discovery-log INFO start new deferred
2024-10-09T15:17:29.148Z root INFO Backend d.initialize: 0.4 ms [Finished 0.439 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend y.onStart: 1.6 ms [Finished 0.441 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend r.configure: 1.3 ms [Finished 0.441 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend s.onStart: 0.4 ms [Finished 0.442 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend h.configure: 0.4 ms [Finished 0.442 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend a.configure: 0.1 ms [Finished 0.442 s after backend start]
2024-10-09T15:17:29.148Z root INFO Backend l.configure: 0.1 ms [Finished 0.442 s after backend start]
2024-10-09T15:17:29.150Z root INFO Theia app listening on http://127.0.0.1:49699.
2024-10-09T15:17:29.150Z root INFO Finished starting backend application: 2.8 ms [Finished 0.445 s after backend start]
2024-10-09T15:17:29.162Z root WARN The local plugin referenced by local-dir:/c%3A/Users/L-Anthony.Matthews/.arduinoIDE/plugins does not exist.
2024-10-09T15:17:29.162Z root WARN The local plugin referenced by local-dir:/c%3A/Users/L-Anthony.Matthews/.arduinoIDE/extensions does not exist.
2024-10-09T15:17:29.163Z root WARN The local plugin referenced by local-dir:C:\Users\L-Anthony.Matthews\.arduinoIDE\plugins does not exist.
2024-10-09T15:17:29.180Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2024-10-09T15:17:29.180Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'
2024-10-09T15:17:29.209Z root INFO Resolve plugins list: 61.9 ms [Finished 0.503 s after backend start]
2024-10-09T15:17:29.284Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\L-Anthony.Matthews\\Documents\\Arduino","data":"C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15"}}
2024-10-09T15:17:29.284Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\L-Anthony.Matthews\\Documents\\Arduino","data":"C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2024-10-09T15:17:29.284Z config INFO Loaded the CLI configuration.
2024-10-09T15:17:29.290Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="arduino-cli version 1.0.4"
time="2024-10-09T09:17:29-06:00" level=info msg="Using config file: c:\\Users\\L-Anthony.Matthews\\.arduinoIDE\\arduino-cli.yaml"
time="2024-10-09T09:17:29-06:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:49700
{"IP":"127.0.0.1","Port":"49700"}
2024-10-09T15:17:29.290Z daemon INFO Daemon is running.
2024-10-09T15:17:29.296Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/L-Anthony.Matthews/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/L-Anthony.Matthews/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-10-09T15:17:29.296Z config INFO Validating the CLI configuration...
2024-10-09T15:17:29.298Z config INFO The CLI config is valid.
2024-10-09T15:17:29.298Z config INFO <<< Initialized the CLI configuration.
2024-10-09T15:17:29.313Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-09T15:17:29.330Z 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: lookup downloads.arduino.cc: no such host
2024-10-09T15:17:29.330Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: open C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-10-09T15:17:29.331Z 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-09T15:17:29.331Z 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-09T15:17:29.331Z 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\L-Anthony.Matthews\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-10-09T15:17:29.335Z 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\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: open C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[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\L-Anthony.Matthews\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-10-09T15:17:29.335Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="Loading hardware from: C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\packages"
time="2024-10-09T09:17:29-06:00" level=info msg="Loading libraries index file" index="C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-10-09T09:17:29-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-10-09T09:17:29-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\L-Anthony.Matthews\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-09T15:17:29.366Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-10-09T15:17:29.366Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-10-09T15:17:29.368Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc: no such host
    at t.callErrorFromStatus (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:940342)
    at Object.onReceiveStatus (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:933364)
    at C:\Users\L-Anthony.Matthews\AppData\Local\Programs\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:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:940109)
    at a.updateLibrariesIndex (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1004397)
    at C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:771482
    at C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:771675
    at new Promise (<anonymous>)
    at v.doUpdateIndex (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:771654)
    at v.updateLibraryIndex (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:771454)
    at v.updateIndex (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:770728)
    at v.initInstanceWithFallback (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:768960)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-10-09T15:17:29.369Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-10-09T09:17:29-06:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2024-10-09T09:17:29-06:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-09T15:17:29.371Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-10-09T15:17:29.372Z 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: lookup downloads.arduino.cc: no such host
2024-10-09T15:17:29.372Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: open C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-10-09T15:17:29.373Z 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-09T15:17:29.373Z 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-09T15:17:29.373Z 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\L-Anthony.Matthews\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-10-09T15:17:29.373Z daemon INFO time="2024-10-09T09:17:29-06:00" level=info msg="Loading hardware from: C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\packages"
time="2024-10-09T09:17:29-06:00" level=info msg="Loading libraries index file" index="C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-10-09T09:17:29-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\L-Anthony.Matthews\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-10-09T09:17:29-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\L-Anthony.Matthews\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2024-10-09T15:17:29.376Z 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: Loading index file: loading json index file C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: open C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[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\L-Anthony.Matthews\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-10-09T15:17:29.376Z 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: Loading index file: loading json index file C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: open C:\Users\L-Anthony.Matthews\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[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\L-Anthony.Matthews\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:770471
    at v.evaluateErrorStatus (C:\Users\L-Anthony.Matthews\AppData\Local\Programs\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:\Users\L-Anthony.Matthews\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:770157)
2024-10-09T15:17:29.945Z root INFO Deploy plugins list: 61.9 ms [Finished 1.240 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-10-09T15:17:30.764Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 135.3 ms [Finished 1.509 s after frontend start]
2024-10-09T15:17:30.764Z root WARN A command editor.action.toggleStickyScroll is already registered.

Anything special about your network setup? Maybe in a corporate environment or using a compay computer?

The computer has no internet connection. It is a standalone machine

IDE 2.x needs internet access to install some additional stuff. This is only required once (till the dependencies are satisfied).

Note:
Your question was split from the original topic where you posted it.

Is there anyway to download the files and install them manually?

I do not know the exact details. You can install the IDE on another PC, let it install the needed files and copy them over to the other system.

I think that everything that you need will be in C:\users\yourUsername\AppData\Local\Arduino15.

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