Dissallows connectionf from ejabberdctl

Hi,

I'm trying to install ejabberd, and any Jabber server, for the first time. I'm using Debian Sarge system and i compiled erlang and ejabberd manually from the newest stable versions posted. The compilations went fine and i installed both packages on the system. Then i modified the installed configuration file at /etc/ejabberd/ejabberd.cfg so that it recognizes my hostname.

My objective is to get ejabberd serve only locally with a domain name that has no .affix. The complete domain name is "foobar" and it works fine in our intranet for serving databases, apache etc. But whatever i try, i can't get ejabberd to work.

At first i had troubles starting the thing, which seemingly was related to one commandline parameter, it always just started in the erl console. Well i solved that by tweaking the commandline that i'm starting the server with: ``erl -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -mnesia dir \"/var/lib/ejabberd/spool\"``

The next step should be running ejabberctl, right? Well, at first it didn't run at all, but i copied it to /var/lib/ejabberd/ebin as hinted at one post on this forum and it started running. But it cannot connect to the server which with ``./ejabberctl ejabberd@foobar status`` which i run from the same directory i copied it to. It says "RPC failed on the node ejabberd@foobar: nodedown" and the console where i ran the ejabberd server itself says "** Connection attempt from disallowed node ejabberdctl@foobar **"

Well, i ignored that and tried to connect through the web interface, which asks for a password, but then comes up with an empty screen, regardless of what i put in the password field. The console says:
"""
=INFO REPORT==== 27-Apr-2006::12:32:47 ===
I(<0.220.0>:ejabberd_listener:90): (#Port<0.323>) Accepted connection {{192,168,0,101},2727} -> {{192,168,0,103},5280}

=INFO REPORT==== 27-Apr-2006::12:32:47 ===
I(<0.215.0>:ejabberd_http:76): started: {gen_tcp,#Port<0.323>}

=INFO REPORT==== 27-Apr-2006::12:32:47 ===
I(<0.284.0>:ejabberd_http:171): (#Port<0.323>) http query: 'GET' /admin/

=CRASH REPORT==== 27-Apr-2006::12:32:47 ===
crasher:
pid: <0.284.0>
registered_name: []
error_info: {undef,[{ejabberd_auth_undefined,
check_password,
[[],"admin","dada"]},
{lists,any,2},
{ejabberd_web,process_get,2},
{ejabberd_http,process_request,1},
{ejabberd_http,process_header,2},
{ejabberd_http,receive_headers,1},
{proc_lib,init_p,5}]}
initial_call: {ejabberd_http,receive_headers,
[{state,
gen_tcp,
#Port<0.323>,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
"en",
true,
true,
false,
[]}]}
ancestors: [ejabberd_http_sup,ejabberd_sup,<0.40.0>]
messages: []
links: [<0.215.0>,#Port<0.323>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 21
reductions: 1363
neighbours:

=SUPERVISOR REPORT==== 27-Apr-2006::12:32:47 ===
Supervisor: {local,ejabberd_http_sup}
Context: child_terminated
Reason: {undef,[{ejabberd_auth_undefined,
check_password,
[[],"admin","dada"]},
{lists,any,2},
{ejabberd_web,process_get,2},
{ejabberd_http,process_request,1},
{ejabberd_http,process_header,2},
{ejabberd_http,receive_headers,1},
{proc_lib,init_p,5}]}
Offender: [{pid,<0.284.0>},
{name,undefined},
{mfa,{ejabberd_http,start_link,
[{gen_tcp,#Port<0.323>},
[http_poll,web_admin]]}},
{restart_type,temporary},
{shutdown,brutal_kill},
{child_type,worker}]
"""

I'm completely clueless on what to do to fix this. Any info would be helpful.

Thanks in advance,
Kaali

You can try this to make

Thank you very much. Both of

Thank you very much. Both of those links make me succeed. I replaced the ejabberdctl with that version (without recompiling everything) and appended the server name to the configuration login. After those, everything worked fine.

Thanks!

Syndicate content