IDE hangs on startup: "mkdir c:\Users\Veronika\.arduinoIDE: Access is denied"

Hi! I'm new to Arduino world, and I've just installed the 2.3.4 version, but it hangs on startup. The log is the following. Any help will be greatly appreciated!

Arduino IDE 2.3.4
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.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: 2884
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Veronika/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-12-15T14:34:03.387Z root INFO Backend Object.initialize: 3.9 ms [Finished 0.563 s after backend start]
2024-12-15T14:34:03.387Z root INFO Backend Object.configure: 3.2 ms [Finished 0.563 s after backend start]
2024-12-15T14:34:03.387Z root INFO Backend s.onStart: 1.6 ms [Finished 0.563 s after backend start]
2024-12-15T14:34:03.388Z root INFO Backend s.configure: 0.3 ms [Finished 0.587 s after backend start]
2024-12-15T14:34:03.389Z root INFO Backend d.onStart: 0.2 ms [Finished 0.587 s after backend start]
2024-12-15T14:34:03.389Z root INFO Backend d.configure: 0.1 ms [Finished 0.587 s after backend start]
2024-12-15T14:34:03.390Z root INFO Backend d.initialize: 23.8 ms [Finished 0.587 s after backend start]
2024-12-15T14:34:03.390Z root INFO Backend c.onStart: 0.3 ms [Finished 0.587 s after backend start]
2024-12-15T14:34:03.391Z root INFO Backend a.configure: 1.2 ms [Finished 0.588 s after backend start]
2024-12-15T14:34:03.392Z config INFO >>> Initializing CLI configuration...
2024-12-15T14:34:03.392Z root INFO Backend c.initialize: 0.4 ms [Finished 0.589 s after backend start]
2024-12-15T14:34:03.392Z root INFO Backend x.onStart: 0.7 ms [Finished 0.589 s after backend start]
2024-12-15T14:34:03.393Z config INFO Loading CLI configuration from c:\Users\Veronika\.arduinoIDE\arduino-cli.yaml...
2024-12-15T14:34:03.393Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-12-15T14:34:03.393Z root INFO Backend a.initialize: 0.4 ms [Finished 0.590 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend w.onStart: 1.1 ms [Finished 0.591 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend r.configure: 1.6 ms [Finished 0.591 s after backend start]
2024-12-15T14:34:03.393Z discovery-log INFO start
2024-12-15T14:34:03.393Z discovery-log INFO start new deferred
2024-12-15T14:34:03.393Z root INFO Backend d.initialize: 0.4 ms [Finished 0.591 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend y.onStart: 1.7 ms [Finished 0.593 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend r.configure: 1.4 ms [Finished 0.593 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend a.onStart: 0.4 ms [Finished 0.594 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend h.configure: 0.3 ms [Finished 0.594 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend s.configure: 0.1 ms [Finished 0.594 s after backend start]
2024-12-15T14:34:03.393Z root INFO Backend l.configure: 0.1 ms [Finished 0.594 s after backend start]
2024-12-15T14:34:03.396Z root INFO Theia app listening on http://127.0.0.1:50552.
2024-12-15T14:34:03.396Z root INFO Finished starting backend application: 3.2 ms [Finished 0.597 s after backend start]
2024-12-15T14:34:03.418Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Veronika/.arduinoIDE/plugins does not exist.
2024-12-15T14:34:03.418Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Veronika/.arduinoIDE/extensions does not exist.
2024-12-15T14:34:03.418Z root WARN The local plugin referenced by local-dir:C:\Users\Veronika\.arduinoIDE\plugins does not exist.
2024-12-15T14:34:03.424Z root ERROR Uncaught Exception:  Error: EPERM: operation not permitted, mkdir 'C:\Users\Veronika\.arduinoIDE'
2024-12-15T14:34:03.424Z root ERROR Error: EPERM: operation not permitted, mkdir 'C:\Users\Veronika\.arduinoIDE'
2024-12-15T14:34:03.444Z root INFO Resolve plugins list: 51.9 ms [Finished 0.645 s after backend start]
2024-12-15T14:34:03.602Z root INFO Error: Error executing C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe config init --dest-dir c:\Users\Veronika\.arduinoIDE: No se puede crear el directorio de archivos de configuraci├│n: mkdir c:\Users\Veronika\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:795520)
    at ChildProcess.emit (node:events:514:28)
    at Process.onexit (node:internal/child_process:291:12)
2024-12-15T14:34:03.602Z 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\Veronika\.arduinoIDE: No se puede crear el directorio de archivos de configuraci├│n: mkdir c:\Users\Veronika\.arduinoIDE: Access is denied.
    at ChildProcess.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:795520)
    at ChildProcess.emit (node:events:514:28)
    at Process.onexit (node:internal/child_process:291:12)
2024-12-15T14:34:03.608Z daemon INFO time="2024-12-15T15:34:03+01:00" level=info msg="arduino-cli version 1.1.1"
time="2024-12-15T15:34:03+01:00" level=info msg="Using config file: c:\\Users\\Veronika\\.arduinoIDE\\arduino-cli.yaml"
time="2024-12-15T15:34:03+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:50553
{"IP":"127.0.0.1","Port":"50553"}
2024-12-15T14:34:03.608Z daemon INFO Daemon is running.
2024-12-15T14:34:03.685Z daemon INFO time="2024-12-15T15:34:03+01:00" level=info msg="Checking signature" index="C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-12-15T15:34:03+01:00" level=info msg="Loading hardware from: C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\packages"
time="2024-12-15T15:34:03+01:00" level=info msg="Loading package builtin from: C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-12-15T15:34:03+01:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-12-15T15:34:03+01:00" level=info msg="Loading tools from dir: C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-12-15T15:34:03+01:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-12-15T15:34:03+01:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-12-15T15:34:03+01:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-12-15T15:34:03+01:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
time="2024-12-15T15:34:03+01:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
time="2024-12-15T15:34:03+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\library_index.json"
2024-12-15T14:34:03.901Z daemon INFO time="2024-12-15T15:34:03+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Veronika\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2024-12-15T15:34:03+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Veronika\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-12-15T14:34:05.227Z root ERROR Failed to initialize global state path: Error: EPERM: operation not permitted, mkdir 'c:\Users\Veronika\.arduinoIDE'
2024-12-15T14:34:05.286Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 136.6 ms [Finished 1.776 s after frontend start]
2024-12-15T14:34:05.286Z root WARN A command editor.action.toggleStickyScroll is already registered.
[7908:1215/153405.390:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+ç"

Are you on a home PC or sc hool or business. Youj are getting this error

operation not permitted, mkdir   'c:\Users\Veronika\.arduinoIDE'

Navigate to c:\Users\Veronika, right click the .arduinoIDE directory and click on properties.
Click the security tab and check the permissions. On my system there are three users

  1. system
  2. myself
  3. administrators

If you see the user Veronika, check the permissions. If you don't see the user Veronika, add that user (using the Advanced button).

The user should have the below the below permissions

Special permissions is not set on my system (and hence not needed).


Alternatively, you might be able to create the .arduinoIDE directory yourself.

Hi @sterretje @sonofcy Thank you for your answers, I resolved the issue shortly after posting :slight_smile:

Can you share what you did to solve it? So others that encounter the same problem might try your approach.

Hi! In my case the issue was being caused by having the PC in Spanish. I changed the system language to English, but from what I’ve read it can also be solved by changing the System Locale language for non-Unicode programs.

Also, for some reason the folder .arduinoIDE wasn’t being created in my user folder, so I manually created an empty folder with this name (as @sterretje mentioned above). After doing so, I ran the program as administrator, it asked for permissions to download several drivers required for connecting Arduino, and then everything was up and running.

It was a bit of trial and error, but I was lucky enough and managed to solve it relatively easily.

1 Like

Thanks.

be aware that there is no need to run as administrator and there are always risks involved with it.

1 Like

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