What are causing these errors?

server name - openfireserver

server ip - 192.168.1.2

ddns - myddns.ddns.net

XMPP Domain Name - openfireserver

Server Host Name (FQDN) - openfireserver

pfsense router - 192.168.1.1

warn

2017.03.27 17:42:24 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: myddns.ddns.net. Connection: org.jivesoftware.openfire.net.SocketConnection@1dc288d socket: Socket[addr=/192.168.1.1,port=27274,localport=5269] session: null

2017.03.27 17:42:26 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: myddns.ddns.net. Connection: org.jivesoftware.openfire.net.SocketConnection@1c0a12b socket: Socket[addr=/192.168.1.1,port=20226,localport=5269] session: null

2017.03.27 17:42:26 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: openfireserver to RS at: myddns.ddns.net (port: 5269)] - Unable to create a new outgoing session

2017.03.27 17:42:26 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: openfireserver to myddns.ddns.net] - Unable to create a new session: Dialback (as a fallback) failed.

2017.03.27 17:42:26 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘openfireserver’ to remote domain: ‘myddns.ddns.net’] - Unable to authenticate: Fail to create new session.

2017.03.27 17:42:48 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.1.2. Connection: org.jivesoftware.openfire.net.SocketConnection@1b85d2f socket: Socket[addr=/192.168.1.2,port=46033,localport=5269] session: null

2017.03.27 17:42:50 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.1.2. Connection: org.jivesoftware.openfire.net.SocketConnection@fd58f6 socket: Socket[addr=/192.168.1.2,port=46034,localport=5269] session: null

2017.03.27 17:42:50 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: openfireserver to RS at: 192.168.1.2 (port: 5269)] - Unable to create a new outgoing session

2017.03.27 17:42:50 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: openfireserver to 192.168.1.2] - Unable to create a new session: Dialback (as a fallback) failed.

2017.03.27 17:42:50 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘openfireserver’ to remote domain: ‘192.168.1.2’] - Unable to authenticate: Fail to create new session.

info

2017.03.27 17:24:12 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: openfireserver to openfireserver.com] - Unable to create new session: Cannot create a plain socket connection with any applicable remote host.

2017.03.27 17:37:09 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: openfireserver to openfireserver.com] - Unable to create new session: Cannot create a plain socket connection with any applicable remote host.

2017.03.27 17:38:19 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: openfireserver to myddns.ddns.net] - Unable to create new session: Cannot create a plain socket connection with any applicable remote host.

Where do I start troubleshooting?

anyone?

Could it be the XMPP Domain Name or Server Host Name (FQDN)?

XMPP Domain Name: ubuntu

Server Host Name (FQDN): ubuntu

It probably can be, if you have enabled Server to Server and some user tries to add contacts from another server and Openfire tries to contact ubuntu.com for some reason. Only speculations here. What problems does this error cause?

I was getting massive log spam and way wondering what was causing it.

If i disable server to server (as i am only using one server)

I get this as log spam

2017.04.10 17:50:40 org.jivesoftware.openfire.spi.RoutingTableImpl - Will not route: Remote domain myddns.ddns.net is not accessible according to our configuration (typical causes: server federation is disabled, or domain is blacklisted).

2017.04.10 17:50:48 org.jivesoftware.openfire.spi.RoutingTableImpl - Will not route: Remote domain ubuntu is not accessible according to our configuration (typical causes: server federation is disabled, or domain is blacklisted).

So why I am I now getting log spam

2017.04.23 11:12:47 org.jivesoftware.openfire.spi.RoutingTableImpl - Will not route: Remote domain myddns.ddns.net is not accessible according to our configuration (typical causes: server federation is disabled, or domain is blacklisted).

2017.04.23 11:19:39 org.jivesoftware.openfire.spi.RoutingTableImpl - Will not route: Remote domain 192.168.1.10 is not accessible according to our configuration (typical causes: server federation is disabled, or domain is blacklisted).

When I disable Server to Server ?

If i am getting the Will not route: Remote domain 192.168.1.10 is not accessible according to our configuration (typical causes: server federation is disabled, or domain is blacklisted) log spam.

Does that mean that a client (jitsi) is trying to use a server to server feature?

However when i enable server to server i get the Closing session due to incorrect hostname in stream header error.

Just not understanding this error.

Client on its own won’t make a server to server connection. It can only happen when a user is trying to access contact/chat-room one the other server. You can try enabling S2S again and also enable debug logging so it would have more information. I myself don’t have much knowledge about S2S stuff, so i won’t be able to help with that anyway probably.

Here is some debug logs

server name ubuntu

server ip 192.168.1.10

[CODE]

Error Summary

2017.04.26 15:29:43 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: ubuntu to RS at: 192.168.1.10 (port: 5269)] - Error! Invalid namespace in packet: ‘<stream:stream from=“192.168.1.10” id=“5f655ck7xo” xmlns=“jabber:server” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>’. Closing connection.

2017.04.26 15:29:43 org.jivesoftware.openfire.server.OutgoingSessionPromise - OutgoingSessionPromise: Error sending packet to remote server:

2017.04.26 15:30:10 org.jivesoftware.openfire.spi.RoutingTableImpl - Failed to route packet to JID: user2@ubuntu/jitsi-25kpcc5 packet:

2017.04.26 15:30:10 org.jivesoftware.openfire.IQRouter - IQ sent to unreachable address:

2017.04.26 15:30:10 org.jivesoftware.openfire.server.OutgoingSessionPromise - OutgoingSessionPromise: Error sending packet to remote server:

2017.04.26 15:29:43 org.jivesoftware.openfire.net.SocketConnection - Failed to deliver stream close tag: Broken pipe (Write failed)

java.lang.Exception: Failed to create connection to remote server

FULL DEBUG

2017.04.26 15:29:38 org.jivesoftware.openfire.net.SocketUtil - Found 1 host(s) for XMPP domain ‘192.168.1.10’.

2017.04.26 15:29:38 org.jivesoftware.openfire.net.SocketUtil - Trying to create socket connection to XMPP domain ‘192.168.1.10’ using remote host: 192.168.1.10:5269 (blocks up to 120000 ms) …

2017.04.26 15:29:38 org.jivesoftware.openfire.net.SocketUtil - Successfully created socket connection to XMPP domain ‘192.168.1.10’ using remote host: 192.168.1.10:5269!

2017.04.26 15:29:38 org.jivesoftware.openfire.net.BlockingAcceptingMode - Connect Socket[addr=/192.168.1.10,port=46818,localport=5269]

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Send the stream header and wait for response…

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Got a response (stream ID: 2lwcjc4z9o, version: 1.0). Check if the remote server is XMPP 1.0 compliant…

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - The remote server is XMPP 1.0 compliant (or at least reports to be).

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Processing stream features of the remote domain…

2017.04.26 15:29:38 org.jivesoftware.openfire.net.BlockingReadingMode - Connection closed before session establishedSocket[addr=/192.168.1.10,port=46818,localport=5269]

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Check if both us as well as the remote server have enabled STARTTLS and/or dialback …

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Something went wrong so close the connection and try server dialback over a plain connection

2017.04.26 15:29:38 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: ubuntu to 192.168.1.10] - Unable to create a new session. Going to try connecting using server dialback as a fallback.

2017.04.26 15:29:38 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: ubuntu to RS at: 192.168.1.10 (port: 5269)] - Creating new outgoing session…

2017.04.26 15:29:38 org.jivesoftware.openfire.net.SocketUtil - Creating a socket connection to XMPP domain ‘192.168.1.10’ …

2017.04.26 15:29:38 org.jivesoftware.openfire.net.SocketUtil - Use DNS to resolve remote hosts for the provided XMPP domain ‘192.168.1.10’ (default port: 5269) …

2017.04.26 15:29:39 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_IDLE to session 11

Queue : [SESSION_IDLE, ]

2017.04.26 15:29:39 org.jivesoftware.openfire.nio.ClientConnectionHandler - ConnectionHandler: Pinging connection that has been idle: org.jivesoftware.openfire.nio.NIOConnection@16f0a62 MINA Session: (0x0000000B: nio socket, server, /192.168.1.55:17646 => /192.168.1.10:5222)

2017.04.26 15:29:39 org.apache.mina.filter.ssl.SslFilter - Session Server11: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=109 cap=4096: 3C 69 71 20 74 79 70 65 3D 22 67 65 74 22 20 69…]

2017.04.26 15:29:39 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 11

Queue : [MESSAGE_SENT, ]

2017.04.26 15:29:43 org.jivesoftware.openfire.net.SocketUtil - Found 1 host(s) for XMPP domain ‘192.168.1.10’.

2017.04.26 15:29:43 org.jivesoftware.openfire.net.SocketUtil - Trying to create socket connection to XMPP domain ‘192.168.1.10’ using remote host: 192.168.1.10:5269 (blocks up to 120000 ms) …

2017.04.26 15:29:43 org.jivesoftware.openfire.net.SocketUtil - Successfully created socket connection to XMPP domain ‘192.168.1.10’ using remote host: 192.168.1.10:5269!

2017.04.26 15:29:43 org.jivesoftware.openfire.net.BlockingAcceptingMode - Connect Socket[addr=/192.168.1.10,port=46820,localport=5269]

2017.04.26 15:29:43 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: ubuntu to RS at: 192.168.1.10 (port: 5269)] - Send the stream header and wait for response…

2017.04.26 15:29:43 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: ubuntu to RS at: 192.168.1.10 (port: 5269)] - Got a response. Check if the remote server supports dialback…

2017.04.26 15:29:43 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: ubuntu to RS at: 192.168.1.10 (port: 5269)] - Error! Invalid namespace in packet: ‘<stream:stream from=“192.168.1.10” id=“5f655ck7xo” xmlns=“jabber:server” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>’. Closing connection.

2017.04.26 15:29:43 org.jivesoftware.openfire.net.BlockingReadingMode - Connection closed before session establishedSocket[addr=/192.168.1.10,port=46820,localport=5269]

2017.04.26 15:29:43 org.jivesoftware.openfire.net.SocketConnection - Failed to deliver stream close tag: Broken pipe (Write failed)

2017.04.26 15:29:43 org.apache.mina.filter.ssl.SslFilter - Session Server11: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=228 cap=4096: 3C 69 71 20 74 79 70 65 3D 22 65 72 72 6F 72 22…]

2017.04.26 15:29:43 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 11

Queue : [MESSAGE_SENT, ]

2017.04.26 15:29:43 org.jivesoftware.openfire.server.OutgoingSessionPromise - OutgoingSessionPromise: Error sending packet to remote server:

java.lang.Exception: Failed to create connection to remote server

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:279)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:243)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)

2017.04.26 15:29:53 org.apache.mina.filter.ssl.SslFilter - Session Server11: Message received : HeapBuffer[pos=0 lim=69 cap=256: 17 03 03 00 40 E0 38 BB A7 4B 52 D0 DA 25 43 5D…]

2017.04.26 15:29:53 org.apache.mina.filter.ssl.SslHandler - Session Server11 Processing the received message

2017.04.26 15:29:53 org.apache.mina.filter.ssl.SslFilter - Session Server11: Processing the SSL Data

2017.04.26 15:29:53 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 11

Queue : [MESSAGE_RECEIVED, ]

2017.04.26 15:29:53 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 11

2017.04.26 15:30:10 org.jivesoftware.openfire.net.SocketUtil - An exception occurred while trying to create a socket connection to XMPP domain ‘myddns.ddns.net’ using remote host myddns.ddns.net:5269

java.net.SocketTimeoutException: connect timed out

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java: 206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at org.jivesoftware.openfire.net.SocketUtil.createSocketToXmppDomain(SocketUtil.ja va:59)

at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSess ion(LocalOutgoingServerSession.java:253)

at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain (LocalOutgoingServerSession.java:210)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:266)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:243)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)

2017.04.26 15:30:10 org.jivesoftware.openfire.spi.RoutingTableImpl - Failed to route packet to JID: user2@ubuntu/jitsi-25kpcc5 packet:

2017.04.26 15:30:10 org.jivesoftware.openfire.IQRouter - IQ sent to unreachable address:

2017.04.26 15:30:10 org.jivesoftware.openfire.server.OutgoingSessionPromise - OutgoingSessionPromise: Error sending packet to remote server:

java.lang.Exception: Failed to create connection to remote server

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:279)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:243)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:748)

2017.04.26 15:30:23 org.apache.mina.filter.ssl.SslFilter - Session Server11: Message received : HeapBuffer[pos=0 lim=69 cap=128: 17 03 03 00 40 8E E6 53 32 92 5C DC 4D 83 EF 3B…]

2017.04.26 15:30:23 org.apache.mina.filter.ssl.SslHandler - Session Server11 Processing the received message

2017.04.26 15:30:23 org.apache.mina.filter.ssl.SslFilter - Session Server11: Processing the SSL Data

2017.04.26 15:30:23 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 11

Queue : [MESSAGE_RECEIVED, ]

[/CODE]

As i’ve said, i don’t know much about S2S, but it looks like your server is trying to create S2S sessions with itself. Maybe that happens because your user is logged in using ubuntu (or IP) and tries to add another user but adds it using the opposite (ubuntu or IP) and then it looks to Openfire like two different domains, when it is actually one server.

As the other user suggested, maybe some of your users is adding contacts not as user@domain, but in the form of user@fqdn, which might cause such errors.

The thing is I have enable Contact List (Roster) Sharing and added all the users to the group, so there are no custom users added in the client. Wonder if it is a jitsi issue.

I haven’t used Jitsi for a long time to notice such issues. The thing that you have shared groups doesn’t make it impossible to add your own contacts to a local group.

have you got the solution ?? i have the same error as this one. Please help!!!