pcriv
erlexec: cannot execute binary file
I’m trying to build a Phoenix app using Docker, to later deploy it to dedicated servers
I followed this tutorial but used centos:7 as a base image instead because the dedicated servers are running that distro.
The build process works fine, but when in shell into the container to test the release I get the following:
[root@f02a27a87345 topo_master]# bin/topo_master start
/app/_build/prod/rel/topo_master/releases/1.4.0/../../erts-14.2.1/bin/erl: line 12: /app/_build/prod/rel/topo_master/erts-14.2.1/bin/erlexec: cannot execute binary file
/app/_build/prod/rel/topo_master/releases/1.4.0/../../erts-14.2.1/bin/erl: line 12: /app/_build/prod/rel/topo_master/erts-14.2.1/bin/erlexec: Success
When I cd into /app/_build/prod/rel/topo_master/erts-14.2.1/bin
I get the following error:
[root@f02a27a87345 bin]# erlexec
bash: erlexec: command not found
Any idea what could be going on?
I’m running Docker version 24.0.7, build afdd53b4e3
on a M1 Mac on MacOS 14.1.2 (23B92)
Most Liked
D4no0
If you are building it on your mac, you are most probably building the image for ARM, while your classical server is using x86-64. For cross-compilation I think you need to setup qemu locally.
1
Popular in Questions
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
Hi,
I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
can someone please explain to me how Enum.reduce works with maps
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Hi everyone,
One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New








