-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error: Unable to update lock within the stale threshold #594
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
Comments
Just found this explanation on the proper-lockfile repo. |
Error still happening unfortunately even after using next version 0.52.0. Here is some more info of my last test: 1st run: 700 packages installed, max memory used (didnt check the first run :( )
2st run: 14 more packages installed, max memory used 500 MB
3st run: 70 more packages installed, max memory used 620 MB
4th run: 237 more packages installed, max memory used 710 MB
5th run: 29 more packages installed, max memory used 730MB
6th run: 15 more packages installed, max memory used 642MB
7th run: 16 more packages installed, max memory used 628MB
8th run: 3 more packages installed (stopped measuring memory, doesnt seem an issue)
9th run: 1 more packages installed (pm2)
10th run: 2 more packages installed (rxjs, ng2-google-place-autocomplete)
11th run: 2 more packages installed (rxjs, ng2-google-place-autocomplete)
12th run: 3 more packages installed (libxmljs-mt, libxslt, gulp-xslt) So it looks like only some packages are problematic. Once installed, no issues so far. |
I think the solution for #600 will solve your issues as well |
I believe this is fixed in 0.52.1. I cannot reproduce this anymore |
Still seeing this (intermittently) with 0.52.1. Had to put a retry loop around it.
(worked the second time) |
As a temporary fix, we can
|
I'm still seeing this error in 0.66.2 on Ubuntu 16.04.
I think instructions to enable this flag should printed when this error occurs. But it would be better to try avoid it... |
Seeing it on macOS Sierra too. |
OK, let me add a Plus an error message as you suggested |
|
I am also experiencing this when installing |
Still not able to lock within stale threshold. On setting the --no-lock flag it works shouldn't the default timeout increased further? |
I'm seeing this with 1.35.1 (Windows 10, Node 8.9.0)
|
I also saw this recently in Ubuntu 14.
…On Thu 1. Mar 2018 at 08:00, Mangala Sadhu Sangeet Singh Khalsa < ***@***.***> wrote:
I'm seeing this with 1.35.1 (Windows 10, Node 8.9.0)
D:\dev\src\abc>pnpm i
Resolving: total 766, reused 0, downloaded 0
D:\dev\nodejs\pnpm-global\1\node_modules\.registry.npmjs.org\pnpm\1.35.1\node_modules\pnpm\lib\node_modules\proper-lockfile\index.js:186
compromised = compromised || function (err) { throw err; };
^
Error: Unable to update lock within the stale threshold
at options.fs.utimes (D:\dev\nodejs\pnpm-global\1\node_modules\.registry.npmjs.org\pnpm\1.35.1\node_modules\pnpm\lib\node_modules\proper-lockfile\index.js:108:66)
at FSReqWrap.oncomplete (fs.js:135:15)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#594 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARLRREZ9lcyyx1U2MioS19MgbVvrNHmks5tZ5yrgaJpZM4Lzv2y>
.
|
I'm having this issue on macOS with node 6.8.1 and 8.9.4. |
To my knowledge, all operations that are done by pnpm, are done atomically, so it should be safe to run pnpm without locks. I suggest to turn off locks by default. |
(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.) |
This still happens quite frequently in my CI pipelines with pnpm version 4.14, on Windows 10 and Windows Server machines. |
OK, let's remove the lock in v5
Wei Chen <notifications@github.com> ezt írta (időpont: 2020. ápr. 28., K
18:44):
… This still happens quite frequently in my CI pipelines with pnpm version
4.14, on Windows 10 and Windows Server machines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#594 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOWTGYE3YFWARYRX4INOYDRO32T7ANCNFSM4C6O7WZA>
.
|
I created a PR to remove locking #2553 |
Uh oh!
There was an error while loading. Please reload this page.
Code to reproduce
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 :)
Additional information:
pnpm-debug.log.txt
The text was updated successfully, but these errors were encountered: