-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
I am getting error AccessRules: Account does not have the right to perform the operation when I am using postman to hit the register api of ejabberd. #2208
Comments
Add this to your config file:
|
Ah was looking at wrong config file, you already have |
My api permissions of yml now look like this after the change you said. But still it is showing the same problem.
I am using http request via postman |
Are you connecting to address to 127.0.0.1 or trying to access that from different machine? Can you change loglevel in ejabberd.yml to 5 execute command and show what you call adds to ejabberd logs? |
OK. I again tried register command . I am attaching the logs generated for this particular hit. I am using same address. |
Yeah your config is wrong Probably you want this:
|
I am getting below error in the ejabberd.log after making suggested changes. Attaching ejabberd.log and ejabber.yml(ejabberd.txt) |
change loopback in acl to this:
and use this api_permissions:
|
Thanks. The above solution worked and it is working on my local machine. But when I try to do this in live environment, I am getting below error 2018-01-08 16:17:03.668 [error] <0.1988.0> ** Connection attempt from disallowed node 'd79c0fc2-ctl-ejabberd@localhost' ** My server is Ubuntu16.04 hosted on AWS. |
This is a problem with a cookie file. It's located in a home directory and called |
How can I match the code in it? Earlier I was using Ejabberd 17.01 and updated to Ejabberd 17.04. Is this why I am getting this error? |
ejabberd.txt Application ejabberd exited with reason: {{shutdown,{failed_to_start_child,ejabberd_listener,{shutdown,{failed_to_start_child,{5281,{18,220,204,243},tcp},{eaddrnotavail,{5281,{18,220,204,243},tcp}}}}}},{ejabberd_app,start,[normal,[]]}} Attaching ejabberd.yml |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
17.04
ubuntu 16.04
I used postman to make a HTTP request to ejabberd register api. The ejabberd is set up and the admin is running properly at the url - http://localhost:5280/admin.
The Url of http request is - http://localhost:5280/api/register
Body - {
"user": "bob",
"host": "example.com",
"password": "SomEPass44"
}
Header - [{"key":"Content-Type","value":"application/json","description":""}]
Response - {
"status": "error",
"code": 32,
"message": "AccessRules: Account does not have the right to perform the operation."
}
MY YML FILE IS ATTACHED AS TXT. PLEASE ANY HELP WILL BE APPRECIATED:
ejabberd.txt
Is anything else is required.
The text was updated successfully, but these errors were encountered: