venkatdevex
I am deploying an app with GitHub actions, this fails due to GLIBC version
home/app_user/_build/staging/rel/app/erts-13.2.2.12/bin/beam.smp: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /home/app_user/_build/staging/rel/app/erts-13.2.2.12/bin/beam.smp)
as I checked my image ldd --version it has 2.39 but Erlang expects 2.38, I did try downgrading this to 2.38, but that didn’t help.
here is yml I used to downgrade
name: Elixir CI staging
on:
push:
branches: [ main, master, release ]
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
env:
MIX_ENV: production
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: SSH Agent
uses: webfactory/ssh-agent@v0.7.0
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.0
elixir-version: 1.16.0
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- uses: actions/cache@v3
with:
path: |
assets/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install GLIBC 2.38
run: |
sudo apt-get update
sudo apt-get install -y wget build-essential
sudo apt-get install gcc-10 g++-10
export CC=gcc-10
export CXX=g++-10
wget http://ftp.gnu.org/gnu/libc/glibc-2.38.tar.gz
tar -xvzf glibc-2.38.tar.gz
cd glibc-2.38
mkdir build
cd build
../configure --prefix=/opt/glibc-2.38 CFLAGS="-O2 -Wno-error"
make -j$(nproc)
sudo make install
sudo ldconfig
export LD_LIBRARY_PATH=/opt/glibc-2.38/lib:$LD_LIBRARY_PATH
- name: Verify GLIBC version
run: ldd --version
- name: Install mix dependecies
run: mix deps.get
- name: Install node dependencies
run: npm install --prefix ./assets --legacy-peer-deps
- name: Deploy assets
run: npm run deploy --prefix assets
- name: Digest assets
run: mix phx.digest
- name: Create Release
run: mix release --overwrite
- name: Verify GLIBC version
run: ldd --version
does anyone has faced this issue ??
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
karlosmid
Hi, github actions runner was updated to
ubuntu 24.04.Check your Dockerfile ubuntu version and put that version in
runs-oninstead ofubuntu-latest.