Chris Fortmüller | 17 Sep 18:06 2014
Picon

ejabberd bosh broke for some reason on my server

Hi All,

I am running ejabberd 2.1.11 ( I couldnt find any newer windows Installer) on my Amazon Web Services Windows Server 2012 machine.

I have a strophe.js xmpp client, which logs in using this code:

var conn = new Strophe.Connection("http://myAWSDNS.com:5280/http-bind/"); // ejabberd
    conn.connect(data.jid, data.password, function (status) {
        console.log('callback being done');
if (status === Strophe.Status.CONNECTED) {
            alert('connected!');
$(document).trigger('connected');
alert('Connected successfully');
        } else if (status === Strophe.Status.DISCONNECTED) {
            $(document).trigger('disconnected');
        }
else
{
Hello.log("error");
console.log('error');
}
    });


This used to work, until for some reason, today it broke. I have no idea why, but now, status never evaluates to Connected or Disconnected, so it just enter the else clause, wirting "error" to the console.

I can reach the BOSH service at above URL (http://myAWSDNS.com:5280/http-bind/)

and can also see that BOSH is started in the web admin of the server.

For completeness, here is my bosh configuration, from ejabberd.cfg:

 {5280, ejabberd_http, [
                         {request_handlers, [
             %% {["web"], mod_http_fileserver}
                {["xmpp-httpbind"], mod_http_bind}
             ]},
             captcha,
             http_bind, 
             http_poll, 
             web_admin
            ]}

 ]}.

and here is my modules section:

%%%   =======
%%%   MODULES

%%
%% Modules enabled in all ejabberd virtual hosts.
%%
{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % requires mod_adhoc
  {mod_caps,     []}, 
  {mod_configure,[]}, % requires mod_adhoc
  {mod_disco,    []},
  %%{mod_echo,   [{host, "echo.WIN-LV4K7BSUPJO"}]},
  {mod_http_bind,[]},



So yeah, up to today it was working, now its not working anymore. All ports are open on the AWS machine, so that should not be an issue. Also, I am able to connect to an openfire server that I sometimes run on the same machin (but never at the same time as ejabberd), using, of course, a modified BOSH URL in that case.

Anyone any idea why I cant connect to the ejabberd server via BOSH anymore? I already reinstalled ejabberd several times, with no success

Thanks,

best regards,

Chris


*(P.S.: I would also be interested in w)hether there are any newer installers for windows, as I said, 2.1.11 was the latest I could find)
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Jiejing.Zhang | 1 Sep 18:37 2014
Picon

XmlRpc failed on some commands, seems require auth, but how?

Hi,

I have an issue when using ejabberd 14.07 (latest, also 13.02) do some ejabberd and xml_rpc to build my application. 

I can use xmlrpc to list user's roster when I development on Mac(14.07), but when I deployment it to Ubuntu server, I cannot get the correct result back from xmlrpc.

The error message is like:

`2014-08-19 05:15:47.159 [error] <0.545.0> {xmlrpc_http,171,{ejabberd_xmlrpc,handler,{'EXIT',{{badmatch,no_auth_provided},[{ejabberd_commands,check_access,2,[{file,"src/ejabberd_commands.erl"},{line,402}]},{ejabberd_commands,'-check_access_commands/5-fun-0-',5,[{file,"src/ejabberd_commands.erl"},{line,373}]},{lists,'-filter/2-lc$^0/1-0-',2,[{file,"lists.erl"},{line,1271}]},{ejabberd_commands,check_access_commands,5,[{file,"src/ejabberd_commands.erl"},{line,371}]},{ejabberd_commands,execute_command,4,[{file,"src/ejabberd_commands.erl"},{line,308}]},{ejabberd_xmlrpc,do_command,6,[{file,"src/ejabberd_xmlrpc.erl"},{line,350}]},{ejabberd_xmlrpc,try_do_command,6,[{file,"src/ejabberd_xmlrpc.erl"},{line,313}]},{xmlrpc_http,eval_payload,7,[{file,"src/xmlrpc_http.erl"},{line,166}]}]}}}} `

And I have checked the source code, and I found it seems caused by the execute_command require an auth information. 

But I don't know how to pass auth information in xml_rpc, also I don't find any example by google. 

I have posted my entire config & error log  & test script in https://github.com/processone/ejabberd/issues/279

But I don't get response for about 2 weeks.

Could some one give some tip on this issue.

Thanks,
Jiejing

Best regards,
Zhang Jiejing
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Holger Weiß | 28 Aug 22:52 2014
Picon
Picon

Support for XEP-0352: Client State Indication (CSI)

An XEP has been published that tries to save some battery on mobile
devices by reducing XMPP traffic when the client is in the background.¹
If you'd like to play around with that, here's an implementation for
ejabberd:

	https://github.com/weiss/ejabberd/tree/csi

There's an older non-standard interface to the same thing provided by
Google a few years ago.²  If you prefer that one for some reason:

	https://github.com/weiss/ejabberd/tree/google-queue

Holger

¹ http://xmpp.org/extensions/xep-0352.html
² http://mail.jabber.org/pipermail/summit/2010-February/000528.html
mayur narole | 20 Aug 06:53 2014
Picon

fwrite(): SSL: Connection reset by peer

Hi All,

We have installed ejabberd, when we are trying to delete the user using service administration (xep-0133) http://xmpp.org/extensions/xep-0133.html#delete-user, it got deleted but some times getting error service-unavailable. And also sometimes getting error fwrite(): SSL: Connection reset by peer.
 
We are using admin users for deleting other users. so is this connection is c2s or s2s?
And if this is c2s then do we need to modify shaper for c2s as {access, c2s_shaper, [{fast, all}]}.

Is it some kind of missing in configuration? 
--
Thanks & Regards,
Mayur S Narole,
Mob . 8956682454
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Mike Wenzel | 15 Aug 14:31 2014
Picon

mod_shared_roster_ldap

I need to setup an ejabberd server (done) and an web-client (done). Now I need to group my users. I'm using my AD to get my users on ejabberd (ldap connection is working fine now – but not in my mod_shared_roster_ldap module). Now those Users are member of different groups. I need to create chat-rooms where ONLY users OF THE SAME GROUPS are in and only the users of the same group should be visible. They may don't the people of other groups. This is really the MOST IMPORTANT thing right here! Does anyone of you know if this is possible?

 

Best Regards,

Mike.

 

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
liudanking | 15 Aug 12:31 2014
Picon

how to create chat room programmatically?

i am using ejabberd v14.07 as my xmpp server. 

And i want to create chat room programmatically:

mod_muc:create_room(<<"mac.xmpp.com">>, "chatgroup", jlib:string_to_jid(<<"liudan <at> localhost">>), "nickname", default)

 

the return value from ejabberdctl live seems everything is ok:

18:03:23.778 [info] Created MUC room chatgroup <at> conference.mac.xmpp.com by liudan <at> localhost

 

but, when i try to check the chat room from web_admin_page generated by mod_muc_admin, ejabberdctl live outputs an error:

