Error on start ejabberd

On start jabberd have a problem:

Erlang (BEAM) emulator version 5.5.1 [source] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.5.1 (abort with ^G)
(ejabberd@INETGATE3)1>
=INFO REPORT==== 16-Oct-2006::15:51:33 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{'EXIT',{undef,
[{ejabberd_auth_undefined,
start,
["INETGATE3"]},
{lists,foreach,2},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}}}}
type: temporary

It looks for

It looks for "ejabberd_auth_undefined", which means that for some reason one of your virtual hosts is configured to use "undefined" authentication. Find the error in the configuration file.

my config % $Id:

my config

% $Id: ejabberd.cfg.example 538 2006-04-22 04:02:42Z alexey $

%override_acls.

override_global.
override_local.
override_acls.

% Users that have admin access. Add line like one of the following after you
% will be successfully registered on server to get admin access:
{acl, admin, {user, "admin"}}.
%{acl, admin, {user, "ermine"}}.

% Blocked users:
%{acl, blocked, {user, "test"}}.

% Local users:
{acl, local, {user_regexp, ""}}.

% Only admins can use configuration interface:
{access, configure, [{allow, admin}]}.

% Every username can be registered via in-band registration:
% You could replace {allow, all} with {deny, all} to prevent user from using
% in-band registration
{access, register, [{allow, all}]}.

% After successful registration user will get message with following subject
% and body:
{welcome_message,
{"Welcome!",
"Welcome to Jabber Service. "
"For information about Jabber visit http://jabber.org"}}.
% Replace them with 'none' if you don't want to send such message:
%{welcome_message, none}.

% List of people who will get notifications about registered users
%{registration_watchers, ["admin1@localhost",
% "admin2@localhost"]}.

% Only admins can send announcement messages:
{access, announce, [{allow, admin}]}.

% Only non-blocked users can use c2s connections:
{access, c2s, [{deny, blocked},
{allow, all}]}.

% Set shaper with name "normal" to limit traffic speed to 1000B/s
{shaper, normal, {maxrate, 1000}}.

% Set shaper with name "fast" to limit traffic speed to 50000B/s
{shaper, fast, {maxrate, 50000}}.

% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},
{normal, all}]}.

% For all S2S connections used "fast" shaper
%{access, s2s_shaper, [{fast, all}]}.

% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.

% All users are allowed to use MUC service:
{access, muc, [{allow, all}]}.

% This rule allows access only for local users:
{access, local, [{allow, local}]}.

% Authentication method. If you want to use internal user base, then use
% this line:
{auth_method, internal}.

% Host name:
{hosts, ["host1","host1.domain","localhost"]}.

{host_config, "localhost", [{auth_method, internal}]}.
{host_config, "host1", [{auth_method, internal}]}.
{host_config, "host1.domain", [{auth_method, internal}]}.

% Default language for server messages
{language, "ru"}.

% Listened ports:
{listen,[{5222, ejabberd_c2s,[{access, c2s}, {shaper, c2s_shaper},{max_stanza_si
ze, 65536}]},
{5280, ejabberd_http, [http_poll, web_admin]}
]}.

% Used modules:
{modules,
[
{mod_register, [{access, register}]},
{mod_roster, []},
{mod_privacy, []},
{mod_adhoc, []},
{mod_configure, []}, % Depends on mod_adhoc
{mod_configure2, []},
{mod_disco, []},
{mod_stats, []},
{mod_vcard, []},
{mod_offline, []},
{mod_announce, [{access, announce}]}, % Depends on mod_adhoc
{mod_echo, [{host, "echo.localhost"}]},
{mod_private, []},
{mod_irc, []},
% Default options for mod_muc:
% host: "conference." ++ ?MYNAME
% access: all
% access_create: all
% access_admin: none (only room creator has owner privileges)
{mod_muc, [{access, muc},
{access_create, muc},
{access_admin, muc_admin}]},
% {mod_muc_log, []},
% {mod_shared_roster, []},
{mod_pubsub, []},
{mod_time, []},
{mod_last, []},
{mod_version, []}
]}.

% Local Variables:
% mode: erlang
% End:

Hm…

craton wrote:
% Authentication method.  If you want to use internal user base, then use
% this line:
{auth_method, internal}.

% Host name:
{hosts, ["host1","host1.domain","localhost"]}.

{host_config, "localhost", [{auth_method, internal}]}.
{host_config, "host1", [{auth_method, internal}]}.
{host_config, "host1.domain", [{auth_method, internal}]}.

The last three lines aren't really necessary, as the global auth_method is inherited. I don't see why they would cause a problem, though…

Syndicate content