Can't perform operation because localhost does not provide a MUC (XEP-45) service

I'm using ejabberd with smack for a chat application, and I've set up my ejabberd.yml to have mod_muc defined, but I keep getting the following error when trying to get the available hosted rooms:

Can't perform operation because localhost does not provide a MUC (XEP-45) service

I'm pretty sure that I've set it up correctly, but I have no idea why I get this message back. Any ideas?

Here's the mod_muc section of the ejabberd.yml for reference:

mod_muc:
    ## host: "conference.@HOST@"
    access: muc
    access_create: muc
    access_admin: muc_admin
    history_size: 5
    max_users: 4
    default room options:
        allow_change_subj: true
        allow_private_messages: false
        allow_user_invites: true
        members_by_default: true
        public: true
        public_list: true
        persistent: false

And do you have this

And do you have this too?

hosts:
  - "localhost"

And do you send the queries to conference.localhost?

Yes, I have this: hosts:  -

Yes, I have this:

hosts:
  - "localhost"

Then obviously there is

Then obviously there is something wrong in your query, or somewhere else of your config... stuff that only you know, so only you can solve it

Syndicate content