[FUG-BR] Ejabberd levanta mas não libera portas necessárias. [RESOLVIDO DA PIOR MANE IRA POSSIVEL]
Junior Pires
junior em gujao.com
Quarta Março 7 08:21:17 BRT 2007
Grande carlos, obrigado pela resposta, mas tá tudo ok na conf... Eu
consegui resolver o problema aqui, mas foi da pior maneira possovel.
A questão, foi que quando eu dei um "kill -9" no processo, tinha mais ou
menos uns 50 usuários conectados o que induziu à uma avaria no banco de
dados de usuários. Portanto, eu tive que ir em /var/spool/ejabberd e dar
um "rm *" para deletar os arquivos de usuários e sair recadastrando todo
mundo (trampo né? rsrs).
Mas tá de boa, valeu pela força ai e um forte abraço a todos! =D
> Junior Pires escreveu:
>> Olá pessoal, eu estava aqui com um servidor ejabberd funcionando
>> direitinho, os usuários autenticando normalmente através do pandion. mas
>> hoje, quando eu fui fazer uma alteração no meu servidor fiz a burrice de
>> dar um "kill -9" no processo, e depois quando fui levantar, ele levanta
>> o
>> serviço, mas não deixa disponivél as portas necessárias para conexão dos
>> usuários, tipo a 5222, 5223...
>>
>> Quando dou um sockstat | grep ejabberd, me volta o seguinte:
>>
>> mail# sockstat | grep ejabberd
>> ejabberd ssl_esock 18087 4 tcp4 127.0.0.1:55480 *:*
>> ejabberd beam 17923 5 tcp4 *:63743 *:*
>> ejabberd beam 17923 6 tcp4 127.0.0.1:52310 127.0.0.1:4369
>> ejabberd epmd 17921 3 tcp4 *:4369 *:*
>> ejabberd epmd 17921 4 tcp4 127.0.0.1:4369
>> 127.0.0.1:52310
>>
>> Dei uma olhada nos logs e achei isso:
>>
>> RPC failed on the node ejabberd em mail: {'EXIT',
>> {badarg,
>> [{erlang,
>> port_control,
>> [stringprep_port,1,"mail"]},
>> {stringprep,control,2},
>> {jlib,nameprep,1},
>> {ejabberd_auth,auth_modules,1},
>> {ejabberd_auth,is_user_exists,2},
>> {ejabberd_auth,try_register,3},
>> {ejabberd_ctl,process,1},
>> {rpc,'-handle_call/3-fun-0-',5}]}}
>>
>> Alguém tem o caminho das pedras?
>>
>> Agradeço.
>>
> Fala ae Jr Blz? Cara estou enviando o meu cfg para ver se tem coisa
> errada na sua conf
>
> ------------- INICIO ejjaberd.cfg -------------
>
> % $Id: ejabberd.cfg 332 2005-04-27 01:08:18Z alexey $
>
> %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, "cajardim"}}.
> {acl, admin, {user, "giovani"}}.
> {acl, admin, {user, "cpbrandao"}}.
>
> % 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*"}}.
>
>
> % Only admins can use configuration interface:
> {access, configure, [{allow, admin}]}.
>
> % Every username can be registered via in-band registration:
> {access, register, [{deny, all}]}.
>
> % After successful registration user will get message with following
> subject
> % and body:
> {welcome_message,
> {"Bem Vindo!",
> "Bem vindo ao Servidor da Rede Integrada"
> "Esperamos que voce aproveite este servico! Para maiores informacoes
> sobre como usa-lo, contacte o administrador da rede"}}.
> % 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, ["cajardim em messenger.redeintegrada"]}.
>
> % 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}]}.
>
>
> % Authentification method. If you want to use internal user base, then
> use
> % this line:
> {auth_method, internal}.
>
> % For LDAP authentification 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
>
> % For authentification via external script use the following:
> %{auth_method, external}.
> %{extauth_program, "/path/to/authentification/script"}.
>
> % For authentification via ODBC use the following:
> %{auth_method, odbc}.
> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.
>
>
> % Host name:
> {hosts, ["messenger.redeintegrada"]}.
>
>
> % Default language for server messages
> {language, "pt_br"}.
>
> % Listened ports:
> {listen,
> [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
> starttls, {certfile, "/usr/local/etc/ejabberd/server.pem"}]},
> {5223, ejabberd_c2s, [{access, c2s},
> ssl, {certfile, "/usr/local/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,
> "./ssl.pem"}]},
> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
> {5280, ejabberd_http, [http_poll, web_admin]},
> {8888, ejabberd_service, [{access, all},
> {hosts, ["icq.localhost", "sms.localhost"],
> [{password, "secret"}]}]}
> ]}.
>
> % 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_shared_roster, []},
> {mod_privacy, []},
> {mod_configure, []},
> {mod_configure2, []},
> {mod_disco, []},
> {mod_stats, []},
> {mod_vcard, []},
> {mod_offline, []},
> {mod_announce, [{access, announce}]},
> {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_pubsub, []},
> {mod_time, []},
> {mod_last, []},
> {mod_version, []}
> ]}.
>
>
>
>
> % Local Variables:
> % mode: erlang
> % End:
>
> ------------- FIM ejjaberd.cfg -------------
>
> Att.
>
> --
>
>
>
> --------------------------------
> Carlos Anderson Jardim
> Tecnologia da Informacao - Redes e Internet
> Santa Casa de São José dos Campos
> Linux User #403727
> FUG-BR User #381
> Tel.: (12) 3925-1873 - 3925-1925
>
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
> --
> Esta mensagem foi verificada pelo sistema de antivírus e
> acredita-se estar livre de perigo.
>
>
--
Junior Pires
Assistente de Informáica
CPD
Gujão Alimentos.
Tel: (75) 3244-2121 (Ramal 202).
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.
Mais detalhes sobre a lista de discussão freebsd