[ejabberd] Pubsub: item not found

Vincent Courcelle vincent.courcelle at gmail.com
Thu Jan 21 13:30:13 MSK 2010


From: ejabberd-bounces at jabber.ru [mailto:ejabberd-bounces at jabber.ru] On
Behalf Of kael

Sent: mercredi 20 janvier 2010 18:09





On 01/20/2010 10:59 AM, Vincent Courcelle wrote:

> Hello,



> Could you post the OS environment, the Ejabberd version, and the

> excerpt of ejabberd.cfg containing {mod_pubsub, [ ... ]} ?



Hi Kael, Hi Everybody,



I finnally managed the things, the problem was I was calling
push.oopad.cominstead of
pubsub.push.oopad.com



I'm using Debian SID, ejabberd Version: 2.1.2-1 (installed via aptitude)



Config of pubsub is :

  {mod_pubsub,   [ % requires mod_caps

                  {access_createnode, pubsub_createnode},

                  {pep_sendlast_offline, false},

                  {last_item_cache, false},

                  %% {plugins, ["default", "pep"]}

                  {plugins, ["flat", "hometree", "pep"]}  % pep requires
mod_caps



I've a new problem now, anonymous subscription aren't removed at user
disconnection, thus causing a LOT of orphan subscriptions to be left (as
almost every page views creates an anonymous connection + a subscription).
The bug is known and described here with a fix, but I've no idea where to
put the line : https://support.process-one.net/browse/EJAB-913

Do you have any idea how to solve this?



Here are how the subscription is done:

SENT: <body rid='351001713' xmlns='http://jabber.org/protocol/httpbind'
sid='1bceae00285f64b50f45e207317804a3d850450a'><iq from='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142' to='
pubsub.push.oopad.com' type='set' id='297:subscribenode'
xmlns='jabber:client'><pubsub
xmlns='http://jabber.org/protocol/pubsub'><subscribe
node='/home/push.oopad.com/server/channel' jid='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142'/
></pubsub></iq></body>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><message
xmlns='jabber:client' from='pubsub.push.oopad.com' to='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142'><event
xmlns='http://jabber.org/protocol/pubsub#event'><items node='/home/
push.oopad.com/server/channel'/></event></message></body>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><iq
xmlns='jabber:client' from='pubsub.push.oopad.com' to='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142'
id='297:subscribenode' type='result'><pubsub xmlns='
http://jabber.org/protocol/pubsub'><subscription jid='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142'
subscription='subscribed' subid='4F010B1D82CF7'/></pubsub></iq></body>







And retrieved by the owner:

SENT: <body rid='1994531870' xmlns='http://jabber.org/protocol/httpbind'
sid='7b2b4ed881cfa7a7f156ce1d7942dbc5ca8e4b9f'><iq type='get' from='
server at push.oopad.com/3965767225126468241566636' to='pubsub.push.oopad.com'
id='subman1' xmlns='jabber:client'><pubsub xmlns='
http://jabber.org/protocol/pubsub#owner'><subscriptions node='/home/
push.oopad.com/server/channel'/></pubsub></iq></body>

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><iq
xmlns='jabber:client' from='pubsub.push.oopad.com' to='
server at push.oopad.com/3965767225126468241566636' id='subman1'
type='result'><pubsub
xmlns='http://jabber.org/protocol/pubsub#owner'><subscriptions
node='/home/push.oopad.com/server/channel'><subscription jid='
1509091452126468264127075 at push.oopad.com/3308336906126468264675729'
subscription='subscribed' subid='4F010AF991F93'/><subscription jid='
3862577295126468371691261 at push.oopad.com/1812062654126468372345142'
subscription='subscribed'
subid='4F010B1D82CF7'/></subscriptions></pubsub></iq></body>





Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100121/cdf932d1/attachment.html>


More information about the ejabberd mailing list