Create an install-able RPM from rebar3 release

Ben Adams ben@REDACTED
Tue Dec 14 19:56:19 CET 2021


Hello everyone,

I'm working on creating an installable version of my app in RPM and DEB format.

When starting the app after rpm install:

===============================
/usr/app/rel/app1/bin/app1 foreground
Exact ERTS version (12.1.5) match not found, instead using 12.1.5. The release may fail to run.
init terminating in do_boot ({load_failed,[logger_simple_h,logger_config,logger_backend,logger_server,logger_filters,logger,kernel,heart,file_io_server,file_server,file,error_logger,code_server,code,a

Crash dump is being written to: erl_crash.dump...done

===============================

This is my build script:

===============================
# Build Code
./rebar3 release

# Start RPM BUILD PROCESS
mkdir -p rel/usr/app1

rsync -avz _build/default/ rel/usr/app1/
fpm -s dir \
    -t rpm \
    --depends erlang \
    -n app1 \
    -C "$(pwd)/rel" \
    -v 0.0.1 \
    --iteration 1
===============================
When installing the app all files look to be there, build and target are using erlang 24
Both servers have the same versions installed:

===============================
[root@REDACTED ~]# rpm -aq erlang-erts erlang
erlang-erts-24.1.7-1.fc35.x86_64
erlang-24.1.7-1.fc35.x86_64

===============================

Not sure what the process is for fixing the problem.

Happy Holidays!!

Thank you,

Ben Adams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20211214/2191efd3/attachment.htm>


More information about the erlang-questions mailing list