-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Google Cloud Functions deployment fails after upgrading to sharp 0.33.0, _ZSt28__throw_bad_array_new_lengthv: symbol not found #3872
Comments
Hello, my understanding of Google Cloud Functions is that they provide glibc-based Ubuntu Linux. https://cloud.google.com/functions/docs/concepts/execution-environment
However this error message suggests you're using a musl-based operating system such as Alpine Linux. My best guess would be that you're using a Docker image with an outdated version of nodejs/node#41058 might be relevant. |
@bhr Were you able to make any progress with this? |
@lovell your best guess is right, we're using a docker image to deploy the GCF. Gonna take a look at this today. |
Thanks for the update, if you need further help please provide a Dockerfile that allows someone else to reproduce. |
Tried to add Simplified docker file:
|
These look like commands used to deploy your function(s). To be able to reproduce, please provide a Dockerfile that describes/creates the runtime that you are deploying. (The use of |
Actually, our Dockerfile is not an issue. Local deployment of the Firebase Cloud Functions work. It just fails in Cloud Build, where we use the firebase community builder image. Looking at the Dockerfile source, I can see it uses |
For anyone who comes across this, the solution to resolve the issue is to rebuild the firebase community builder image as outlined here. |
Thank you for the update, glad to hear you got it working. |
Possible install-time or require-time problem
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Are you using a supported runtime?
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
Are you using a supported package manager?
If you cannot confirm any of these, please upgrade to the latest version and try again before opening an issue.
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?Description
After upgrading to sharp 0.33.0, Google Cloud Functions deployment fails with the following error:
package.json
The text was updated successfully, but these errors were encountered: