IDE hangs on startup: "invalid path creating config dir"

Hi I tried a few of the similar problems as mine and their fixes but to no avail.

I try this in terminal:
"/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"

And this is what I get:

IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.255Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.261Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.261Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.261Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.261Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.268Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.268Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.268Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.269Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.274Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.274Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.274Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.276Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.280Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.281Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.281Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.281Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.287Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.287Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.287Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.288Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.293Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.293Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.293Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.294Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.299Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.299Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.299Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.300Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.306Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.306Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.306Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.306Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.312Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.312Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.312Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.312Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.318Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.318Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.318Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.318Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.324Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.324Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.324Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.324Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.330Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.330Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
    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-08-05T17:07:00.330Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-08-05T17:07:00.331Z daemon INFO Daemon exited with exit code: 7.
2024-08-05T17:07:00.336Z daemon INFO Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied
2024-08-05T17:07:00.336Z daemon ERROR Error: Error: invalid path creating config dir: /Users/panomacmini/Library/Arduino15 error: mkdir /Users/panomacmini: permission denied

panomacmini is an older login profile that no longer exists and I am using louisconstant

If someone could help me out it would be much appreciated...

thanks,
Louis

It looks like you're using IDE 2.x and hence your topic has been moved to that category.

Not a Mac user so I can't help you further.

Mac driver here, what the heck is

"/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
The app is stored where all the apps are stored, see pic.

Hi @buddafest. The first time you run Arduino IDE, it generates a configuration file that defines the paths to several folders used by the IDE. The default locations of these folders are under your home folder, which means the username is part of the path. When you change your username it makes the paths in the configuration file outdated. When the IDE attempts to access the old path, the operating system does not allow it, which causes the startup to hang.

I think the easiest solution will be to simply delete the configuration file. Arduino IDE will automatically generate a new file on startup with the correct paths.

I'll provide instructions you can follow to do that:

  1. Select Arduino IDE > Quit Arduino IDE from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Delete the file at the following path:
    /Users/<username>/.arduinoIDE/arduino-cli.yaml
    
    (where <username> is your macOS username)
    :exclamation: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!
  3. Start Arduino IDE.

Arduino IDE should now start up fully and be functional as usual.

Note that the file you deleted is used to store some of your IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location" or "Additional Boards Manager URLs" preferences before, you'll need to select Arduino IDE > Settings... from the Arduino IDE menus and then set those preferences once again after performing the instructions I provided above.


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

17 posts were split to a new topic: IDE opens but there is no FILE menu

Thank you. That hidden folder thing had me stumped and I would never of found found that without you. :grinning:

You are welcome. I'm glad if I was able to be of assistance.

Regards, Per