Jérôme Sautret | 25 Jun 14:46 2015
Picon

[ANN] ejabberd 15.06: Message archive, configuration checker and new packages

Hello,

ejabberd 15.06 includes over 100 changes since the last release two
months ago. Among those changes it includes several major new
features.

* New features

The focus of this release is archiving and easier configuration.

** Message Archive Management support

Message Archive Management (aka MAM, defined in XEP-313,
http://xmpp.org/extensions/xep-0313.html) is now the de facto standard
for message archiving in XMPP world.

ejabberd now comes with its own full feature message archiving implementation:
– It support both version 0.2 and the more recent version 0.3 of the protocol.
– It support Mnesia internal storage and relational database backend
(aka odbc, but actually use native drivers).

To enable it, simply add mod_mam in ejabberd modules configuration
section, telling it to use your configured relational database.

modules:
...
  mod_mam:
    dbtype: odbc

Please, also check the sql directory to find about the table to add to
(Continue reading)

Muruga Prabu M | 25 Jun 11:46 2015
Picon

PEP Help

REQUIREMENTS


1. Broadcast profile picture and status changes to all users who have presence subscription to the publishing contact

2. If a subscribed user is offline when an event is published, it should be received the next time they come online

3. If a subscribed user is online when an event is published, it will be delivered immediately

4. If an event has been received by the subscriber once, the same event shouldn’t be sent to the subscriber


The above functionalities are similar to WhatsApp functionality to notify users about profile picture and status changes.

1. Is the above possible using PEP in ejabberd ? 
2. What ejabberd configuration should I use.
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Muruga Prabu M | 24 Jun 13:18 2015
Picon

Problem in PEP

The configuration below is the pubsub configuration that I use


mod_pubsub: 

    access_createnode: pubsub_createnode

    ## reduces resource comsumption, but XEP incompliant

    ignore_pep_from_offline: true

    ## XEP compliant, but increases resource comsumption

    ## ignore_pep_from_offline: false

    last_item_cache: false

    plugins: 

      - "pep"

      - "hometree"

      - "flat" # pep requires mod_caps



REQUIREMENT


1. Notify users in my roster of profile picture or status changes (similar to WhatsApp)


PROBLEM


1. I publish the custom event from the client.


XML stanza sent from client


<iq id='Uhs9z-110' type='set'>

    <pubsub

        xmlns='http://jabber.org/protocol/pubsub'>

        <publish node='https://temp.com/userinfo'>

            <item id="U6z3olw0JI5UPAU2">

                <userinfo

                    xmlns='https://temp.com/userinfo'>

                    <status>sleeping</status>

                </userinfo>

            </item>

        </publish>

    </pubsub>

</iq> 



XML stanza received as reply


<iq from='bob <at> temp.com' to='bob <at> temp.com/Smack' id='Uhs9z-110' type='result'>

    <pubsub

        xmlns='http://jabber.org/protocol/pubsub'>

        <publish node='https://temp.com/userinfo'>

            <item id='U6z3olw0JI5UPAU2'/>

        </publish>

    </pubsub>

</iq>


I also received the published event within a message stanza.


The problem is when ever any contact who has a presence subscription to the publishing client comes online, I receive the following message stanza


<message from='bob <at> temp.com' to='bob <at> 54.183.182.28/Smack'>

        <event

            xmlns='http://jabber.org/protocol/pubsub#event'>

            <items node='https://temp.com/userinfo'>

                <item id='MP5OuH4hqxcl2Oyl'>

                    <userinfo

                        xmlns='https://baxder.com/userinfo'>

                        <status>yawning</status>

                    </userinfo>

                </item>

            </items>

        </event>

        <delay

            xmlns='urn:xmpp:delay' from=bob <at> temp.com/Smack' stamp='2015-06-24T10:57:43Z'>

        </delay>

    </message>


Why am I receiving the same message stanza that I published when ever any of my contacts who has presence subscription to me come online ?


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
e7p | 20 Jun 03:53 2015
Picon

Backup is not possible using ejabberdctl in version 2.1.11

Hi,

although I don't know, if the problem may be fixed in newer versions of
ejabberd (2.1.11 is the currently available version in the ubuntu
repository) I may ask, how to resolve the following error:

As I try to migrate an ejabberd to a new host, I wanted to change the
node-host of the jabber node. I followed the instructions from the
documentation chapter "Change Computer Hostname" but got an error when
trying to back up the old node.

# ejabberdctl --node ejabberd <at> phoenix backup /tmp/old.backup
Can't store backup in "/tmp/old.backup" at node ejabberd <at> phoenix:
{"Cannot prepare checkpoint (replica not available)", [pubsub_last_item,
{{1434, 764649, 118530}, ejabberd <at> phoenix}]}

While starting and connecting to the old node works very well, backing
it up leads to this error. Though no backup is generated.

We use LDAP authentication in our configuration and have
mod_shared_roster activated.

What is causing this failure and how could we now generate our backup to
finally change the nodename?

Kind regards,
e7p
ricky gutierrez | 18 Jun 22:24 2015
Picon

Ejabberd different domains

Hi list , I have a question I want to share with you and to clarify my
ideas, I have in a domain A company with 200 users on my ejabberd, now
ask me to call another branch B I have users with ejabberd and mount
another server and including they can be seen, how could you do this
?.

Ejabberd handles virtual domain, but my boss want each branch have
their own server, but they both look and communicate with each other.

like this:

AliceA ==== Are you ok? ===> BobB

BobB ===== Yes ====> AliceA

regardss

--

-- 
rickygm

http://gnuforever.homelinux.com
ricky gutierrez | 11 Jun 22:09 2015
Picon

Fix DOC "multicast"

Hi list , I'm testing with multicast, and I saw that there is an error
in the doc, with the default configuration generates an error

x error on line 693 at position 1: could not find expected ':'
2015-06-11 13:56:12.368 [error]
<0.37.0> <at> ejabberd_config:get_plain_terms_file:211 Cannot load
/opt/ejabberd/conf/ejabberd.yml: Syntax error on line 693 at position
1: could not find expected ':'

default doc

modules:
  mod_multicast:
     host: "multicast.example.org"
     access: multicast
     limits, "> [ {local,message,40}, {local,presence,infinite},
{remote,message,150} ]."

FIX

limits: "> [ {local,message,40}, {local,presence,infinite},
{remote,message,150} ]."

--

-- 
rickygm

http://gnuforever.homelinux.com
Jatin | 10 Jun 20:59 2015
Picon

connect nodejs as proxy to ejabberd server

Hi,

I want to connect my nodejs server as a proxy to ejabberd server.  So the mobile clients will register and send chat messages, group chats, notifications etc via my nodejs server.  And then nodejs server would analyze the message and then send it to ejabberd server and ejabberd server would send the message to the recipient.
So, what modules or technologies do you recommend for this?
is it bosh? node-xmpp-bosh? If yes, how? All the examples have one user login (jid) but nodejs is proxyin on behalf of the mobile apps.

Please let me know.

Thanks,
JP
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Mickaël Rémond | 4 Jun 16:56 2015
Picon

ejabberd SaaS, now with self-sign up

Hello,

We just launched ejabberd SaaS service with clearer plan pricing and 
self-signup.

https://ejabberd-saas.com

The service is growing nicely and already manage large scale chat 
projects.

I hope you will love it :)

--

-- 
Mickaël Rémond
   http://www.process-one.net
_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
ricky gutierrez | 2 Jun 19:14 2015
Picon

mod_man and version15.04

Hi list , I'm doing some tests and I want to try this module, but when
I load it gives me an error:

2015-06-02 11:06:15.652 [error] <0.36.0> CRASH REPORT Process <0.36.0>
with 0 neighbours exited with reason: no function clause matc
hing lists:map(#Fun<gen_iq_handler.3.72137204>, true) line 1236 in
application_master:init/4 line 133
2015-06-02 11:06:15.655 [info] <0.7.0> Application ejabberd exited
with reason: no function clause matching lists:map(#Fun<gen_iq_ha
ndler.3.72137204>, true) line 1236

line 133 I have nothing and 1236 does not exist within the yml

add the module  this way:

ejabberdctl modules_update_specs

ejabberdctl module_install mod_mam

ejabberd.yml:

mod_roster: []
  versioning: true

mod_mam: []

any idea?

regardss

--

-- 
rickygm

http://gnuforever.homelinux.com
anson | 28 May 19:44 2015

disable_sasl_mechanisms option setup

hi,
I would like to use just PLAIN mechanism on ejabberd.
Is disable_sasl_mechanisms the right option I need to configure?
And how can I configure it in /etc/ejabberd/ejabberd.cfg ?
The following is my configuration in ejabberd.cfg, but ejabberd can not even
started.
{auth_method, internal}.
{auth_password_format, plain}.
{disable_sasl_mechanisms, [SCRAM-SHA-1,DIGEST-MD5] }.

Please help me out.
BTW, my system is Ubuntu14.04.
Thanks.

--
View this message in context: http://jabber.996255.n3.nabble.com/disable-sasl-mechanisms-option-setup-tp34948.html
Sent from the ejabberd mailing list archive at Nabble.com.
Vladimir Stafievsky | 27 May 14:30 2015
Picon

ejabberd erl crash every 5 minutes

Hi all!
We've 4 nodes cluster of ejabberd 15.02 (otp17). Every ~5 minute we've 
got erl crush dump on logs folder.
There is a link for dump 
https://dl.dropboxusercontent.com/u/97445037/erl_crash.dump
Some basic information from there:

Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k
System version: Erlang/OTP 17 [erts-6.1.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:true]

Users online > 100k (>25k per node)
OS FreeBSD 10
ERL_MAX_PORTS=524288
ERL_PROCESSES=5000000
ERL_MAX_ETS_TABLES=262144

Don't have any idea how to fix it.
Thanks in advance

--

-- 
Wbr,

Vladimir Stafievsky

Gmane