-
Notifications
You must be signed in to change notification settings - Fork 4
Running two instances of yarn
causing issues?
#108
Comments
@jessestorbeck this is definitely related to #110, it's maybe a different problem. So the What I can't tell in @jodeleeuw is whether the problem is that |
@jodeleeuw -- addressing another thing you raised above, the CLI definitely needs to be more consistent in terms of what is done synchronously and what is asynchronous. I've tried to use async wherever possible in order to speed things up. But there are definitely things that could be async and aren't. And there may be things that shouldn't be async. Usually I use async fs when we won't read the updated file any time soon. One complication is that Node isn't very good about knowing when terminal processes have finished. I remember I spent a lot of time on this two years ago and hacked things to the point where they mostly don't crash as a result, but no doubt it's less than ideal. And since it's been a couple years since I did that work, it's quite possible there are options now that weren't available then. We do accept pull requests :) |
@jessestorbeck @ayang21 have either of you noticed whether this issue has been run into lately? |
|
@jkhartshorne -- I missed this earlier, but I also haven't seen this problem in a while. |
@jkhartshorne I've been running into a couple errors lately, though I'm not sure if they're due to Docker or Yarn. Do you think they may be related? Pushkin version 3.4.0 |
@jkhartshorne we installed the basic version of the site template and experiment template and we have been running into issue on docker. We tried prep twice, using stop, kill and armageddon and also docker system prune, but it doesn't seem to help. |
Update: this network error is stochastic as well. The network error went away after running |
@ellissc @AryaanMishra -- Can we do a bit of housekeeping here first? This issue is about an error during @ellissc, it looks like the top error for you is this ENOSPC thing. I can't say I really know what's causing it, but taking it at face value, it kind of makes sense that clearing out Docker would fix the problem of not having enough space. @AryaanMishra, looking back here, I have actually seen this issue with the |
@jessestorbeck @AryaanMishra Thank you! Yeah, it looks like Docker Engine was causing the issue. For some reason, our lab computer was running Docker Engine v20, even though we had the newest version of Docker Desktop. I was able to get Docker Engine v24.0.6, and that fixed the issue. Thank you for your help! |
On a clean install of pushkin, attempting to run
pushkin install site
I get this kind of error:I think this is fixable by just running the command again, but I suspect the root cause of this is that
pushkin-cli
is trying to run multiple parallel instances ofyarn
when it builds the api and front-end asasync
events.pushkin-cli/src/commands/sites/index.js
Lines 159 to 160 in d0c3750
Before I make a PR on this, I just wanted to see if I'm missing anything. Clearly there was some deliberate choice to make all of the
fs
operations async in this part of the code, so I'm wondering if there's a reason to notawait
the completion of each of those before moving on to the next.The text was updated successfully, but these errors were encountered: