zola: GLIBC error when deploying version 0.14.1+ to Vercel or CloudFlare

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:

15:26:35.839 | Executing user command: zola build
-- | --
15:26:35.842 | zola: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by zola)
15:26:35.842 | zola: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by zola)
15:26:35.842 | zola: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by zola)
15:26:35.843 | Failed: build command exited with code: 1

And on Vercel:

Installing Zola version 0.14.1
--
15:15:23.499 | zola: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by zola)
15:15:23.500 | zola: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by zola)
15:15:23.500 | zola: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by zola)
15:15:23.503 | Error: Command "zola build" exited with 1

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.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (6 by maintainers)

Most upvoted comments

Have you tried using Netlify latest image? I deployed my personal site with it and 0.15.3 yesterday

Is this solved on Vercel? if not? how to? Or should I look for netifly or cloudflare instead?

zola: /lib64/libm.so.6: version GLIBC_2.27 not found (required by zola) zola: /lib64/libm.so.6: version GLIBC_2.29 not found (required by zola) zola: /lib64/libc.so.6: version GLIBC_2.28 not found (required by zola) Error: Command "zola build" exited with 1

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.

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.

How about build zola with musl? I have good success with my projects using https://github.com/messense/cargo-zigbuild

Very pleased to say that Zola 0.17.2 works wonderfully on Vercel by updating the Node.js version in settings to v20.

[21:26:52.606] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[21:26:52.699] Cloning github.com/dstaley/dstaley.com (Branch: node-v20-zola, Commit: 65c5bf3)
[21:26:53.321] Previous build caches not available
[21:26:53.384] Cloning completed: 683.855ms
[21:26:53.608] Running "vercel build"
[21:26:54.099] Vercel CLI 32.5.5
[21:26:54.733] Installing Zola version 0.17.2
[21:26:55.237] Building site...
[21:26:55.311] Checking all internal links with anchors.
[21:26:55.311] > Successfully checked 0 internal link(s) with anchors.
[21:26:55.312] -> Creating 9 pages (0 orphan) and 1 sections
[21:26:56.735] Done in 1.5s.
[21:26:56.735] 
[21:26:56.758] Build Completed in /vercel/output [2s]
[21:26:56.799] Deploying outputs...
[21:26:57.435] Injected preview comments middleware, you can disable this in your project settings.
[21:26:57.983] 
[21:26:58.262] Deployment completed
[21:26:59.198] Uploading build cache [29.00 B]...
[21:26:59.594] Build cache uploaded: 395.685ms

Thank you @hannobraun for letting us know, and thank you @Keats for everything you do!

Cloudflare Pages is working now. I just successfully deployed a page using Zola 0.17.2.

ubuntu-16.04 is not supported anymore on Azure pipelines

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 ubuntu-16.04.

Has anyone figured out how to contact the CloudFlare pages team? We’re 6 months and 6 versions behind now.

I opened https://github.com/cloudflare/cloudflare-docs/issues/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.