IDE hangs on startup: "EPERM: operation not permitted, mkdir 'c:\Users\User\.arduinoIDE'"

PS C:\Users\User\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\User\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.0.3
Starting backend process. PID: 17048
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/User/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-02-23T06:42:39.363Z root INFO Backend Object.initialize: 3.3 ms [Finished 0.936 s after backend start]
2023-02-23T06:42:39.364Z root INFO Backend Object.configure: 2.7 ms [Finished 0.936 s after backend start]
2023-02-23T06:42:39.364Z root INFO Backend MessagingContribution.onStart: 1.1 ms [Finished 0.936 s after backend start]
2023-02-23T06:42:39.364Z root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 0.963 s after backend start]
2023-02-23T06:42:39.365Z root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 0.963 s after backend start]
2023-02-23T06:42:39.366Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.964 s after backend start]
2023-02-23T06:42:39.366Z root INFO Backend PluginLocalizationBackendContribution.initialize: 27.0 ms [Finished 0.964 s after backend start]
2023-02-23T06:42:39.367Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.964 s after backend start]
2023-02-23T06:42:39.367Z root INFO Backend ElectronTokenBackendContribution.configure: 0.8 ms [Finished 0.965 s after backend start]
2023-02-23T06:42:39.368Z root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 0.965 s after backend start]
2023-02-23T06:42:39.368Z root INFO Backend ConfigServiceImpl.onStart: 0.7 ms [Finished 0.965 s after backend start]
2023-02-23T06:42:39.369Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.4 ms [Finished 0.966 s after backend start]
2023-02-23T06:42:39.370Z root INFO Backend ArduinoDaemonImpl.onStart: 1.0 ms [Finished 0.967 s after backend start]
2023-02-23T06:42:39.370Z root INFO Backend NodeFileUploadService.configure: 1.8 ms [Finished 0.967 s after backend start]
2023-02-23T06:42:39.370Z daemon INFO Starting daemon from C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2023-02-23T06:42:39.370Z discovery-log INFO start
2023-02-23T06:42:39.370Z discovery-log INFO start new deferred
2023-02-23T06:42:39.370Z root INFO Backend HostedPluginLocalizationService.initialize: 0.4 ms [Finished 0.968 s after backend start]
2023-02-23T06:42:39.370Z root INFO Backend BoardDiscovery.onStart: 0.7 ms [Finished 0.969 s after backend start]
2023-02-23T06:42:39.371Z root INFO Backend FileDownloadEndpoint.configure: 0.7 ms [Finished 0.969 s after backend start]
2023-02-23T06:42:39.371Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 0.970 s after backend start]
2023-02-23T06:42:39.371Z root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 0.970 s after backend start]
2023-02-23T06:42:39.372Z root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 0.971 s after backend start]
2023-02-23T06:42:39.372Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 0.971 s after backend start]
2023-02-23T06:42:39.372Z root INFO Backend PlotterBackendContribution.configure: 0.7 ms [Finished 0.972 s after backend start]
2023-02-23T06:42:39.375Z root INFO Theia app listening on http://localhost:50498.
2023-02-23T06:42:39.375Z root INFO Finished starting backend application: 5.1 ms [Finished 0.976 s after backend start]
2023-02-23T06:42:39.389Z root WARN The local plugin referenced by local-dir:/c%3A/Users/User/.arduinoIDE/plugins does not exist.
2023-02-23T06:42:39.390Z root WARN The local plugin referenced by local-dir:/c%3A/Users/User/.arduinoIDE/extensions does not exist.
2023-02-23T06:42:39.390Z root WARN The local plugin referenced by local-dir:C:\Users\User\.arduinoProIDE\plugins does not exist.
2023-02-23T06:42:39.403Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.403Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2023-02-23T06:42:39.403Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.403Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
2023-02-23T06:42:39.403Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.403Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2023-02-23T06:42:39.403Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.404Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2023-02-23T06:42:39.404Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.404Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2023-02-23T06:42:39.404Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.404Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2023-02-23T06:42:39.404Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.404Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2023-02-23T06:42:39.404Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.404Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2023-02-23T06:42:39.404Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.405Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2023-02-23T06:42:39.405Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.405Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2023-02-23T06:42:39.405Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.405Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2023-02-23T06:42:39.405Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.405Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2023-02-23T06:42:39.405Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.405Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2023-02-23T06:42:39.405Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.406Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2023-02-23T06:42:39.406Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.406Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2023-02-23T06:42:39.406Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.406Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2023-02-23T06:42:39.406Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.406Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2023-02-23T06:42:39.406Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.406Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2023-02-23T06:42:39.406Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.407Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2023-02-23T06:42:39.407Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.407Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2023-02-23T06:42:39.407Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-02-23T06:42:39.407Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2023-02-23T06:42:39.408Z root ERROR Uncaught Exception:
2023-02-23T06:42:39.408Z root ERROR Error: EPERM: operation not permitted, mkdir 'c:\Users\User\.arduinoIDE'
2023-02-23T06:42:39.418Z root INFO Resolve plugins list: 49.5 ms [Finished 1.019 s after backend start]
2023-02-23T06:42:39.423Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension.js": 4.6 ms [Finished 1.024 s after backend start]
2023-02-23T06:42:39.428Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.5" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 4.5 ms [Finished 1.028 s after backend start]
2023-02-23T06:42:39.436Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 8.3 ms [Finished 1.037 s after backend start]
2023-02-23T06:42:39.438Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 1.8 ms [Finished 1.039 s after backend start]
2023-02-23T06:42:39.439Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 0.5 ms [Finished 1.039 s after backend start]
2023-02-23T06:42:39.493Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 54.1 ms [Finished 1.093 s after backend start]
2023-02-23T06:42:39.508Z daemon INFO INFO[0000] Config file not found, using default values
INFO[0000] arduino-cli.exe version 0.29.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"50499"}

2023-02-23T06:42:39.508Z daemon INFO Daemon is running.
2023-02-23T06:42:39.509Z root INFO Error: Error executing "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe" config init --dest-dir "c:\Users\User\.arduinoIDE": Cannot create config file directory: mkdir c:\Users\User\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\exec-util.js:53:31)
    at ChildProcess.emit (node:events:394:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
2023-02-23T06:42:39.509Z root ERROR Uncaught Exception:
2023-02-23T06:42:39.509Z root ERROR Error: Error executing "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe" config init --dest-dir "c:\Users\User\.arduinoIDE": Cannot create config file directory: mkdir c:\Users\User\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\exec-util.js:53:31)
    at ChildProcess.emit (node:events:394:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
2023-02-23T06:42:39.593Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 100.4 ms [Finished 1.194 s after backend start]
2023-02-23T06:42:39.598Z daemon INFO INFO[0000] Loading hardware from: C:\Users\User\AppData\Local\Arduino15\packages

2023-02-23T06:42:39.600Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\User\AppData\Local\Arduino15\package_index.json: open C:\Users\User\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2023-02-23T06:42:39.600Z 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-02-23T06:42:39.601Z 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-02-23T06:42:39.601Z 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\User\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2023-02-23T06:42:39.602Z daemon INFO INFO[0000] Loading libraries index file                  index="C:\\Users\\User\\AppData\\Local\\Arduino15\\library_index.json"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\User\\AppData\\Local\\Arduino15\\libraries" location=ide
INFO[0000] Adding libraries dir                          dir="C:\\Users\\User\\Documents\\Arduino\\libraries" location=user

2023-02-23T06:42:39.602Z root ERROR Error occurred while initializing the core gRPC client provider
2023-02-23T06:42:39.603Z root ERROR Uncaught Exception:
2023-02-23T06:42:39.603Z root ERROR Error: Could not read the CLI configuration file.
    at CoreClientProvider.evaluateErrorStatus (C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:188:20)
    at ClientReadableStreamImpl.<anonymous> (C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:175:36)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2023-02-23T06:42:39.696Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 102.8 ms [Finished 1.297 s after backend start]
2023-02-23T06:42:39.749Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-es@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 52.5 ms [Finished 1.349 s after backend start]
2023-02-23T06:42:39.784Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-fr@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 35.3 ms [Finished 1.384 s after backend start]
2023-02-23T06:42:39.814Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-hu@1.48.3" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 29.8 ms [Finished 1.414 s after backend start]
2023-02-23T06:42:39.861Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-it@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 46.6 ms [Finished 1.461 s after backend start]
2023-02-23T06:42:39.900Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ja@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 39.5 ms [Finished 1.501 s after backend start]
2023-02-23T06:42:39.939Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ko@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 38.9 ms [Finished 1.540 s after backend start]
2023-02-23T06:42:39.955Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-nl@1.48.3" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 16.0 ms [Finished 1.556 s after backend start]
2023-02-23T06:42:39.995Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pl@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 39.8 ms [Finished 1.596 s after backend start]
2023-02-23T06:42:40.033Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pt-br@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 37.8 ms [Finished 1.633 s after backend start]
2023-02-23T06:42:40.074Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ru@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 40.5 ms [Finished 1.674 s after backend start]
2023-02-23T06:42:40.112Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-tr@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 38.2 ms [Finished 1.712 s after backend start]
2023-02-23T06:42:40.138Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-uk@1.48.3" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 26.4 ms [Finished 1.739 s after backend start]
2023-02-23T06:42:40.179Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-zh-hans@1.53.2" from "C:\Users\User\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 40.8 ms [Finished 1.780 s after backend start]
2023-02-23T06:42:40.179Z root INFO Deploy plugins list: 49.5 ms [Finished 1.780 s after backend start]
Opening channel for service path '/services/electron-window-ext'.
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2023-02-23T06:42:40.833Z root ERROR Failed to initialize global state path:
2023-02-23T06:42:40.881Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 156.2 ms [Finished 1.443 s after frontend start]

Hi @athsara. I see the problem here:

Do you have any idea why Arduino IDE was not able to create a directory at that path?

1 Like

Oh mine just worked after did run as administrator ... I just had to allow access to some windows defender permissions.

I'm glad it is working now. Thanks for taking the time to post an update with your solution!

Regards,
Per

1 Like

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