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
I've set the NX_DAEMON_SOCKET_DIR env variable and i started the nx daemon with nx daemon --start.
Following things are happening:
socket file is created, but directly deleted again
those logs are showing of: [NX Daemon Server] - 2024-04-25T08:20:46.858Z - Started listening on: /home/marcus/Projects/aicosy/.nx/d.sock [NX Daemon Server] - 2024-04-25T08:20:46.861Z - [WATCHER]: Subscribed to changes within: /home/marcus/Projects/aicosy (native) [NX Daemon Server] - 2024-04-25T08:20:46.863Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T08:20:46.865Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T08:20:46.908Z - [WATCHER]: .nx/cache/d/server-process.json was modified [NX Daemon Server] - 2024-04-25T08:20:46.913Z - [REQUEST]: Responding to the client. File watch changed [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Done responding to the client File watch changed [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Handled FILE-WATCH-CHANGED. Handling time: 0. Response time: 1. [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Time taken for 'changed-projects' 3.9091689999986556ms [NX Daemon Server] - 2024-04-25T08:20:46.914Z - [WATCHER]: Stopping the watcher for /home/marcus/Projects/aicosy (sources) [NX Daemon Server] - 2024-04-25T08:20:46.914Z - [WATCHER]: Stopping the watcher for /home/marcus/Projects/aicosy (outputs) [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Server stopped because: "this process is no longer the current daemon (native)" [NX Daemon Server] - 2024-04-25T08:20:48.059Z - Started listening on: /tmp/c3fb6aaef5aa7fc7fef2/d.sock
running nx daemon gives the output: Nx Daemon is not running.
When disabling the nx console plugin in webstorm, everything works fine. Here is the output of the daemon log after disabling the plugin and restarting the daemon: [NX Daemon Server] - 2024-04-25T09:18:16.541Z - Started listening on: /home/marcus/Projects/aicosy/.nx/d.sock [NX Daemon Server] - 2024-04-25T09:18:16.554Z - [WATCHER]: Subscribed to changes within: /home/marcus/Projects/aicosy (native) [NX Daemon Server] - 2024-04-25T09:18:16.557Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:16.564Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T09:18:41.303Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:41.312Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T09:18:41.313Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:41.317Z - [REQUEST]: Client Request for Project Graph Received [NX Daemon Server] - 2024-04-25T09:18:41.323Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph... [NX Daemon Server] - 2024-04-25T09:18:41.324Z - [REQUEST]: [NX Daemon Server] - 2024-04-25T09:18:41.324Z - [REQUEST]: [NX Daemon Server] - 2024-04-25T09:18:41.757Z - [REQUEST]: Responding to the client. project-graph [NX Daemon Server] - 2024-04-25T09:18:41.761Z - Time taken for 'total for creating and serializing project graph' 439.9179899999981ms [NX Daemon Server] - 2024-04-25T09:18:41.783Z - Done responding to the client project-graph [NX Daemon Server] - 2024-04-25T09:18:41.784Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 440. Response time: 27. [NX Daemon Server] - 2024-04-25T09:18:41.886Z - [REQUEST]: Responding to the client. handleHashTasks [NX Daemon Server] - 2024-04-25T09:18:41.888Z - Done responding to the client handleHashTasks [NX Daemon Server] - 2024-04-25T09:18:41.888Z - Handled HASH_TASKS. Handling time: 58. Response time: 2. [NX Daemon Server] - 2024-04-25T09:18:42.344Z - Established a connection. Number of open connections: 2 [NX Daemon Server] - 2024-04-25T09:18:42.345Z - Closed a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:42.346Z - Established a connection. Number of open connections: 2 [NX Daemon Server] - 2024-04-25T09:18:42.349Z - [REQUEST]: Client Request for Project Graph Received [NX Daemon Server] - 2024-04-25T09:18:42.349Z - [REQUEST]: Responding to the client. project-graph [NX Daemon Server] - 2024-04-25T09:18:42.352Z - Time taken for 'total for creating and serializing project graph' 0.19312899999931687ms [NX Daemon Server] - 2024-04-25T09:18:42.356Z - Done responding to the client project-graph [NX Daemon Server] - 2024-04-25T09:18:42.356Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 0. Response time: 7. [NX Daemon Server] - 2024-04-25T09:19:28.389Z - [WATCHER]: Processing file changes in outputs
Hey @MarcusElevait thanks for the report.
Are you setting the NX_DAEMON_SOCKET_DIR directly in the terminal?
If yes, there's no way for Nx Console to know what this inline env variable is set to. You should use a root .env file to set the env variable in a way that Nx Console can pick up as well. https://nx.dev/recipes/tips-n-tricks/define-environment-variables
Can you confirm that this issue persists even if you define it in this way?
Current Behavior
I've set the NX_DAEMON_SOCKET_DIR env variable and i started the nx daemon with
nx daemon --start
.Following things are happening:
[NX Daemon Server] - 2024-04-25T08:20:46.858Z - Started listening on: /home/marcus/Projects/aicosy/.nx/d.sock [NX Daemon Server] - 2024-04-25T08:20:46.861Z - [WATCHER]: Subscribed to changes within: /home/marcus/Projects/aicosy (native) [NX Daemon Server] - 2024-04-25T08:20:46.863Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T08:20:46.865Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T08:20:46.908Z - [WATCHER]: .nx/cache/d/server-process.json was modified [NX Daemon Server] - 2024-04-25T08:20:46.913Z - [REQUEST]: Responding to the client. File watch changed [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Done responding to the client File watch changed [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Handled FILE-WATCH-CHANGED. Handling time: 0. Response time: 1. [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Time taken for 'changed-projects' 3.9091689999986556ms [NX Daemon Server] - 2024-04-25T08:20:46.914Z - [WATCHER]: Stopping the watcher for /home/marcus/Projects/aicosy (sources) [NX Daemon Server] - 2024-04-25T08:20:46.914Z - [WATCHER]: Stopping the watcher for /home/marcus/Projects/aicosy (outputs) [NX Daemon Server] - 2024-04-25T08:20:46.914Z - Server stopped because: "this process is no longer the current daemon (native)" [NX Daemon Server] - 2024-04-25T08:20:48.059Z - Started listening on: /tmp/c3fb6aaef5aa7fc7fef2/d.sock
Nx Daemon is not running.
When disabling the nx console plugin in webstorm, everything works fine. Here is the output of the daemon log after disabling the plugin and restarting the daemon:
[NX Daemon Server] - 2024-04-25T09:18:16.541Z - Started listening on: /home/marcus/Projects/aicosy/.nx/d.sock [NX Daemon Server] - 2024-04-25T09:18:16.554Z - [WATCHER]: Subscribed to changes within: /home/marcus/Projects/aicosy (native) [NX Daemon Server] - 2024-04-25T09:18:16.557Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:16.564Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T09:18:41.303Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:41.312Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-04-25T09:18:41.313Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:41.317Z - [REQUEST]: Client Request for Project Graph Received [NX Daemon Server] - 2024-04-25T09:18:41.323Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph... [NX Daemon Server] - 2024-04-25T09:18:41.324Z - [REQUEST]: [NX Daemon Server] - 2024-04-25T09:18:41.324Z - [REQUEST]: [NX Daemon Server] - 2024-04-25T09:18:41.757Z - [REQUEST]: Responding to the client. project-graph [NX Daemon Server] - 2024-04-25T09:18:41.761Z - Time taken for 'total for creating and serializing project graph' 439.9179899999981ms [NX Daemon Server] - 2024-04-25T09:18:41.783Z - Done responding to the client project-graph [NX Daemon Server] - 2024-04-25T09:18:41.784Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 440. Response time: 27. [NX Daemon Server] - 2024-04-25T09:18:41.886Z - [REQUEST]: Responding to the client. handleHashTasks [NX Daemon Server] - 2024-04-25T09:18:41.888Z - Done responding to the client handleHashTasks [NX Daemon Server] - 2024-04-25T09:18:41.888Z - Handled HASH_TASKS. Handling time: 58. Response time: 2. [NX Daemon Server] - 2024-04-25T09:18:42.344Z - Established a connection. Number of open connections: 2 [NX Daemon Server] - 2024-04-25T09:18:42.345Z - Closed a connection. Number of open connections: 1 [NX Daemon Server] - 2024-04-25T09:18:42.346Z - Established a connection. Number of open connections: 2 [NX Daemon Server] - 2024-04-25T09:18:42.349Z - [REQUEST]: Client Request for Project Graph Received [NX Daemon Server] - 2024-04-25T09:18:42.349Z - [REQUEST]: Responding to the client. project-graph [NX Daemon Server] - 2024-04-25T09:18:42.352Z - Time taken for 'total for creating and serializing project graph' 0.19312899999931687ms [NX Daemon Server] - 2024-04-25T09:18:42.356Z - Done responding to the client project-graph [NX Daemon Server] - 2024-04-25T09:18:42.356Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 0. Response time: 7. [NX Daemon Server] - 2024-04-25T09:19:28.389Z - [WATCHER]: Processing file changes in outputs
Expected Behavior
I'd expect that this does not happen :-D
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
npm
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: