IDE hangs on startup: "EPERM: operation not permitted, mkdir"

Continuing the discussion from My arduino IDE 2.2.1. is stuck on the loading screen:

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: 3028
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Manolis/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-03-20T14:36:22.169Z root INFO Backend Object.initialize: 3.3 ms [Finished 0.431 s after backend start]
2024-03-20T14:36:22.170Z root INFO Backend Object.configure: 2.7 ms [Finished 0.431 s after backend start]
2024-03-20T14:36:22.170Z root INFO Backend s.onStart: 1.3 ms [Finished 0.431 s after backend start]
2024-03-20T14:36:22.170Z root INFO Backend s.configure: 0.3 ms [Finished 0.450 s after backend start]
2024-03-20T14:36:22.171Z root INFO Backend d.onStart: 0.2 ms [Finished 0.450 s after backend start]
2024-03-20T14:36:22.171Z root INFO Backend d.configure: 0.1 ms [Finished 0.450 s after backend start]
2024-03-20T14:36:22.172Z root INFO Backend d.initialize: 19.1 ms [Finished 0.450 s after backend start]
2024-03-20T14:36:22.172Z root INFO Backend c.onStart: 0.2 ms [Finished 0.450 s after backend start]
2024-03-20T14:36:22.173Z root INFO Backend a.configure: 1.1 ms [Finished 0.452 s after backend start]
2024-03-20T14:36:22.174Z config INFO >>> Initializing CLI configuration...
2024-03-20T14:36:22.174Z root INFO Backend c.initialize: 0.4 ms [Finished 0.452 s after backend start]
2024-03-20T14:36:22.174Z root INFO Backend R.onStart: 0.5 ms [Finished 0.452 s after backend start]
2024-03-20T14:36:22.175Z config INFO Loading CLI configuration from c:\Users\Manolis\.arduinoIDE\arduino-cli.yaml...
2024-03-20T14:36:22.175Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-03-20T14:36:22.175Z root INFO Backend a.initialize: 0.4 ms [Finished 0.453 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend w.onStart: 1.1 ms [Finished 0.454 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend r.configure: 1.5 ms [Finished 0.454 s after backend start]
2024-03-20T14:36:22.175Z discovery-log INFO start
2024-03-20T14:36:22.175Z discovery-log INFO start new deferred
2024-03-20T14:36:22.175Z root INFO Backend d.initialize: 0.4 ms [Finished 0.454 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend y.onStart: 1.6 ms [Finished 0.455 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend r.configure: 1.4 ms [Finished 0.455 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend a.onStart: 0.4 ms [Finished 0.457 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend h.configure: 0.3 ms [Finished 0.457 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend s.configure: 0.1 ms [Finished 0.457 s after backend start]
2024-03-20T14:36:22.175Z root INFO Backend l.configure: 0.1 ms [Finished 0.457 s after backend start]
2024-03-20T14:36:22.177Z root INFO Theia app listening on http://127.0.0.1:52508.
2024-03-20T14:36:22.177Z root INFO Finished starting backend application: 2.3 ms [Finished 0.459 s after backend start]
2024-03-20T14:36:22.188Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Manolis/.arduinoIDE/plugins does not exist.
2024-03-20T14:36:22.188Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Manolis/.arduinoIDE/extensions does not exist.
2024-03-20T14:36:22.189Z root WARN The local plugin referenced by local-dir:C:\Users\Manolis\.arduinoIDE\plugins does not exist.
2024-03-20T14:36:22.193Z root ERROR Uncaught Exception:  Error: EPERM: operation not permitted, mkdir 'C:\Users\Manolis\.arduinoIDE'
2024-03-20T14:36:22.193Z root ERROR Error: EPERM: operation not permitted, mkdir 'C:\Users\Manolis\.arduinoIDE'
2024-03-20T14:36:22.211Z root INFO Resolve plugins list: 36.4 ms [Finished 0.492 s after backend start]
2024-03-20T14:36:22.310Z daemon INFO time="2024-03-20T16:36:22+02:00" level=info msg="Config file not found, using default values"
time="2024-03-20T16:36:22+02:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-03-20T16:36:22+02:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:52509
{"IP":"127.0.0.1","Port":"52509"}
2024-03-20T14:36:22.310Z daemon INFO Daemon is running.
2024-03-20T14:36:22.311Z root INFO Error: Error executing C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe config init --dest-dir c:\Users\Manolis\.arduinoIDE: Cannot create config file directory: mkdir c:\Users\Manolis\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:639804)
    at ChildProcess.emit (node:events:514:28)
    at Process.onexit (node:internal/child_process:291:12)
2024-03-20T14:36:22.311Z config ERROR Failed to initialize the CLI configuration. Error: Error executing C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe config init --dest-dir c:\Users\Manolis\.arduinoIDE: Cannot create config file directory: mkdir c:\Users\Manolis\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:639804)
    at ChildProcess.emit (node:events:514:28)
    at Process.onexit (node:internal/child_process:291:12)
2024-03-20T14:36:22.392Z daemon INFO time="2024-03-20T16:36:22+02:00" level=info msg="Checking signature" index="C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-03-20T16:36:22+02:00" level=info msg="Loading hardware from: C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\packages"
time="2024-03-20T16:36:22+02:00" level=info msg="Loading package builtin from: C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-03-20T16:36:22+02:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-03-20T16:36:22+02:00" level=info msg="Loading tools from dir: C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-03-20T16:36:22+02:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-03-20T16:36:22+02:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-03-20T16:36:22+02:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-03-20T16:36:22+02:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-03-20T16:36:22+02:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
time="2024-03-20T16:36:22+02:00" level=info msg="Loading libraries index file" index="C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\library_index.json"
2024-03-20T14:36:22.550Z daemon INFO time="2024-03-20T16:36:22+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Manolis\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-03-20T16:36:22+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Manolis\\Documents\\Arduino\\libraries" location=user
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-03-20T14:36:23.701Z root ERROR Failed to initialize global state path: Error: EPERM: operation not permitted, mkdir 'c:\Users\Manolis\.arduinoIDE'
2024-03-20T14:36:23.742Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 103.1 ms [Finished 1.446 s after frontend start]
2024-03-20T14:36:23.742Z root WARN A command editor.action.toggleStickyScroll is already registered.

Hi @manolisg11.

For some reason your operating system is not allowing Arduino IDE to create the configuration folders under C:\Users\Manolis\. Do you have any idea of why that is happening?

Is your Windows username "Manolis"?

Is there free space on the C:\ drive?

I have deleted your other cross-post @manolisg11.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

I have no idea why this is happenning

I asked you three questions in my previous reply. You only answered one of them. Please answer the other two questions:

Yes my username is Manolis and my C Drive has 32 GB free space

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