ejabberd - Comments for "ejabberd take 100% cpu" https://www.ejabberd.im/node/921 en any ideas ? :/ https://www.ejabberd.im/node/921#comment-2007 <p>any ideas ? :/</p> Sun, 16 Jul 2006 19:16:08 +0000 ohmer comment 2007 at https://www.ejabberd.im Hello, If I log as another https://www.ejabberd.im/node/921#comment-1990 <p>Hello,</p> <p>If I log as another user, the server does not crash.</p> <p>My primary Jabber client is Gajim and I also tried Psi and they both crash the server if I log with my user on the server. I remember the server crashed the first time when I was connected at home with Gajim (away) and at work with Psi (at my computer but not active on Jabber)</p> <p>So the bug seem to be related at my user row in the database. I think I cannot just remove my user and hope the bug doesn't occur later, this is not a real solution to my problem. </p> <p>Thanks.</p> Sun, 09 Jul 2006 16:02:51 +0000 ohmer comment 1990 at https://www.ejabberd.im Re: Yeah I have transport, but https://www.ejabberd.im/node/921#comment-1989 <div class="quote-msg"> <div class="quote-author"><em>sander</em> wrote:</div> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>% For authentication via external script use the following:<br /> {auth_method, external}.<br /> {extauth_program, "/home/jabber/authentification/auth.sh"}.</p></div> <p>Maybe some problem with your external authentication script? </p></div> <p>I don't think so.</p> <p>I'm using the PHP script included with the ejabberd tarball. The SH script just call the PHP one (doesn't work if without this !?).</p> <p>The script authenticate others users (and me in the past) without problems. Also, this is not the script that take 100% cpu but the ejabberd deamon. Plus, I'm able to authenticate myself and see my contact list. The problem seem to occur only after authentication.</p> <p>Thanks.</p> Sun, 09 Jul 2006 15:52:50 +0000 ohmer comment 1989 at https://www.ejabberd.im Re: Yeah I have transport, but https://www.ejabberd.im/node/921#comment-1988 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>% For authentication via external script use the following:<br /> {auth_method, external}.<br /> {extauth_program, "/home/jabber/authentification/auth.sh"}.</p></div> <p>Maybe some problem with your external authentication script?</p> Sun, 09 Jul 2006 12:33:15 +0000 sander comment 1988 at https://www.ejabberd.im Re: ejabberd take 100% cpu https://www.ejabberd.im/node/921#comment-1987 <div class="quote-msg"> <div class="quote-author"><em>ohmer</em> wrote:</div> <p>The problem is that if I connect to the server again with my client, the server take 100% cpu again. Others clients can connect without problems, but if I connect my user on the server, it always bug.</p></div> <p>Possible reasons, and what you can do to be sure:</p> <ul> <li>There's a problem in ejabberd (either bug or DB problem) that only affects your user. Create another user and login on it with the same Jabber client that gives you problems. This way you will know if the problem is the Jabber client or the Jabber server. If the problem was the old user, remove it using the webinterface, create it again and check if it finally works. </li><li>Your Jabber client is buggy, try using the same as your other users. </li><li>You have a strange option enabled on your Jabber client. Ask your users if they enable SSL, TLS, SASL... whatever, and set it as they do. </li></ul> <p>If you find where that weird problem is, please comment it.</p> Sun, 09 Jul 2006 10:17:47 +0000 mfoss comment 1987 at https://www.ejabberd.im Yeah I have transport, but https://www.ejabberd.im/node/921#comment-1986 <p>Yeah I have transport, but the server crash with or without them started.</p> <p>The number of users registered in the database is less than 10.. so there is no many concurrent users.</p> <p>My config file is this (I replaced my domain name, my ip adress and my passwords):</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>% $Id: ejabberd.cfg.example 538 2006-04-22 04:02:42Z alexey $</p> <p>%override_acls.</p> <p>% Users that have admin access. Add line like one of the following after you<br /> % will be successfully registered on server to get admin access:<br /> {acl, admin, {user, "myuser"}}.<br /> %{acl, admin, {user, "ermine"}}.</p> <p>% Blocked users:<br /> %{acl, blocked, {user, "test"}}.</p> <p>% Local users:<br /> {acl, local, {user_regexp, ""}}.</p> <p>% Another examples of ACLs:<br /> %{acl, jabberorg, {server, "jabber.org"}}.<br /> %{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %{acl, test, {user_regexp, "^test"}}.<br /> %{acl, test, {user_glob, "test*"}}.</p> <p>% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>% Every username can be registered via in-band registration:<br /> % You could replace {allow, all} with {deny, all} to prevent user from using<br /> % in-band registration<br /> {access, register, [{deny, all}]}.</p> <p>% After successful registration user will get message with following subject<br /> % and body:<br /> {welcome_message,<br /> {"Welcome!",<br /> "Welcome to Jabber Service. "<br /> "For information about Jabber visit http://jabber.org"}}.<br /> % Replace them with 'none' if you don't want to send such message:<br /> %{welcome_message, none}.</p> <p>% List of people who will get notifications about registered users<br /> %{registration_watchers, ["admin1@mydomain.org",<br /> % "admin2@mydomain.org"]}.</p> <p>% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>% Set shaper with name "normal" to limit traffic speed to 1000B/s<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>% Set shaper with name "fast" to limit traffic speed to 50000B/s<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>% For all users except admins used "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>% For all S2S connections used "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.</p> <p>% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>% Authentication method. If you want to use internal user base, then use<br /> % this line:<br /> %{auth_method, internal}.</p> <p>% For LDAP authentication use these lines instead of above one:<br /> %{auth_method, ldap}.<br /> %{ldap_servers, ["mydomain.org"]}. % List of LDAP servers<br /> %{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID<br /> %{ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory<br /> %{ldap_rootdn, "dc=example,dc=com"}. % LDAP manager<br /> %{ldap_password, "******"}. % Password to LDAP manager</p> <p>% For authentication via external script use the following:<br /> {auth_method, external}.<br /> {extauth_program, "/home/jabber/authentification/auth.sh"}.</p> <p>% For authentication via ODBC use the following:<br /> %{auth_method, odbc}.<br /> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>% Host name:<br /> {hosts, ["mydomain.org"]}.</p> <p>%% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon|login_anon|both<br /> %% allow_multiple_connections: true|false<br /> %%{host_config, "public.example.org", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %% To use both anonymous and internal authentication:<br /> %%{host_config, "public.example.org", [{auth_method, [anonymous, internal]}]}.</p> <p>% Default language for server messages<br /> {language, "fr"}.</p> <p>% Listened ports:<br /> {listen,<br /> [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, {ip, {123, 123, 123, 123}},<br /> starttls, {certfile, "/home/jabber/ssl/ejabberd.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s}, {ip, {123, 123, 123, 123}},<br /> tls, {certfile, "/home/jabber/ssl/ejabberd.pem"}]},</p> <p> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}, {ip, {123, 123, 123, 123}}]},<br /> {5280, ejabberd_http, [http_poll, {ip, {127, 0, 0, 1}}]},<br /> {XXXX, ejabberd_http, [web_admin, {ip, {123, 123, 123, 123}}]},<br /> {XXXX, ejabberd_service, [{ip, {127, 0, 0, 1}}, {host, "msn.mydomain.org",<br /> [{password, "passwd"}]}]},<br /> {XXXX, ejabberd_service, [{ip, {127, 0, 0, 1}}, {host, "icq.mydomain.org",<br /> [{password, "passwd"}]}]},<br /> {XXXX, ejabberd_service, [{ip, {127, 0, 0, 1}}, {host, "aim.mydomain.org",<br /> [{password, "passwd"}]}]},<br /> {XXXX, ejabberd_service, [{ip, {127, 0, 0, 1}}, {host, "yahoo.mydomain.org",<br /> [{password, "passwd"}]}]}<br /> ]}.</p> <p>% Use STARTTLS+Dialback for S2S connections<br /> {s2s_use_starttls, true}.<br /> {s2s_certfile, "/home/jabber/ssl/ejabberd.pem"}.<br /> %{domain_certfile, "example.org", "./example_org.pem"}.<br /> %{domain_certfile, "example.com", "./example_com.pem"}.</p> <p>% If SRV lookup fails, then port 5269 is used to communicate with remote server<br /> {outgoing_s2s_port, 5269}.</p> <p>% Used modules:<br /> {modules,<br /> [<br /> {mod_register, [{access, register}]},<br /> {mod_roster, []},<br /> {mod_privacy, []},<br /> {mod_adhoc, []},<br /> {mod_configure, []}, % Depends on mod_adhoc<br /> {mod_configure2, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]}, % Depends on mod_adhoc<br /> {mod_echo, [{host, "echo.mydomain.org"}]},<br /> {mod_private, []},<br /> {mod_irc, []},<br /> % Default options for mod_muc:<br /> % host: "conference." ++ ?MYNAME<br /> % access: all<br /> % access_create: all<br /> % access_admin: none (only room creator has owner privileges)<br /> {mod_muc, [{access, muc},<br /> {access_create, muc},<br /> {access_admin, muc_admin}]},<br /> % {mod_muc_log, []},<br /> % {mod_shared_roster, []},<br /> {mod_pubsub, []},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p></div> <p>Thanks.</p> Sun, 09 Jul 2006 03:20:09 +0000 ohmer comment 1986 at https://www.ejabberd.im Are you running any https://www.ejabberd.im/node/921#comment-1984 <p>Are you running any transports, how did you configured ejabberd? How many concurrent users do you have?</p> <p>--<br /> sander</p> Sat, 08 Jul 2006 22:12:09 +0000 sander comment 1984 at https://www.ejabberd.im