processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6k stars 1.5k forks source link

Self-Compile ejabberd rebar3 resulting in ejabberd init process crash. Erlang/OTP 25 #4185

Closed thealacer closed 3 months ago

thealacer commented 3 months ago

Environment

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

Compile Commands:

Not working with rebar 3 Self Compile Configuration:

Working with rebar Self Compile Configuration:

loglevel: error
...

Errors from error.log/crash.log

=erl_crash_dump:0.5
Wed Mar 27 22:03:49 2024
Slogan: init terminating in do_boot ({undef,[{ejabberd,start,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
System version: Erlang/OTP 25 [erts-13.1.5] [source] [64-bit] [smp:128:2] [ds:128:2:10] [async-threads:1] [jit:ns]
Taints:
Atoms: 8773
Calling Thread: scheduler:2
=scheduler:1

Bug description

Step to Product/Re-Produce:

thealacer commented 3 months ago

The Issue is not in Ejabberd rather on my compile script Since I was Compiling rebar3 from source as well.

Therefore if anyone is going to Self Compile rebar3 please use below option for ejabberd compile configuration:

In case if you want to use the rebar3 downloaded along ejabberd repo clone, please use below option for ejabberd compile config:

licaon-kter commented 3 months ago

That's how I use it :)