Skip to content

Arduino-IDE will not get past pulsating loading screen on macOS Sonoma 14.1.1 (Apple Silicon) #2306

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

Closed
3 tasks done
infrachris opened this issue Dec 11, 2023 · 4 comments
Closed
3 tasks done
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@infrachris
Copy link

infrachris commented Dec 11, 2023

Describe the problem

Stuck at the pulsating loading screen.

image

To reproduce

Install Arduino IDE 2.2.1 arm64 and launch it. Or try nightly nightly-20231210 which yields the same results.

Expected behavior

Application should launch and allow loading a sketch or selecting a device

Arduino IDE version

2.2.1

Operating system

macOS

Operating system version

Sonoma 14.1.1

Additional context

Arduino-IDE has never worked, I installed it for the first time this evening and got these results.

Here is a paste of the end of the log file:

    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:585956
    at E.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:585972)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:585642)
2023-12-10 19:33:57 2023-12-11T03:33:57.685Z root INFO Deploy plugins list: 79.3 ms [Finished 2.633 s after backend start]
2023-12-10 19:33:59 Opening channel for service path '/services/electron-window'.
2023-12-10 19:34:00 Opening channel for service path '/services/ide-updater'.
2023-12-10 19:34:01 2023-12-11T03:34:01.220Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 639.1 ms [Finished 4.541 s after frontend start]
2023-12-10 19:34:01 2023-12-11T03:34:01.292Z root WARN A command editor.action.toggleStickyScroll is already registered.
2023-12-10 19:34:01 2023-12-11T03:34:01.360Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 108.2 ms [Finished 4.728 s after frontend start]
2023-12-10 19:37:36 Closing channel on service path '/services/electron-window'.
2023-12-10 19:37:36 Closing channel on service path '/services/ide-updater'.
2023-12-10 19:37:36 Stored workspaces roots: 
2023-12-10 19:37:36 No sketches were scheduled for deletion.
2023-12-10 19:39:24 Using browser-only version of superagent in non-browser environment
2023-12-10 19:39:24 Configuration directory URI: 'file:///Users/chris/.arduinoIDE'
2023-12-10 19:39:24 Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-12-10 19:39:24 2023-12-11T03:39:24.295Z root INFO Backend Object.initialize: 2.4 ms [Finished 0.302 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.295Z root INFO Backend Object.configure: 1.9 ms [Finished 0.302 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.295Z root INFO Backend a.onStart: 0.7 ms [Finished 0.302 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.295Z root INFO Backend a.configure: 0.2 ms [Finished 0.318 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.296Z root INFO Backend u.onStart: 0.2 ms [Finished 0.318 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.296Z root INFO Backend d.configure: 0.1 ms [Finished 0.318 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.297Z root INFO Backend d.initialize: 15.8 ms [Finished 0.318 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.297Z root INFO Backend c.onStart: 0.2 ms [Finished 0.318 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.297Z root INFO Backend s.configure: 0.5 ms [Finished 0.319 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z config INFO >>> Initializing CLI configuration...
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend c.initialize: 0.2 ms [Finished 0.319 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend P.onStart: 0.4 ms [Finished 0.319 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z config INFO Loading CLI configuration from /Users/chris/.arduinoIDE/arduino-cli.yaml...
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend s.initialize: 0.2 ms [Finished 0.319 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend w.onStart: 0.5 ms [Finished 0.320 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend r.configure: 0.9 ms [Finished 0.320 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z discovery-log INFO start
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z discovery-log INFO start new deferred
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend d.initialize: 0.2 ms [Finished 0.320 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend y.onStart: 0.9 ms [Finished 0.321 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.298Z root INFO Backend r.configure: 0.8 ms [Finished 0.321 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.299Z root INFO Backend s.onStart: 0.2 ms [Finished 0.322 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.299Z root INFO Backend h.configure: 0.2 ms [Finished 0.322 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.299Z root INFO Backend a.configure: 0.1 ms [Finished 0.322 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.299Z root INFO Backend s.configure: 0.0 ms [Finished 0.322 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.299Z root INFO Backend l.configure: 0.0 ms [Finished 0.322 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.300Z root INFO Theia app listening on http://localhost:55989.
2023-12-10 19:39:24 2023-12-11T03:39:24.300Z root INFO Finished starting backend application: 1.9 ms [Finished 0.323 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.308Z root WARN The local plugin referenced by local-dir:/Users/chris/.arduinoIDE/plugins does not exist.
2023-12-10 19:39:24 2023-12-11T03:39:24.308Z root WARN The local plugin referenced by local-dir:/Users/chris/.arduinoIDE/extensions does not exist.
2023-12-10 19:39:24 2023-12-11T03:39:24.336Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Config file not found, using default values"
time="2023-12-10T19:39:24-08:00" level=info msg="arduino-cli version 0.34.0"
time="2023-12-10T19:39:24-08:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:55990
{"IP":"127.0.0.1","Port":"55990"}
2023-12-10 19:39:24 2023-12-11T03:39:24.336Z daemon INFO Daemon is running.
2023-12-10 19:39:24 2023-12-11T03:39:24.358Z root INFO Resolve plugins list: 60.2 ms [Finished 0.381 s after backend start]
2023-12-10 19:39:24 2023-12-11T03:39:24.366Z config INFO Loading CLI configuration from /Users/chris/.arduinoIDE/arduino-cli.yaml...
2023-12-10 19:39:24 2023-12-11T03:39:24.366Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Updating libraries index"
2023-12-10 19:39:24 2023-12-11T03:39:24.367Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2023-12-10 19:39:24 2023-12-11T03:39:24.390Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/Users/chris/Library/Arduino15","downloads":"/Users/chris/Library/Arduino15/staging","user":"/Users/chris/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}}
2023-12-10 19:39:24 2023-12-11T03:39:24.390Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-12-10 19:39:24 2023-12-11T03:39:24.390Z config INFO Loaded the CLI configuration.
2023-12-10 19:39:24 2023-12-11T03:39:24.396Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/chris/Library/Arduino15","sketchDirUri":"file:///Users/chris/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-12-10 19:39:24 2023-12-11T03:39:24.396Z config INFO Validating the CLI configuration...
2023-12-10 19:39:24 2023-12-11T03:39:24.397Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.397Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
2023-12-10 19:39:24 2023-12-11T03:39:24.397Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.397Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.398Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/chris/Library/Arduino15/library_index.json: no such file or directory
2023-12-10 19:39:24 2023-12-11T03:39:24.398Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Loading hardware from: /Users/chris/Library/Arduino15/packages"
time="2023-12-10T19:39:24-08:00" level=info msg="Loading libraries index file" index=/Users/chris/Library/Arduino15/library_index.json
time="2023-12-10T19:39:24-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Library/Arduino15/libraries location=ide
time="2023-12-10T19:39:24-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Documents/Arduino/libraries location=user
2023-12-10 19:39:24 2023-12-11T03:39:24.399Z config INFO The CLI config is valid.
2023-12-10 19:39:24 2023-12-11T03:39:24.399Z config INFO <<< Initialized the CLI configuration.
2023-12-10 19:39:24 2023-12-11T03:39:24.399Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

2023-12-10 19:39:24 2023-12-11T03:39:24.401Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2023-12-10 19:39:24 2023-12-11T03:39:24.401Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2023-12-10 19:39:24 2023-12-11T03:39:24.401Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Updating libraries index"
time="2023-12-10T19:39:24-08:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-12-10T19:39:24-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-12-10T19:39:24-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2023-12-10 19:39:24 2023-12-11T03:39:24.442Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:726796)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:754336)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:747360)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:832904
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:754103)
    at a.updateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:818312)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586997
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:587345
    at new Promise (<anonymous>)
    at _.doUpdateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:587324)
    at _.updatePlatformIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586969)
    at _.updateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586337)
    at _.initInstanceWithFallback (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:584581)
    at async _.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:584193)
2023-12-10 19:39:24 2023-12-11T03:39:24.489Z daemon INFO time="2023-12-10T19:39:24-08:00" level=info msg="Updating libraries index"
time="2023-12-10T19:39:24-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2023-12-10T19:39:24-08:00" level=info msg="Loading hardware from: /Users/chris/Library/Arduino15/packages"
time="2023-12-10T19:39:24-08:00" level=info msg="Loading libraries index file" index=/Users/chris/Library/Arduino15/library_index.json
time="2023-12-10T19:39:24-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Library/Arduino15/libraries location=ide
time="2023-12-10T19:39:24-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Documents/Arduino/libraries location=user
2023-12-10 19:39:24 2023-12-11T03:39:24.489Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.490Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
2023-12-10 19:39:24 2023-12-11T03:39:24.490Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.490Z 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
2023-12-10 19:39:24 2023-12-11T03:39:24.490Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/chris/Library/Arduino15/library_index.json: no such file or directory
2023-12-10 19:39:24 2023-12-11T03:39:24.490Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

2023-12-10 19:39:24 2023-12-11T03:39:24.490Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586141
    at _.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586157)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:585827)
2023-12-10 19:39:25 2023-12-11T03:39:25.080Z root INFO Deploy plugins list: 60.2 ms [Finished 1.103 s after backend start]
2023-12-10 19:39:25 2023-12-11T03:39:25.315Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 212.0 ms [Finished 0.934 s after frontend start]
2023-12-10 19:39:25 2023-12-11T03:39:25.398Z root WARN A command editor.action.toggleStickyScroll is already registered.
2023-12-10 19:45:07 Using browser-only version of superagent in non-browser environment
2023-12-10 19:45:07 Configuration directory URI: 'file:///Users/chris/.arduinoIDE'
2023-12-10 19:45:07 Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-12-10 19:45:07 2023-12-11T03:45:07.722Z root INFO Backend Object.initialize: 2.9 ms [Finished 0.284 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.724Z root INFO Backend Object.configure: 2.5 ms [Finished 0.284 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.724Z root INFO Backend a.onStart: 0.7 ms [Finished 0.284 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.724Z root INFO Backend a.configure: 0.3 ms [Finished 0.300 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.724Z root INFO Backend u.onStart: 0.2 ms [Finished 0.300 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.725Z root INFO Backend d.configure: 0.1 ms [Finished 0.300 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.725Z root INFO Backend d.initialize: 16.3 ms [Finished 0.301 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.725Z root INFO Backend c.onStart: 0.2 ms [Finished 0.301 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.725Z root INFO Backend s.configure: 1.4 ms [Finished 0.302 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.726Z config INFO >>> Initializing CLI configuration...
2023-12-10 19:45:07 2023-12-11T03:45:07.726Z root INFO Backend c.initialize: 0.2 ms [Finished 0.302 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.726Z root INFO Backend P.onStart: 0.4 ms [Finished 0.303 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z config INFO Loading CLI configuration from /Users/chris/.arduinoIDE/arduino-cli.yaml...
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend s.initialize: 0.2 ms [Finished 0.303 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend w.onStart: 0.5 ms [Finished 0.303 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend r.configure: 0.9 ms [Finished 0.303 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z discovery-log INFO start
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z discovery-log INFO start new deferred
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend d.initialize: 0.2 ms [Finished 0.304 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend y.onStart: 0.9 ms [Finished 0.304 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend r.configure: 0.9 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend s.onStart: 0.2 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend h.configure: 0.2 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend a.configure: 0.1 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend s.configure: 0.0 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.727Z root INFO Backend l.configure: 0.0 ms [Finished 0.305 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.729Z root INFO Theia app listening on http://localhost:56102.
2023-12-10 19:45:07 2023-12-11T03:45:07.729Z root INFO Finished starting backend application: 1.9 ms [Finished 0.307 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.731Z root WARN The local plugin referenced by local-dir:/Users/chris/.arduinoIDE/plugins does not exist.
2023-12-10 19:45:07 2023-12-11T03:45:07.731Z root WARN The local plugin referenced by local-dir:/Users/chris/.arduinoIDE/extensions does not exist.
2023-12-10 19:45:07 2023-12-11T03:45:07.748Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/Users/chris/Library/Arduino15","downloads":"/Users/chris/Library/Arduino15/staging","user":"/Users/chris/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}}
2023-12-10 19:45:07 2023-12-11T03:45:07.748Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-12-10 19:45:07 2023-12-11T03:45:07.749Z config INFO Loaded the CLI configuration.
2023-12-10 19:45:07 2023-12-11T03:45:07.749Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/chris/Library/Arduino15","sketchDirUri":"file:///Users/chris/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-12-10 19:45:07 2023-12-11T03:45:07.749Z config INFO Validating the CLI configuration...
2023-12-10 19:45:07 2023-12-11T03:45:07.750Z config INFO The CLI config is valid.
2023-12-10 19:45:07 2023-12-11T03:45:07.750Z config INFO <<< Initialized the CLI configuration.
2023-12-10 19:45:07 2023-12-11T03:45:07.755Z root INFO Resolve plugins list: 28.2 ms [Finished 0.333 s after backend start]
2023-12-10 19:45:07 2023-12-11T03:45:07.819Z daemon INFO time="2023-12-10T19:45:07-08:00" level=info msg="Using config file: /Users/chris/.arduinoIDE/arduino-cli.yaml"
time="2023-12-10T19:45:07-08:00" level=info msg="arduino-cli version 0.34.0"
time="2023-12-10T19:45:07-08:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:56103
{"IP":"127.0.0.1","Port":"56103"}
2023-12-10 19:45:07 2023-12-11T03:45:07.819Z daemon INFO Daemon is running.
2023-12-10 19:45:08 2023-12-11T03:45:08.038Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.038Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
2023-12-10 19:45:08 2023-12-11T03:45:08.038Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.038Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.038Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/chris/Library/Arduino15/library_index.json: no such file or directory
2023-12-10 19:45:08 2023-12-11T03:45:08.040Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

2023-12-10 19:45:08 2023-12-11T03:45:08.040Z daemon INFO time="2023-12-10T19:45:07-08:00" level=info msg="Updating libraries index"
time="2023-12-10T19:45:07-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2023-12-10T19:45:07-08:00" level=info msg="Loading hardware from: /Users/chris/Library/Arduino15/packages"
time="2023-12-10T19:45:08-08:00" level=info msg="Loading libraries index file" index=/Users/chris/Library/Arduino15/library_index.json
time="2023-12-10T19:45:08-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Library/Arduino15/libraries location=ide
time="2023-12-10T19:45:08-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Documents/Arduino/libraries location=user
2023-12-10 19:45:08 2023-12-11T03:45:08.077Z daemon INFO time="2023-12-10T19:45:08-08:00" level=info msg="Updating libraries index"
time="2023-12-10T19:45:08-08:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-12-10T19:45:08-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2023-12-10T19:45:08-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2023-12-10 19:45:08 2023-12-11T03:45:08.078Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2023-12-10 19:45:08 2023-12-11T03:45:08.078Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2023-12-10 19:45:08 2023-12-11T03:45:08.079Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:726796)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:754336)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:747360)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:832904
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:754103)
    at a.updateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:818312)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586997
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:587345
    at new Promise (<anonymous>)
    at _.doUpdateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:587324)
    at _.updatePlatformIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586969)
    at _.updateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586337)
    at _.initInstanceWithFallback (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:584581)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-12-10 19:45:08 2023-12-11T03:45:08.129Z daemon INFO time="2023-12-10T19:45:08-08:00" level=info msg="Updating libraries index"
time="2023-12-10T19:45:08-08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2023-12-10T19:45:08-08:00" level=info msg="Loading hardware from: /Users/chris/Library/Arduino15/packages"
time="2023-12-10T19:45:08-08:00" level=info msg="Loading libraries index file" index=/Users/chris/Library/Arduino15/library_index.json
time="2023-12-10T19:45:08-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Library/Arduino15/libraries location=ide
time="2023-12-10T19:45:08-08:00" level=info msg="Adding libraries dir" dir=/Users/chris/Documents/Arduino/libraries location=user
2023-12-10 19:45:08 2023-12-11T03:45:08.130Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.130Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
2023-12-10 19:45:08 2023-12-11T03:45:08.130Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.130Z 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
2023-12-10 19:45:08 2023-12-11T03:45:08.130Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/chris/Library/Arduino15/library_index.json: no such file or directory
2023-12-10 19:45:08 2023-12-11T03:45:08.131Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

2023-12-10 19:45:08 2023-12-11T03:45:08.131Z 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 /Users/chris/Library/Arduino15/package_index.json: open /Users/chris/Library/Arduino15/package_index.json: no such file or directory
[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 /Users/chris/Library/Arduino15/library_index.json: no such file or directory

    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586141
    at _.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:586157)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:585827)
2023-12-10 19:45:08 2023-12-11T03:45:08.600Z root INFO Deploy plugins list: 28.2 ms [Finished 1.179 s after backend start]
2023-12-10 19:45:08 2023-12-11T03:45:08.897Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 198.5 ms [Finished 0.993 s after frontend start]
2023-12-10 19:45:08 2023-12-11T03:45:08.899Z root WARN A command editor.action.toggleStickyScroll is already registered.

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
@infrachris infrachris added the type: imperfection Perceived defect in any part of project label Dec 11, 2023
@per1234 per1234 self-assigned this Dec 11, 2023
@per1234
Copy link
Contributor

per1234 commented Dec 11, 2023

Hi @yayoi-k. 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. If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE again. This time it should start up successfully.

After that first run, an Internet connection is not required. However, there are some supplemental features such as "Library Manager" that have an inherent dependency on the Internet. Those features will not be usable while your computer is offline. But the essential functionality of editing, compiling, and uploading sketches will be available even without an Internet connection.


Although a dependency on an Internet connection is expected, the IDE should handle the lack of a connection gracefully and clearly communicate about the problem to the user. So the current behavior of hanging on startup under these conditions is considered a bug. We are tracking that bug at #2042, and the associated work to improve the communication about this requirement at #784. So I'll close this issue as a duplicate of the others.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Dec 11, 2023
@infrachris
Copy link
Author

infrachris commented Dec 11, 2023

Thanks for your response. I definitely have internet the entire time, that's also how I downloaded the IDE. I think there is some bug where IDE can't actually access the internet via the computer it's running on, or does not have 'permissions' in some way (such as new Apple security change, etc)

@infrachris
Copy link
Author

@per1234 please re-open this issue. I have perfectly working internet the entire time, so the two bugs related to communicating check/failure of internet is not relevant to my issue and would only be providing additional information to the user. My issue is Arduino IDE unable to use internet, or falsely believes it has no internet.

@per1234
Copy link
Contributor

per1234 commented Dec 11, 2023

@yayoi-k please post over on the Arduino Forum. That will be a more suitable place to support this type of problem:

https://forum.arduino.cc/c/software/ide-2-x/93

I'll try to provide assistance over there. If we determine the problem is actually caused by an untracked bug in Arduino IDE, I'll be happy to reopen this issue but at this time it seems likely this is either a duplicate of one of the existing issues or perhaps a misconfiguration of your system.

@arduino arduino locked as resolved and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants