[ejabberd] last svn pb with service discovery

jcbeylot jcbeylot at gmail.com
Fri Apr 11 12:20:44 MSD 2008


hi,

i installed last svn ( 1282 )  this morning

I failed to  discover services using psi 0.11

Watching log i found :

=INFO REPORT==== 2008-04-11 09:42:46 ===
D(<0.325.0>:ejabberd_router:301) : route
        from {jid,[],"anubis",[],[],"anubis",[]}
        to {jid,"jcbeylot","anubis","Gajim","jcbeylot","anubis","Gajim"}
        packet {xmlelement,
                   "iq",
                   [{"type","error"},{"from","anubis"},{"id","7"}],
                   [{xmlelement,
                        "query",
                        [{"xmlns","http://jabber.org/protocol/disco#info"}],
                        []},
                    {xmlelement,
                        "error",
                        [{"code","501"},{"type","cancel"}],
                        [{xmlelement,
                             "feature-not-implemented",

[{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
                             []}]}]}


=INFO REPORT==== 2008-04-11 09:42:46 ===
D(<0.325.0>:ejabberd_local:272) : local route
        from {jid,[],"anubis",[],[],"anubis",[]}



my ejabberd.cfg :
% $Id: ejabberd.cfg.example 694 2006-12-15 21:26:47Z mremond $

% ejabberd loglevel (0: no log -> 5: debug)
{loglevel, 5}.

%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, "aleksey"}}.
%{acl, admin, {user, "ermine"}}.
{acl, admin, {user, "admin" , "anubis"}}.
{acl, admin, {user, "jcbeylot","anubis"}}.

%{watchdog_admins, ["root at localhost"]}.
{watchdog_admins, ["jcbeylot at gmail.com"]}.


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

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

% Another examples of ACLs:
%{acl, jabberorg, {server, "jabber.org"}}.
%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
%{acl, test, {user_regexp, "^test"}}.
%{acl, test, {user_glob, "test*"}}.

% Everybody can create pubsub nodes
{access, pubsub_createnode, [{allow, all}]}.

% 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 Instant Messaging server localhost. "
  "For information about ejabberd visit http://www.process-one.net/"}}.
% 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 at localhost",
%                         "admin2 at 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}]}.

% local users to be automatically enabled in webprecense
{access, webpresence_auto, [{allow, local}]}.


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

% For LDAP authentication use these lines instead of above one:
%{auth_method, ldap}.
%{ldap_servers, ["localhost"]}.    % List of LDAP servers
%{ldap_uidattr, "uid"}.            % LDAP attribute that holds user ID
%{ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory
%{ldap_rootdn, "dc=example,dc=com"}. % LDAP manager
%{ldap_password, "******"}. % Password to LDAP manager
%{ldap_disable_usercount, true}.

% For authentication via external script use the following:
%{auth_method, external}.
%{extauth_program, "/path/to/authentication/script"}.

% For authentication via ODBC use the following:
%{auth_method, odbc}.
%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.


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

%% Define the maximum number of time a single user is allowed to connect:
{access, max_user_sessions, [{10, all}]}.

%% Anonymous login support:
%%  auth_method: anonymous
%%  anonymous_protocol: sasl_anon|login_anon|both
%%  allow_multiple_connections: true|false
%%{host_config, "public.example.org", [{auth_method, anonymous},
%%                                     {allow_multiple_connections, false},
%%                                     {anonymous_protocol, sasl_anon}]}.
%% To use both anonymous and internal authentication:
%%{host_config, "public.example.org", [{auth_method,
[internal,anonymous]}]}.

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

% Listened ports:
{listen, [

  {5347, ejabberd_service, [{host, "jmc.anubis",
                              [{password, "secret"}]}]},

  {5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper},
                {max_stanza_size, 65536},
                starttls, {certfile, "/etc/ejabberd/server.pem"}]},
  {5223, ejabberd_c2s,     [{access, c2s},
                {max_stanza_size, 65536},
                tls, {certfile, "/etc/ejabberd/server.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,
"/etc/ejabberd/server.pem"}]},

  {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper},
                {max_stanza_size, 131072}
               ]},
% connexion en https pour l'administration
% {5280, ejabberd_http,    [http_poll, web_admin, tls,{certfile,
"/etc/ejabberd/server.pem"}]},

  {5280, ejabberd_http,    [http_poll, web_admin]},

% precense ,muc_log et http_fileserver ok
%  open your web browser at: http://server:5280/pub/muclogs/
%  {5280, ejabberd_http,    [http_poll, web_admin,
%                 {request_handlers, [
%                                 {["pub", "archive"], mod_http_fileserver},
%%%                                 {["pub", "muclogs"], mod_muc_log_http},
%                       {["presence"], mod_webpresence}
%                                        ]}
%                           ]},

