The document goes through some of the errors that can be seen when analysing the catalina.log from SafeConsole, available in the logs folder of the install directory.



Example - Connectivy issue 

 

SEVERE: Safedownloader: Failed to download index
java.net.UnknownHostException: update.safeconsole.com

 

The SafeConsole server is unable to connect to the Internet to verify that it is running the latest version.


Example - LDAP connectivity issue

 

WARNING: Exception performing authentication
javax.naming.CommunicationException: yourDCaddress.domain.com:389 [Root exception is java.net.UnknownHostException: yourDCaddress.domain.com]
at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)


OR

 

WARNING: Exception performing authentication
javax.naming.CommunicationException: Connection reset [Root exception is java.net.SocketException: Connection reset]; remaining name 'DC=ccc,DC=xxx,DC=zz'
at com.sun.jndi.ldap.LdapCtx.doSearch(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)


The SafeConsole server is unable to connect to the Domain Controller to perform an authentication. This may be caused by incorrect entry in the DNS or general connectivity issues.


Example - License is not installed

 

org.apache.catalina.core.ApplicationContext log
INFO: admin: Initializing license from filesystem
org.apache.catalina.core.ApplicationContext log
INFO: admin: Error reading license: C:\Program Files (x86)\BlockMaster\SafeConsole\license\license.key

 

The SafeConsole license is not installed. Probably since the user is unable to log in and install the license.


This is how to do a manual license installation in the file system if SafeConsole interface in not operational for some reason.


Example - Possible corrupted installation

 

org.jboss.resteasy.plugins.providers.RegisterBuiltin 
WARNING: NoClassDefFoundError: Unable to load builtin provider: org.jboss.resteasy.security.smime.EnvelopedWriter

 

SafeConsole is failing to load a class, in this case the RESTEasy plugin, that is critical for its operation. This will likely cause more errors in the log. Recover the latest working backup or reinstall SafeConsole.


Example - Database erased or corrupted

 

SEVERE: Begin event threw exception
java.lang.RuntimeException: C:\Program Files (x86)\BlockMaster\SafeConsole\db\create_database.sql

 

SafeConsole failed to open the database. Recover to a working backup. Ensure that the files C:\Program Files (x86)\BlockMaster\SafeConsole\db\Consoledb.script and C:\Program Files (x86)\BlockMaster\SafeConsole\db\Consoledb.properties are present and not zero bytes in size. 


Example - Sophos SafeConsoleReady not included license

 

org.apache.catalina.core.ApplicationContext log
INFO: admin: Warning: Unknown key: sophos

 

No license is present for the optional addon Sophos Antivirus. If this has not been purchased the error can be ignored.


Example - Certificate password mismatch

 

java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source)

 

The password for an existing certificate and the settings in safeconsole.ini does not match. Most often this certificate is the ca.p12 certificate in the /certs folder.


Please try to open the file and enter a password to verify which password that has been used and then check the article "Certificate error when replacing certificate - Bad padding exception in catalina.log"