Error adding admin user

Hi,

ejabberd started with:

/usr/lib/erlang/erts-5.4.12/bin/beam -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" -sasl sasl_

In /etc/ejabberd/ejabberd.cfg only

{host, "localhost"}.

replaced by

{host, "hostname"}.

Next I tried:

# ejabberdctl status
Node 'ejabberd@hostname' is started. Status: started
# ejabberdctl register admin hostname admpwd
Can't register user "admin@hostname" at node 'ejabberd@hostname': {'EXIT',

{badarg,

[{erlang,

port_control,

[stringprep_port,

1,

"hostname"]},

{stringprep,

control,

2},

{jlib,

nameprep,

1},

{ejabberd_auth,

try_register,

3},

{rpc,

'-handle_call/3-fun-0-',

5}]}}

What's wrong?

additional strange things # ps

I see additional strange things:

# ps aux | grep ejabber
ejabberd 16635 0.0 1.7 13596 8948 pts/0 S 14:00 0:02 /usr/lib/erlang/erts-5.4.12/bin/beam -- -root /usr/lib/erlang -progname erl -- -home /var/lib/ejabberd -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config "/etc/ejabberd/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" -sasl sasl_
ejabberd 16643 0.0 0.0 1184 368 ? S 14:00 0:00 heart -pid 16635
ejabberd 16648 0.0 0.2 2724 1032 ? S 14:00 0:00 /usr/lib/erlang/lib/ssl-3.0.10/priv/bin/ssl_esock
root 19722 0.0 0.0 1372 436 pts/0 S 14:48 0:00 grep ejab
# netstat -pan --inet | grep beam
tcp 0 0 0.0.0.0:53866 0.0.0.0:* LISTEN 16635/beam
tcp 0 0 127.0.0.1:53867 127.0.0.1:4369 ESTABLISHED 16635/beam
# grep 16635 /etc/services
# grep 16635 /etc/ejabberd/ejabberd.cfg
#

But n /etc/ejabberd/ejabberd.cfg I see:

% Listened ports:
{listen,
[{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
starttls, {certfile, "./ssl.pem"}]},
{5223, ejabberd_c2s, [{access, c2s},
tls, {certfile, "./ssl.pem"}]},
% Use these two lines instead if TLS support is not compiled
%{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},
%{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
{5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
{5280, ejabberd_http, [http_poll, web_admin]},
{8888, ejabberd_service, [{access, all},
{hosts, ["icq.localhost", "sms.localhost"],
[{password, "secret"}]}]}
]}.

Why?

Now my full config is: {acl,

Now my full config is:

{acl, local, {user_regexp, ""}}.
{access, configure, [{allow, admin}]}.
{welcome_message, none}.
{access, announce, [{allow, admin}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, muc_admin, [{allow, admin}]}.
{access, muc, [{allow, all}]}.
{access, local, [{allow, local}]}.
{auth_method, internal}.
{hosts, ["ats-manager"]}.
{language, "en"}.
{listen,
[{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
starttls, {certfile, "./ssl.pem"}]},
]}.
{modules,
[
{mod_register, [{access, register}]},
{mod_roster, []},
{mod_privacy, []},
{mod_configure, []},
{mod_configure2, []},
{mod_disco, []},
{mod_stats, []},
{mod_vcard, []},
{mod_offline, []},
{mod_announce, [{access, announce}]},
{mod_echo, [{host, "echo.localhost"}]},
{mod_private, []},
{mod_muc, [{access, muc},
{access_create, muc},
{access_admin, muc_admin}]},
{mod_pubsub, []},
{mod_time, []},
{mod_last, []},
{mod_version, []}
]}.

But I can't see open port 5222 in netstat. File /var/log/ejabberd/ejabberd.log is empty

Syndicate content