Deployment fails with `/app/erts-12.3.2.1/bin/beam.smp ... symbol not found`

I am suddenly getting errors while deploying, even though I didn’t change anything in my dockerfile or any code that might affect deployment.

Error relocating /app/erts-12.3.2.1/bin/beam.smp: _ZSt28__throw_bad_array_new_lengthv: symbol not found
Error relocating /app/erts-12.3.2.1/bin/beam.smp: pthread_getname_np: symbol not found
Main child exited normally with code: 127

Logs:

This release will not be available until the release command succeeds.
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine
         Starting init (commit: e3eb6d2)...
         Setting up swapspace version 1, size = 536866816 bytes
         UUID=<UUID>
         Preparing to run: `/app/bin/<MY_APP> eval <MY_APP>.Release.migrate` as nobody
         2022/06/13 19:56:40 listening on [<IP>]:22 (DNS: [fdaa::3]:53)
         Error relocating /app/erts-12.3.2.1/bin/beam.smp: _ZSt28__throw_bad_array_new_lengthv: symbol not found
         Error relocating /app/erts-12.3.2.1/bin/beam.smp: pthread_getname_np: symbol not found
         Main child exited normally with code: 127
         Starting clean up.
2 Likes

Hi! I have the same issue on my CI.

--> You can detach the terminal anytime without stopping the deployment
==> Release command detected: /app/bin/<app> eval <app>.Release.migrate
--> This release will not be available until the release command succeeds.
	 Configuring virtual machine
	 Pulling container image
	 Preparing kernel init
	 Configuring firecracker
	 UUID=
	 2022/06/13 20:24:14 listening on []:22 (DNS: [fdaa::3]:53)
	 Error relocating /app/erts-12.3.2.1/bin/beam.smp: pthread_getname_np: symbol not found
symbol not found
	 Main child exited normally with code: 127
	 Starting clean up.
Error release command failed, deployment aborted
1 Like

Hi. Federico’s coworker here.

I found the solution to our problem here:

In our case it was because we are using elixir:1.13.4-alpine and alpine:3.13.0
And recently elixir-alpine did a change and our alpine version doesn’t work anymore.
To fix the issue, we updated our dockerfile to use alpine 3.16.

FROM alpine:3.16.0 AS app

Now working as expected.
Hope this helps!

2 Likes