-
Notifications
You must be signed in to change notification settings - Fork 991
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
GLIBC error when deploying version 0.14.1+ to Vercel or CloudFlare #1713
Comments
I saw the same error this evening while trying out Cloudflare Pages. I used Zola v0.15.2 by setting the
Several people on the Cloudflare community site have had the same problem. No resolution yet. |
Hmm must be one of the updated dependencies but not sure which. |
From the thread:
Not sure who it is that knows about the issue though. Someone in the Cloudflare dev team? |
I opened cloudflare/cloudflare-docs#3043 to request the max Zola version be documented there. I also commented that it'd be nice to get the update but I'm not sure how to request that. No idea either where to ask for the Vercel update. I'd assume that Netlify has a similar issue but I haven't tried yet. |
Has anyone figured out how to contact the CloudFlare pages team? We're 6 months and 6 versions behind now. |
I can confirm the same issue happens on Netlify. Rolling back to 0.14.0 was necessary there as well. |
Have you tried using Netlify latest image? I deployed my personal site with it and 0.15.3 yesterday |
Thanks @Keats, I can confirm that building with the newer image on Netlify solved this problem for me! 🚀 To change the build image in Netlify, go to Deploy settings -> Build image selection, and select the newer one (Ubuntu Focal). |
I need to update the docs, it was failing as well for me 16.04 |
Thanks @Keats bumping the image to latest fixed it for me too 🎉 |
How about build zola with musl? I have good success with my projects using https://github.com/messense/cargo-zigbuild |
Pretty sure libsass (and potentially other libs) are not going to work on musl |
Vercel's builders run in an amazonlinux container, which uses outdated glibc. I tried to build zola 0.15.3 from source in that environment, and it works fine. Here is my compiled zola binary for vercel environment. You can also build it yourself if you can't trust it. |
Thanks this work for now! |
This should be a non-issue, actually. Zola is in the community repos on Alpine Linux, which musl, and has worked fine for me in the past. The package is even for 0.15.3 on all architectures. |
I can confirm that building with musl just works. However, as @Keats pointed out here it's probably not a good idea to ship a binary build with musl. The issue is caused by this commit. The simplest fix would be to revert the base image back to |
|
@Keats Azure Pipelines supports running jobs in containers with a small modification to the workflow syntax. As explained in this blog post (opperating under the assumption that GitHub Actions and Azure Pipelines are two slightly different veneers over the same infrastructure), this can allow you to build a binary release of Zola that supports a wider range of glibc versions by using a container that ships with an older version of glibc. You could use a container image of |
That wouldn't work with the current rustc version required by Zola afaik? |
@Keats I think it does! I created builds using |
Has it been updated? See #2179 (comment) |
@Keats Vercel has not been updated, and continues to use glibc 2.26 (which is the same glibc version currently used by AWS Lambda, the infrastructure provider for Vercel's build system).
The v0.17.2 binary of zola contains references to 2.27, 2.28, and 2.29.
|
Cloudflare Pages is working now. I just successfully deployed a page using Zola 0.17.2. |
Ok I'm going to close this issue then since there's nothing actionable on my end and it will work again automatically when providers upgrade their images. |
Thank you @hannobraun for letting us know, and thank you @Keats for everything you do! |
Is this solved on Vercel? if not? how to?
|
netlify works, vercel is still broken |
Vercel is using 0.13.0, I hope they will update to at least 0.17.2. I run into problems compiling sass using the older version... |
Very pleased to say that Zola 0.17.2 works wonderfully on Vercel by updating the Node.js version in settings to v20.
|
Bug Report
Environment
Zola version: 0.15.2
Expected Behavior
Zola sites can deploy with the framework presets on the documented providers. I don't actually know if this is a thing the maintainers of Zola can fix or if this needs to be an issue opened with each provider.
Current Behavior
I have tried deploying both to Vercel and CloudFlare and get similar issues. Here is the output on CloudFlare:
And on Vercel:
Note that I tried on the latest 0.15.2 on both platforms as well as the older 0.14.1 on Vercel and got the same results. 0.14.0 seems to build on both, though I'm going to have to adjust my source to work with that.
Step to reproduce
Follow the guide to create a basic Zola site, then deploy to Vercel or CloudFlare using version 0.14.1 or newer. For example, follow this guide and set the
ZOLA_VERSION
environment variable to 0.15.2.The text was updated successfully, but these errors were encountered: