-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Error: unexpected end of file while fetching packages during yarn install #4412
Comments
That looks like a network or system issue. Also, your yarn version looks a bit old. If you switch to a newer version, you may get a more informative error message helping you diagnose the problem. |
@BYK I've upgraded to 0.28.4 (1.0.1 has some different folder settings). But I'm still facing the same issue/log. We just connect with our own artifactory (which we also do from our local machines where we never have this issue). The log isn't clear. |
@MaxCCC can you elaborate on why you cannot use 1.0.1 since there are many fixes on it. Actually, I'd highly recommend using one of the latest nightlies since they have even more fixes. |
May be it is reporting an incorrect |
@BYK
I don't know. Even with -e or -X options it's not telling me anything more. I don't know much about the content-length header |
Which version of Node are you using? That sounds like due to an older version of Node not supporting a new option we are using in yarn. Node 4.8, or 5.7+ should be fine for 1.0 For the issue you are experiencing, if you can find a way for us to replicate it, I'd be more than happy to help. Right now I really don't know how or why it happens. If you can switch to 1.0, then I may be able to add more tracing or get you a specific build with more logging for debug. |
@BYK I"ll try to provide some more info. (To upgrade to 1.0 I have to ask/speak with some other people first).
The command which we are executing is
The dependencies are coming from our registry |
@BYK adding
It's maybe a duplicate of expo/create-react-native-app#120 and #4018 but I don't know how to debug this network issue? We use our own artifactory, for npm it's working fine (always). The GET URL's provide an expected output with the URL of our repo on artifactory so it does not try to go to the internet. Is there a way to increase retry's or timeouts or max connections? It seems to me it works very often a second run (like some connections remain open?) I have to wait for the new release of the plugin to use yarn 1.0.0 or yarn 1.0.1 |
@BYK Now we try to connect to our registry without https. |
May I ask why you are setting |
On our Jenkins on Linux (we use version 1.4 of the frontend-maven-plugin)
We get this error in 50% of our run's of the job. So sometimes it's working. The unexpected end of file is always on another file so it has nothing to do with that.
Is it a network 'issue'? Sometimes a network warning appears during the fetch. Can we extend some timeout of give jenkins more time to fetch the right packages?
The text was updated successfully, but these errors were encountered: