ejabberd - Comments for "Old comments" https://www.ejabberd.im/node/124 en Different problem https://www.ejabberd.im/node/124#comment-740 <p>OK, I changed the SERVER parameter from FQDN to the hostname (neutron installed on jabber server). Now I don't get those errors, I get just this, after all the scripts are read when I run neutron.py:</p> <p>Connected<br /> eek -&gt; feature-not-implemented 501</p> <p>Is there something I have to turn on in the server config??</p> <p>Thanks for you help, I really want to get this bot working if I can.</p> <p>Cheers<br /> Mick</p> Tue, 23 Aug 2005 09:54:33 +0000 mickwish comment 740 at https://www.ejabberd.im It should work https://www.ejabberd.im/node/124#comment-739 <blockquote>Do I need to change the RESOURCES or the ADMIN PASSWORD settings in config.txt? The install instructions don't mention them, but it's the only thing I can see that might need to be changed.</blockquote> <p>No, that is enought. I've downloaded Neutron 0.4.2, unpacked, modified SERVER, PORT, USERNAME and PASSWORD on config.txt and it logins correctly. If I put wrong data in those parameters Neutron shows an error message, but not the same as you.</p> Tue, 23 Aug 2005 08:01:19 +0000 mfoss comment 739 at https://www.ejabberd.im pythion.xml not installed by default in SUSE 9.1 https://www.ejabberd.im/node/124#comment-738 <p>OK, thanks. It seems installing the main python module in SUSE 9.1 via YaST doen't install a module called python.xml, which must be installed separately. Apparently newer SUSE Python modules include this module by default. Should have upgraded my install after installing Python, it seems.</p> <p>Now It will run, but won't connect and start. I get this now:</p> <p>....<br /> File "./neutron.py", line 452, in ?<br /> start()<br /> File "./neutron.py", line 425, in start<br /> if JCON.auth(USERNAME, PASSWORD, RESOURCE):<br /> File "modules/xmpp/client.py", line 195, in auth<br /> if auth.NonSASL(user,password,resource).PlugIn(self):<br /> File "modules/xmpp/client.py", line 71, in PlugIn<br /> if self.__class__.__dict__.has_key('plugin'): return self.plugin(owner)<br /> File "modules/xmpp/auth.py", line 46, in plugin<br /> resp=owner.Dispatcher.SendAndWaitForResponse(Iq('get',NS_AUTH,payload=[Node('username',payload=[self.user])]))<br /> File "modules/xmpp/dispatcher.py", line 274, in SendAndWaitForResponse<br /> return self.WaitForResponse(self.send(stanza),timeout)<br /> File "modules/xmpp/dispatcher.py", line 258, in WaitForResponse<br /> if not self.Process(0.04):<br /> File "modules/xmpp/dispatcher.py", line 98, in Process<br /> data=self._owner.Connection.receive()<br /> File "modules/xmpp/transports.py", line 106, in receive<br /> self._owner.disconnected()<br /> File "modules/xmpp/client.py", line 123, in disconnected<br /> for i in self.disconnect_handlers: i()<br /> File "modules/xmpp/client.py", line 131, in DisconnectHandler<br /> raise IOError('Disconnected from server.')<br /> IOError: Disconnected from server.</p> <p>Do I need to change the RESOURCES or the ADMIN PASSWORD settings in config.txt? The install instructions don't mention them, but it's the only thing I can see that might need to be changed.</p> <p>Thanks<br /> Mick</p> Tue, 23 Aug 2005 04:13:25 +0000 mickwish comment 738 at https://www.ejabberd.im xml.parsers.expat is a standard Python library https://www.ejabberd.im/node/124#comment-737 <p><noindex><a href="http://www.python.org/doc/current/lib/module-xml.parsers.expat.html" rel="nofollow" >xml.parsers.expat</a></noindex> is a standard library in Python, it should be easy to get on any distro. </p> <p>For example, in Debian it is included in a package called <noindex><a href="http://packages.debian.org/unstable/python/python2.3-xml" rel="nofollow" >python2.3-xml</a></noindex>.</p> <p>Take a look at Suse. Once you find a way to install it, could you please comment it here for other Suse users? Thanks.</p> Mon, 22 Aug 2005 14:54:51 +0000 mfoss comment 737 at https://www.ejabberd.im Problem starting neutron https://www.ejabberd.im/node/124#comment-734 <p>I have installed the latest version of neutron on my jabber server (Suse 9.1) and when I try and start it with ./neutron.py I get this:</p> <p>backup:~/neutron-0.4.2 # ./neutron.py<br /> Traceback (most recent call last):<br /> File "./neutron.py", line 7, in ?<br /> import xmpp<br /> File "modules/xmpp/__init__.py", line 29, in ?<br /> import simplexml,protocol,debug,auth,transports,roster,dispatcher,features,browser,filetransfer<br /> File "modules/xmpp/simplexml.py", line 20, in ?<br /> import xml.parsers.expat<br /> ImportError: No module named xml.parsers.expat</p> <p>Please, any clues? I can't find a module names xml.parsers.expat anywhere. </p> <p>Thanks<br /> Mick</p> Sat, 20 Aug 2005 12:47:24 +0000 mickwish comment 734 at https://www.ejabberd.im problem in getting it working properly https://www.ejabberd.im/node/124#comment-592 <p>Just in case anyone else has similar problems I found that I was unable to get the chatbot to work unless I had it running on the same server as the ejabber server. I am not sure if it is a firewall problem as I was able to log into the neutron user using gaim from the server I was trying to set it up on. From the ejabber log I could see that it had connected successfully and the web admin said that the user was online but gaim would not show the presence and I got no response. I ended up creating the neutron@localhost user and then adding that to the roster of the admin user and it appeared in my gaim fine and I was able to admin it. </p> <p>I am also using the starttls_required option so it appears that it works fine with tls.</p> <p>Works great!<br /> Thankyou</p> Sat, 02 Jul 2005 06:18:18 +0000 jhabbers@ejabberd.jabber.ru comment 592 at https://www.ejabberd.im I pointed Mike Mintz to your https://www.ejabberd.im/node/124#comment-574 <p>I pointed Mike Mintz to your questions, and here are his responses:</p> <blockquote>1. Is there a way to adjust the timezone setting of the client?</blockquote> <p>There's no config option for it, but if you search plugins/log_plugin.py for the two instances of gmtime() and change them to localtime() it puts it in the local timezone.</p> <p>If you think it is important, I can add a config thing to specify GMT offset hours.</p> <blockquote>I was wondering if there was a way to rollover logs</blockquote> <p>I thought it already did that by default. Doesn't it make a new file every time the date changes?</p> Sun, 26 Jun 2005 20:40:35 +0000 mfoss comment 574 at https://www.ejabberd.im Chat Logging https://www.ejabberd.im/node/124#comment-571 <p>I've tried out bandersnatch and I'm leaning more towards neutron to log chat rooms instead (since bandersnatch logs ALL in/out messages).</p> <p>A couple of questions:</p> <p>1. Is there a way to adjust the timezone setting of the client? It seems to be set to GMT/UTC. I can't find a config (except the source itself) to change it.</p> <p>2. I noticed for logging, a file is open and kept until the conversation ends. I was wondering if there was a way to rollover logs -- useful for chatrooms where they can stay open but have a new log opened when the date changes.</p> Thu, 23 Jun 2005 17:10:59 +0000 gledesma comment 571 at https://www.ejabberd.im I think both SSL and STARTTLS are supported https://www.ejabberd.im/node/124#comment-518 <p>If I remember correctly, the author told me that you just need to configure Neutron on config.txt to use the port 5223, and it will use SSL automatically. </p> <p>Maybe it even tries to use STARTTLS on 5222 if the server supports it.</p> Sat, 04 Jun 2005 18:36:30 +0000 mfoss comment 518 at https://www.ejabberd.im SSL support? https://www.ejabberd.im/node/124#comment-514 <p>Does neutron support connecting to Jabber servers over SSL (i.e. port 5223 instead of 5222)?</p> <p>If so, then that should probably be documented in the README (but it doesn't look like it is supported).</p> <p>If not, then what would it take to be added? I am not super familiar with the Jabber protocol, but I assume the only difference is that an SSL connection is established with the server before the normal authentication proceeds. With some pointers I'd be happy to work on it.</p> Fri, 03 Jun 2005 16:44:22 +0000 d6 comment 514 at https://www.ejabberd.im I reported your question to https://www.ejabberd.im/node/124#comment-470 <p>I reported your question to Mike Mintz, and he answered this:</p> <blockquote><p>About the presence handler: tell this person to look at presence_plugin.py. They can just make a similar plugin, but on these two lines:</p> <pre> elif type == 'available': pass elif type == 'unavailable': pass</pre><p> instead of "pass", actually have a command. I think I might have done it wrong, so there should be a type == None or something like that for available presence, but I'd have to look into it. </p></blockquote> Thu, 19 May 2005 17:31:53 +0000 mfoss comment 470 at https://www.ejabberd.im register_presence_handler? https://www.ejabberd.im/node/124#comment-464 <p>is there a register_presence_handler that trigers on changes in pressence. I wan't to execute commands when people go away/online/offline..</p> Sat, 14 May 2005 15:24:03 +0000 Leakim comment 464 at https://www.ejabberd.im Misstype in plugins/admin_plugin.py https://www.ejabberd.im/node/124#comment-416 <p>There is no global variable NICK setted in neutron.py. There is only DEFAULT_NICK.<br /> so nick = NICK in handler_admin_join, must be nick = DEFAULT_NICK</p> Sun, 01 May 2005 11:00:02 +0000 mcsim@city.veganet.ru comment 416 at https://www.ejabberd.im A small annoying bug in log_plugin.py https://www.ejabberd.im/node/124#comment-239 <p>Current code: <pre>def log_regex_url(matchobj): return '&lt;a href="' + matchobj.string + '">' + matchobj.string + '&lt;/a>' body = [..] body.replace('\n', '&lt;br />') body = re.sub('(http|ftp)(\:\/\/\S+)', log_regex_url, body)</pre> </p> <p>This sequence of htmlizers and misuse of matchobj.string causes an endless span of an &lt;a> tag in the case when url in multiline message is immediately followed by a new line. </p> <p><a href="http://jabber.nes.ru/logs/ejabberd@conference.jabber.ru/2005/03/03.html">Example log</a> (look at 22:49)</p> <p>Proposed fixed code: <pre>def log_regex_url(matchobj): return '&lt;a href="' + matchobj.group(0) + '">' + matchobj.group(0) + '&lt;/a>' body = re.sub('(http|ftp)\:\/\/[^\s&lt;]+', log_regex_url, body)</pre> </p> Sun, 06 Mar 2005 19:14:44 +0000 slipstream comment 239 at https://www.ejabberd.im