% test http_fileserver
%   {5280, ejabberd_http,    [http_poll, web_admin,
%                            {request_handlers, [
%                    {["pub", "archive"], mod_http_fileserver}
%                    ]}
%                     ]},

%  {6667, ejabberd_ircd,    [{access, c2s},
%                            {host, "anubis"},
%                            {muc_host, "conference.anubis"},
%                            {encoding, "ISO-8859-15"},
%                            {mappings,
%                            [{"#echange", "echange at conference.anubis"}]}]},

% {81, ejabberd_http, [ {request_handlers, [ {["status"], mod_webpresence}
]}
%              ]},

  {8888, ejabberd_service, [{access, all},
                {hosts, ["icq.localhost", "sms.localhost"],
                    [{password, "secret"}]}]}
 ]}.


% Use STARTTLS+Dialback for S2S connections
{s2s_use_starttls, true}.
{s2s_certfile, "/etc/ejabberd/server.pem"}.
%{domain_certfile, "example.org", "./example_org.pem"}.
%{domain_certfile, "example.com", "./example_com.pem"}.

%% S2S Whitelist or blacklist:
%{s2s_default_policy, allow}. %% Default s2s policy for undefined hosts
%%{{s2s_host,"goodhost.org"}, allow}.
%{{s2s_host,"badhost.org"}, deny}.


% If SRV lookup fails, then port 5269 is used to communicate with remote
server
{outgoing_s2s_port, 5269}.


% Used modules:
{modules,
 [
  {mod_register,   [{access, register}]},
  {mod_roster,     []},
  { mod_ctlextra,  []},
% presence ok
%  {mod_webpresence, [
%    {access, local},
%    {pixmaps_path, "/test/var/lib/ejabberd/pixmaps"}]},
% {mod_webpresence, [
%    {host, "webstatus. at HOST@"},
%    {access, local},
%    {pixmaps_path, "/test/var/lib/ejabberd/pixmaps"},
%    {port, 81},
%    {path, "status"}
%  ]},

  {mod_privacy,    []},
  {mod_adhoc,      []},
  {mod_configure,  []}, % Depends on mod_adhoc
  {mod_configure2, []},
  {mod_cron,       []},
  {mod_disco,      []},
  {mod_stats,      []},
%  {mod_statsdx,    [{hooks, true}]},
  {mod_vcard,      []},
  {mod_offline,    []},
  {mod_announce,   [{access, announce}]}, % Depends on mod_adhoc
  {mod_echo,       [{host, "echo.localhost"}]},
  {mod_private,    []},
  {mod_proxy65,    []},
  {mod_profile,    []},
  {mod_logxml,     []},
%% log all vhosts chats in /var/log/ejabberd/chat directory in  format
%% text or html
  {mod_log_chat,  [{path, "/var/log/ejabberd/chat"}, {format, text}]},
%  {mod_irc,        []},
%  {mod_ircd,       [{access, muc}]},
% Default options for mod_muc:
%   host: "conference. at HOST@"
%   access: all
%   access_create: all
%   access_admin: none (only room creator has owner privileges)
 {mod_muc,        [{access, muc},
            {access_create, muc},
            {access_persistent, muc},
            {access_admin, muc_admin}]},

%  {mod_muc_log,    []},
  {mod_muc_log, [{access_log, muc},
    {outdir, "/var/www/muclogs"},
    {dirtype, plain},
    {timezone, universal},
    {top_link, {"http://anubis", "anubis"}}
    ]},
 {mod_muc_admin, []},

%  {mod_http_fileserver, [{docroot, "/var/www/IM"},
%    {accesslog, "/var/log/ejabberd/imaccess.log"}]},

  {mod_shared_roster, [{host,"anubis"}]},
  {mod_pubsub,     [{access_createnode, pubsub_createnode}]},
  {mod_time,       []},
  {mod_multicast,  []},
  {mod_caps,       []},
  {mod_last,       []},
%  {mod_stats2file, [{interval, 3}, {type, html}, {split, true},
%                  {basefilename, "/var/www/IM/stats"},
%                  {hosts, ["localhost", "anubis"]} ]},
  {mod_version,    []}
 ]}.

% Local Variables:
% mode: erlang
% End:



if i disable mod_proxy65 , discovering services is ok with psi

any idea ?

jc beylot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080411/52211172/attachment.htm 


More information about the ejabberd mailing list