pnpm: Error: Unable to update lock within the stale threshold
Code to reproduce
pnpm install
Actual behavior:
pnpm starts to install packages in node_modules/.resolutions then fails with only 300 of them installed (1000 to be installed). node.exe process memory goes up to 800MB and exits with the following error. Running the command again installs a few more packages each time (around 5). Please note that i have 11GB RAM free before running the command 😃
C:\Users\aecz\AppData\Roaming\nvm\v6.9.4\node_modules\pnpm\lib\node_modules\proper-lockfile\index.js:180
compromised = compromised || function (err) { throw err; };
^
Error: Unable to update lock within the stale threshold
at options.fs.utimes (C:\Users\aecz\AppData\Roaming\nvm\v6.9.4\node_modules\pnpm\lib\node_modules\proper-lockfile\index.js:108:66)
at FSReqWrap.oncomplete (fs.js:123:15)
Additional information:
- pnpm 0.50.0
- node 6.9.4
- Windows 7
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 28 (21 by maintainers)
Commits related to this issue
- fix(fetch): limit simultaneous fetches Rel #600, Rel #594 — committed to pnpm/pnpm by zkochan 7 years ago
- fix(fetch): limit simultaneous fetches Rel #600, Rel #594 — committed to pnpm/pnpm by zkochan 7 years ago
- feat: add lockStaleDuration config ref #608, ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- feat: add lockStaleDuration config ref #608, ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- feat: add lockStaleDuration config ref #608, ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- feat: add a --no-lock option Ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- feat: add a --no-lock option Ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: update supi to version 0.0.2 Ref #594 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: set default lockStaleDuration to 5 minutes ref pnpm/pnpm#594 — committed to pnpm/supi by zkochan 6 years ago
- feat!: remove store state PR #2542 ref #594 — committed to pnpm/pnpm by zkochan 4 years ago
- feat!: remove locking of node_modules close #594 — committed to pnpm/pnpm by zkochan 4 years ago
- feat!: remove locking of node_modules close #594 — committed to pnpm/pnpm by zkochan 4 years ago
- feat!: remove locking of node_modules close #594 PR #2553 — committed to pnpm/pnpm by zkochan 4 years ago
I created a PR to remove locking #2553
(FWIW we generally avoid creating tiny NodeJS packages with only 300 lines of code in them. It’s bad for performance. Also, the more individual dependencies you have, the harder it is to avoid side-by-side versions.)
@zkochan I just got the error again on Ubuntu 16 with a completely warm store.
Happens at random package installs.
At then end the
reused
counter starts to slow down and stall, and then the error comes.--no-lock
seems to have allowed it to finish. It becomes really slow at the end though. Maybe there is a memory leak or some inefficient code…--no-lock
released with v0.67.0