Failed to open socket: Reason: permission denied

Hi
I have installed ejabberd with one additional port 446

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

       ]},

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

Without 446 works fine
With port 446 I get the following error


=ERROR REPORT==== 2014-08-05 02:34:31 ===
E(<0.270.0>:ejabberd_listener:512) : Failed to open socket:
  {446,ejabberd_c2s,[inet,{ip,{0,0,0,0}}]}
Reason: permission denied

What am I doing wrong or have I forgotten? And how can I change it?

Maybe port 446 is in

Maybe port 446 is in use?

netstat -tulpen
What did it say?

Tried another port (f.e. 1234)? Same error?

Hi I thought as the first

Hi
I thought as the first too, but no.

root@jabbathehutt:/# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      0          114250079   863/apache2
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      110        114249058   469/epmd
tcp        0      0 0.0.0.0:5269            0.0.0.0:*               LISTEN      110        114249557   549/beam
tcp        0      0 0.0.0.0:57013           0.0.0.0:*               LISTEN      110        114249214   549/beam
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          114248487   264/sshd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      0          114250082   863/apache2
tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN      110        114249556   549/beam
tcp        0      0 0.0.0.0:5280            0.0.0.0:*               LISTEN      110        114249558   549/beam
tcp        0      0 xxx.xxx.xxx.xxx:7777    0.0.0.0:*               LISTEN      110        114249561   549/beam
tcp        0      0 0.0.0.0:5222            0.0.0.0:*               LISTEN      110        114249555   549/beam
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      109        114249550   385/mysqld
tcp6       0      0 :::22                   :::*                    LISTEN      0          114248489   264/sshd

With Port 8443 works fine.
Maybe something with rights? I dont know.

Sorry, my mistake. Try again

Sorry, my mistake.

Try again with -anput
# sudo netstat -anput

(-l hides established connections, too.)

//EDIT:
I see you've found a workaround @ ubuntuusers.de.
Maybe you are willing to explain your solution for other users?

Syndicate content