Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
jabberd2 -- anyone got this ebuild working?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Fri Oct 28, 2005 9:02 am    Post subject: jabberd2 -- anyone got this ebuild working? Reply with quote

Hi all,


I have installed the jdabberd ebuild for the second time. I tried about 6 months ago but it didnt work. It still doesnt work :( (I also tried ejabberd both now nad 6 months ago and that was a disaster too.)


1) I edited the necessary xml files under /etc/jabberd/ including sm.xml,sms.xml,c2s.xml,s2s,xml. and made the necessary changes identified in the jabberd web site
2) I created the database and ran d-setup.mysql


When I run /etc/init.d/jabberd start I can see in the logs that the services start up, i.e. sm,router,resovler but the resolver fails to connect to the router service with a write permission error. After this the resoler service says its shutting down as does the sm and router service. (I cant give the exact log file now as I am not at the machine :( )

If I do a netstat -la I cant see any of the port open i.e 5332,5333 or the router port. If I do a ps uax | grep jabber I get three different processes running. Also stopping the jabber server with the init.d script doesnt work. I read the bug relating to this on bugs.gentoo.org but I am using a a baselayout that should have this problem.

I will post log output as soon as I can.
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Sat Oct 29, 2005 1:52 pm    Post subject: Reply with quote

ok here is the output from /var/log/messages when I try /etc/init.d/jabber start after having to do a /etc/init.d/jabber zap. The stop command does not appear to work with jabberd2.

Quote:

Oct 29 16:17:36 www jabberd/router[11995]: starting up
Oct 29 16:17:36 www jabberd/s2s[11998]: starting up (interval=60, queue=60, keepalive=0, idle=86400)
Oct 29 16:17:37 www jabberd/resolver[11996]: starting up
Oct 29 16:17:37 www jabberd/sm[11997]: starting up
Oct 29 16:17:37 www jabberd/sm[11997]: id: www.xxx.xxx.com
Oct 29 16:17:37 www jabberd/router[11995]: process id is 11995, written to /var/lib/jabberd/pid/router.pid
Oct 29 16:17:37 www jabberd/router[11995]: loaded user table (1 users)
Oct 29 16:17:37 www jabberd/router[11995]: [127.0.0.1, port=5347] listening for incoming connections
Oct 29 16:17:37 www jabberd/router[11995]: shutting down
Oct 29 16:17:37 www jabberd/s2s[11998]: process id is 11998, written to /var/lib/jabberd/pid/s2s.pid
Oct 29 16:17:37 www jabberd/s2s[11998]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:17:37 www jabberd/s2s[11998]: shutting down
Oct 29 16:17:37 www jabberd/resolver[11996]: process id is 11996, written to /var/lib/jabberd/pid/resolver.pid
Oct 29 16:17:37 www jabberd/resolver[11996]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:17:37 www jabberd/resolver[11996]: shutting down
Oct 29 16:17:37 www jabberd/sm[11997]: process id is 11997, written to /var/lib/jabberd/pid/sm.pid
Oct 29 16:17:37 www jabberd/sm[11997]: initialised storage driver 'mysql'
Oct 29 16:17:37 www jabberd/sm[11997]: version: jabberd sm 2.0s9
Oct 29 16:17:37 www jabberd/sm[11997]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:17:37 www jabberd/sm[11997]: shutting down



I get slightly more info when starting jabber after a reboot

Quote:
Oct 29 16:33:29 www jabberd/router[10073]: starting up
Oct 29 16:33:29 www jabberd/resolver[10074]: starting up
Oct 29 16:33:29 www jabberd/router[10073]: process id is 10073, written to /var/lib/jabberd/pid/router.pid
Oct 29 16:33:29 www jabberd/router[10073]: loaded user table (1 users)
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=5347] listening for incoming connections
Oct 29 16:33:29 www jabberd/resolver[10074]: process id is 10074, written to /var/lib/jabberd/pid/resolver.pid
Oct 29 16:33:29 www jabberd/resolver[10074]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47533] connect
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47533] authenticated as jabberd
Oct 29 16:33:29 www jabberd/resolver[10074]: connection to router established
Oct 29 16:33:29 www jabberd/sm[10075]: starting up
Oct 29 16:33:29 www jabberd/s2s[10076]: starting up (interval=60, queue=60, keepalive=0, idle=86400)
Oct 29 16:33:29 www jabberd/s2s[10076]: process id is 10076, written to /var/lib/jabberd/pid/s2s.pid
Oct 29 16:33:29 www jabberd/s2s[10076]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:33:29 www jabberd/router[10073]: [resolver] online (bound to 127.0.0.1, port 47533)
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47534] connect
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47534] authenticated as jabberd
Oct 29 16:33:29 www jabberd/s2s[10076]: connection to router established
Oct 29 16:33:29 www jabberd/router[10073]: [s2s] set as default route
Oct 29 16:33:29 www jabberd/router[10073]: [s2s] online (bound to 127.0.0.1, port 47534)
Oct 29 16:33:29 www jabberd/sm[10075]: id: www.xxx.xxx.com
Oct 29 16:33:29 www jabberd/sm[10075]: process id is 10075, written to /var/lib/jabberd/pid/sm.pid
Oct 29 16:33:29 www jabberd/resolver[10074]: ready to resolve
Oct 29 16:33:29 www jabberd/resolver[10074]: shutting down
Oct 29 16:33:29 www jabberd/s2s[10076]: shutting down
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47533] disconnect
Oct 29 16:33:29 www jabberd/router[10073]: [resolver] offline
Oct 29 16:33:29 www jabberd/router[10073]: [127.0.0.1, port=47534] disconnect
Oct 29 16:33:29 www jabberd/router[10073]: [s2s] default route offline
Oct 29 16:33:29 www jabberd/router[10073]: [s2s] offline
Oct 29 16:33:29 www jabberd/router[10073]: shutting down
Oct 29 16:33:29 www jabberd/sm[10075]: initialised storage driver 'mysql'
Oct 29 16:33:29 www jabberd/sm[10075]: version: jabberd sm 2.0s9
Oct 29 16:33:29 www jabberd/sm[10075]: attempting connection to router at 127.0.0.1, port=5347
Oct 29 16:33:29 www jabberd/sm[10075]: shutting down


All the services seem to start up and hten shutdown -- any idea why everything just shutsdown?
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
Ssl
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 178
Location: Serbia

PostPosted: Sun Oct 30, 2005 5:42 pm    Post subject: Reply with quote

Check twice all file permissions on files: logs,spool... that jabberd uses, owner should be 'jabber' user and group 'jabber' also, as jabberd is sensitive on this.

All fully qualified domain names must be resolved, so check /etc/hosts file or adjust dns entries. I bet on this. But more to come:

If you are using an unstable ~arch sys-apps/baselayout with jabberd-2, there is one bug report in gentoo bugzilla on that.

Carefully check all relevant .xml files for typos.

It also is worth reading official jabberd tutorial at:
http://jabberd.jabberstudio.org/2/docs/jabberd_guide.html and this one: http://www.jms1.net/jabberd2/

Ssl
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Mon Oct 31, 2005 5:17 am    Post subject: Reply with quote

thanks for the feedback. I will look into it. I am also thinking of switchng to jive-messenger. Much easier to configure and install
_________________
http://www.CyberDesigns.co.za
http://www.Jumpingbean.co.za
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum