-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NX Daemon process terminated and closed the connection #19615
Comments
In my case it was caused by strange special characters in JS file Example:
Such causes an error here: nx/packages/nx/src/native/plugins/js/ts_import_locators.rs Lines 446 to 450 in d293d34
|
This is interesting.. How are these characters being added to these files? The best thing we can do is handle the error better, but if the files arent in utf-8 then we can't do much otherwise. |
@nocnokneo Nx will build the project graph based on the root of the repo (where the nx.json file is). If these files arent part of gitingnore, add them to There's additional handling for js and ts files where we find imports to build out the dependencies. Because this particular file is a .js one, Nx will try to build out the dependency tree. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Is any idea about how to resolved (NX Daemon process terminated and closed the connection error). i have tried lot . reset, restore, clear cache, reinstall, migrate, etc. and i have mallualy start the daemon. daemon was started but while run the nx serve command again got the same error. its dosen't work for me. it was totally blocking
Please rerun the command, which will restart the daemon.
If you get this error again, check for any errors in the daemon process logs found in: D:\Partnersoft\Dev\Workspace\Thronex\MicroFrontend-NX-Monorepo\thronex\node_modules.cache\nx\d\daemon.log
Daemon.log
[NX Daemon Server] - 2023-10-14T08:59:49.121Z - Started listening on: \.\pipe\nx\C:\Users\sunil\AppData\Local\Temp\d4b9ff6fc420976aea65\d.sock
[NX Daemon Server] - 2023-10-14T08:59:49.126Z - [WATCHER]: Subscribed to changes within: d:\Partnersoft\Dev\Workspace\Thronex\MicroFrontend-NX-Monorepo\thronex (native)
[NX Daemon Server] - 2023-10-14T08:59:49.138Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T08:59:49.142Z - Closed a connection. Number of open connections: 0
[NX Daemon Server] - 2023-10-14T08:59:49.143Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T08:59:49.146Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2023-10-14T08:59:49.242Z - [REQUEST]: Updated file-hasher based on watched changes, recomputing project graph...
[NX Daemon Server] - 2023-10-14T08:59:49.244Z - [REQUEST]:
[NX Daemon Server] - 2023-10-14T08:59:49.244Z - [REQUEST]:
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }', packages\nx\src\native\plugins\js\ts_import_locators.rs:450:10note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace[NX Daemon Server] - 2023-10-14T09:00:11.943Z - Started listening on: \.\pipe\nx\C:\Users\sunil\AppData\Local\Temp\d4b9ff6fc420976aea65\d.sock
[NX Daemon Server] - 2023-10-14T09:00:11.945Z - [WATCHER]: Subscribed to changes within: D:\Partnersoft\Dev\Workspace\Thronex\MicroFrontend-NX-Monorepo\thronex (native)
[NX Daemon Server] - 2023-10-14T09:00:11.954Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T09:00:11.958Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2023-10-14T09:00:11.960Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2023-10-14T09:00:12.023Z - [REQUEST]: Updated file-hasher based on watched changes, recomputing project graph...
[NX Daemon Server] - 2023-10-14T09:00:12.023Z - [REQUEST]:
[NX Daemon Server] - 2023-10-14T09:00:12.023Z - [REQUEST]:
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }', packages\nx\src\native\plugins\js\ts_import_locators.rs:450:10note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace[NX Daemon Server] - 2023-10-14T09:01:59.435Z - Started listening on: \.\pipe\nx\C:\Users\sunil\AppData\Local\Temp\d4b9ff6fc420976aea65\d.sock
[NX Daemon Server] - 2023-10-14T09:01:59.447Z - [WATCHER]: Subscribed to changes within: D:\Partnersoft\Dev\Workspace\Thronex\MicroFrontend-NX-Monorepo\thronex (native)
[NX Daemon Server] - 2023-10-14T09:01:59.449Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T09:01:59.450Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2023-10-14T09:01:59.453Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2023-10-14T09:01:59.510Z - [REQUEST]: Updated file-hasher based on watched changes, recomputing project graph...
[NX Daemon Server] - 2023-10-14T09:01:59.510Z - [REQUEST]:
[NX Daemon Server] - 2023-10-14T09:01:59.510Z - [REQUEST]:
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }', packages\nx\src\native\plugins\js\ts_import_locators.rs:450:10note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace[NX Daemon Server] - 2023-10-14T09:18:48.103Z - Started listening on: \.\pipe\nx\C:\Users\sunil\AppData\Local\Temp\d4b9ff6fc420976aea65\d.sock
[NX Daemon Server] - 2023-10-14T09:18:48.105Z - [WATCHER]: Subscribed to changes within: D:\Partnersoft\Dev\Workspace\Thronex\MicroFrontend-NX-Monorepo\thronex (native)
[NX Daemon Server] - 2023-10-14T09:18:48.112Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T09:18:48.114Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2023-10-14T09:18:48.116Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2023-10-14T09:18:48.120Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2023-10-14T09:18:48.188Z - [REQUEST]: Updated file-hasher based on watched changes, recomputing project graph...
[NX Daemon Server] - 2023-10-14T09:18:48.188Z - [REQUEST]:
[NX Daemon Server] - 2023-10-14T09:18:48.188Z - [REQUEST]:
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }', packages\nx\src\native\plugins\js\ts_import_locators.rs:450:10note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceNX version :16.10.0
Expected Behavior
Run or Serve the host or remote application
NX version :16.10.0
GitHub Repo
No response
Steps to Reproduce
While running the project we got the error (NX Daemon process terminated and closed the connection error).
NX version :16.10.0
Nx Report
Not able to generate. while running the nx report also getting some error (NX Daemon process terminated and closed the connection error).
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: