[Fix] ejabberd 1.11 Error when I try to connect (login or register)

Hi,

I have installed ejabberd 1.1.1 on my server.
And I have this error when I tried to connect (login or create
account) : service requested for unknown domain

I have checked the log but there is nothing in there. I tried google
but no answer.
The domain define is valid , I can ping it but I can't resolve it
(reverse DNS). Is it the problem ?

Btw I am using jabberd2 also wich is working fine (bind on another IP).

Thanks in advance.

Below the XML dump :

stream:error
host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/
text xmlns="urn:ietf:params:xml:ns:xmpp-streams">service requested
for unknown domain/text
/stream:error

Try specifying the IP on your client

To verify if the DNS name is the problem: use a client that allows you to specify explicitely the host machine, and put the IP of your Jabber server on that field. Tkabber, Psi, Exodus and probably other clients include that possibility.

I have specified the IP

I have specified the IP in Psi but it doesn't change anything.
For information, the dump on my first post is the response of the server, so am I able to do a tcp connection but that's all.

Are you sure ejabberd is

Are you sure ejabberd is running?

--
sander

Server is running

Yes I'm sure, the server is running.

You can try : jabber.koreus.com

mmm, I can't connect to your

mmm, I can't connect to your server...

--
sander

I think I found your

I think I found your problem, and is configuration related.

I did two tries:

  1. First try:
    • server name: jabber.koreus.com
    • host: 213.251.141.162
    • result: error message: 'host-unknow', 'service requested for unknown domain'. It means I asked your ejabberd for a domain that doesn't exist.
  2. Second try:
    • server name: koreus.com
    • host: 213.251.141.162
    • result: ejabberd tells me I have to create an account. I can't, maybe you disabled mod_register.

You can fix the ejabberd configuration so 1 works, or fix your DNS so 2 works.

If you want your Jabber server to be jabber.koreus.com, then you must put on ejabberd.cfg something like this {hosts, ["jabber.koreus.com"]}.

Fix

I have found my problem.
I have 2 ip (2 network interfaces) on my server.
On the first ip (default interface), jabberd2 is running and bind on the 2 ip. So ejabberd was not running. It was jabberd2 who answered to my request with the error message "service requested for unknown domain".

I have modify the jabberd2 config files and ejabberd so they bind on different IP.

Syndicate content