ejabberd doesn't start when PyICQt is enabled

Hi!

My OS is Windows XP Pro SP2, ejabberd 1.1.3, Python 2.5.1, Twisted 2.5.0 (for Py2.5), PyICQ 0.8a.

I just installed ejabberd using default installation configuration. Then i set up the ejabberd.cfg:

{hosts, ["myhostname"]}.
{listen, [
	  {443, ejabberd_c2s,     [{access, c2s}, {max_stanza_size, 65536}, tls, 
                {certfile, "C:/Program Files/ejabberd-1.1.3/conf/server.pem"}]},
	  {5280, ejabberd_http,    [http_poll, web_admin]}
	  {10015, ejabberd_service, [
		  {ip, {127,0,0,1}}
		  {access, all},
	          {hosts, ["icq.myhostname"],
	          [{password, "qwe123"}]}
	  ]}
...

and config.xml of PyICQt:

<pyicqt>
	jid=icq.myhostname
	spooldir=.
	pid=PyICQt.pid
	mainServer=127.0.0.1
	mainServerJID=myhostname
	port=10015
	webport=8081
	secret=qwe123
	lang=en
...

And when i add lines "{10015, ... ]}" the server doesn't start up. There is an error in sasl.log (???):

=CRASH REPORT==== 20-Jun-2007::18:53:11 ===
  crasher:
    pid: <0.34.0>
    registered_name: []
    error_info: {bad_return,{{ejabberd_app,start,[normal,[]]},
                              {'EXIT',["143",
                                       58,
                                       32,
                                       ["syntax error before: ",["'{'"]]]}}}
    initial_call: {application_master,init,
                                     [<0.5.0>,
                                      <0.33.0>,
...

I see the words "syntax error" and think that there is something written wrong in "{10015, ... ]}", but i tried to remove and add ip, access and syntax correction actions but it still doesn't work. When i comment out these lines - the server is start succefully.

PS. And i found the error in default cfg file:
%%{5223, ejabberd_c2s, [{access, c2s}, {max_stanza_size, 65536}, tls, {certfile, "C:\Program Files\ejabberd-1.1.3/conf/server.pem"}]},

- Need to replace two backslashes \ \ with slashes / /. And SSL will work!

Thanx.

Yes, your problem is a

Yes, your problem is a syntax error on ejabberd.cfg. Note that in Erlang the lists are written as this: [a, b, c, d]. As you can see, each element is separated with a comma.

On your file, in the 'listen' section, you have a list with three elements: {443, ...}, {5280, ...} and {10015}, but you didn't separate the last two elements. Simply add a comma at the end of the line {5280, ...},

Thanks! It was helpful! :-)

Thanks! It was helpful! :-)

Syndicate content