IDE hangs on startup: "openpgp: signature expired"

I am using a new laptop for the purposes of studying Automation, I installed the IDE and on launch it just gets stuck on the looping screen.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE> .\Arduino IDE
.\Arduino : The term '.\Arduino' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ .\Arduino IDE
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\Arduino:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Program Files\Arduino IDE> & .\Arduino IDE
& : The term '.\Arduino' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
he spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & .\Arduino IDE
+   ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\Arduino:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Program Files\Arduino IDE> ".\Arduino IDE"
.\Arduino IDE
PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Program Files\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.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: 7592
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/mic/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-04-11T10:06:26.387Z root INFO Backend Object.initialize: 6.3 ms [Finished 0.590 s after backend start]
2024-04-11T10:06:26.388Z root INFO Backend Object.configure: 5.2 ms [Finished 0.590 s after backend start]
2024-04-11T10:06:26.388Z root INFO Backend s.onStart: 3.1 ms [Finished 0.590 s after backend start]
2024-04-11T10:06:26.389Z root INFO Backend s.configure: 0.5 ms [Finished 0.618 s after backend start]
2024-04-11T10:06:26.390Z root INFO Backend d.onStart: 0.4 ms [Finished 0.618 s after backend start]
2024-04-11T10:06:26.391Z root INFO Backend d.configure: 0.1 ms [Finished 0.618 s after backend start]
2024-04-11T10:06:26.392Z root INFO Backend d.initialize: 27.1 ms [Finished 0.618 s after backend start]
2024-04-11T10:06:26.393Z root INFO Backend c.onStart: 0.2 ms [Finished 0.618 s after backend start]
2024-04-11T10:06:26.394Z root INFO Backend a.configure: 1.4 ms [Finished 0.619 s after backend start]
2024-04-11T10:06:26.396Z config INFO >>> Initializing CLI configuration...
2024-04-11T10:06:26.396Z root INFO Backend c.initialize: 1.0 ms [Finished 0.620 s after backend start]
2024-04-11T10:06:26.396Z root INFO Backend R.onStart: 1.3 ms [Finished 0.621 s after backend start]
2024-04-11T10:06:26.398Z config INFO Loading CLI configuration from c:\Users\mic\.arduinoIDE\arduino-cli.yaml...
2024-04-11T10:06:26.399Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-04-11T10:06:26.399Z root INFO Backend a.initialize: 0.7 ms [Finished 0.622 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend w.onStart: 1.7 ms [Finished 0.623 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend r.configure: 2.9 ms [Finished 0.624 s after backend start]
2024-04-11T10:06:26.399Z discovery-log INFO start
2024-04-11T10:06:26.399Z discovery-log INFO start new deferred
2024-04-11T10:06:26.399Z root INFO Backend d.initialize: 0.7 ms [Finished 0.624 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend y.onStart: 2.8 ms [Finished 0.627 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend r.configure: 2.4 ms [Finished 0.627 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend a.onStart: 0.9 ms [Finished 0.629 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend h.configure: 0.7 ms [Finished 0.630 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend s.configure: 0.2 ms [Finished 0.630 s after backend start]
2024-04-11T10:06:26.399Z root INFO Backend l.configure: 0.2 ms [Finished 0.630 s after backend start]
2024-04-11T10:06:26.403Z root INFO Theia app listening on http://127.0.0.1:51371.
2024-04-11T10:06:26.403Z root INFO Finished starting backend application: 3.8 ms [Finished 0.633 s after backend start]
2024-04-11T10:06:26.415Z root WARN The local plugin referenced by local-dir:/c%3A/Users/mic/.arduinoIDE/extensions doesnot exist.
2024-04-11T10:06:26.415Z root WARN The local plugin referenced by local-dir:/c%3A/Users/mic/.arduinoIDE/plugins does not exist.
2024-04-11T10:06:26.416Z root WARN The local plugin referenced by local-dir:C:\Users\mic\.arduinoIDE\plugins does not exist.
2024-04-11T10:06:26.433Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\mic\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\mic\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\mic\\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-04-11T10:06:26.433Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-04-11T10:06:26.433Z config INFO Loaded the CLI configuration.
2024-04-11T10:06:26.437Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/mic/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/mic/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-04-11T10:06:26.437Z config INFO Validating the CLI configuration...
2024-04-11T10:06:26.438Z config INFO The CLI config is valid.
2024-04-11T10:06:26.438Z config INFO <<< Initialized the CLI configuration.
2024-04-11T10:06:26.465Z root INFO Resolve plugins list: 67.9 ms [Finished 0.695 s after backend start]
2024-04-11T10:06:26.625Z daemon INFO time="2024-04-11T12:06:26+02:00" level=info msg="Using config file: c:\\Users\\mic\\.arduinoIDE\\arduino-cli.yaml"
time="2024-04-11T12:06:26+02:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-04-11T12:06:26+02:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:51372
{"IP":"127.0.0.1","Port":"51372"}
2024-04-11T10:06:26.625Z daemon INFO Daemon is running.
2024-04-11T10:06:26.917Z daemon INFO time="2024-04-11T12:06:26+02:00" level=info msg="Updating libraries index"
time="2024-04-11T12:06:26+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-11T10:06:27.609Z root INFO Deploy plugins list: 67.9 ms [Finished 1.840 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-04-11T10:06:28.736Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 220.8 ms [Finished 2.182 s after frontend start]
2024-04-11T10:06:28.737Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-04-11T10:06:30.978Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: openpgp: signature expired
2024-04-11T10:06:30.992Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Checking signature" index="C:\\Users\\mic\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\mic\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-04-11T10:06:30.993Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loading hardware from: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages"
2024-04-11T10:06:30.994Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loading package builtin from: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin"
2024-04-11T10:06:30.995Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-04-11T12:06:31+02:00" level=info msg="Loading tools from dir: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-04-11T10:06:30.995Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-04-11T10:06:30.996Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-04-11T10:06:30.996Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-04-11T10:06:30.996Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
2024-04-11T10:06:30.997Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-04-11T10:06:30.997Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Loading libraries index file" index="C:\\Users\\mic\\AppData\\Local\\Arduino15\\library_index.json"
2024-04-11T10:06:30.998Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\mic\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-04-11T10:06:30.998Z 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\mic\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-04-11T10:06:30.999Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\mic\\Documents\\Arduino\\libraries" location=user
2024-04-11T10:06:31.006Z 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:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\mic\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-04-11T10:06:31.007Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Updating libraries index"
2024-04-11T10:06:31.009Z daemon INFO time="2024-04-11T12:06:31+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-11T10:06:31.010Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-04-11T10:06:34.297Z daemon INFO time="2024-04-11T12:06:34+02:00" level=info msg="Updating libraries index"
2024-04-11T10:06:34.300Z daemon INFO time="2024-04-11T12:06:34+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-04-11T10:06:37.979Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: openpgp: signature expired
2024-04-11T10:06:37.992Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Checking signature" index="C:\\Users\\mic\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\mic\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-04-11T10:06:37.993Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loading hardware from: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages"
2024-04-11T10:06:37.994Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loading package builtin from: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin"
2024-04-11T10:06:37.994Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-04-11T12:06:38+02:00" level=info msg="Loading tools from dir: C:\\Users\\mic\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-04-11T10:06:37.995Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-04-11T10:06:37.995Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-04-11T10:06:37.996Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-04-11T10:06:37.996Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
2024-04-11T10:06:37.996Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-04-11T10:06:37.997Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Loading libraries index file" index="C:\\Users\\mic\\AppData\\Local\\Arduino15\\library_index.json"
2024-04-11T10:06:37.997Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\mic\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-04-11T10:06:37.997Z 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\mic\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-04-11T10:06:37.998Z daemon INFO time="2024-04-11T12:06:38+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\mic\\Documents\\Arduino\\libraries" location=user
2024-04-11T10:06:38.000Z 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:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\mic\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-04-11T10:06:38.000Z root ERROR Error: The index of the cores and libraries must be updated before initializing thecore gRPC client.
The following problems were detected during the gRPC client initialization:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\mic\AppData\Local\Arduino15\library_index.json: The s>

    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Program Files\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:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622563)

Hi @oskar_sierpinski.

This error occurs when your system time is incorrect. You should be able to fix it by syncing the system time. I'll provide instructions you can follow to do that:

  1. Right click the Windows Start icon () on the taskbar.
    A context menu will open.
  2. Select "Settings" from the context menu.
    Windows "Settings" will open.
  3. Select "Time & language" from the navigation panel on the left side of the window.
  4. Select "Date & time" from the list on the right side of the Settings window.
    The Date & time settings section will expand.
  5. Click the "Sync now" button that is under the "Additional settings" section of the page.
  6. Wait for the syncing process to finish.
  7. Close any Arduino IDE windows that are open.
  8. Start Arduino IDE again.

Hopefully this time Arduino IDE will start up fully and work as expected.

1 Like

Thank you, apparently I was 20 seconds ahead on my system time, now it is working correctly.

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

Regards,
Per

3 posts were split to a new topic: IDE hangs on startup

2 posts were split to a new topic: IDE hangs on startup: "Failed to initialize the CLI configuration"

mine still doesn't work

Hi @fahad_qalbi98. Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?

I ask because I would like to give you the appropriate instructions for your operating system.