Skip to content
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

Hugo 0.118.0 fails on Netlify/Vercel/etc. #11414

Closed
bep opened this issue Aug 31, 2023 · 11 comments · Fixed by #11475
Closed

Hugo 0.118.0 fails on Netlify/Vercel/etc. #11414

bep opened this issue Aug 31, 2023 · 11 comments · Fixed by #11475
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Aug 31, 2023

10:17:12 AM: $ hugo --gc --minify
10:17:12 AM: hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by hugo)
hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by hugo)
hugo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by hugo)
hugo: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by hugo)

We updated the build image to use Go 1.21, which also seemed to bump GLIBC, which Netlify's Ubuntu 20.04 build image does not support ... Bummer.

@bep bep self-assigned this Aug 31, 2023
@bep bep removed the NeedsTriage label Aug 31, 2023
@bep bep added this to the v0.118.1 milestone Aug 31, 2023
@fu-sen
Copy link

fu-sen commented Aug 31, 2023

I confirm that a similar problem occurs in Vercel. (It was fine up until 0.117.0) It can also happen with other web services.

2023-08-31T09:07:24.374Z  Running build in Cleveland, USA (East) – cle1
2023-08-31T09:07:24.479Z  Retrieving list of deployment files...
2023-08-31T09:07:24.657Z
2023-08-31T09:07:25.098Z  Downloading 305 deployment files...
2023-08-31T09:07:26.480Z  Restored build cache
2023-08-31T09:07:26.532Z  Running "vercel build"
2023-08-31T09:07:27.034Z  Vercel CLI 32.1.0
2023-08-31T09:07:27.602Z  Installing Hugo version 0.118.0
2023-08-31T09:07:29.843Z  Installing dependencies...
2023-08-31T09:07:30.140Z  yarn install v1.22.17
2023-08-31T09:07:30.152Z  warning package.json: No license field
2023-08-31T09:07:30.158Z  info No lockfile found.
2023-08-31T09:07:30.161Z  warning No license field
2023-08-31T09:07:30.163Z  [1/4] Resolving packages...
2023-08-31T09:07:30.164Z  [2/4] Fetching packages...
2023-08-31T09:07:30.167Z  [3/4] Linking dependencies...
2023-08-31T09:07:30.170Z  [4/4] Building fresh packages...
2023-08-31T09:07:30.173Z  success Saved lockfile.
2023-08-31T09:07:30.176Z  Done in 0.04s.
2023-08-31T09:07:30.196Z  hugo: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by hugo)
2023-08-31T09:07:30.196Z  hugo: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by hugo)
2023-08-31T09:07:30.196Z  hugo: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by hugo)
2023-08-31T09:07:30.196Z  hugo: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by hugo)
2023-08-31T09:07:30.197Z  hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by hugo)
2023-08-31T09:07:30.197Z  hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by hugo)
2023-08-31T09:07:30.206Z  Error: Command "hugo --gc --minify" exited with 1
2023-08-31T09:07:30.859Z

@bep bep changed the title Hugo 0.118.0 fails on Netlify Hugo 0.118.0 fails on Netlify/Vercel/etc. Aug 31, 2023
@bep bep closed this as completed in 7e9092e Aug 31, 2023
@fu-sen
Copy link

fu-sen commented Aug 31, 2023

I tried Hugo 0.118.1 with Vercel and still have the same problem:

2023-08-31T10:06:09.251Z  Running build in Cleveland, USA (East) – cle1
2023-08-31T10:06:09.380Z  Retrieving list of deployment files...
2023-08-31T10:06:09.586Z
2023-08-31T10:06:10.117Z  Downloading 441 deployment files...
2023-08-31T10:06:12.097Z  Skipping build cache since Node.js version changed from "16.x" to "18.x"
2023-08-31T10:06:12.174Z  Running "vercel build"
2023-08-31T10:06:12.672Z  Vercel CLI 32.1.0
2023-08-31T10:06:13.271Z  Installing Hugo version 0.118.1
2023-08-31T10:06:14.415Z  Installing dependencies...
2023-08-31T10:06:14.707Z  yarn install v1.22.17
2023-08-31T10:06:14.718Z  warning package.json: No license field
2023-08-31T10:06:14.724Z  info No lockfile found.
2023-08-31T10:06:14.728Z  warning No license field
2023-08-31T10:06:14.729Z  [1/4] Resolving packages...
2023-08-31T10:06:14.729Z  [2/4] Fetching packages...
2023-08-31T10:06:14.730Z  [3/4] Linking dependencies...
2023-08-31T10:06:14.735Z  [4/4] Building fresh packages...
2023-08-31T10:06:14.737Z  success Saved lockfile.
2023-08-31T10:06:14.740Z  Done in 0.04s.
2023-08-31T10:06:14.760Z  hugo: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by hugo)
2023-08-31T10:06:14.760Z  hugo: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by hugo)
2023-08-31T10:06:14.770Z  Error: Command "hugo --gc --minify" exited with 1
2023-08-31T10:06:15.373Z

@brycewray
Copy link

FWIW, 0.118.1 works fine in GitHub Actions with ubuntu-latest, which as of now is Ubuntu 22.04.

@bep bep reopened this Aug 31, 2023
@bep
Copy link
Member Author

bep commented Aug 31, 2023

@fu-sen that is odd. The Hugo docs site built fine on Netlify, which I assumed meant that this was ... OK.

bep added a commit that referenced this issue Aug 31, 2023
We need to investigate these issues, but that needs to wait.

Updates #11414
@bep
Copy link
Member Author

bep commented Aug 31, 2023

OK, https://github.com/gohugoio/hugo/releases/tag/v0.118.2 reverts back to building with the old go 1.20 image, which should work for ... all. I need to push the investigation of this to another day.

@fu-sen
Copy link

fu-sen commented Aug 31, 2023

Vercel + Hugo 0.118.2 was successfully built.

@bep
Copy link
Member Author

bep commented Sep 15, 2023

@fu-sen can I ask; do you know if there's a newer build image available in Vercel compared to the one that failed for you above?

@fu-sen
Copy link

fu-sen commented Sep 15, 2023

@bep We have a choice about the Node version, but there doesn't seem to be a choice about the build image.

@jmooring
Copy link
Member

Vercel is still using Amazon Linux 2. Long term support (LTS) for Amazon Linux 2 was to have ended in June 2023. Unfortunately, Amazon decided to extend LTS until June 2025. Had they not extended the date, organizations such as Vercel would have been forced/encouraged to update to Amazon Linux 2022 or Amazon Linux 2023. Hugo v0.118.0 runs fine on both.

@bep
Copy link
Member Author

bep commented Sep 21, 2023

I have a roundabout fix for this which I will apply in a minute, but a note to my future self. Running this from an AMD64 PC will get a running Amazon Linux 2 image:

docker run --rm -v "$PWD":/aws -w /aws -i -t amazonlinux:2 /bin/bash

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants