Not able to open Arduino IDE

So...i am not sure what i did but now Arduino won't open. First time i installed it it was opening but when i tried to add the ESP32/82 libraries it didnt let me install them. So i tried looking for the solution on the internet and it said i had to delete the files in the packages folder and then try again installing them. That didnt work so i decided that maybe i should install it again but after that it won't open. I also tried to download and use the zip file but it doesnt work.

PS C:\Users\valen\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\valen\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T10:04:35.814Z" (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.2","cliVersion":"0.35.3","buildDate":"2024-02-20T10:04:35.814Z"}
Starting backend process. PID: 14400
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/valen/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-04-08T12:12:38.591Z root INFO Backend Object.initialize: 3.1 ms [Finished 0.416 s after backend start]
2024-04-08T12:12:38.591Z root INFO Backend Object.configure: 2.5 ms [Finished 0.416 s after backend start]
2024-04-08T12:12:38.591Z root INFO Backend s.onStart: 1.4 ms [Finished 0.416 s after backend start]
2024-04-08T12:12:38.592Z root INFO Backend s.configure: 0.3 ms [Finished 0.434 s after backend start]
2024-04-08T12:12:38.592Z root INFO Backend d.onStart: 0.2 ms [Finished 0.434 s after backend start]
2024-04-08T12:12:38.593Z root INFO Backend d.configure: 0.1 ms [Finished 0.434 s after backend start]
2024-04-08T12:12:38.593Z root INFO Backend d.initialize: 18.3 ms [Finished 0.435 s after backend start]
2024-04-08T12:12:38.593Z root INFO Backend c.onStart: 0.3 ms [Finished 0.435 s after backend start]
2024-04-08T12:12:38.594Z root INFO Backend a.configure: 1.0 ms [Finished 0.436 s after backend start]
2024-04-08T12:12:38.595Z config INFO >>> Initializing CLI configuration...
2024-04-08T12:12:38.595Z root INFO Backend c.initialize: 0.4 ms [Finished 0.436 s after backend start]
2024-04-08T12:12:38.595Z root INFO Backend R.onStart: 0.5 ms [Finished 0.436 s after backend start]
2024-04-08T12:12:38.595Z config INFO Loading CLI configuration from c:\Users\valen\.arduinoIDE\arduino-cli.yaml...
2024-04-08T12:12:38.596Z daemon INFO Starting daemon from C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-04-08T12:12:38.596Z root INFO Backend a.initialize: 0.3 ms [Finished 0.437 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend w.onStart: 0.8 ms [Finished 0.437 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend r.configure: 1.2 ms [Finished 0.437 s after backend start]
2024-04-08T12:12:38.596Z discovery-log INFO start
2024-04-08T12:12:38.596Z discovery-log INFO start new deferred
2024-04-08T12:12:38.596Z root INFO Backend d.initialize: 0.3 ms [Finished 0.438 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend y.onStart: 1.3 ms [Finished 0.439 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend r.configure: 1.1 ms [Finished 0.439 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend a.onStart: 0.3 ms [Finished 0.440 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend h.configure: 0.3 ms [Finished 0.440 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend s.configure: 0.1 ms [Finished 0.440 s after backend start]
2024-04-08T12:12:38.596Z root INFO Backend l.configure: 0.0 ms [Finished 0.440 s after backend start]
2024-04-08T12:12:38.598Z root INFO Theia app listening on http://127.0.0.1:50407.
2024-04-08T12:12:38.598Z root INFO Finished starting backend application: 2.1 ms [Finished 0.442 s after backend start]
2024-04-08T12:12:38.599Z root WARN The local plugin referenced by local-dir:/c%3A/Users/valen/.arduinoIDE/plugins does not exist.
2024-04-08T12:12:38.599Z root WARN The local plugin referenced by local-dir:/c%3A/Users/valen/.arduinoIDE/extensions does not exist.
2024-04-08T12:12:38.599Z root WARN The local plugin referenced by local-dir:C:\Users\valen\.arduinoIDE\plugins does not exist.
2024-04-08T12:12:38.605Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["http://arduino.esp8266.com/stable/package_esp8266com_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"C:\\Users\\valen\\AppData\\Local\\Arduino15\\libraries"},"data":"c:\\Users\\valen\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\valen\\AppData\\Local\\Arduino15\\staging","user":"c:\\Users\\valen\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"network":{"proxy":"http://_/","user_agent_ext":"daemon"},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-04-08T12:12:38.605Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-04-08T12:12:38.605Z config INFO Loaded the CLI configuration.
2024-04-08T12:12:38.613Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/valen/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/valen/Documents/Arduino","additionalUrls":["http://arduino.esp8266.com/stable/package_esp8266com_index.json"],"network":{"protocol":"http","hostname":"_","password":"","username":"","port":""},"locale":"en"}
2024-04-08T12:12:38.614Z config INFO Validating the CLI configuration...
2024-04-08T12:12:38.614Z config INFO The CLI config is valid.
2024-04-08T12:12:38.614Z config INFO <<< Initialized the CLI configuration.
2024-04-08T12:12:38.627Z root INFO Resolve plugins list: 32.0 ms [Finished 0.471 s after backend start]
2024-04-08T12:12:38.709Z daemon INFO time="2024-04-08T15:12:38+03:00" level=info msg="Using config file: c:\\Users\\valen\\.arduinoIDE\\arduino-cli.yaml"
time="2024-04-08T15:12:38+03:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-04-08T15:12:38+03:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:50408
{"IP":"127.0.0.1","Port":"50408"}
2024-04-08T12:12:38.709Z daemon INFO Daemon is running.
2024-04-08T12:12:38.725Z daemon INFO time="2024-04-08T15:12:38+03:00" level=info msg="Updating libraries index"
time="2024-04-08T15:12:38+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-08T12:12:39.267Z root INFO Deploy plugins list: 32.0 ms [Finished 1.111 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-04-08T12:12:40.048Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 117.7 ms [Finished 1.369 s after frontend start]
2024-04-08T12:12:40.048Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-04-08T12:12:41.483Z 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": proxyconnect tcp: dial tcp: lookup _: no such host
2024-04-08T12:12:41.483Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\valen\AppData\Local\Arduino15\package_index.json: open c:\Users\valen\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-04-08T12:12:41.483Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\valen\AppData\Local\Arduino15\package_esp8266com_index.json: open c:\Users\valen\AppData\Local\Arduino15\package_esp8266com_index.json: The system cannot find the file specified.
2024-04-08T12:12:41.484Z 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-04-08T12:12:41.484Z 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-04-08T12:12:41.484Z 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\valen\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-04-08T12:12:41.488Z 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\valen\AppData\Local\Arduino15\package_index.json: open c:\Users\valen\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\valen\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-04-08T12:12:41.489Z daemon INFO time="2024-04-08T15:12:41+03:00" level=info msg="Loading hardware from: c:\\Users\\valen\\AppData\\Local\\Arduino15\\packages"
time="2024-04-08T15:12:41+03:00" level=info msg="Loading libraries index file" index="c:\\Users\\valen\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-04-08T15:12:41+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\valen\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-04-08T15:12:41+03:00" level=info msg="Adding libraries dir" dir="c:\\Users\\valen\\Documents\\Arduino\\libraries" location=user
2024-04-08T12:12:41.489Z daemon INFO time="2024-04-08T15:12:41+03:00" level=info msg="Updating libraries index"
time="2024-04-08T15:12:41+03:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-08T12:12:41.490Z daemon INFO time="2024-04-08T15:12:41+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-08T12:12:41.491Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-04-08T12:12:41.492Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-04-08T12:12:41.492Z daemon INFO time="2024-04-08T15:12:41+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-08T12:12:44.208Z 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": proxyconnect tcp: dial tcp: lookup _: no such host
    at t.callErrorFromStatus (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:763461)
    at Object.onReceiveStatus (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:791078)
    at Object.onReceiveStatus (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:784102)
    at C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:870224
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeServerStreamRequest (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:790845)
    at s.updateLibrariesIndex (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:855121)
    at C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623888
    at C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624081
    at new Promise (<anonymous>)
    at E.doUpdateIndex (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:624060)
    at E.updateLibraryIndex (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623860)
    at E.updateIndex (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:623134)
    at E.initInstanceWithFallback (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:621317)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-04-08T12:12:44.209Z root INFO core-client-provider [platform-index] Downloading index: package_esp8266com_index.json

2024-04-08T12:12:44.209Z daemon INFO time="2024-04-08T15:12:44+03:00" level=info msg="Updating index" url="http://arduino.esp8266.com/stable/package_esp8266com_index.json"
time="2024-04-08T15:12:44+03:00" level=info msg="Starting download" url="http://arduino.esp8266.com/stable/package_esp8266com_index.json"
time="2024-04-08T15:12:44+03:00" level=info msg="Updating libraries index"
2024-04-08T12:12:44.210Z daemon INFO time="2024-04-08T15:12:44+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-08T12:12:46.907Z 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": proxyconnect tcp: dial tcp: lookup _: no such host
2024-04-08T12:12:46.907Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\valen\AppData\Local\Arduino15\package_index.json: open c:\Users\valen\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-04-08T12:12:46.907Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\valen\AppData\Local\Arduino15\package_esp8266com_index.json: open c:\Users\valen\AppData\Local\Arduino15\package_esp8266com_index.json: The system cannot find the file specified.
2024-04-08T12:12:46.908Z 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-04-08T12:12:46.908Z 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-04-08T12:12:46.908Z 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\valen\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-04-08T12:12:46.908Z daemon INFO time="2024-04-08T15:12:46+03:00" level=info msg="Loading hardware from: c:\\Users\\valen\\AppData\\Local\\Arduino15\\packages"
time="2024-04-08T15:12:46+03:00" level=info msg="Loading libraries index file" index="c:\\Users\\valen\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-04-08T15:12:46+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\valen\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-04-08T15:12:46+03:00" level=info msg="Adding libraries dir" dir="c:\\Users\\valen\\Documents\\Arduino\\libraries" location=user
2024-04-08T12:12:46.909Z 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\valen\AppData\Local\Arduino15\package_index.json: open c:\Users\valen\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\valen\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-04-08T12:12:46.909Z 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\valen\AppData\Local\Arduino15\package_index.json: open c:\Users\valen\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\valen\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622893)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Users\valen\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:622563)

Hi @sunhouse.

You must have changed the proxy settings in the Arduino IDE preferences since the last time the IDE was in a functional state. There is a bug in Arduino IDE (which should be fixed in the next release) that causes it to get an invalid configuration if you set the preferences to cause Arduino IDE to access the Internet through a proxy and then later change the preferences back to "No proxy".

I'll provide instructions you can follow to fix the configuration:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Delete the file at the following path:
    C:\Users\valen\.arduinoIDE\arduino-cli.yaml
    
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!
  3. Start Arduino IDE.

Arduino IDE should now start up fully and be functional as usual.

Note that the file you deleted is also used to store other IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location"
or "Additional Boards Manager URLs" preferences, you'll need to select File > Preferences from the Arduino IDE menus and then set those preferences once again.


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

1 Like

It worked ,Thank you very much! :smiley:

1 Like

You are welcome. I'm glad it is working now.

Regards,
Per

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