cli: Error: version `GLIBC_2.29' not found, Failed to serve assembly starter project using Docker Image -
Failed to locally serve using viceroy for Dockerfile-assemblyscript instance
Refer:https://github.com/fastly/cli/blob/main/Dockerfile-assemblyscript
Error:
/root/.config/fastly/viceroy: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /root/.config/fastly/viceroy)
ERROR: error during execution process:
Steps to reproduce:
Step 1:
docker build -t fastly/cli/assemblyscript . -f ./Dockerfile-assemblyscript
docker run -v $PWD:/app -it fastly/cli/assemblyscript
Step 2:
gh repo clone fastly/compute-starter-kit-assemblyscript-default
or
git clone git@github.com:fastly/compute-starter-kit-assemblyscript-default.git
Step 3:
docker run -v $PWD:/app -it fastly/cli/assemblyscript compute init --from=https://github.com/fastly/compute-starter-kit-assemblyscript-default
Creating a new Compute@Edge project (using --from to locate package template).
Press ^C at any time to quit.
Name: [app]
Description:
Author:
✓ Initializing...
✓ Fetching package template...
✓ Updating package manifest...
✓ Initializing package...
Initialized package app to:
/app
To publish the package (build and deploy), run:
fastly compute publish
To learn about deploying Compute@Edge projects using third-party orchestration tools, visit:
https://developer.fastly.com/learning/integrations/orchestration/
SUCCESS: Initialized package app
Step 4:
docker run -v $PWD:/app -it fastly/cli/assemblyscript compute build
✓ Initializing...
✓ Verifying package manifest...
✓ Verifying local assemblyscript toolchain...
✓ Building package using assemblyscript toolchain...
✓ Creating package archive...
SUCCESS: Built package 'app' (pkg/app.tar.gz)
Step 5:
docker run -v $PWD:/app -it fastly/cli/assemblyscript compute serve
✓ Initializing...
✓ Verifying package manifest...
✓ Verifying local assemblyscript toolchain...
✓ Building package using assemblyscript toolchain...
✓ Creating package archive...
SUCCESS: Built package 'app' (pkg/app.tar.gz)
✓ Checking latest Viceroy release...
✓ Fetching latest Viceroy release...
✓ Running local server...
/root/.config/fastly/viceroy: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /root/.config/fastly/viceroy)
ERROR: error during execution process:
/root/.config/fastly/viceroy: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /root/.config/fastly/viceroy).
If you believe this error is the result of a bug, please file an issue: https://github.com/fastly/cli/issues/new?labels=bug&template=bug_report.md
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15
Thanks, @torch2424
It works with the latest release
Hello! First, thank you @byteshiva for all of the super detailed information on the issue! It’s super helpful! 😄 And thanks for taking the time to open an issue!
@Integralist Yes! I think you are 100% correct it’s a
@fastly/as-urlbug, related to handling “localhost” urls. And looking through our internal issues and pull requests, we have a PR opened and ready to merge to fix this! So once that is done, I’ll go ahead and push out the version, and update this issue 😄@torch2424 Could you maybe review this issue as I might have mis-read the error(s).
It might be related to something within the AssemblyScript library as per this line…
Thanks.
Also, just a quick FYI, you don’t need to run
compute buildand thencompute serveas the latter command internally runs the build step.If you take a look at the docs (https://developer.fastly.com/reference/cli/compute/serve/) you’ll also see you can pass a
--skip-buildflag tocompute serveif you ever did want to run the command without a build.