ejabberd - Comments for "Initial Administrator not working" https://www.ejabberd.im/node/1328 en Two weeks into this - about https://www.ejabberd.im/node/1328#comment-3039 <p>Two weeks into this - about to give up...</p> <p>- Reinstalled ejabberd AGAIN<br /> - Used the ejabberd.cfg file above - added a host called {hosts, ["jabber"]}. Added the user jabbermin just like before.<br /> - Went into my DNS server &amp; created a host record for jabber. I can now ping it from anywhere.<br /> - When I start the ejabberd service, I get a "node ejabberd@myhost is starting. Status: started. Ejabberd is not running" No clue what this means. Yesterday (before the reinsall) I did not get this error - everything started.<br /> - When I logon to the webpage - I get "page not found" - I used to get a logon, not anymore.</p> <p>Thanks,<br /> Rob</p> Wed, 07 Feb 2007 20:57:19 +0000 sternfan comment 3039 at https://www.ejabberd.im here's my config file - https://www.ejabberd.im/node/1328#comment-3027 <p>here's my config file - maybe this will shed some light on why I can't logon...</p> <p>% $Id: ejabberd.cfg.example 577 2006-06-07 08:38:37Z mremond $</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, "aleksey"}}.<br /> {acl, admin, {user, "jabbermin"}}.<br /> {acl, admin, {user, "ejabberd"}}.</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>% Everybody can create pubsub nodes<br /> {access, pubsub_createnode, [{allow, all}]}.</p> <p>% Only admins can use configuration interface:<br /> {access, configure, [{allow, jabbermin}]}.<br /> {access, configure, [{allow, ejabberd}]}.</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, [{allow, 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@localhost",<br /> % "admin2@localhost"]}.</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, ["localhost"]}. % 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, "/path/to/authentication/script"}.</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, ["localhost"]}.</p> <p>%% Define the maximum number of time a single user is allowed to connect:<br /> {max_user_sessions, 10}.</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, "en"}.</p> <p>% Listened ports:<br /> {listen,<br /> [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> {max_stanza_size, 65536},<br /> starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s},<br /> {max_stanza_size, 65536},<br /> tls, {certfile, "/etc/ejabberd/ejabberd.pem"}]},<br /> % Use these two lines instead if TLS support is not compiled<br /> %{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},<br /> %{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "/etc/ejabberd/ejabberd.pem"}]},<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},<br /> {5280, ejabberd_http, [http_poll, web_admin]},<br /> {8888, ejabberd_service, [{access, all},<br /> {hosts, ["icq.localhost", "sms.localhost"],<br /> [{password, "secret"}]}]}<br /> ]}.</p> <p>% Use STARTTLS+Dialback for S2S connections<br /> {s2s_use_starttls, true}.<br /> {s2s_certfile, "/etc/ejabberd/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.localhost"}]},<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, [{access_createnode, pubsub_createnode}]},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> <p>Anybody see anything wrong?</p> <p>Thanks,<br /> Rob</p> Tue, 06 Feb 2007 16:01:41 +0000 sternfan comment 3027 at https://www.ejabberd.im You do not need to create a https://www.ejabberd.im/node/1328#comment-2995 <p>You do not need to create a system user to log in to ejabberd's web interface.</p> <p>--<br /> sander</p> Fri, 02 Feb 2007 11:14:41 +0000 sander comment 2995 at https://www.ejabberd.im initial admin https://www.ejabberd.im/node/1328#comment-2994 <div class="quote-msg"> <div class="quote-author"><em>sternfan</em> wrote:</div> <p>I did check the two sections - one on ejabberdctl - which I tried to run (I am assuming it should be run in a terminal) - and get a "command not found."</p></div> <p>Try to locate the script using </p> <pre>find / | grep ejabberdctl</pre><p>. Also not that you should start the script with the same sytem user you used to start ejabberd. Btw: if you installed ejabberd from source, you can use this <noindex><a href="/node/1117" rel="nofollow" >enhanced ejabberdctl script</a></noindex> (PS: feedback about that patch is welcome).</p> <div class="quote-msg"> <div class="quote-author"><em>sternfan</em> wrote:</div> <p>I then tried the second option - to use Exodus - and it did not work either.</p></div> <p>Can you try with <noindex><a href="http://hem.fyristorg.com/matben/" rel="nofollow" >Coccinella</a></noindex>? This client has an account registration wizard, and I know this client which makes debugging your issue easier.</p> <p>Also, can you try to telnet to your server?: </p> <pre>telnet example.org 5222</pre><p>If you get a message such as "host unknown", you'll know why you can't register with Exodus.</p> <div class="quote-msg"> <div class="quote-author"><em>sternfan</em> wrote:</div> <p>However, when I try to logon into the web admin - it asks for a user/pwd (which tells me something is working on the server) but I do not have a user! </p></div> <p>You indeed should register first a user and give it administrator privileges, as described in the guide.</p> <div class="quote-msg"> <div class="quote-author"><em>sternfan</em> wrote:</div> <p>(just for testing purposes).</p></div> <p>If it is for testing, I propose to use either the binary installer, or ejabberd source + the ejabberdctl patch I mentioned above. Both are easier for ejabberd newbies to get running.</p> <p>--<br /> sander</p> Fri, 02 Feb 2007 11:13:24 +0000 sander comment 2994 at https://www.ejabberd.im Still not working https://www.ejabberd.im/node/1328#comment-2991 <p>What I did today:</p> <p>- resinstalled ejabberd<br /> - created a new user in Fedora named jabbermin.<br /> - went into the ejabberd.cfg, created a {acl,admin, (user, "jabbermin")}</p> <p>Try to logon to <noindex><a href="http://servername:5280/admin" title="http://servername:5280/admin" rel="nofollow" >http://servername:5280/admin</a></noindex></p> <p>I get a LOGON prompt. I put in jabbermin@servername.domain.local and the password.</p> <p>And it is still not working. Just tried every variation of jabbermin (plain jabbermin, jabbermin@servername ; etc etc).</p> <p>Nothing is working....</p> <p>Thanks for any help,<br /> Rob</p> Thu, 01 Feb 2007 22:03:53 +0000 sternfan comment 2991 at https://www.ejabberd.im I did check the two sections https://www.ejabberd.im/node/1328#comment-2985 <p>I did check the two sections - one on ejabberdctl - which I tried to run (I am assuming it should be run in a terminal) - and get a "command not found."</p> <p>I then tried the second option - to use Exodus - and it did not work either.</p> <p>However, when I try to logon into the web admin - it asks for a user/pwd (which tells me something is working on the server) but I do not have a user!</p> <p>Anyways, this is driving me nuts - I'm convinced that if I could just get a User Account it would work.</p> <p>Rob</p> <p>PS - I am not running SELinux or a Firewall on this box at the moment (just for testing purposes).</p> Wed, 31 Jan 2007 16:50:54 +0000 sternfan comment 2985 at https://www.ejabberd.im check the guide https://www.ejabberd.im/node/1328#comment-2980 <div class="quote-msg"> <div class="quote-author"><em>sternfan</em> wrote:</div> <p>I telnet into the server - it opens (like it is connected) but there is no title or anything...</p> <p>I try logging on to the admin webpage - it DOES let me try to logon - but no matter what I try - even ROOT - nothing works...</p> <p>I try exodus again - user@servername.domain.local - try to setup a new account - just hangs there at "trying to connect..."</p> <p>What is the easiest way to setup a user for this?</p></div> <p>The guide contains a section about entering the web interface and another one about creating an initial administrator user. Can you check these two sections first?</p> <p>--<br /> sander</p> Wed, 31 Jan 2007 13:47:58 +0000 sander comment 2980 at https://www.ejabberd.im I telnet into the server - https://www.ejabberd.im/node/1328#comment-2974 <p>I telnet into the server - it opens (like it is connected) but there is no title or anything...</p> <p>I try logging on to the admin webpage - it DOES let me try to logon - but no matter what I try - even ROOT - nothing works...</p> <p>I try exodus again - user@servername.domain.local - try to setup a new account - just hangs there at "trying to connect..."</p> <p>What is the easiest way to setup a user for this?</p> <p>Thanks,<br /> Rob</p> Tue, 30 Jan 2007 20:32:10 +0000 sternfan comment 2974 at https://www.ejabberd.im Creating an account with a https://www.ejabberd.im/node/1328#comment-2969 <p>Creating an account with a Jabber client should work. If it isn't, maybe ejabberd is not correctly started. To make sure, check ejabberd log files for ERROR or CRASH reports.</p> <p>Also, try to connect to ejabberd using a plain connection. On this example I try if jabber.org works. You should try your host 'localhost', or whatever is specified on your ejabberd.cfg's 'hosts' option:</p> <pre>$ telnet jabber.org 5222 Trying 208.245.212.98... aaaaaa Connected to jabber.org. Escape character is '^]'. ... Connection closed by foreign host.</pre> Tue, 30 Jan 2007 18:44:47 +0000 mfoss comment 2969 at https://www.ejabberd.im