You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a custom dir for the nx daemon socket with NX_DAEMON_SOCKET_DIR, the dir has to be there, when starting the daemon. Otherwise it throws the error:
`node:events:496
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied /home/marcus/Projects/aicosy/.nx-daemon/d.sock
at Server.setupListenHandle [as _listen2] (node:net:1855:21)
at listenInCluster (node:net:1920:12)
at Server.listen (node:net:2025:5)
at /home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/server.js:279:20
at new Promise ()
at startServer (/home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/server.js:277:12)
at async /home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/start.js:8:9
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1899:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EACCES',
errno: -13,
syscall: 'listen',
address: '/home/marcus/Projects/aicosy/.nx-daemon/d.sock',
port: -1
}`
The problem is, that nx reset automatically deletes the dir, thus everytime running nx reset you have to remember creating the dir again.
Expected Behavior
I'd expect, that the daemon creates the dir for the socket automatically.
GitHub Repo
No response
Steps to Reproduce
set NX_DAEMON_SOCKET_DIR to a custom dir like .nx-daemon
Current Behavior
When setting a custom dir for the nx daemon socket with NX_DAEMON_SOCKET_DIR, the dir has to be there, when starting the daemon. Otherwise it throws the error:
`node:events:496
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied /home/marcus/Projects/aicosy/.nx-daemon/d.sock
at Server.setupListenHandle [as _listen2] (node:net:1855:21)
at listenInCluster (node:net:1920:12)
at Server.listen (node:net:2025:5)
at /home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/server.js:279:20
at new Promise ()
at startServer (/home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/server.js:277:12)
at async /home/marcus/Projects/aicosy/node_modules/nx/src/daemon/server/start.js:8:9
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1899:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EACCES',
errno: -13,
syscall: 'listen',
address: '/home/marcus/Projects/aicosy/.nx-daemon/d.sock',
port: -1
}`
The problem is, that
nx reset
automatically deletes the dir, thus everytime runningnx reset
you have to remember creating the dir again.Expected Behavior
I'd expect, that the daemon creates the dir for the socket automatically.
GitHub Repo
No response
Steps to Reproduce
nx reset
nx daemon --start
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: