Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on start of ejabberdctl #4241

Open
bluemle opened this issue Jul 1, 2024 · 3 comments
Open

Crash on start of ejabberdctl #4241

bluemle opened this issue Jul 1, 2024 · 3 comments

Comments

@bluemle
Copy link

bluemle commented Jul 1, 2024

Environment

  • ejabberd version: 24.06-1
  • Erlang version: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 15.0
  • OS: Linux (Arch)
  • Installed from: distro package

Bug description

I get the following error when trying to start jabberdctl as non-root user:

(no logger present) unexpected logger message: {log,error,"Error in process ~p with exit value:~n~p~n",[<0.43.0>,{badarg,[{persistent_term,get,[code_server],[{error_info,#{module=>erl_erts_errors}}]},{code_server,get_mode,0,[{file,"code_server.erl"},{line,75}]},{code,ensure_loaded,1,[{file,"code.erl"},{line,558}]},{error_handler,undefined_function,3,[{file,"error_handler.erl"},{line,84}]},{logger_backend,call_handlers,3,[{file,"logger_backend.erl"},{line,51}]},{proc_lib,exit_p,3,[{file,"proc_lib.erl"},{line,350}]}]}],#{error_logger=>#{emulator=>true,tag=>error},pid=><0.43.0>,time=>1719877673381543,gl=><0.0.0>}} Kernel pid terminated (logger) ({badarg,[{persistent_term,get,[code_server],[{error_info,#{module=>erl_erts_errors}}]},{code_server,get_mode,0,[{file,"code_server.erl"},{line,75}]},{code,ensure_loaded,1,[{file,"code.erl"},{line,558}]},{error_handler,undefined_function,3,[{file,"error_handler.erl"},{line,84}]},{logger_backend,call_handlers,3,[{file,"logger_backend.erl"},{line,51}]},{proc_lib,exit_p,3,[{file,"proc_lib.erl"},{line,350}]}]})

Does anyone have an idea what causes this error? It does not occur if I run jabberdctl as root.

Thank you

@licaon-kter
Copy link
Contributor

What if you start it as its user, that you've setup, like sudo -u ejabberd ejabberdctl ?

@bluemle
Copy link
Author

bluemle commented Jul 2, 2024

Yes, I tried this as well but getting the same error unfortunately.
sudo -u jabber ejabberdctl

@mremond mremond changed the title Crash on start of jabberdctl Crash on start of ejabberdctl Jul 3, 2024
@badlop
Copy link
Member

badlop commented Sep 9, 2024

OS: Linux (Arch)
Installed from: distro package
It does not occur if I run jabberdctl as root.

Do you mean that you installed using the Arch package? Maybe it's a problem in that package? You could try installing its latest version. Or maybe that package is designed to be ran bu root?

In the meantime, if you find no other solution, you can of course compile ejabberd yourself, or use a binary installer which should support running by a regular user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants