pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: small chat server?



On Mon, 6 Jul 2015, Greg Troxel wrote:

> Usually, one sets the id to a name, not an IP address, and in particular
> what will be the name part of the JIDs that will be server. It has to
> have a SRV record or an A record (perhaps via CNAME is ok) to an IP
> address of the server.

Okay now using a hostname that works in DNS.

> Probably you also need to create the database (sqlite3 by default) and
> initialize it, and perhaps chown it.  Run pkg_info -L jabberd and figure
> out what every file is for :-)  But seriously, look at
> /usr/pkg/share/examples/jabberd/db-setup.sqlite

I used it and created the db (previously it was a 0 byte file).

> Yes, or you can set logging to syslog.

I setup the logging to file. debug doesn't appear to be compiled in by 
default in the package.

Previously the daemons started up, but now s2s and sm don't stay 
running, for example:

Mon Jul  6 13:59:36 2015 [notice] version: jabberd sm 2.3.2
Mon Jul  6 13:59:36 2015 [notice] [localhost.localdomain] configured
Mon Jul  6 13:59:36 2015 [notice] attempting connection to router at 
127.0.0.1, port=5347
Mon Jul  6 13:59:37 2015 [notice] connection to router established
Mon Jul  6 13:59:37 2015 [notice] router refused bind request (409)

And the router logging has:

Mon Jul  6 13:59:36 2015 [notice] [0.0.0.0, port=5347] listening for 
incoming connections
Mon Jul  6 13:59:36 2015 [notice] [127.0.0.1, port=64098] connect
Mon Jul  6 13:59:36 2015 [notice] [127.0.0.1, port=64097] connect
Mon Jul  6 13:59:36 2015 [notice] [127.0.0.1, port=64096] connect
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64098] authenticated 
as jabberd@jabberd-router
Mon Jul  6 13:59:37 2015 [notice] [t1.m.reedmedia.net] online (bound to 
127.0.0.1, port 64098)
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64097] authenticated 
as jabberd@jabberd-router
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64097] tried to bind 
't1.m.reedmedia.net', but it's already bound
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64096] authenticated 
as jabberd@jabberd-router
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64096] tried to bind 
't1.m.reedmedia.net', but it's already bound
Mon Jul  6 13:59:37 2015 [notice] [localhost.localdomain] online (bound 
to 127.0.0.1, port 64096)
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64096] disconnect
Mon Jul  6 13:59:37 2015 [notice] [localhost.localdomain] offline
Mon Jul  6 13:59:37 2015 [notice] [127.0.0.1, port=64097] disconnect

This is using the default username/password.
It don't see hot it is already bound.


Home | Main Index | Thread Index | Old Index