IDE hangs on startup: "Error verifying signature: signature expired"

Continuing the discussion from IDE hangs on startup:

PS C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"

PS C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE> ^A^Cino IDE 2.3.4
PS C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE> zations. Module path: C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:03:03.490Z" (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.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:03:03.490Z"}
Starting backend process. PID: 17572
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/LENOVO/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-01-08T15:07:26.149Z root INFO Backend Object.initialize: 3.4 ms [Finished 0.441 s after backend start]
2025-01-08T15:07:26.149Z root INFO Backend Object.configure: 2.8 ms [Finished 0.441 s after backend start]
2025-01-08T15:07:26.149Z root INFO Backend s.onStart: 1.5 ms [Finished 0.441 s after backend start]
2025-01-08T15:07:26.150Z root INFO Backend s.configure: 0.3 ms [Finished 0.460 s after backend start]
2025-01-08T15:07:26.151Z root INFO Backend d.onStart: 0.2 ms [Finished 0.460 s after backend start]
2025-01-08T15:07:26.152Z root INFO Backend d.configure: 0.1 ms [Finished 0.460 s after backend start]
2025-01-08T15:07:26.152Z root INFO Backend d.initialize: 19.1 ms [Finished 0.461 s after backend start]
2025-01-08T15:07:26.152Z root INFO Backend c.onStart: 0.2 ms [Finished 0.461 s after backend start]
2025-01-08T15:07:26.153Z root INFO Backend a.configure: 1.1 ms [Finished 0.462 s after backend start]
2025-01-08T15:07:26.155Z config INFO >>> Initializing CLI configuration...
2025-01-08T15:07:26.155Z root INFO Backend c.initialize: 0.8 ms [Finished 0.462 s after backend start]
2025-01-08T15:07:26.155Z root INFO Backend x.onStart: 0.9 ms [Finished 0.463 s after backend start]
2025-01-08T15:07:26.156Z config INFO Loading CLI configuration from c:\Users\LENOVO\.arduinoIDE\arduino-cli.yaml...
2025-01-08T15:07:26.156Z daemon INFO Starting daemon from C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2025-01-08T15:07:26.157Z root INFO Backend a.initialize: 0.3 ms [Finished 0.464 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend w.onStart: 1.1 ms [Finished 0.465 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend r.configure: 1.8 ms [Finished 0.465 s after backend start]
2025-01-08T15:07:26.157Z discovery-log INFO start
2025-01-08T15:07:26.157Z discovery-log INFO start new deferred
2025-01-08T15:07:26.157Z root INFO Backend d.initialize: 0.6 ms [Finished 0.465 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend y.onStart: 1.9 ms [Finished 0.467 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend r.configure: 1.8 ms [Finished 0.467 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend a.onStart: 0.6 ms [Finished 0.469 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend h.configure: 0.6 ms [Finished 0.469 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend s.configure: 0.2 ms [Finished 0.469 s after backend start]
2025-01-08T15:07:26.157Z root INFO Backend l.configure: 0.1 ms [Finished 0.469 s after backend start]
2025-01-08T15:07:26.163Z root INFO Theia app listening on http://127.0.0.1:54877.
2025-01-08T15:07:26.163Z root INFO Finished starting backend application: 5.9 ms [Finished 0.475 s after backend start]
2025-01-08T15:07:26.172Z root WARN The local plugin referenced by local-dir:/c%3A/Users/LENOVO/.arduinoIDE/plugins does not exist.
2025-01-08T15:07:26.172Z root WARN The local plugin referenced by local-dir:/c%3A/Users/LENOVO/.arduinoIDE/extensions does not exist.
2025-01-08T15:07:26.173Z root WARN The local plugin referenced by local-dir:C:\Users\LENOVO\.arduinoIDE\plugins does not exist.
2025-01-08T15:07:26.188Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2025-01-08T15:07:26.188Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'
2025-01-08T15:07:26.236Z root INFO Resolve plugins list: 80.3 ms [Finished 0.548 s after backend start]
2025-01-08T15:07:26.306Z daemon INFO time="2025-01-08T20:37:26+05:30" level=info msg="arduino-cli version 1.1.1"
time="2025-01-08T20:37:26+05:30" level=info msg="Using config file: c:\\Users\\LENOVO\\.arduinoIDE\\arduino-cli.yaml"
time="2025-01-08T20:37:26+05:30" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:54878
{"IP":"127.0.0.1","Port":"54878"}
2025-01-08T15:07:26.306Z daemon INFO Daemon is running.
2025-01-08T15:07:26.306Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\LENOVO\\Documents\\Arduino","data":"C:\\Users\\LENOVO\\AppData\\Local\\Arduino15"}}
2025-01-08T15:07:26.306Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\LENOVO\\Documents\\Arduino","data":"C:\\Users\\LENOVO\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2025-01-08T15:07:26.306Z config INFO Loaded the CLI configuration.
2025-01-08T15:07:26.332Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/LENOVO/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/LENOVO/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2025-01-08T15:07:26.332Z config INFO Validating the CLI configuration...
2025-01-08T15:07:26.336Z config INFO The CLI config is valid.
2025-01-08T15:07:26.336Z config INFO <<< Initialized the CLI configuration.
2025-01-08T15:07:26.389Z daemon INFO time="2025-01-08T20:37:26+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-01-08T15:07:26.867Z root INFO Deploy plugins list: 80.3 ms [Finished 1.180 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2025-01-08T15:07:27.686Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 129.0 ms [Finished 1.434 s after frontend start]
2025-01-08T15:07:27.686Z root WARN A command editor.action.toggleStickyScroll is already registered.
2025-01-08T15:07:29.074Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: signature expired: is your system clock set correctly?
2025-01-08T15:07:29.081Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Checking signature" index="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2025-01-08T15:07:29.081Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loading hardware from: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages"
2025-01-08T15:07:29.081Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loading package builtin from: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin"
2025-01-08T15:07:29.082Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Checking existence of 'tools' path: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2025-01-08T20:37:29+05:30" level=info msg="Loading tools from dir: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2025-01-08T15:07:29.084Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2025-01-08T15:07:29.085Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2025-01-08T15:07:29.085Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2025-01-08T15:07:29.085Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
2025-01-08T15:07:29.085Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2025-01-08T15:07:29.095Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\library_index.json"
2025-01-08T15:07:29.095Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2025-01-08T20:37:29+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\LENOVO\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2025-01-08T15:07:29.095Z 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\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-08T15:07:29.099Z 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\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-01-08T15:07:29.101Z daemon INFO time="2025-01-08T20:37:29+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-01-08T15:07:29.102Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2025-01-08T15:07:31.284Z daemon INFO time="2025-01-08T20:37:31+05:30" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-01-08T15:07:33.531Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error verifying signature: signature expired: is your system clock set correctly?
2025-01-08T15:07:33.540Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Checking signature" index="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2025-01-08T15:07:33.541Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loading hardware from: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages"
2025-01-08T15:07:33.541Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loading package builtin from: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2025-01-08T20:37:33+05:30" level=info msg="Checking existence of 'tools' path: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2025-01-08T20:37:33+05:30" level=info msg="Loading tools from dir: C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2025-01-08T15:07:33.542Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2025-01-08T15:07:33.542Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2025-01-08T15:07:33.542Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2025-01-08T15:07:33.542Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
2025-01-08T15:07:33.542Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2025-01-08T15:07:33.551Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Loading libraries index file" index="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\library_index.json"
2025-01-08T15:07:33.551Z 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\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-08T15:07:33.552Z 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\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2025-01-08T15:07:33.552Z 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:
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777546
    at v.evaluateErrorStatus (C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777562)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:777232)
2025-01-08T15:07:33.552Z daemon INFO time="2025-01-08T20:37:33+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\LENOVO\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2025-01-08T20:37:33+05:30" level=info msg="Adding libraries dir" dir="C:\\Users\\LENOVO\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user

Hi @azeer_lal24.

The cause of the problem is that your system time is incorrect. You can 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 at the right side of the Settings window.
    The "Date & time" settings section will expand.
  5. Click the "Sync now" button that is located under the "Additional settings" section of the window.
  6. Wait for the syncing process to finish.
  7. Close any Arduino IDE windows that are open.
  8. Start Arduino IDE again, as usual.
    It is not required to start the IDE from the PowerShell terminal this time.

This time Arduino IDE should start up fully and work as expected.

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