![]() ![]() ![]() ![]() I hope this post helps someone else struggling to setup ejabberd on EC2 as I did. This was a lot of effort, but it probably would have been easier if I had been familiar with Erlang applications and SRV DNS settings. That did it! The node name was the same regardless of the hostname associated with the particular AMI instance. I made those changes, removed all the database files from /var/lib/ejabberd, and restarted ejabberd. ejabberd-mod-default-contacts0.2021.11.25dfsg.> 9712: 2021-Dec-22 09:38: ejabberd-mod-default-contacts0.2022.04.12dfsg. I did this by modifying /etc/default/ejabberd adding the line:Įxport requires adding jabber as a host name inside /etc/hosts:ġ27.0.0.1 localhost.localdomain localhost jabber One solution I found is to explicitly set the node name. The problem is that the hostname and therefore the node name changes everytime the AMI is relaunched which confuses ejabberd. It looked something like this: This node name is somehow linked to the Mnesia database stored as files within /var/lib/ejabberd. By default the node name was dynamically set based on the hostname for the machine. ,Īfter some googling, I found that ejabberd associates itself with an Erlang node name, a concept I don't really understand that well. Next I edited the ejabberd config file, /etc/ejabberd/ejabberd.cfg, making an admin user and setting the hostname as : That was a correct assumption for the most part.įirst, I logged into the VM and installed ejabberd: 'ejabberd is a Jabber/XMPP instant messaging server, licensed under GPLv2 (Free and Open Source), written in Erlang/OTP. I was a little nervous about working with a server built with Erlang since I knew nothing about it, but it was a reputable server and I was counting on not needing to have any Erlang knowledge to work with ejabberd. I chose to setup ejabberd since it was an easy to install via apt-get. It turned out to be harder that I expected to setup a Jabber (XMPP) server on an Ubuntu virtual machine ( ami-ce44a1a7) within Amazon EC2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |