Amazon AWS installation issue

Dear all,

I installed Ejabberd in Amazon AWS EC2 server. The installation seems to be successful. I was able to register user "admin1" with password "12345". I use the DNS name "ec2-xx-xxx-xx-xxx.us-west-2.compute.amazonaws.com" as the host name to connect to the server. Then I got this error message "Unable to connect to server. Check xmppstream.hostname". Can anyone please help?

One additional information is that I was able to install ejabberd successfully in my local machine and have my app connect to my local machine. Somehow it does not work in the server.

I am following the steps here "http://www.sebastianhaas.at/installung-running-ejabberd-aws-ec2-instance/" to install Ejabberd in EC2 server. My step 2 is a little bit different. I used the security group in AWS to allow all ports instead of following the exact step 2 instructions.

Thank you very much

What client are you using ?

What client are you using ? What XMPP domain did you define for ejabberd ?

It seems that there may be a mismatch in the domain you are using in the client and the domain configured in the XMPP server. Hint: This is not the same as the server address, which is technical Amazon IP - name match.

Thank you very much for your

Thank you very much for your feedback! I have tried a couple. I used imessage in Mac and my own client. Both the clients worked when I set my own Macbook up as a server.

What do you mean by XMPP domain? How do I find that out in my client and ejabberd server setup?

XMPP domain is a component of

XMPP domain is a component of the jid. You will find configured domains in ejabberd config file.

after I install ejabberd, I

after I install ejabberd, I was not able to open the ejabberd config file. It says I don't have permission to the config file. Could you please give me directory of the ejabberd config file? I would like to make sure I located the right file. When I try to cd /opt/ejabberd-14.12/conf/, I got message saying permission denied.

myjid=@"admin1@ec2-xx-xxx-xx-xxx.us-west-2.compute.amazonaws.com"

I think your actual JID is

I think your actual JID is admin1@localhost as localhost is the default ejabberd domain if you do not define one. However, server to connect to then need to be specified manually in your client configuration to "ec2-xx-xxx-xx-xxx.us-west-2.compute.amazonaws.com"

Does that mean I have to

Does that mean I have to modify the config file to be "ec2-xx-xxx-xx-xxx.us-west-2.compute.amazonaws.com"?

When I run the binary to install ejabberd, I specified my server name to be "ec2-xx-xxx-xx-xxx.us-west-2.compute.amazonaws.com". I guess this didn't set the domain name.

thanks a lot for your help.

No, that means you need to

No, that means you need to configure your client to try JID admin1@localhost and use the Amazon server address. All is client-side configuration.

I changed my JID but it still

I changed my JID but it still didn't work. The error message is "Unable to connect to server. Check xmppStream.hostName".

I am not sure if this is related. When I run the command "sudo /opt/ejabberd-15.02/bin/ejabberdctl status"

Here is what I got:
The node ejabberd@localhost is started with status: started
ejabberd 15.02 is running in that node

Another thing I tried is to

Another thing I tried is to download gajim to the ubuntu server. I launched the gajim client using my JID and the public DNS of the server. I was able to log on the server OK. Somehow I can't use my own client to connect to the ejabberd server.

Hi man, Thank you very much

Hi man,

Thank you very much for your help. It turns out to be some error in my client setup. I found it out. Now there is no issue connecting to the server. Thank you again for your help and patience.

Di

We are glad you had it

We are glad you had it working. Thank you for your feedback.

Syndicate content