-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Yarn causing to fail to build Docker container (ENOENT lstat) #3727
Comments
Lot of similar looking errors in yarn repo yarnpkg/yarn#4563 |
Yes I read them! And also tried a couple workarounds found there at https://github.com/publiclab/plots2/pull/3728/files |
Sorry, yeah, just wanting to document what we've tried, thanks! |
Perhaps we can improve our Yarn deployment strategy taking some ideas from https://hackernoon.com/using-yarn-with-docker-c116ad289d56 - not sure if some version locking could help prevent issues like this. |
Hm, like including a |
Oh, like the section on Is this an intermittent issue or does the process always fail? |
Wondering if @Souravirus would be able to help figure this out, as he originally helped complete the Yarn transition work in #2659 ? |
Yeah sure @jywarren, I would try my best to help |
@jywarren yarn.lock is already included in our code |
Here's another report from a similar issue with npm. I guess this is a permissions issue, possibly coming from an npm package, and arising from mounting the |
While I was creating this fix: #3775, I realised this issue. I'm able to reproduce it locally very well. I believe it's because of old yarn.lock file. After the new yarn.lock file, even if I delete modules directory, it doesn't give me this error. May be we should commit that file with latest changes ? |
How did you reproduce this error locally @Radhikadua123? |
|
Hi! Very cool, could you share a link to a branch on GitHub where youve
reproduced this and sourav can push it to our unstable container to see if
it gets solved there? Then we can try merging in your changes here.
…On Thu, Oct 25, 2018, 3:01 PM Radhika Dua ***@***.*** wrote:
@Souravirus <https://github.com/Souravirus>
rm -rf public
git checkout public
yarn parameters (it would give same error but there would be changes in the yarn.lock)
yarn parameters (Run it again and it won't give error. I think due to yarn.lock changes)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3727 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7FDTg4HITDqzFTax_DVhSNpG4-Sks5uogpagaJpZM4XyP_s>
.
|
Yeah sure. @Radhikadua123 please update your changes in one of your branches and share it here, so that I can try pushing it in unstable branch. |
@jywarren @Souravirus Let me push them to #3775 |
@jywarren updating the yarn.lock worked. Here is the link to the Jenkins result https://jenkins.laboratoriopublico.org/job/Plots-Unstable/322/console. Please see #3775. |
Hi Radhika
Please yes, make the push for that commit and we can test it! Currently
we push to `unstable` branch and it automatically gets deployed to
https://unstable.publiclab.org/ - we would push your commits to that
branch and see whether it deploys correctly or not!
Thanks!
…On 25/10/18 12:14, Radhika Dua wrote:
While I was creating this fix: #3775
<#3775>, I realised this
issue. I'm able to reproduce it locally very well. I believe it's
because of old yarn.lock file. May be we should commit that file with
latest changes ? I can push the fix in that PR but I'm not sure how it
will be tested in docker since I'm completely unaware of CI setup.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3727 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS7VkKdndzNoAXJNIoTuz064EioZqks5uofGIgaJpZM4XyP_s>.
|
Oh, cool!
…On 25/10/18 15:51, Sourav Sahoo wrote:
@jywarren <https://github.com/jywarren> updating the yarn.lock worked.
Here is the link to the Jenkins result
https://jenkins.laboratoriopublico.org/job/Plots-Unstable/322/console.
Please see #3775 <#3775>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3727 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMSxu8Haa1iIN5NmfkBZ5d7lUbfxnEks5uoiQ3gaJpZM4XyP_s>.
|
Fixed with #3775 |
Issue appears to be intermittent...
The text was updated successfully, but these errors were encountered: