IDE hangs on startup: "mkdir C:\Users\Folio: Access is denied."

i have installed the latest arduino Ide from the Arduino website on a new to me lenovo latop running windows 10 pro 64 bit.

the Ide will not go past the initl start up screen , i have uninstalled re installed, I have downloaded the zip file and just run it from the extracted files with no joy, i have ide 2.3.2 on my former laptop with windows 10 and it runs no problem. tried copying those files over and once again no joy

any suggestions ?

You could try installing the other previous versions or look up if they are available in your laptop. (Edit: Btw welcome back :slight_smile: )

Hi @logan69. I'm going to ask you to provide some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
    A context menu will open
  5. Select "Open PowerShell window here" from the menu.
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

2024-11-06T20:58:25.559Z daemon INFO Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
2024-11-06T20:58:25.560Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:43051)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-11-06T20:58:25.560Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-11-06T20:58:25.566Z daemon INFO Daemon exited with exit code: 7.
2024-11-06T20:58:25.635Z daemon INFO Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
2024-11-06T20:58:25.635Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:43051)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-11-06T20:58:25.635Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-11-06T20:58:25.641Z daemon INFO Daemon exited with exit code: 7.
2024-11-06T20:58:25.710Z daemon INFO Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
2024-11-06T20:58:25.711Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:43051)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-11-06T20:58:25.711Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-11-06T20:58:25.717Z daemon INFO Daemon exited with exit code: 7.
2024-11-06T20:58:25.785Z daemon INFO Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
2024-11-06T20:58:25.785Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:43051)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-11-06T20:58:25.785Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-11-06T20:58:25.791Z daemon INFO Daemon exited with exit code: 7.
2024-11-06T20:58:25.861Z daemon INFO Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
2024-11-06T20:58:25.861Z daemon ERROR Error: Error: invalid path creating config dir: C:\Users\Folio\AppData\Local\Arduino15 error: mkdir C:\Users\Folio: Access is denied.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:43051)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Socket.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-11-06T20:58:25.861Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-11-06T20:58:25.868Z daemon INFO Daemon exited with exit code: 7.

type or paste code here

I did install the legacy version, 1.8.19, and it works other than not liking the names of all my sketches, i tired to copy the version that does work on my other laptop which is the previous release but no joy there either. and thank you it has been a while

The error is in the log file, can you spot Waldo?

Is your Windows username "Folio"? I ask because this error might be caused by you having changed your username since the time Arduino IDE created its configuration file. Arduino IDE uses folders under paths that contain your Windows username, so if you later change your username then the paths in the configuration file will point to a path that you no longer have access to.

I got it figured out , by fluke.lol
this was a brand new install to a new to me laptop, I was about to uninstall the IDE and try again, but when I right clicked on the icon, I saw the run as administrator option, figured what was there to lose and now the IDE is up and running

thanks all who gave me input , and for the lesson on the PowerShell

It's not advisable to run an application that does not strictly need admin privileges as admin. The IDE does not need admin privileges.

You should fix the underlying issue.

5 posts were split to a new topic: IDE hangs on startup: "openpgp: invalid signature: RSA verification failure"

I believe the source of the problem is that when installing W11, MS insists that your login account be 'remote'. That is, you are actually first logging into microsoft.com, which then authorizes you to login to your PC. Create a file on your desktop and look at the properties/securities tab. If in permissions your permission is an email address, then you have Remote login.

You need to create a local account (and preferably delete your remote account). To create a local account, do not go to Settings. Go to Control Panel/User Accounts and create a new account. Be careful - MS will try all the tricks in the book to make your new account a Remote account. But there is a method to bypass that and create a Local account.

IDE 2.3.4 should not have the hanging issue with a Local account.

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