Hi, >From time to time, pymsnt starts using a lot of CPU for about 30s, while it doesn't use that much the rest of the time. No message is logged during this time period.
Those high load periods can be seen on http://apijab.apinc.org/munin/apinc.org/apijab.apinc.org-cpu.html pymsnt is nearly the only thing running on this system, and I've verified that pymsnt was the cause for the high CPU usage. pymsnt log: (I have quite a lot of users, so I usually receive several messages per second) [2006-06-01 13:06:47] INFO :: [EMAIL PROTECTED] :: :: contactStatusChanged :: glue.LegacyConnection :: {'remoteUser': '[EMAIL PROTECTED]', 'self': 'instance'} [2006-06-01 13:06:47] INFO :: [EMAIL PROTECTED] :: :: sendPresence :: Session :: {'status': u'', 'show': None, 'self': 'instance', 'fro': '[EMAIL PROTECTED]/msn', 'avatarHash': '9a9daf48824e2da088a085ae512a2e0377367e18', 'ptype' : None, 'priority': None, 'to': u'[EMAIL PROTECTED]', 'nickname': u"xxx", 'payload': [<twisted.words.xish.domish.E lement object at 0xb3f2e0ac>]} [2006-06-01 13:06:47] >> QNG 48 [2006-06-01 13:07:22] >> QNG 41 [2006-06-01 13:07:22] >> QNG 42 [2006-06-01 13:07:22] >> NLN AWY (Note the 35s stop between the two QNG messages) I get this regularly, for example : [2006-06-01 13:07:23] >> QNG 45 [2006-06-01 13:07:23] >> QNG 42 [2006-06-01 13:07:59] >> QNG 45 Sometimes, it's longer or shorter that 35s : 13:08:38 -> 13:09:17 What does QNG mean ? What could be the source for this ? I'm using pymsnt r168. I'm available for testing/debugging if needed. -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | From [EMAIL PROTECTED] Thu Jun 1 11:29:28 2006 From: [EMAIL PROTECTED] (Lucas Nussbaum) Date: Thu Jun 1 11:29:34 2006 Subject: [py-transports] Imminent PyMSNt 0.11.1 release In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 31/05/06 at 17:08 +0200, Lars T. Mikkelsen wrote: > Hi Lucas, > > On Wed, May 31, 2006 at 10:12:42AM +0200, Lucas Nussbaum wrote: > > [2006-05-30 23:18:41] INFO :: (u'[EMAIL PROTECTED]', '[EMAIL PROTECTED]') > > :: :: sendMessageReal :: msn.msnw.OneSwitchboardSession :: {'text': > > u'merci de la r\xe9ponse', ' > > noerror': False, 'self': 'instance'} > > [2006-05-30 23:18:41] << MSG 10 N 82 > > [2006-05-30 23:18:41] << MIME-Version: 1.0 > > [2006-05-30 23:18:41] << Content-Type: text/plain; charset=UTF-8 > > [2006-05-30 23:18:41] merci de la r?ponse > > [2006-05-30 23:18:41] >> 715 8 > > [2006-05-30 23:18:41] Unhandled error in Deferred: > > [2006-05-30 23:18:41] Traceback (most recent call last): > > Failure: <type 'int'>: 715 > > You should have a line preceding this that reads "<< ??? 8 ...", that is > a command (???) with the same ID (8) as the error. I think it would be > helpful to know what command triggered the error. I see, I didn't know that "8" was the ID. Here are some examples : [2006-05-31 10:17:34] << PRP 7 MFN [...] [2006-05-31 10:17:35] >> 715 7 [2006-05-31 10:17:35] Unhandled error in Deferred: [2006-05-31 10:17:35] Traceback (most recent call last): Failure: <type 'int'>: 715 [2006-05-31 10:17:35] << CHG 11 NLN 1879048192 [...] [2006-05-31 10:17:35] >> 715 11 [2006-05-31 10:17:35] Unhandled error in Deferred: [2006-05-31 10:17:35] Traceback (most recent call last): Failure: <type 'int'>: 715 [2006-05-31 10:28:50] << PRP 12 MFN [...] [2006-05-31 10:28:51] >> 715 12 [2006-05-31 10:28:51] Unhandled error in Deferred: [2006-05-31 10:28:51] Traceback (most recent call last): Failure: <type 'int'>: 715 [2006-05-31 10:30:37] << PRP 8 MFN [...] [2006-05-31 10:30:37] >> 715 8 [2006-05-31 10:30:37] Unhandled error in Deferred: [2006-05-31 10:30:37] Traceback (most recent call last): Failure: <type 'int'>: 715 Regards, -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | From [EMAIL PROTECTED] Thu Jun 1 12:49:50 2006 From: [EMAIL PROTECTED] (Daniel Henninger) Date: Thu Jun 1 12:51:08 2006 Subject: [py-transports] Fun =) Message-ID: <[EMAIL PROTECTED]> Hi folk! Just for fun, I created a quick frappr map for the python transports: http://www.frappr.com/pythontransportsusers Enjoy! PS. Thanks to Hal from the Psi dev team for creating one for Psi that reminded me Frappr existed. ;) Daniel From [EMAIL PROTECTED] Thu Jun 1 20:37:32 2006 From: [EMAIL PROTECTED] (Travis Bell) Date: Thu Jun 1 20:37:43 2006 Subject: [py-transports] Imminent PyMSNt 0.11.1 release In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> One more for ya. NO idea what this even means. ---------- [2006-06-01 14:22:51] Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/ python/log.py", line 53, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/ python/log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/ python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/ python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/ internet/pollreactor.py", line 160, in _doReadOrWrite why = selectable.doRead() File "/usr/local/lib/python2.4/site-packages/twisted/ internet/tcp.py", line 349, in doRead return self.protocol.dataReceived(data) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/xmlstream.py", line 72, in dataReceived self.stream.parse(buf) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/domish.py", line 524, in parse self.parser.Parse(buffer) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/domish.py", line 564, in _onEndElement self.ElementEvent(self.currElem) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/xmlstream.py", line 104, in onElement self.dispatch(element) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/twisted/words/ xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "/usr/opt/transports/pymsnt-r166/src/main.py", line 280, in onPresence s.onPresence(el) File "/usr/opt/transports/pymsnt-r166/src/jabw.py", line 256, in onPresence self.subscriptionReceived(toj.userhost(), ptype) File "/usr/opt/transports/pymsnt-r166/src/session.py", line 336, in subscriptionReceived self.contactList.jabberSubscriptionReceived(to, subtype) File "/usr/opt/transports/pymsnt-r166/src/contact.py", line 240, in jabberSubscriptionReceived self.getContact(jid).jabberSubscriptionReceived(subtype) File "/usr/opt/transports/pymsnt-r166/src/contact.py", line 134, in jabberSubscriptionReceived self.contactList.legacyList.addContact(self.jid) File "/usr/opt/transports/pymsnt-r166/src/legacy/glue.py", line 567, in addContact if msnContact.lists & msn.REVERSE_LIST: exceptions.AttributeError: 'NoneType' object has no attribute 'lists' --------------- Cheers! -- Travis Bell On 1-Jun-06, at 5:29 AM, Lucas Nussbaum wrote: > On 31/05/06 at 17:08 +0200, Lars T. Mikkelsen wrote: >> Hi Lucas, >> >> On Wed, May 31, 2006 at 10:12:42AM +0200, Lucas Nussbaum wrote: >>> [2006-05-30 23:18:41] INFO :: (u'[EMAIL PROTECTED]', >>> '[EMAIL PROTECTED]') :: :: sendMessageReal :: >>> msn.msnw.OneSwitchboardSession :: {'text': u'merci de la r >>> \xe9ponse', ' >>> noerror': False, 'self': 'instance'} >>> [2006-05-30 23:18:41] << MSG 10 N 82 >>> [2006-05-30 23:18:41] << MIME-Version: 1.0 >>> [2006-05-30 23:18:41] << Content-Type: text/plain; charset=UTF-8 >>> [2006-05-30 23:18:41] merci de la r?ponse >>> [2006-05-30 23:18:41] >> 715 8 >>> [2006-05-30 23:18:41] Unhandled error in Deferred: >>> [2006-05-30 23:18:41] Traceback (most recent call last): >>> Failure: <type 'int'>: 715 >> >> You should have a line preceding this that reads "<< ??? 8 ...", >> that is >> a command (???) with the same ID (8) as the error. I think it >> would be >> helpful to know what command triggered the error. > > I see, I didn't know that "8" was the ID. > Here are some examples : > > [2006-05-31 10:17:34] << PRP 7 MFN [...] > [2006-05-31 10:17:35] >> 715 7 > [2006-05-31 10:17:35] Unhandled error in Deferred: > [2006-05-31 10:17:35] Traceback (most recent call last): > Failure: <type 'int'>: 715 > > [2006-05-31 10:17:35] << CHG 11 NLN 1879048192 [...] > [2006-05-31 10:17:35] >> 715 11 > [2006-05-31 10:17:35] Unhandled error in Deferred: > [2006-05-31 10:17:35] Traceback (most recent call last): > Failure: <type 'int'>: 715 > > [2006-05-31 10:28:50] << PRP 12 MFN [...] > [2006-05-31 10:28:51] >> 715 12 > [2006-05-31 10:28:51] Unhandled error in Deferred: > [2006-05-31 10:28:51] Traceback (most recent call last): > Failure: <type 'int'>: 715 > > [2006-05-31 10:30:37] << PRP 8 MFN [...] > [2006-05-31 10:30:37] >> 715 8 > [2006-05-31 10:30:37] Unhandled error in Deferred: > [2006-05-31 10:30:37] Traceback (most recent call last): > Failure: <type 'int'>: 715 > > Regards, > -- > | Lucas Nussbaum > | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | > | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | > _______________________________________________ > py-transports mailing list > [email protected] > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modevia.com/pipermail/py-transports/attachments/20060601/59c17c4f/attachment.html From [EMAIL PROTECTED] Thu Jun 1 20:43:12 2006 From: [EMAIL PROTECTED] (Lars T. Mikkelsen) Date: Thu Jun 1 20:43:22 2006 Subject: [py-transports] Imminent PyMSNt 0.11.1 release In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On Thu, Jun 01, 2006 at 02:37:32PM -0600, Travis Bell wrote: > ---------- > [2006-06-01 14:22:51] Traceback (most recent call last): [snip] > File "/usr/opt/transports/pymsnt-r166/src/legacy/glue.py", > line 567, in addContact > if msnContact.lists & msn.REVERSE_LIST: > exceptions.AttributeError: 'NoneType' object has no > attribute 'lists' > --------------- I think James actually fixed this in r170. Best regards, Lars From [EMAIL PROTECTED] Thu Jun 1 22:52:43 2006 From: [EMAIL PROTECTED] (Norman Rasmussen) Date: Thu Jun 1 22:52:48 2006 Subject: [py-transports] I18n of PyIRCt and PyYIMt Message-ID: <[EMAIL PROTECTED]> I did some playing around, and I think that doing a gettext I18n of the irc and yim transports should be fairly easy - are people interested? I've managed to make the process fairly easy: import i18n # i18n.py is a ~20 line file i18n.install('subtest') print _("Hello World!") print _("The %1 %action the %2.")('dog', 'cat', action='chased') pygettext.py also manages to extract the strings correctly to generate the .pot file. That file is edited and returned as a po, file which compiles to a .mo file. The .mo goes into the a subfolder of localedir (which defaults to : <sys.prefix>/share/locale/). localedir can be overidden - i.e. could be a subfolder of transport src folder. The file naming convention after that is unchangeable: <localedir>/<lang>/LC_MESSAGES/<transport>.mo so examples: /usr/share/locale/en_GB/LC_MESSAGES/pyirct.mo ~/src/cvs/xmpppy/locale/en_US/LC_MESSAGES/pyirct.mo ~/src/cvs/xmpppy/irc-transport/locale/en_US/LC_MESSAGES/pyirct.mo Thoughts? -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Fri Jun 2 05:48:36 2006 From: [EMAIL PROTECTED] (Stian B. Barmen) Date: Fri Jun 2 05:48:45 2006 Subject: [py-transports] Sending a link to MSN not working Message-ID: <[EMAIL PROTECTED]> I got a report from a user that sending a link to a contact did result in no message sending. From my testing I can confirm the problem, but I am not sure if it is a problem with the transport or if it is some logic on MSN servers. You can test for youreself by sending this link to a msn contact: http://isohunt.com/download.php?mode=bt&id=11291280 What I did to test. 1. Talk to an msn contact (I just logged my wife on locally on another msn client) 2. Send the link "http://isohunt.com/download.php?mode=bt&id=11291280" 3. Nothing gets sendt to the msn contact, following up with more messages and they get stopped too 4. Send a message from the MSN client back to myself and it gets trough. 5. Now I can send messages to the MSN client. Links like "http://www.vg.no" gets sendt. 6. Sending the http://isohunt.com/download.php?mode=bt&id=11291280 link again and I can no longer talk to the MSN user. I also tried it the other way round, just to see what happened if I sendt the link from the MSN user to my transport. The link gets dropped, but follow up messages gets trough. This is the last lines in my log. (svn rev 166). 10/28/05 - 12:02:26 - why = self.lineReceived(line) 10/28/05 - 12:02:26 - File "/usr/lib/python2.3/site-packages/pymsnt/src/tlib/msn.py", line 670, in lineReceived 10/28/05 - 12:02:26 - self.gotError(int(cmd)) 10/28/05 - 12:02:26 - File "/usr/lib/python2.3/site-packages/pymsnt/src/tlib/msn.py", line 725, in gotError 10/28/05 - 12:02:26 - log.msg('Error %s' % (errorCodes[errorCode])) 10/28/05 - 12:02:26 - exceptions.KeyError: 400 Hope more can test this so we can confirm if it is a MSN or transport problem. Best regards Stian B. Barmen www.jabber.no
