-
Notifications
You must be signed in to change notification settings - Fork 21
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
Partial download of codegen #394
Comments
None of the usual tools on Linux (gdb, ldd) seems to recognize the kalix-codegen-js.bin as a executable although file says:
readelf, maybe these errors are a hint about what's wrong?:
|
Hmm, tried to download the binary manually and getting a lot of disconnects from the Lightbend repo, maybe node doesn't handle that well and that's why the file is incomplete: https://repo.lightbend.com/raw/kalix/versions/1.0.0/kalix-codegen-js-x86_64-apple-darwin Downloading with wget keeps retrying until it has the whole file and that then can be called wihout segfaults. The successfully/manually downloaded one is 17mb, looking in node_modules that binary is just 6.3mb |
It seems |
Didn't figure out a way to detect this, body is a stream so would have to be comparing IT team is looking into why repo downloads are partial/closing connection though, so maybe that will sort this out. |
That's unpleasant. Seems to fail the downloads quite often. Have also had a play around with detecting. Couldn't get any errors from the stream until trying it on Node 16, where it will signal this error event on the response body:
Following the changes there, it seems that it should have an Can also use
I'll push up a draft that captures this at least. We could add retries on top. Depending on what the underlying issue is, repo proxy or cloudsmith, we could also look at having these downloads somewhere else, like downloads.lightbend.com (S3). |
Created shopping cart quickstart and tried to build it
On Linux x86_64:
On darvin arm64:
The text was updated successfully, but these errors were encountered: