[Bug]: ARM64 Docker image crashes on startup (GLIBC_2.38 not found by sqlite3) #775
Labels
No labels
MediaFlow Proxy
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
help wanted
invalid
question
wontfix
🇩🇪 German
🇫🇷 French
🇮🇳 Indian
🇸🇦 Arabic
🌐 Multi
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/webstreamr-github#775
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I recently tried spinning up the latest webstreamr/webstreamr Docker image on an ARM64 Oracle Server, but the container immediately gets stuck in a crash loop on startup.
The issue seems to be a glibc version mismatch with the prebuilt sqlite3 binary pulled during the image build process.
Error Logs:
When checking the container logs, it instantly throws this ERR_DLOPEN_FAILED error:
Root Cause:
The precompiled ARM64 sqlite3 binary that npm downloads requires GLIBC_2.38. However, the base image being used in the Dockerfile (node:24, which currently defaults to Debian Bookworm) ships with an older version of glibc. When Node.js tries to load the database engine, it crashes the container.
Suggested Fixes:
I was able to fix this locally by cloning the repo and modifying the Dockerfile.
Option 1: Force sqlite3 to build from source (Easiest)
By appending
--build-from-source=sqlite3to the production install step in the Dockerfile, npm will compile the C++ binary against the container's native glibc rather than downloading the incompatible prebuilt binary.Change this:
Option 2: Update the Base Image OS
Switching the base image to a modern OS that natively includes GLIBC_2.38 or newer (like Ubuntu 24.04) would allow the prebuilt sqlite3 binaries to run right out of the box.
I am on Ubuntu 24.04 but got this same error after updating the image this morning.
Sorry for that. Can you check if it's better now, please?
I am getting the same issue after the latest release. I am also on Ubuntu 24.04
I've just pulled latest and redeployed but getting the same error.
Maybe now? 🙃
I downgraded sqlite again. Can only take a close look a bit later.
Yup that works, thank you!
Great, thx! I'll test the upgrade properly next time. Sorry.
It's all good thank you
Can confirm the latest build works for me now thank you