Cannot register admin "Error: cannot_register"
yltozh commented on Apr 27, 2017
What version of ejabberd are you using?
17.04
What operating system (version) are you using?
Ubuntu 16.04
How did you install ejabberd (source, package, distribution)?
What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?
Useradmin is supposed to be created after I type this command ejabberdctl register admin localhost password but what I got back from terminal is Error: cannot_register
No error message in the log. @cromain Owner cromain commented on May 2, 2017
you should run ejabberdctl as 'ejabberd' user, when ejabberd is started and running. I guess you not not meet these requirements. @yltozh yltozh closed this on May 2, 2017 @sunnyalxe sunnyalxe commented on Nov 24, 2017
I am doing same but still same issue is coming. I can not find any error in log files(ejabberd.log,error.log,crash.log) My system :Ubuntu 16.4 My System User: hb
To compile ejabberd execute the commands: ./configure --enable-user=hb --enable-mysql
To create user I have used ejabberdctl register mehul myemail@myhost.com 123456 Result: Error: cannot_register @moekur moekur commented on Dec 9, 2017 •
Hi,
Please ensure your host section on your ejabberd.yml includes the right hostname, eg. below: hosts:
"DESKTOP-FJ1ETVN"
"localhost"
BR @mmehrle mmehrle commented on Dec 10, 2017 •
I had problems with this as well. Solution on CentOS was to find the correct ejabberd.yml file which was NOT the one in /opt/ejabberd/conf/ but the one in /opt/ejabberd-17.11/conf/
Make sure that your hostname reflects your domain, e.g. instead of host.example.com make it example.com if your user is admin@example.com
Once that is verified su into the user ejabberd and call the command:
ejabberdctl register admin admin example.com my_super_secret_pwd