8000 Error: Unable to update lock within the stale threshold · Issue #594 · pnpm/pnpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Closed
aecz opened this issue Feb 1, 2017 · 28 comments · Fixed by #2553
Closed

Error: Unable to update lock within the stale threshold #594

aecz opened this issue Feb 1, 2017 · 28 comments · Fixed by #2553

Comments

@aecz
Copy link
Contributor
aecz commented Feb 1, 2017

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-debug.log.txt

  • pnpm 0.50.0
  • node 6.9.4
  • Windows 7
@aecz
Copy link
Contributor Author
aecz commented Feb 1, 2017

Just found this explanation on the proper-lockfile repo.
moxystudio/node-proper-lockfile#11
Looks like we need to set a bigger delay or at least add an option for it.

@aecz
Copy link
Contributor Author
aecz commented Feb 3, 2017

Error still happening unfortunately even after using next version 0.52.0.
You can get the package.json on the linked PR.

Here is some more info of my last test:

1st run: 700 packages installed, max memory used (didnt check the first run :( )

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)

2st run: 14 more packages installed, max memory used 500 MB

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)

3st run: 70 more packages installed, max memory used 620 MB

ERROR unexpected end of file
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)

4th run: 237 more packages installed, max memory used 710 MB

Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)

5th run: 29 more packages installed, max memory used 730MB

WARN Skipping failed optional dependency gulp-xslt@2.0.0
ERROR unexpected end of file
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)
Error: unexpected end of file
    at Zlib._handle.onerror (zlib.js:370:17)

6th run: 15 more packages installed, max memory used 642MB

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)

7th run: 16 more packages installed, max memory used 628MB

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)

8th run: 3 more packages installed (stopped measuring memory, doesnt seem an issue)
(core-js then karma then webdriverio)

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)

9th run: 1 more packages installed (pm2)

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)

10th run: 2 more packages installed (rxjs, ng2-google-place-autocomplete)

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)

11th run: 2 more packages installed (rxjs, ng2-google-place-autocomplete)

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)

12th run: 3 more packages installed (libxmljs-mt, libxslt, gulp-xslt)
=> No errors and binaries compiled successfully!

So it looks like only some packages are problematic. Once installed, no issues so far.
Another issue has appeared maybe unrelated about zlib.

@zkochan
Copy link
Member
zkochan commented Feb 3, 2017

I think the solution for #600 will solve your issues as well