Soheil__K
Soheil__K

Reputation: 638

Ejabberd user registration command fails with {error,access_rules_unauthorized}

I've been trying to set up an XMPP server using ejabberd on windows. every time I try to register a user in ejabberd with this command:

ejabberdctl register admin localhost admin

it gives me this error:

{error,access_rules_unauthorized}

I've installed the ejabberd using its binary installer and according to "install.log" file, the installer also fails to create a user due to the same error.

Part of the log file:

E:\Program Files\ejabberd-16.08\bin>bash ejabberdctl register "admin" "localhost" "admin" 
{error,access_rules_unauthorized}

ejabberd.yml config file:

access_rules:
  register:
    - allow

I've gone even to the 100th search of the google, but found nothing similiar yet. So any help on how to fix this is strongly appreciated.

Upvotes: 3

Views: 4317

Answers (3)

Fakhar Iqbal
Fakhar Iqbal

Reputation: 4067

Version 16.06 work for me in windows10, before installation keep firewall off.

Upvotes: 0

mrspl
mrspl

Reputation: 511

It seems like this is an error in ejabberd 16.08 and has been fixed in the git master.

For the corresponding issue, see https://github.com/processone/ejabberd/issues/1231.

Upvotes: 2

Corrector
Corrector

Reputation: 51

Try version 16.06 instead of 16.08 from downloads archive https://www.process-one.net/en/ejabberd/archive/ It solved my issue on Centos.

Upvotes: 3

Related Questions