powered by Jive Software

Installed OpenFire 4.4.4 (Multiple Times) but unable to connect to it (Spark or Pidgin)

Hi All,
To start with - I am a newbie to Linux.
I have installed OpenFire 4.4.4 on our CentOS7 VPS server. I also configured it, however I am not able to connect to any clients (Have tried Spark and Pidgin) both. I reinstalled Openfire a couple of times and even created a separate subdomain to run this. The ports are open (tested using telnet). Certificates are installed on the subdomain on the server.
I cleared the logs and restarted the server with the thought that this might help.

Below is the entries for the warn log.

'2019.12.31 17:52:23 org.jivesoftware.util.LocaleUtils - Missing resource for key: system_property.plugins.servlet.allowLocalFileReading in locale en
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.LegacyConnectionAcceptor - Configuration allows for up to 16 threads, although implementation is limited to exactly one.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.LegacyConnectionAcceptor - Configuration allows for up to 16 threads, although implementation is limited to exactly one.
‘’
I think we can safely ignore the 16 thread one.

Entries for the Info Log are below

2019.12.31 17:52:23 org.jivesoftware.openfire.net.SASLAuthentication - Support added for the ‘GSSAPI’ SASL mechanism.
2019.12.31 17:52:23 org.jivesoftware.openfire.net.SASLAuthentication - Support added for the ‘EXTERNAL’ SASL mechanism.
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.user.UserManager#USER_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.user.UserManager#REMOTE_DISCO_INFO_TIMEOUT
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.user.UserManager#USER_PROPERTY_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.lockout.LockOutManager#LOCKOUT_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.auth.AuthFactory#PASSWORD_KEY
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.auth.AuthFactory#AUTH_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.auth.HybridAuthProvider#PRIMARY_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.auth.HybridAuthProvider#SECONDARY_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.auth.HybridAuthProvider#TERTIARY_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.sasl.ScramSha1SaslServer#ITERATION_COUNT
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.sasl.ExternalClientSaslServer#PROPERTY_SASL_EXTERNAL_CLIENT_SUPPRESS_MATCHING_REALMNAME
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.sasl.AnonymousSaslServer#ENABLED
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.SessionManager#CONFLICT_LIMIT
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.cluster.ClusterMonitor#ENABLED
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.admin.DefaultAdminProvider#ADMIN_JIDS
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.spi.EncryptionArtifactFactory#TRUST_MANAGER_CLASS
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.spi.EncryptionArtifactFactory#SSLCONTEXT_PROTOCOL
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.container.PluginServlet#ALLOW_LOCAL_FILE_READING
2019.12.31 17:52:23 org.jivesoftware.openfire.XMPPServer - Accessing SystemProperty field org.jivesoftware.openfire.security.SecurityAuditManager#AUDIT_PROVIDER
2019.12.31 17:52:23 org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Misses
2019.12.31 17:52:23 org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Hits
2019.12.31 17:52:23 org.jivesoftware.openfire.container.AdminConsolePlugin - Admin console listening at:
http://domain.com:9090
https://domain.com:9091
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘admin’.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘broadcast’.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘dbaccess’.
2019.12.31 17:52:23 org.igniterealtime.openfire.plugins.certificatemanager.DirectoryWatcher - Watching ‘/opt/openfire/resources/security/hotdeploy’ for updates for installed certificate chains and private keys.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘certificatemanager’.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘bookmarks’.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘clientcontrol’.
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘search’.
2019.12.31 17:52:23 nl.goodbytes.xmpp.xep0363.repository.AbstractFileSystemRepository - Initialized repository in: /tmp/xmppfileupload2069855079911665262
2019.12.31 17:52:23 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘httpfileupload’.
2019.12.31 17:52:24 org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘monitoring’.
2019.12.31 17:52:24 org.jivesoftware.openfire.container.PluginMonitor - Finished processing all plugins.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s-legacyMode] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[socket_s2s] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[socket_s2s-legacyMode] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[component] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[component-legacyMode] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[connection_manager] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.ConnectionListener[connection_manager-legacyMode] - Started.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.EncryptionArtifactFactory - Creating new SslContextFactory instance
2019.12.31 17:52:24 org.jivesoftware.openfire.http.HttpSessionManager - Starting instance
2019.12.31 17:52:24 org.jivesoftware.openfire.http.HttpBindManager - HTTP bind service started
2019.12.31 17:52:36 org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Locked Out Accounts

Request some help.
Another note - most install options that I saw needed the MariaDB to be installed but I wasnt able to as I kept getting errors. However DB created and active on MySQL.

Regards and Thanks in Advance.

What is your xmpp domain and do you use it to login in Spark?

XMPP Domain Name: domain.com
serverhostname ; openfire.domain.com
where domain name is YesEnVee

Also, I was checking the netstat and see that port 5222 and 5223 are as below

tcp6 0 0 :::5222 :::* LISTEN 18423/java
tcp6 0 0 :::5223 :::* LISTEN 18423/java

I use this same domain to login into Spark - have even tried using IP.
Thank you for the help

Latest Error Log
2019.12.31 17:52:23 org.jivesoftware.util.LocaleUtils - Missing resource for key: system_property.plugins.servlet.allowLocalFileReading in locale en
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.LegacyConnectionAcceptor - Configuration allows for up to 16 threads, although implementation is limited to exactly one.
2019.12.31 17:52:24 org.jivesoftware.openfire.spi.LegacyConnectionAcceptor - Configuration allows for up to 16 threads, although implementation is limited to exactly one.

Happy New Year

Is this domain.com resolvable in your network/DNS? Can you connect to http://domain.com:9090 in your browser from a PC you run Spark on? You can also check Spark logs.

On Windows it is
C:\Users\User\AppData\Roaming\Spark\logs
There is a bunch of files, look through all of them and select events that correlate with the time of your issue.

Thank you for your responses. Much appreciated.

I am pasting below the log from the most recent login attempt (Spark Log) - Errors

Jan 02, 2020 1:00:46 PM org.jivesoftware.spark.util.log.Log error
SEVERE: connection error
org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: ‘openfire.domain.com:5222 prio:0:w:5’ failed because java.net.ConnectException: Connection timed out: connect, ‘domain.com:5222’ failed because java.net.ConnectException: Connection timed out: connect
at org.jivesoftware.smack.SmackException$ConnectionException.from(SmackException.java:255)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:612)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:850)
at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:364)
at org.jivesoftware.LoginDialog$LoginPanel.lambda$login$1(LoginDialog.java:1099)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

And Spark Log - Warn
Jan 02, 2020 1:00:46 PM org.jivesoftware.spark.util.log.Log warning
WARNING: Exception in Login:
org.jivesoftware.smack.SmackException$NotConnectedException: Client is not, or no longer, connected.
at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwNotConnectedExceptionIfAppropriate(XMPPTCPConnection.java:342)
at org.jivesoftware.smack.AbstractXMPPConnection.login(AbstractXMPPConnection.java:452)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:1131)
at org.jivesoftware.LoginDialog$LoginPanel.access$900(LoginDialog.java:335)
at org.jivesoftware.LoginDialog$LoginPanel$3.construct(LoginDialog.java:894)
at org.jivesoftware.spark.util.SwingWorker.lambda$new$1(SwingWorker.java:138)
at java.lang.Thread.run(Unknown Source)

I am able to resolve the domains (including the openfire.domain.com) from my PC. Also I am able to login to 9090 and setup on this PC.

Mr. @wroot, I think it could be related to my server settings. Do you think that is the issue here, I was referring to an answer to a different question that you had given. (Exception DNS name not found in Spark) Below is the screenshot of my server login screen.

Connection is timing out. This can be firewall/selinux issue. If you can try temporarily disabling them and check again.

Thanks again @wroot, I checked the firewall log and saw this when I tried logging in now
Jan 2 16:14:09 vps lfd[23297]: UI: Invalid login attempt from xxx.xxx.146.182 [1/5]
Jan 2 16:14:56 vps lfd[24492]: User Processing PID:7915 Kill:0 User:postfix Time:1830 EXE:/usr/libexec/postfix/trivial-rewrite CMD:trivial-rewrite -n rewrite -t unix -u
Jan 2 16:16:43 vps lfd[27713]: UI: Successful login from xxx.xxx
xxx.146.182
Jan 2 16:20:05 vps lfd[32763]: UI child: [Interrupted system call] [Connection timeout!
Just one help - is this due to the firewall or any setup issue. Thanks

Can’t tell, I’m not familiar with such firewall and its logs.

Hi Nikhil,

Please try a telnet connection from your source network/device xxx.xxx.146.182 to your Openfire server.
The command looks like: telnet 103.143.46.17 5222.
What is the result of your command?

.:Basti

1 Like

looks like java is ony listening on ipv6 for some reason. I think I’ve seen this issue before with ubuntu. try disabling ipv6.

Update :slightly_smiling_face:

It is working well now. To help others here are the issues.
1 - Though ports were open on CFM - we had to update the CFM and restart the firewall. The iptables were also updated and CFM restarted (please note both steps were done separately)
2 - the windows firewall (on the PC) was blocking the packets - without indication. Though I was turning off my other firewall, it was still working. Good work Windows…but allow Spark through that
3 - Check whether the IP list for my connection is on the allowed list - it wasnt, added the IP range to it.

It is working !

2 Likes