Project

General

Profile

Reconnecting service - Host Unknown error

Mauro Carrio
Added almost 5 years ago

Hi, looking for another error in logs I found this message. Really I don't know what component is trying to reconnect.

chat.mydomain.com is the host to where the clients connect to Tigase server through 5222 port, and mydomain.com is the main domain for jids.

2014-02-03 16:08:00.075 [pool-8-thread-1]  ConnectionManager$1.run()          FINE:     Reconnecting service for component: s2s, to remote host: chat.mydomain.com on port: 5,269
2014-02-03 16:08:00.076 [ConnectionOpenThread]  ConnectionManager$ConnectionListenerImpl.accept()  FINEST: Accept called for service: mydomain.com@chat.mydomain.com
2014-02-03 16:08:00.076 [ConnectionOpenThread]  ConnectionManager.serviceStarted()  FINER: [[s2s]] Connection started: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null
2014-02-03 16:08:00.076 [ConnectionOpenThread]  S2SConnectionManager.serviceStarted()  FINEST: s2s connection opened: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null
2014-02-03 16:08:00.076 [ConnectionOpenThread]  StreamOpen.serviceStarted()   FINEST:   CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, sending: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='mydomain.com' to='chat.mydomain.com' version='1.0'>
2014-02-03 16:08:00.077 [ConnectionOpenThread]  XMPPIOService.xmppStreamOpen()  FINEST: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, Sending data: <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='mydomain.com' to='chat.mydomain.com' version='1.0'>
2014-02-03 16:08:00.078 [pool-14-thread-2]  XMPPIOService.processSocketData()  FINEST:  CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, READ:
<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
2014-02-03 16:08:00.078 [pool-14-thread-2]  XMPPIOService.xmppStreamClosed()  FINEST:   CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, Received STREAM-CLOSE from the client
2014-02-03 16:08:00.078 [pool-14-thread-2]  XMPPIOService.xmppStreamClosed()  FINEST:   CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, Sending data: </stream:stream>
2014-02-03 16:08:00.079 [pool-14-thread-2]  S2SConnectionManager.xmppStreamClosed()  FINER: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, Stream closed.
2014-02-03 16:08:00.079 [pool-14-thread-2]  XMPPIOService.processSocketData()  FINEST:  CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[addr=/10.40.58.204,port=5269,localport=63617], jid: null, Read packet: <stream:error><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>
2014-02-03 16:08:00.079 [pool-14-thread-2]  S2SConnectionManager.processSocketData()  FINEST: Processing socket data: from=null, to=null, DATA=<stream:error><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>, SIZE=88, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=null
2014-02-03 16:08:00.079 [pool-14-thread-2]  S2SAbstractProcessor.generateStreamError()  FINEST: Called from: 
java.lang.Throwable
    at tigase.server.xmppserver.proc.S2SAbstractProcessor.generateStreamError(S2SAbstractProcessor.java:146)
    at tigase.server.xmppserver.proc.PacketChecker.process(PacketChecker.java:116)
    at tigase.server.xmppserver.S2SConnectionManager.processSocketData(S2SConnectionManager.java:597)
    at tigase.server.xmppserver.S2SConnectionManager.processSocketData(S2SConnectionManager.java:1)
    at tigase.server.ConnectionManager.packetsReady(ConnectionManager.java:414)
    at tigase.server.ConnectionManager.packetsReady(ConnectionManager.java:1)
    at tigase.net.IOService.call(IOService.java:264)
    at tigase.net.IOService.call(IOService.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
2014-02-03 16:08:00.079 [pool-14-thread-2]  S2SAbstractProcessor.generateStreamError()  FINEST: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[unconnected], jid: null, Sending stream error: <stream:error><improper-addressing xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
2014-02-03 16:08:00.079 [pool-14-thread-2]  ConnectionManager.serviceStopped()  FINER:  [[s2s]] Connection stopped: CID: mydomain.com@chat.mydomain.com, null, type: connect, Socket: nullSocket[unconnected], jid: null
2014-02-03 16:08:00.079 [pool-14-thread-2]  CIDConnections.checkOpenConnections()  FINEST: Scheduling task for openning a new connection for: mydomain.com@chat.mydomain.com
2014-02-03 16:08:00.079 [pool-9-thread-1]  CIDConnections$2.run()             FINEST:   Running scheduled task for openning a new connection for: mydomain.com@chat.mydomain.com
2014-02-03 16:08:00.079 [pool-9-thread-1]  CIDConnections.openOutgoingConnections()  FINEST: Checking DNS for host: chat.mydomain.com for: mydomain.com@chat.mydomain.com
2014-02-03 16:08:00.079 [pool-9-thread-1]  CIDConnections.initNewConnection()  FINEST:  STARTING new connection: mydomain.com@chat.mydomain.com
2014-02-03 16:08:00.080 [pool-9-thread-1]  CIDConnections.initNewConnection()  FINEST:  mydomain.com@chat.mydomain.com connection params: {cid=mydomain.com@chat.mydomain.com, ifc=[Ljava.lang.String;@46d185e7, local-hostname=mydomain.com, port-no=5269, remote-hostname=chat.mydomain.com, remote-ip=10.40.58.204, s2s-connection-key=S2S: null, socket=plain, srv-type=_xmpp-server._tcp, type=connect}

My init.properties:

--user-db=mysql
--admins=admin@mydomain.com
--user-db-uri=jdbc:mysql://db001/db_tigase?user=xx&password=pass&useUnicode=true&characterEncoding=UTF-8
config-type=--gen-config-def
--auth-db-uri = jdbc:mysql://db001/db_tigase?user=xx&password=pass&useUnicode=true&characterEncoding=UTF-8
--user-repo-pool-size=12
--virt-hosts=mydomain.com
--debug=server,xmpp.XMPPIOService
--sm-plugins=gv-push-service,gv-message-ack,gv-presence-ack,gv-simple-presence-v2,-presence
--monitoring=jmx:9050,http:9080,snmp:9060

--tigase.cache=false
--stanza-ack=white-char,xmpp

c2s/processors[s]=urn:xmpp:sm:3

# LOGS
basic-conf/logging/java.util.logging.FileHandler.limit=100000000
basic-conf/logging/java.util.logging.FileHandler.count=50
#basic-conf/logging/java.util.logging.FileHandler.pattern=/var/log/tigase/tigase.log

# BOSH
bosh/max-inactivity[L]=20

# REST API
--comp-name-3=rest
--comp-class-3=tigase.http.rest.RestMessageReceiver
rest/port[I]=9090
rest/use-local-server[B]=true
####

### Custom login process ###
basic-conf/auth-repo-params/user-login-query={ call TigUserAdhocLogin(?, ?) }

########### WEBRTC COMPONENT ##############################################
--comp-name-2=webrtc
--comp-class-2=tigase.mycompany.webrtc.WebRTCComponent
webrtc/set-enabled[B]=true
###########################################################################

###########################################################################
# FILE TRANSFER EXTERNAL COMPONENT
--comp-name-1=ext
--comp-class-1=tigase.server.ext.ComponentProtocol
--external=filetransfer.mydomain.com:passwd:listen:5275:0.0.0.0:accept:ReceiverBareJidLB
###########################################################################

###########################################################################
# CLIENT AUTHENTICATION
# This is configuration setting to specify what non-sasl authentication mechanisms expose to t$
basic-conf/auth-repo-params/non-sasl-mechs=PLAIN
# This is configuration setting to specify what sasl authentication mechanisms expose to the c$
basic-conf/auth-repo-params/sasl-mechs=PLAIN
###########################################################################

###########################################################################
# AMP #
--amp-repo-uri=jdbc:mysql://db001/db_tigase_amp?user=xx&password=pass&useUnicode=true&characterEncoding=UTF-8
--amp-security-level=NONE
sess-man/plugins-conf/amp/amp-jid=amp@mydomain.com
###########################################################################

###########################################################################
# PUSH NOTIFICATION SERVICE PLUGIN #
sess-man/plugins-conf/gv-push-service/enabled=true
sess-man/plugins-conf/gv-push-service/enable_log=true
sess-man/plugins-conf/gv-push-service/url=http://ws001/devices_1_2/requests
###########################################################################

###########################################################################
# PRESENCE ACK SERVICE PLUGIN #
sess-man/plugins-conf/gv-presence-ack/enabled=true
###########################################################################

###########################################################################
# MESSAGE ACK SERVICE PLUGIN #
sess-man/plugins-conf/gv-message-ack/enabled=true
sess-man/plugins-conf/gv-message-ack/stats-enabled=true
sess-man/plugins-conf/gv-message-ack/message-archiving-enabled=true
sess-man/plugins-conf/gv-message-ack/stats-repo-uri=jdbc:mysql://db001/db_tigase_stats?user=xx&password=pass&useUnicode=true&characterEncoding=UTF-8
###########################################################################

###########################################################################
# SIMPLE PRESENCE #
sess-man/plugins-conf/gv-simple-presence-v2/user-repo-url=jdbc:mysql://db001/db_tigase?user=xx&password=pass&useUnicode=true&characterEncoding=UTF-8
###########################################################################

Is this a non relevant error?

Thanks.


Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Could you provide more extensive logs? Do you happen to have any additional VHost configured (they are stored in the database, the list should be logged every once in a while or you could grab it using admin ad-hoc). Which Tigase version do you use?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 5 years ago

Is this a non relevant error?

What this error really means is: "Some other server attempted to connect to your server for a domain which is not configured on your server".

This might be a non relevant error but it also may mean a configuration mistake or a DNS misconfiguration. You have to check out for which domain the other server tried to connect to your server. Is it a valid domain on your installation? If yes, you need to fix your server configuration, if not, then you can just ignore the error.

Added by Mauro Carrio almost 5 years ago

Yes it may mean a DNS misconfiguration.

Thanks you guys!

    (1-3/3)