Package: ejabberd
Version: 2.1.11-1
Severity: normal
Tags: ipv6

Dear Maintainer,

* What led up to the situation?

As README.Debian suggests, I configured two c2s listeners to listen on
the same port, one with an IPv4 wildcard, and the other with an IPv6
wildcard. In /etc/ejabberd/ejabberd.cfg:

{listen,
 [
  {{5222, "0.0.0.0"}, ejabberd_c2s, [
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 65536},
                        %%zlib,
                        starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
                       ]},
  {{5222, "::"}, ejabberd_c2s, [
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 65536},
                        %%zlib,
                        starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
                       ]},


* What was the outcome of this action?

ejabberd failed to start, giving the reason that the IP/port was
already used. In /var/log/ejabberd/ejabberd.log:

=ERROR REPORT==== 2014-04-27 10:44:14 ===
E(<0.273.0>:ejabberd_listener:512) : Failed to open socket:
  {5222,ejabberd_c2s,[inet6,{ip,{0,0,0,0,0,0,0,0}}]}
Reason: IP address and port number already used: :: 5222

=INFO REPORT==== 2014-04-27 10:44:14 ===
I(<0.42.0>:cyrsasl_digest:44) : FQDN used to check DIGEST-MD5 SASL
authentication: "freedombox"

=ERROR REPORT==== 2014-04-27 10:44:14 ===
C(<0.42.0>:gen_mod:75) : Problem starting the module mod_adhoc for
host "freedombox"
 options: []
 exit: {noproc,
           {gen_server,call,
               [ejabberd_iq_sup,
                {start_child,["freedombox",mod_adhoc,process_local_iq]},
                infinity]}}

=ERROR REPORT==== 2014-04-27 10:44:14 ===
C(<0.42.0>:gen_mod:80) : ejabberd initialization was aborted because a
module start failed.


* What outcome did you expect instead?

I expected that ejabberd should be able to listen for both IPv6 and
IPv4 connections using the same port number, as described in
README.Debian.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 3.13-1-kirkwood
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ejabberd depends on:
ii  adduser                        3.113+nmu3
ii  debconf [debconf-2.0]          1.5.52
ii  erlang-asn1                    1:17.0-dfsg-1
ii  erlang-base [erlang-abi-15.b]  1:17.0-dfsg-1
ii  erlang-crypto                  1:17.0-dfsg-1
ii  erlang-inets                   1:17.0-dfsg-1
ii  erlang-mnesia                  1:17.0-dfsg-1
ii  erlang-odbc                    1:17.0-dfsg-1
ii  erlang-public-key              1:17.0-dfsg-1
ii  erlang-ssl                     1:17.0-dfsg-1
ii  erlang-syntax-tools            1:17.0-dfsg-1
ii  libc6                          2.18-4
ii  libexpat1                      2.1.0-4
ii  libpam0g                       1.1.8-3
ii  libssl1.0.0                    1.0.1g-3
ii  openssl                        1.0.1g-3
ii  ucf                            3.0027+nmu1
ii  zlib1g                         1:1.2.8.dfsg-1

ejabberd recommends no packages.

Versions of packages ejabberd suggests:
pn  imagemagick | graphicsmagick-imagemagick-compat  <none>
pn  libunix-syslog-perl                              <none>

-- Configuration Files:
In /etc/ejabberd/inetrc:

{lookup,["file","native"]}.
{host,{127,0,0,1}, ["localhost","hostalias"]}.
{file, resolv, "/etc/resolv.conf"}.

/etc/ejabberd/ejabberd.cfg is attached.

-- debconf information:
  ejabberd/user:
* ejabberd/hostname: freedombox
  ejabberd/nomatch:

Attachment: ejabberd.cfg
Description: Binary data

Reply via email to