-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug]: yarn install hangs at Resolution Step #4327
Comments
I'm seeing similar behavior while invoking Specifically, I see yarn hanging after the end of the resolution step.
I have isolated the issue; it is an endless-loop bug in I'll file a new yarn issue to recommend that Yarn use some sort of timeout, or otherwise guard against runaway diff, or give us a way to opt out of diffing. |
Hi! 👋 This issue looks stale, and doesn't feature the Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃 If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the |
I was facing this issue in GitHub Actions. The reason was, I was using yarn berry but my yarn.lock file was still of version 1. Instead of failing, it just freezes |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I am encountering the same issue with latest yarn and it reported "Completed in 2m 25s" but you do not really get any feedback that is doing anything. I was not able to spot a CPU spike either. I do suspect that it might be caused by some networking throttling on the server side (npm.org) but I have no proof as no logging happens. If one or two requirest need to timeout (likely 30s default) it might explain why it get "stuck". |
This is still an issue with yarn 4.0.1 … even with nothing fancy configured: cacheFolder: ./.yarn/cache
compressionLevel: mixed
defaultSemverRangePrefix: ""
enableGlobalCache: false
logFilters:
- code: YN0013
level: discard
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.0.1.cjs What I do is run
At this point it can't even be killed by |
Ok, so it eventually finishes and the resolution step alone took |
Also, it does not seem to be connected strongly to a number of selected packages… I just tried it with like three times as many and it took 6m37s |
I have this issue too, can take over 4 minutes
|
Same here 2m 3s I have a pretty big monorepo and I just have to guess it has to with that. It started with Can we figure out why this is happening? 😄 |
Can one of you provide us with a reproduction case in a new issue? It's possible you trigger some sort of pathological case, but it's impossible to say without looking at the same thing. |
package.json |
I’ve run it with function YI(t, e) {
for (let r of t) {
let o = e(r);
if (o !== dne)
return o
}
} being called from function Kst() {
if (process.platform === "darwin" || process.platform === "win32")
return null;
let e = (process.report?.getReport() ?? {}).sharedObjects ?? []
, r = /\/(?:(ld-linux-|[^/]+-linux-gnu\/)|(libc.musl-|ld-musl-))/;
return YI(e, o=>{ ... The values in [
"linux-vdso.so.1",
"/lib/x86_64-linux-gnu/libdl.so.2",
"/lib/x86_64-linux-gnu/libstdc++.so.6",
"/lib/x86_64-linux-gnu/libm.so.6",
"/lib/x86_64-linux-gnu/libgcc_s.so.1",
"/lib/x86_64-linux-gnu/libpthread.so.0",
"/lib/x86_64-linux-gnu/libc.so.6",
"/lib64/ld-linux-x86-64.so.2",
"/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2"
] |
Looks like this is a manifestation of Node bug nodejs/node#46060 |
Oh, right, this bug becomes a duplicate of #5167 |
Self-service
Describe the bug
When running
yarn install
or justyarn
, the installer seems to hang at one package during the Resolution Step, seemingly using 0 resources overall. This happens on version 3.2.0, when using both public and private sources (all of them are public, only one is private), hanging always on a public package, not always the same though, but it seems to cycle through them. Making the systemwait
before installation seems to get it farther in, but it fixees nothing.The packages install fine using npm.
To reproduce
Remove the lockfile and run
yarn
with a lockfile that contains 1987 packages, one of them from a private repo requiring SSH authentication.Environment
System: OS: Linux 5.16 Parrot OS 5.0 (Electro Ara) 5.0 (Electro Ara) CPU: (4) x64 Intel(R) Celeron(R) N4120 CPU @ 1.10GHz Binaries: Node: 16.14.2 - /tmp/xfs-16d9b8e0/node Yarn: 3.2.0 - /tmp/xfs-16d9b8e0/yarn npm: 8.6.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: