Problem installing ejabberd


#1

Hi,
I’ve been able to install ejabberd on my Mac with no problems, but when I try to install it on Dreamhost
using the executable ejabberd-2.1.6-linux-x86-installer.bin, I get the error message below.

This link suggests that I have the wrong version of Erlang/OTP installed.

I’m using the version of erl that came with the installation since I added the installation directory to my
path. Any ideas why it thinks I have the wrong version of Erlang/OTP installed?

Thanks,

Jim

Error in process <0.108.0> on node ‘ejabberd@localhost’ with exit value: {{case_clause,{error,{open_error,-10}}},[{ejabberd_app,init,0}]}

=INFO REPORT==== 2011-01-28 11:35:24 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{‘EXIT’,
{badarg,
[{erlang,port_control,
[stringprep_port,2,“ejabberd.aerende.com”]},
{stringprep,control,2},
{jlib,nodeprep,1},
{ejabberd_config,normalize_hosts,2},
{ejabberd_config,add_hosts_to_option,2},
{lists,foldl,3},
{ejabberd_config,load_file,1},
{ejabberd_config,start,0}]}}}}
type: temporary


#2

There’s a Debian package for ejabberd available which I’ve used for testing. Be warned that it takes a LOT of memory on the first startup, though. If you only have your VPS set to 300 MB, it will probably run out of memory and crash.


#3

@andrewf -

Where can I get the Debian package for ejabberd?

Thanks,

Jim


#4

[url]http://packages.debian.org/lenny/ejabberd[/url]

http://packages.debian.org/lenny/ejabberd


#5

@andrewf -

 Awesome that worked great!  Can you tell me where the config file, ejabberdctl.cfg, 

gets installed?

Thanks,

Jim[hr]
Found it:

/etc/ejabberd/ejabberd.cfg

Docs directory is:

/usr/share/doc/ejabberd


#6

@andrewf -

I was able to install ejabberd using “apt-get install ejabberd” with no problems on Slicehost but I had the following problems on Dreamhost while running as admin on my VPS. Did you run into these problems?

% sudo apt-get install ejabberd

Preconfiguring packages …
Can’t exec “/tmp/ejabberd.config.35981”: Permission denied at /usr/share/perl/5.10/IPC/Open3.pm line 168.
open2: exec of /tmp/ejabberd.config.35981 configure failed at /usr/share/perl5/Debconf/ConfModule.pm line 59
ejabberd failed to preconfigure, with exit status 255

The whole output log is below:

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
erlang-base erlang-nox libsctp1 lksctp-tools odbcinst1debian1 unixodbc
Suggested packages:
libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html libmyodbc odbc-postgresql
libct1
The following NEW packages will be installed:
ejabberd erlang-base erlang-nox libsctp1 lksctp-tools odbcinst1debian1 unixodbc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.0MB of archives.
After this operation, 48.8MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
libsctp1 erlang-base odbcinst1debian1 unixodbc erlang-nox ejabberd lksctp-tools
Authentication warning overridden.
Get:1 http://debian.newdream.net lenny/main libsctp1 1.0.9.dfsg-1 [28.0kB]
Get:2 http://debian.newdream.net lenny/main erlang-base 1:12.b.3-dfsg-4 [6819kB]
Get:3 http://debian.newdream.net lenny/main odbcinst1debian1 2.2.11-16 [71.7kB]
Get:4 http://debian.newdream.net lenny/main unixodbc 2.2.11-16 [310kB]
Get:5 http://debian.newdream.net lenny/main erlang-nox 1:12.b.3-dfsg-4 [20.5MB]
Get:6 http://debian.newdream.net lenny/main ejabberd 2.0.1-6+lenny2 [1196kB]
Get:7 http://debian.newdream.net lenny/main lksctp-tools 1.0.9.dfsg-1 [58.5kB]
Fetched 29.0MB in 4s (7024kB/s)
Preconfiguring packages …
Can’t exec “/tmp/ejabberd.config.35981”: Permission denied at /usr/share/perl/5.10/IPC/Open3.pm line 168.
open2: exec of /tmp/ejabberd.config.35981 configure failed at /usr/share/perl5/Debconf/ConfModule.pm line 59
ejabberd failed to preconfigure, with exit status 255
Selecting previously deselected package libsctp1.
(Reading database … 160044 files and directories currently installed.)
Unpacking libsctp1 (from …/libsctp1_1.0.9.dfsg-1_amd64.deb) …
Selecting previously deselected package erlang-base.
Unpacking erlang-base (from …/erlang-base_1%3a12.b.3-dfsg-4_amd64.deb) …
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from …/odbcinst1debian1_2.2.11-16_amd64.deb) …
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from …/unixodbc_2.2.11-16_amd64.deb) …
Selecting previously deselected package erlang-nox.
Unpacking erlang-nox (from …/erlang-nox_1%3a12.b.3-dfsg-4_amd64.deb) …
Selecting previously deselected package ejabberd.
Unpacking ejabberd (from …/ejabberd_2.0.1-6+lenny2_amd64.deb) …
Selecting previously deselected package lksctp-tools.
Unpacking lksctp-tools (from …/lksctp-tools_1.0.9.dfsg-1_amd64.deb) …
Processing triggers for man-db …
Processing triggers for doc-base …
Processing 1 added doc-base file(s)…
Setting up libsctp1 (1.0.9.dfsg-1) …
Setting up erlang-base (1:12.b.3-dfsg-4) …
Searching for services which depend on erlang and should be started…none found.
Setting up odbcinst1debian1 (2.2.11-16) …
Setting up unixodbc (2.2.11-16) …
Setting up erlang-nox (1:12.b.3-dfsg-4) …
Setting up ejabberd (2.0.1-6+lenny2) …
Generating SSL certificate /etc/ejabberd/ejabberd.pem…

Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd… failed.
Setting up lksctp-tools (1.0.9.dfsg-1) …


#7
How much memory do you have your VPS set to? As I mentioned in my first post in this thread, the initial ejabberd startup takes a [b]lot[/b] of memory.

How much memory do you have your VPS set to? As I mentioned in my first post in this thread, the initial ejabberd startup takes a lot of memory.


#8

I have my VPS set to 800 MB, and I watched it while the install ran using top and it never got over 500 MB. I can set it to more memory and try it again.

Is the way to remove ejabberd is to use:

apt-get --purge remove ejabberd

?


#9

Finally got ejabberd working. I had to do the following:

  1. Use the 64 bit installer instead of the 32 bit installer:

ejabberd-2.1.6-linux-x86_64-installer.bin

  1. Kill the jabberd process running on my VPS.