18:04:37.714 [error] {badarg,[{mod_muc_admin,build_info_room,1,[{file,"src/mod_muc_admin.erl"},{line,342}]},{mod_muc_admin,'-build_info_rooms/1-lc$^0/1-0-',1,[{file,"src/mod_muc_admin.erl"},{line,318}]},{mod_muc_admin,make_rooms_page,3,[{file,"src/mod_muc_admin.erl"},{line,271}]},{mod_muc_admin,web_page_host,3,[{file,"src/mod_muc_admin.erl"},{line,249}]},{ejabberd_hooks,run_fold1,4,[{file,"src/ejabberd_hooks.erl"},{line,352}]},{ejabberd_web_admin,process_admin,2,[{file,"src/ejabberd_web_admin.erl"},{line,967}]},{ejabberd_http,process,2,[{file,"src/ejabberd_http.erl"},{line,355}]},{ejabberd_http,process_request,1,[{file,"src/ejabberd_http.erl"},{line,404}]}]} running hook: {webadmin_page_host,[<<"mac.xmpp.com">>,{request,'GET',[<<"muc">>],[{nokey,<<>>}],{<<"liudan">>,<<"localhost">>},{auth_jid,{<<"liudan <at> localhost">>,<<"liudan">>},{jid,<<"liudan">>,<<"localhost">>,<<>>,<<"liudan">>,<<"localhost">>,<<>>}},<<"zh-CN">>,<<>>,{{127,0,0,1},50314},<<"localhost">>,5280,http,[{'Accept-Language',<<"zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4">>},{'Accept-Encoding',<<"gzip,deflate,sdch">>},{'Referer',<<"http://localhost:5280/admin/server/mac.xmpp.com/shared-roster/">>},{'User-Agent',<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36">>},{'Accept',<<"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8">>},{'Authorization',<<"Basic bGl1ZGFuQGxvY2FsaG9zdDpsaXVkYW4=">>},{'Connection',<<"keep-alive">>},{'Host',<<"localhost:5280">>}]}]}

and the chat room “chatgroup” is not displayed.


I have read the topic: http://jabber.996255.n3.nabble.com/Create-multi-user-chat-room-programmatically-td23430.html and it did not solve the problem.



Call for help.


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Jorge Guntanis | 5 Aug 21:36 2014

Removing nodes from cluster.

Hi everyone,

How do you remove a node from a cluster?
I'm trying to remove some servers from a cluster, how can I remove it completely, so it doesn't even show up in the offline nodes.

Thanks much,
- Jorge
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Vladimir Stafievsky | 5 Aug 09:32 2014
Picon

Ejabberd crash, core dumped

Hi all!
Cann't understand why ejabberd crashed (1-2 per day), may be anybody can 
help.
There is some info about dump:

gdb /usr/local/lib/erlang/erts-5.10.4/bin/beam.smp --core beam.smp.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging 
symbols found)...
Core was generated by `beam.smp'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libutil.so.9...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libutil.so.9
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libncurses.so.8...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_yaml.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_yaml.so
Reading symbols from /usr/local/lib/libyaml-0.so.2...done.
Loaded symbols for /usr/local/lib/libyaml-0.so.2
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_sha.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_sha.so
Reading symbols from /usr/lib/libssl.so.7...done.
Loaded symbols for /usr/lib/libssl.so.7
Reading symbols from /lib/libcrypto.so.7...done.
Loaded symbols for /lib/libcrypto.so.7
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_tls_drv.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/p1_tls_drv.so
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/expat_erl.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/expat_erl.so
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/stringprep.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/stringprep.so
Reading symbols from 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/ezlib_drv.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/ejabberd-14.05/priv/lib/ezlib_drv.so
Reading symbols from 
/usr/local/lib/erlang/lib/crypto-3.2/priv/lib/crypto.so...done.
Loaded symbols for /usr/local/lib/erlang/lib/crypto-3.2/priv/lib/crypto.so
Reading symbols from 
/usr/local/lib/erlang/lib/crypto-3.2/priv/lib/crypto_callback.so...done.
Loaded symbols for 
/usr/local/lib/erlang/lib/crypto-3.2/priv/lib/crypto_callback.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000004e1a2e in erts_garbage_collect_hibernate ()
[New Thread 801c0c400 (LWP 100635/beam.smp)]
[New Thread 801c0c000 (LWP 100631/beam.smp)]
[New Thread 801c0bc00 (LWP 100624/beam.smp)]
[New Thread 801c0b800 (LWP 100610/beam.smp)]
[New Thread 801c0b400 (LWP 100607/beam.smp)]
[New Thread 801c0b000 (LWP 100576/beam.smp)]
[New Thread 801c0ac00 (LWP 100548/beam.smp)]
[New Thread 801c0a800 (LWP 100544/beam.smp)]
[New Thread 801c0a400 (LWP 100532/beam.smp)]
[New Thread 801c0a000 (LWP 100453/beam.smp)]
[New Thread 801c09c00 (LWP 100433/beam.smp)]
[New Thread 801c09800 (LWP 100418/beam.smp)]
[New Thread 801c09400 (LWP 100397/beam.smp)]
[New Thread 801c09000 (LWP 100384/beam.smp)]
[New Thread 801c08c00 (LWP 100364/beam.smp)]
[New Thread 801c08800 (LWP 100322/beam.smp)]
[New Thread 801c08400 (LWP 100313/beam.smp)]
[New Thread 801c08000 (LWP 100216/beam.smp)]
[New Thread 801c07c00 (LWP 100120/beam.smp)]
[New Thread 801c07800 (LWP 100118/beam.smp)]
[New Thread 801c07400 (LWP 100090/beam.smp)]
[New Thread 801c06c00 (LWP 100088/beam.smp)]
[New Thread 801c06400 (LWP 100580/beam.smp)]
(gdb) bt
#0  0x00000000004e1a2e in erts_garbage_collect_hibernate ()
#1  0x00000000004df4a6 in erts_garbage_collect ()
#2  0x0000000000512f18 in process_main ()
#3  0x000000000048c5c9 in erts_start_schedulers ()
#4  0x0000000000586a8c in ethr_get_ts_event ()
#5  0x00000008010814a4 in pthread_create () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
(gdb) p erts_garbage_collect_hibernate
$1 = {<text variable, no debug info>} 0x4e0b90 
<erts_garbage_collect_hibernate>
(gdb) info thread
   23 Thread 801c06400 (LWP 100580/beam.smp)  0x00000008013d206a in 
select () from /lib/libc.so.7
   22 Thread 801c06c00 (LWP 100088/beam.smp)  0x00000008013d20e8 in read 
() from /lib/libc.so.7
   21 Thread 801c07400 (LWP 100090/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   20 Thread 801c07800 (LWP 100118/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   19 Thread 801c07c00 (LWP 100120/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   18 Thread 801c08000 (LWP 100216/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   17 Thread 801c08400 (LWP 100313/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   16 Thread 801c08800 (LWP 100322/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   15 Thread 801c08c00 (LWP 100364/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   14 Thread 801c09000 (LWP 100384/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   13 Thread 801c09400 (LWP 100397/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   12 Thread 801c09800 (LWP 100418/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   11 Thread 801c09c00 (LWP 100433/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   10 Thread 801c0a000 (LWP 100453/beam.smp)  0x0000000801322d98 in 
wait4 () from /lib/libc.so.7
   9 Thread 801c0a400 (LWP 100532/beam.smp)  0x0000000000464a24 in 
copy_struct ()
   8 Thread 801c0a800 (LWP 100544/beam.smp)  0x00000000004e0630 in 
erts_garbage_collect ()
   7 Thread 801c0ac00 (LWP 100548/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   6 Thread 801c0b000 (LWP 100576/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
* 5 Thread 801c0b400 (LWP 100607/beam.smp)  0x00000000004e1a2e in 
erts_garbage_collect_hibernate ()
   4 Thread 801c0b800 (LWP 100610/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   3 Thread 801c0bc00 (LWP 100624/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   2 Thread 801c0c000 (LWP 100631/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3
   1 Thread 801c0c400 (LWP 100635/beam.smp)  0x000000080108c89c in 
__error () from /lib/libthr.so.3

10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #0: Tue May 13 18:31:10 UTC 2014 
root <at> amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:8:8] 
[async-threads:10] [kernel-poll:false]
Ejabberd 14.05

Thanks!

--

-- 
Wbr,

Vladimir Stafievsky
Stuart Cracraft | 31 Jul 15:08 2014

collboration

Is there anyone on either or both of these lists with experience
in xmpp/ejabberd + tsung for xmpp test-harness who would be
willing to collaborate closely on a short-term project related to
the above.

If so, write back to me at my email address in reply.
Vladimir Stafievsky | 31 Jul 09:46 2014
Picon

xep-0012 and mod_roster odbc

Hi all!
We found a bug today: client always got 403 forbidden response when 
trying to occure jid's last activity (xep-0012) information.
mod_roster.erl line 1241

read_subscription_and_groups(LUser, LServer, LJID,
                  odbc)

Bad: {selected, [<<"subscription">>], [{SSubscription}]}
Good: {selected, [<<"subscription">>], [[SSubscription]]}

Wbr,
VS
David Partain | 30 Jul 11:32 2014
Picon

Request for help: Changes to max_user_sessions having no effect

Greetings,

I apologize in advance if this is a FAQ.  I've tried to find the answer, 
but rather than go completely bald pulling out the rest of my hair, I'm 
hoping someone here can help.

I'm running ejabberd 2.1.10 on an Ubuntu 12.04 server.

The initial config had

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

and users were (not surprisingly) only able to connect to 10 chat rooms. 
  When they connected to the 11th, they got a 503 go-away error.

I thought that it would be a simple matter of changing that to something 
else like:

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

and restarting the server.  No luck.  11th chat room results in the same 
error.

Then I thought I had found something with the override_* options.  I 
commented those out, so I have:

override_global.
override_local.
override_acls.

Unfortunately, this changes nothing, either.

I realize this looks like I'm fumbling in the dark, 'cause I am.  I'm 
relatively new to the ejabberd game.

Can anyone suggest what I might be overlooking?

Thanks.

David

Gmane