IDE hangs on startup: "invalid path creating config dir: ... error: mkdir ...: permission denied"

I have recently bought an Arduino and thus downloaded the Arduino IDE 2.1.0, it was working for a couple of days, 2 or 3 but now it seems to be stuck on the loading screen.

Thanks,
yeetus

Hi @yeetus_deletus. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to run Arduino IDE from the command line, then share the output.

Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Open your Applications folder in Finder.
  3. Open the Utilities folder.
  4. Double-click on "Terminal".
  5. Type the following command in the Terminal window:
    "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
    
  6. Press Enter
  7. 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 window).
  8. Switch back to the Terminal window if the Arduino IDE window took the focus.
  9. Press +A.
    This will select all the text in the Terminal window.
  10. Press +C.
    This will copy the selected text to the clipboard.
  11. Open a forum reply here by clicking the Reply button.
  12. 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 output is correctly formatted.
    Code tags icon on toolbar
  13. Press +V.
    This will paste the output into the code block.
  14. Move the cursor outside of the code block markup before you add any additional text to your reply.
  15. Click the Reply button to post the output.

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

Last login: Sun Jun 25 15:53:40 on ttys000
(base) tejaskulthe@Tejass-MacBook-Pro ~ % "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.1.0
Starting backend process. PID: 83076
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/tejaskulthe/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-06-25T14:58:46.903Z root INFO Backend Object.initialize: 2.1 ms [Finished 0.618 s after backend start]
2023-06-25T14:58:46.903Z root INFO Backend Object.configure: 1.7 ms [Finished 0.618 s after backend start]
2023-06-25T14:58:46.903Z root INFO Backend MessagingContribution.onStart: 0.8 ms [Finished 0.618 s after backend start]
2023-06-25T14:58:46.903Z root INFO Backend OSBackendApplicationContribution.configure: 0.2 ms [Finished 0.640 s after backend start]
2023-06-25T14:58:46.904Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.640 s after backend start]
2023-06-25T14:58:46.904Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.640 s after backend start]
2023-06-25T14:58:46.905Z root INFO Backend PluginLocalizationBackendContribution.initialize: 22.8 ms [Finished 0.641 s after backend start]
2023-06-25T14:58:46.905Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.1 ms [Finished 0.641 s after backend start]
2023-06-25T14:58:46.905Z root INFO Backend ElectronTokenBackendContribution.configure: 0.5 ms [Finished 0.641 s after backend start]
2023-06-25T14:58:46.905Z config INFO >>> Initializing CLI configuration...
2023-06-25T14:58:46.905Z root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 0.641 s after backend start]
2023-06-25T14:58:46.906Z root INFO Backend ConfigServiceImpl.onStart: 0.5 ms [Finished 0.642 s after backend start]
2023-06-25T14:58:46.906Z config INFO Loading CLI configuration from /Users/tejaskulthe/.arduinoIDE/arduino-cli.yaml...
2023-06-25T14:58:46.906Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.2 ms [Finished 0.642 s after backend start]
2023-06-25T14:58:46.906Z root INFO Backend ArduinoDaemonImpl.onStart: 0.5 ms [Finished 0.642 s after backend start]
2023-06-25T14:58:46.906Z root INFO Backend NodeFileUploadService.configure: 0.9 ms [Finished 0.643 s after backend start]
2023-06-25T14:58:46.906Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:46.906Z discovery-log INFO start
2023-06-25T14:58:46.906Z discovery-log INFO start new deferred
2023-06-25T14:58:46.906Z root INFO Backend HostedPluginLocalizationService.initialize: 0.3 ms [Finished 0.643 s after backend start]
2023-06-25T14:58:46.906Z root INFO Backend BoardDiscovery.onStart: 0.5 ms [Finished 0.643 s after backend start]
2023-06-25T14:58:46.906Z root INFO Backend FileDownloadEndpoint.configure: 0.4 ms [Finished 0.643 s after backend start]
2023-06-25T14:58:46.907Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 0.644 s after backend start]
2023-06-25T14:58:46.907Z root INFO Backend PluginApiContribution.configure: 0.3 ms [Finished 0.644 s after backend start]
2023-06-25T14:58:46.907Z root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 0.644 s after backend start]
2023-06-25T14:58:46.907Z root INFO Backend HostedPluginReader.configure: 0.0 ms [Finished 0.644 s after backend start]
2023-06-25T14:58:46.907Z root INFO Backend PlotterBackendContribution.configure: 0.4 ms [Finished 0.645 s after backend start]
2023-06-25T14:58:46.908Z root INFO Theia app listening on http://localhost:62028.
2023-06-25T14:58:46.909Z root INFO Finished starting backend application: 2.1 ms [Finished 0.646 s after backend start]
2023-06-25T14:58:46.910Z root WARN The local plugin referenced by local-dir:/Users/tejaskulthe/.arduinoIDE/plugins does not exist.
2023-06-25T14:58:46.910Z root WARN The local plugin referenced by local-dir:/Users/tejaskulthe/.arduinoIDE/extensions does not exist.
2023-06-25T14:58:46.919Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.919Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2023-06-25T14:58:46.919Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.919Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.8" with engines:
2023-06-25T14:58:46.919Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.919Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2023-06-25T14:58:46.919Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.919Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2023-06-25T14:58:46.919Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2023-06-25T14:58:46.920Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-25T14:58:46.920Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2023-06-25T14:58:46.923Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"daemon":{"port":"50051"},"directories":{"data":"/Users/tejas.kulthe/Library/Arduino15","downloads":"/Users/tejas.kulthe/Library/Arduino15/staging","user":"/Users/tejas.kulthe/Documents/Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2023-06-25T14:58:46.924Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-06-25T14:58:46.924Z config INFO Loaded the CLI configuration.
2023-06-25T14:58:46.926Z config WARN Could not ensure user directory existence: /Users/tejas.kulthe/Documents/Arduino
2023-06-25T14:58:46.926Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/tejas.kulthe/Library/Arduino15","sketchDirUri":"file:///Users/tejas.kulthe/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-06-25T14:58:46.926Z config INFO Validating the CLI configuration...
2023-06-25T14:58:46.927Z root ERROR Check accessible failed for input: /Users/tejas.kulthe/Documents/Arduino
2023-06-25T14:58:46.927Z config ERROR Failed to initialize the CLI configuration.
2023-06-25T14:58:46.931Z root INFO Resolve plugins list: 24.8 ms [Finished 0.668 s after backend start]
2023-06-25T14:58:46.933Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/cortex-debug/extension/dist/extension.js": 2.5 ms [Finished 0.671 s after backend start]
2023-06-25T14:58:46.935Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.8" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 1.5 ms [Finished 0.673 s after backend start]
2023-06-25T14:58:46.941Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension": 5.9 ms [Finished 0.679 s after backend start]
2023-06-25T14:58:46.942Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json/extension": 1.0 ms [Finished 0.680 s after backend start]
2023-06-25T14:58:46.942Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 0.2 ms [Finished 0.680 s after backend start]
2023-06-25T14:58:46.987Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-bg/extension": 45.0 ms [Finished 0.725 s after backend start]
2023-06-25T14:58:46.988Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:46.988Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:46.988Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:46.988Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.033Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-cs/extension": 46.1 ms [Finished 0.771 s after backend start]
2023-06-25T14:58:47.033Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.033Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.034Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.034Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.093Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-de/extension": 60.2 ms [Finished 0.831 s after backend start]
2023-06-25T14:58:47.095Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.095Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.095Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.095Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.163Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-es@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-es/extension": 69.3 ms [Finished 0.900 s after backend start]
2023-06-25T14:58:47.163Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.163Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.163Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.163Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.203Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-fr@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-fr/extension": 40.4 ms [Finished 0.941 s after backend start]
2023-06-25T14:58:47.203Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.203Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.203Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.204Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.226Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-hu@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-hu/extension": 22.6 ms [Finished 0.964 s after backend start]
2023-06-25T14:58:47.226Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.226Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.226Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.226Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.254Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-it@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-it/extension": 28.5 ms [Finished 0.992 s after backend start]
2023-06-25T14:58:47.254Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.255Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.255Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.255Z daemon INFO Daemon exited with exit code: 7.
2023-06-25T14:58:47.290Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ja@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ja/extension": 35.8 ms [Finished 1.028 s after backend start]
2023-06-25T14:58:47.292Z daemon INFO Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied

2023-06-25T14:58:47.292Z daemon ERROR Error: Error: invalid path creating config dir: /Users/tejas.kulthe/Library/Arduino15 error: mkdir /Users/tejas.kulthe: permission denied
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:177:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-06-25T14:58:47.292Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-25T14:58:47.292Z daemon INFO Daemon exited with exit code: 7.

Did you change your macOS username from tejas.kulthe to tejaskulthe? Arduino IDE stores/reads data from several folders outside the installation folder. The paths to these folders are configured in a configuration file. The paths are under your user folder, so if you change your username, the IDE can no longer access the configured paths and this causes the startup to fail with the "permission denied" errors:

Please try this:

  1. Close all Arduino IDE windows if it is running.
  2. Open the folder at the following path in macOS Finder:
    /Users/tejaskulthe/.arduinoIDE
    
    :exclamation: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
  3. Hold the Ctrl key on your keyboard and click on the arduino-cli.yaml file.
    A context menu will open.
  4. Select "Move to Trash" from the context menu.

Now try starting Arduino IDE again. Hopefully it will start up without any problems this time.

Some of your Arduino IDE preferences were stored in the arduino-cli.yaml file that is deleted by following the instructions I provided above. So if you have made any customizations to the preferences (e.g., adding URLs to the "Additional Boards Manager URLs" preference), you will need to select Arduino IDE > Settings from the Arduino IDE menus and then make your preferences in the "Preferences" dialog once again.

1 Like

It's fixed now thanksss

You are welcome. I'm glad it is working now.

Regards,
Per

A post was split to a new topic: IDE hangs on startup: "listen tcp 127.0.0.1:0: bind: can't assign requested address"

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