ejabberd 2.1.8 keeps starting 2.1.7 and ignores config file

Hey there,
I use ejabberd on Gentoo Linux. On june 20th I upgraded from 2.1.7 to 2.1.8, but did not restart the daemon. This morning, I had to reboot the machine the daemon runs on, and since that, I can not connect to ejabberd anymore.
Pidgin and PSI tell me, that I would not be authorized, here is an excerpt from the log:
=INFO REPORT==== 2011-07-17 10:34:27 ===
I(<0.314.0>:ejabberd_c2s:784) : ({socket_state,tls,{tlssock,#Port<0.3549>,#Port<0.3561>},<0.313.0>}) Failed authentication for jimini@bla.host.org

I am also unable to register new users, either with Pidgin / PSI or directly on the machine by using "ejabberdctl register test3 test3@bla.host.org secretpw":
Can't register user test3@test3@bla.host.org at node ejabberd@localhost: not_allowed

Then I noticed the following:
Atlas jabber # ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 2.1.7 is running in that node

1) why is the daemon started as version 2.1.7?
2) why does the daemon seem not to use my config-file?

{loglevel, 4}.

{hosts, ["bla.host.org"]}.

{listen,
[
  {5222, ejabberd_c2s, [

                        {certfile, "/etc/ssl/ejabberd/server.pem"}, starttls,

                        {access, c2s},              
                        {shaper, c2s_shaper},              
                        {max_stanza_size, 65536}     
                       ]},                        

  {5223, ejabberd_c2s, [                        
                        {access, c2s},              
                        {shaper, c2s_shaper},              
                        {certfile, "/etc/ssl/ejabberd/server.pem"}, tls,
                        {max_stanza_size, 65536}     
                       ]},                        

  {5269, ejabberd_s2s_in, [                     
                           {shaper, s2s_shaper},           
                           {max_stanza_size, 131072}  
]}                     
]}.                                               

{s2s_use_starttls, optional}.                            

{s2s_certfile, "/etc/ssl/ejabberd/server.pem"}.              

{auth_method, internal}.                                 

{shaper, normal, {maxrate, 1000}}.                    

{shaper, fast, {maxrate, 50000}}.                      

{max_fsm_queue, 1000}.

{acl, admin, {user, "jimini", "10.0.0.4"}}.                 

{acl, local, {user_regexp, ""}}.                    

{access, max_user_sessions, [{10, all}]}.

{access, max_user_offline_messages, [{5000, admin}, {100, all}]}.

{access, local, [{allow, local}]}.

{access, c2s, [{deny, blocked},
               {allow, all}]}.

{access, c2s_shaper, [{none, admin},
                      {normal, all}]}.

{access, s2s_shaper, [{fast, all}]}.

{access, announce, [{allow, admin}]}.

{access, configure, [{allow, admin}]}.

%{access, pubsub_createnode, [{allow, local}]}.

{access, register, [{allow, all}]}.

{registration_timeout, 600}.

{language, "en"}.

%{captcha_cmd, "/usr/lib64/erlang/lib/ejabberd-2.1.6/priv/bin/captcha.sh"}.

%{captcha_host, "example.org:5280"}.

{modules,
[
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % recommends mod_adhoc
  {mod_caps,     []},
  {mod_configure,[]}, % requires mod_adhoc
  {mod_disco,    []},
  {mod_echo,   [{host, "echo.localhost"}]},
  {mod_last,     []},
  {mod_offline,  [{access_max_user_messages, max_user_offline_messages}]},
  {mod_ping,     []},
  {mod_privacy,  []},
  {mod_private,  []},
  %%{mod_proxy65,[]},
%  {mod_pubsub,   [
%                 {access_createnode, pubsub_createnode},
%                 {ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
%                 %%{ignore_pep_from_offline, false},  % XEP compliant, but increases resource comsumption
%                 {last_item_cache, false},
%                 {plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
%                ]},
  {mod_register, [
                  %%
                  %% Protect In-Band account registrations with CAPTCHA.
                  %%
                  {captcha_protected, false},

                  %%{password_strength, 32},

                  {welcome_message, {"Welcome!",
                                     "Hi.\nWelcome to this XMPP server."}},

                  {registration_watchers, ["jimini@bla.host.org"]},

                  {ip_access, [{allow, "127.0.0.0/8"},
                               {deny, "0.0.0.0/0"}]},

                  {access, register}
                 ]},
  {mod_register_web, [
                  {registration_watchers, ["jimini@bla.host.org"]}
                 ]},
  {mod_roster,   []},
  {mod_service_log,[]},
  {mod_shared_roster,[]},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_vcard,    []},
  {mod_version,  []}
]}.

%%%.
%%%'

%%% $Id$

%%% Local Variables:
%%% mode: erlang
%%% End:
%%% vim: set filetype=erlang tabstop=8 foldmarker=%%%',%%%. foldmethod=marker:

Best regards,
Jimini

Jimini wrote: I use ejabberd

Jimini wrote:

I use ejabberd on Gentoo Linux. On june 20th I upgraded from 2.1.7 to 2.1.8, but did not restart the daemon. This morning, I had to reboot the machine the daemon runs on, and since that, I can not connect to ejabberd anymore.
Pidgin and PSI tell me, that I would not be authorized, here is an excerpt from the log:
=INFO REPORT==== 2011-07-17 10:34:27 ===
I(<0.314.0>:ejabberd_c2s:784) : ({socket_state,tls,{tlssock,#Port<0.3549>,#Port<0.3561>},<0.313.0>}) Failed authentication for jimini@bla.host.org

It seems as if the old database isn't used, or you provide wrong password

Are the old accounts available?
$ ejabberdctl registered_users localhost
badlop
badlop2
user1
user2

Jimini wrote:

I am also unable to register new users, either with Pidgin / PSI or directly on the machine by using "ejabberdctl register test3 test3@bla.host.org secretpw":
Can't register user test3@test3@bla.host.org at node ejabberd@localhost: not_allowed

Why are there so many @ in the user JID?

Jimini wrote:

Then I noticed the following:
Atlas jabber # ejabberdctl status
The node ejabberd@localhost is started with status: started
ejabberd 2.1.7 is running in that node

1) why is the daemon started as version 2.1.7?

Don't worry, this is because 2.1.8 still advertices as 2.1.7. You can see the mistake in the file ejabberd.app

Jimini wrote:

2) why does the daemon seem not to use my config-file?

Why do you think the daemon doesn't use your config? Check with
netstat -nlp | grep beam
if it listens in 5222. Then change that number in the config to 5666, restart, and see if ejabberd now listens 5666.

Thank you for your answer. At

Thank you for your answer.

At the moment, no accounts are listed. Yesterday, I emptied /var/spool/jabber/ for testing purposes, so I would have to search a backup of that folder first. But It is also impossible to create ne accounts, I always get the error "403: forbidden" in Pidgin. Using "ejabberdctl", I can register users without any problems.

The other things I was asking for were simply stupid mistakes by myself.
Thanks for your help so long!

Best regards,
Jimini

Syndicate content