[jadmin] jabberd-2.1.4 not listening again :(
usul
usul at timedout.org
Mon Apr 30 11:20:17 CDT 2007
Hi there,
I facing this problem for about 2 days, and can't find resolution.
I've compiled jabberd-2.1.4 from sources, (./configure
--prefix=/usr/local/jabberd2 --disable-mysql --enable-pgsql
--enable-debug). I've configured it, without any mistakes I think, the
server is starting but it does not listen on any interface on port
5222, 5269 :(
Logs are telling nothing:
Apr 30 16:50:43 reflex jabberd/router[14186]: starting up
Apr 30 16:50:43 reflex jabberd/router[14186]: process id is 14186,
written to /usr/local/jabberd2/var/jabberd/pid/router.pid
Apr 30 16:50:43 reflex jabberd/router[14186]: loaded user table (1 users)
Apr 30 16:50:43 reflex jabberd/router[14186]: loaded filters (0 rules)
Apr 30 16:50:43 reflex jabberd/resolver[14187]: starting up
Apr 30 16:50:43 reflex jabberd/resolver[14187]: process id is 14187,
written to /usr/local/jabberd2/var/jabberd/pid/resolver.pid
Apr 30 16:50:43 reflex jabberd/router[14186]: [127.0.0.1, port=5347]
listening for incoming connections
Apr 30 16:50:43 reflex jabberd/resolver[14187]: attempting connection
to router at 127.0.0.1, port=5347
Apr 30 16:50:43 reflex jabberd/router[14186]: [127.0.0.1, port=37936] connect
Apr 30 16:50:43 reflex jabberd/sm[14188]: starting up
Apr 30 16:50:43 reflex jabberd/sm[14188]: id: jabber.intranet
Apr 30 16:50:43 reflex jabberd/sm[14188]: process id is 14188, written
to /usr/local/jabberd2/var/jabberd/pid/sm.pid
Apr 30 16:50:43 reflex jabberd/c2s[14190]: starting up
Apr 30 16:50:43 reflex jabberd/c2s[14190]: process id is 14190,
written to /usr/local/jabberd2/var/jabberd/pid/c2s.pid
Apr 30 16:50:43 reflex jabberd/resolver[14187]: connection to router
established
Apr 30 16:50:43 reflex jabberd/sm[14188]: initialised storage driver 'pgsql'
Apr 30 16:50:43 reflex jabberd/sm[14188]: modules search path:
/usr/local/jabberd2/lib/jabberd
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'status' added to
chain 'sess-start' (order 0 index 0 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'status' added to
chain 'sess-end' (order 0 index 0 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-last' added to
chain 'sess-end' (order 1 index 1 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'validate' added to
chain 'in-sess' (order 0 index 2 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'status' added to
chain 'in-sess' (order 1 index 0 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'privacy' added to
chain 'in-sess' (order 2 index 3 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'roster' added to
chain 'in-sess' (order 3 index 4 seq 0)
Apr 30 16:50:43 reflex jabberd/c2s[14190]: initialised auth module 'pgsql'
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'vacation' added to
chain 'in-sess' (order 4 index 5 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-vcard' added to
chain 'in-sess' (order 5 index 6 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-private' added to
chain 'in-sess' (order 6 index 7 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco' added to
chain 'in-sess' (order 7 index 8 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'amp' added to chain
'in-sess' (order 8 index 9 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'offline' added to
chain 'in-sess' (order 9 index 10 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'announce' added to
chain 'in-sess' (order 10 index 11 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'presence' added to
chain 'in-sess' (order 11 index 12 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'deliver' added to
chain 'in-sess' (order 12 index 13 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'session' added to
chain 'in-router' (order 0 index 14 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'validate' added to
chain 'in-router' (order 1 index 2 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'presence' added to
chain 'in-router' (order 2 index 12 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'privacy' added to
chain 'in-router' (order 3 index 3 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'privacy' added to
chain 'out-router' (order 0 index 3 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-last' added to
chain 'pkt-sm' (order 0 index 1 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-time' added to
chain 'pkt-sm' (order 1 index 15 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-version' added to
chain 'pkt-sm' (order 2 index 16 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'amp' added to chain
'pkt-sm' (order 3 index 9 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco' added to
chain 'pkt-sm' (order 4 index 8 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'announce' added to
chain 'pkt-sm' (order 5 index 11 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'help' added to chain
'pkt-sm' (order 6 index 17 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'echo' added to chain
'pkt-sm' (order 7 index 18 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'roster' added to
chain 'pkt-user' (order 0 index 4 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'presence' added to
chain 'pkt-user' (order 1 index 12 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-vcard' added to
chain 'pkt-user' (order 2 index 6 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'amp' added to chain
'pkt-user' (order 3 index 9 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'deliver' added to
chain 'pkt-user' (order 4 index 13 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'vacation' added to
chain 'pkt-user' (order 5 index 5 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'offline' added to
chain 'pkt-user' (order 6 index 10 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco-publish' added
to chain 'pkt-user' (order 7 index 19 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-last' added to
chain 'pkt-user' (order 8 index 1 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'session' added to
chain 'pkt-router' (order 0 index 14 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco' added to
chain 'pkt-router' (order 1 index 8 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'active' added to
chain 'user-load' (order 0 index 20 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'roster' added to
chain 'user-load' (order 1 index 4 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'privacy' added to
chain 'user-load' (order 2 index 3 seq 3)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco-publish' added
to chain 'user-load' (order 3 index 19 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'vacation' added to
chain 'user-load' (order 4 index 5 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'active' added to
chain 'user-create' (order 0 index 20 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'template-roster'
added to chain 'user-create' (order 1 index 21 seq 0)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'active' added to
chain 'user-delete' (order 0 index 20 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'announce' added to
chain 'user-delete' (order 1 index 11 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'disco-publish' added
to chain 'user-delete' (order 2 index 19 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'offline' added to
chain 'user-delete' (order 3 index 10 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'privacy' added to
chain 'user-delete' (order 4 index 3 seq 4)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'roster' added to
chain 'user-delete' (order 5 index 4 seq 3)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'vacation' added to
chain 'user-delete' (order 6 index 5 seq 3)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'status' added to
chain 'user-delete' (order 7 index 0 seq 3)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-last' added to
chain 'user-delete' (order 8 index 1 seq 3)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-private' added to
chain 'user-delete' (order 9 index 7 seq 1)
Apr 30 16:50:43 reflex jabberd/sm[14188]: module 'iq-vcard' added to
chain 'user-delete' (order 10 index 6 seq 2)
Apr 30 16:50:43 reflex jabberd/sm[14188]: version: jabberd sm 2.1.4
Apr 30 16:50:43 reflex jabberd/c2s[14190]: [jabber.intranet]
configured; realm=jabber.intranet, registration enabled
Apr 30 16:50:43 reflex jabberd/c2s[14190]: attempting connection to
router at 127.0.0.1, port=5347
Apr 30 16:50:43 reflex jabberd/router[14186]: [127.0.0.1, port=37939] connect
Apr 30 16:50:43 reflex jabberd/c2s[14190]: connection to router established
Apr 30 16:50:43 reflex jabberd/s2s[14189]: starting up (interval=60,
queue=60, keepalive=0, idle=86400)
Apr 30 16:50:43 reflex jabberd/s2s[14189]: process id is 14189,
written to /usr/local/jabberd2/var/jabberd/pid/s2s.pid
Apr 30 16:50:43 reflex jabberd/sm[14188]: attempting connection to
router at 127.0.0.1, port=5347
Apr 30 16:50:43 reflex jabberd/router[14186]: [127.0.0.1, port=37940] connect
Apr 30 16:50:43 reflex jabberd/sm[14188]: connection to router established
Apr 30 16:50:43 reflex jabberd/s2s[14189]: attempting connection to
router at 127.0.0.1, port=5347
Apr 30 16:50:43 reflex jabberd/router[14186]: [127.0.0.1, port=37941] connect
Apr 30 16:50:43 reflex jabberd/s2s[14189]: connection to router established
c2s.xml looks like this:
<!-- c2s configuration -->
<c2s>
<!-- Our ID on the network (default: c2s) -->
<id>c2s</id>
<!-- The process ID file. comment this out if you don't need to know
to know the process ID from outside the process (eg for control
scripts) -->
<pidfile>/usr/local/jabberd2/var/jabberd/pid/c2s.pid</pidfile>
<!-- Router connection configuration -->
<router>
<!-- IP/port the router is waiting for connections on -->
<ip>127.0.0.1</ip> <!-- default: 127.0.0.1 -->
<port>5347</port> <!-- default: 5347 -->
<!-- Username/password to authenticate as -->
<user>jabberd</user> <!-- default: jabberd -->
<pass>qwerty</pass> <!-- default: secret -->
<!-- File containing an SSL certificate and private key to use when
setting up an encrypted channel with the router. From
SSL_CTX_use_certificate_chain_file(3): "The certificates must be
in PEM format and must be sorted starting with the subject's
certificate (actual client or server certificate), followed
by intermediate CA certificates if applicable, and ending
at the highest level (root) CA" (the latter one being optional).
If this is commented out, or the file can't be read, no attempt
will be made to establish an encrypted channel with the router. -->
<!--
<pemfile>/usr/local/jabberd2/etc/jabberd/server.pem</pemfile>
-->
<!-- Router connection retry -->
<retry>
<!-- If the connection to the router can't be established at
startup, we should try again this many times before exiting.
Use -1 to retry indefinitely. [default: 3] -->
<init>3</init>
<!-- If we lost the connection to the router during normal
operation (ie we've successfully connected to the router in
the past), we should try to reconnect this many times before
exiting. Use -1 to retry indefinitely. [default: 3] -->
<lost>3</lost>
<!-- Sleep for this many seconds before trying attempting a
reconnect. [default: 2] -->
<sleep>2</sleep>
</retry>
</router>
<!-- Log configuration - type is "syslog", "file" or "stdout" -->
<log type='syslog'>
<!-- If logging to syslog, this is the log ident -->
<ident>jabberd/c2s</ident>
<!-- If logging to syslog, this is the log facility
(local0 - local7) [default: local3] -->
<facility>local3</facility>
<!-- If logging to file, this is the filename of the logfile -->
<file>/usr/local/jabberd2/var/jabberd/log/c2s.log</file>
</log>
<!-- Local network configuration -->
<local>
<!-- Who we identify ourselves as. This should correspond to the
ID (host) that the session manager thinks it is. You can
specify more than one to support virtual hosts, as long as you
have additional session manager instances on the network to
handle those hosts.
realm
attribute specifies the auth/reg or SASL authentication realm
for the host. If the attribute is not specified, the realm will
be selected by the SASL mechanism, or will be the same as the ID
itself. Be aware that users are assigned to a realm, not a host,
so two hosts in the same realm will have the same users. If no
realm is specified, it will be set to be the same as the ID.
pemfile
attribute specifies the file containing a SSL certificate and
private key for client connections. If this is non existant,
clients will not be offered the STARTTLS stream extension
verify-mode
SSL verify mode - see SSL_CTX_set_verify(3), mode parameter
require-starttls
If this is enabled, clients must do STARTTLS
before they can authenticate. Until the stream is encrypted,
all packets will be dropped.
register-enable
Remove this attribute to disable account registrations.
instructions
Human-readable instructions to be returned to client when
registration is requested.
password-change
Password change only. When registration is disabled, it may
still be useful to allow clients to change their password. If
you want this, add this attribute when you disable registration.
-->
<id realm='jabber.intranet' register-enable='true'>jabber.intranet</id>
<!-- or
<id realm='company'
pemfile='/usr/local/etc/jabberd/server.pem'
verify-mode='7'
require-starttls='true'
register-enable='true'
instructions='Enter a username and password to register with
this server.'
password-change='true'
>localhost</id> -->
<!-- IP address to bind to (default: 0.0.0.0) -->
<ip>0.0.0.0</ip>
<!-- Port to bind to, or 0 to disable unencrypted access to the
server (default: 5222) -->
<port>5222</port>
<!-- Older versions of jabberd support encrypted client connections
via an additional listening socket on port 5223. If you want
this (required to allow pre-STARTTLS clients to do SSL),
<!--
<ssl-port>5223</ssl-port>
-->
<!-- File containing an SSL certificate and private key for client
connections. From SSL_CTX_use_certificate_chain_file(3):
"The certificates must be in PEM format and must be sorted
starting with the subject's certificate (actual client or server
certificate), followed by intermediate CA certificates if
applicable, and ending at the highest level (root) CA"
(the latter one being optional).
If this is commented out, clients will not be offered
the STARTTLS stream extension -->
<!--
<pemfile>/usr/local/jabberd2/etc/jabberd/server.pem</pemfile>
-->
<!-- SSL verify mode - see SSL_CTX_set_verify(3), mode parameter -->
<!--
<verify-mode>7</verify-mode>
-->
<!-- Forward incoming HTTP clients to a real HTTP server -->
<!--
<httpforward>http://www.jabber.org/</httpforward>
-->
</local>
[...]
sm.xml like this:
<!-- Session manager configuration -->
<sm>
<!-- Our ID on the network. Users will have this as the domain part of
their JID. If you want your server to be accessible from other
Jabber servers, this ID must be resolvable by DNS.s
(default: localhost) -->
<id>jabber.intranet</id>
<!-- The process ID file. comment this out if you don't need to know
to know the process ID from outside the process (eg for control
scripts) -->
<pidfile>/usr/local/jabberd2/var/jabberd/pid/sm.pid</pidfile>
<!-- Router connection configuration -->
<router>
<!-- IP/port the router is waiting for connections on -->
<ip>127.0.0.1</ip> <!-- default: 127.0.0.1 -->
<port>5347</port> <!-- default: 5347 -->
<!-- Username/password to authenticate as -->
<user>jabberd</user> <!-- default: jabberd -->
<pass>qwerty</pass> <!-- default: secret -->
[...]
I hope that I have every required packages installed. Os is debian 4.0
(I have even sasl-sql, as metioned in previous post about jabber not
listening).
Anyone have any idea how can I make my jabberd listen properly?
Thanks in advance,
Bart.
More information about the JAdmin
mailing list