Skip to content
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

daemon gets killed on init due to lock file changes #9389

Closed
meeroslav opened this issue Mar 18, 2022 · 3 comments
Closed

daemon gets killed on init due to lock file changes #9389

meeroslav opened this issue Mar 18, 2022 · 3 comments

Comments

@meeroslav
Copy link
Contributor

In version 13.8.6 we introduced the post-install step for @nrwl/workspace which ensures a project graph is generated on cold start (#9204). This will trigger the daemon start and fetching project graph from the daemon.

Unfortunately, this happens while npm install is still ongoing and the lock file is being changed resulting in daemon termination due to lock file changes.

Current Behavior

The daemon starts and shuts down during the package installation.

Expected Behavior

Steps to Reproduce

  • Create a workspace with nx 13.8.6+
  • Check the `node_modules/.cache/nx/d/daemon.log

Failure Logs

[NX Daemon Server] - 2022-03-18T12:17:51.829Z - [WATCHER]: Unsubscribed from changes within: ***
[NX Daemon Server] - 2022-03-18T12:17:51.830Z - Server stopped because: "Lock file changed"

Environment

Node : 17.5.0
OS : darwin arm64
yarn : 1.22.17

nx : 13.8.8
@nrwl/angular : 13.8.8
@nrwl/cli : 13.8.8
@nrwl/cypress : 13.8.8
@nrwl/detox : undefined
@nrwl/devkit : 13.8.8
@nrwl/eslint-plugin-nx : 13.8.8
@nrwl/express : undefined
@nrwl/jest : 13.8.8
@nrwl/js : undefined
@nrwl/linter : 13.8.8
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : 13.1.6
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : 13.8.8
@nrwl/tao : 13.8.8
@nrwl/web : undefined
@nrwl/workspace : 13.8.8
typescript : 4.5.5
rxjs : 7.4.0

Community plugins:
@angular/animations: 13.2.7
@angular/common: 13.2.7
@angular/compiler: 13.2.7
@angular/core: 13.2.7
@angular/forms: 13.2.7
@angular/platform-browser: 13.2.7
@angular/platform-browser-dynamic: 13.2.7
@angular/router: 13.2.7
@angular-devkit/build-angular: 13.2.6
@angular/cli: 13.2.6
@angular/compiler-cli: 13.2.7
@angular/language-service: 13.2.7

@meeroslav meeroslav added type: bug scope: core core nx functionality labels Mar 18, 2022
@meeroslav
Copy link
Contributor Author

cc @FrozenPandaz @JamesHenry

@github-actions
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant