• OpenKM stopped working randomly

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #54743  by tuomask
 
Greetings,

I have used the program for the past 1 year+ without a problem. However, at some point during past few weeks, OpenKM stopped working altogether. I tracked the issue in the log files and it had something to do with SSL and APR connector or something, and after a while I googled and found a working answer to make that problem go away.

However, OpenKM is still not working, but at least I get now something in the OpenKM error log, while earlier only output I got was in catalina.out.

openkm.log gives following warnings before shutdown is initiated:

2024-05-29 11:11:23,372 [localhost-startStop-1] [] WARN com.openkm.util.ExecutionUtils - Unable to read script: /home/openkm/tomcat-8.5.69/start.bsh
2024-05-29 11:11:23,372 [localhost-startStop-1] [] WARN com.openkm.util.ExecutionUtils - Unable to read jar: /home/openkm/tomcat-8.5.69/start.jar
2024-05-29 11:11:23,376 [localhost-startStop-1] [] WARN c.o.servlet.RepositoryStartupServlet - Unable to read sql: /home/openkm/tomcat-8.5.69/start.sql

catalina logfile says:
29-May-2024 11:10:21.896 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
29-May-2024 11:10:22.530 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-0.0.0.0-8080"]
29-May-2024 11:10:22.576 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8080]]

I am quite at loss at this point and why it died on its own. OpenKM is running on Ubuntu 22.04 and my Java version is (according to java -version) java version "1.8.0_361" Java(TM) SE Runtime Environment (build 1.8.0_361-b09)".

Any clues how to fix this issue?

Regards
Tuomas
 #54751  by tuomask
 
Restarting openKm did nothing. I tried next to set "secretRequired=false" for the AJP connector and OpenKM still does not work. Last lines of the openkm.log file:

2024-06-03 11:53:14,005 [localhost-startStop-1] [] INFO c.o.extension.core.ExtensionManager - Initialize and load plugins...
2024-06-03 11:53:14,107 [localhost-startStop-1] [] INFO c.o.servlet.RepositoryStartupServlet - *** Execute start script ***
2024-06-03 11:53:14,109 [localhost-startStop-1] [] WARN com.openkm.util.ExecutionUtils - Unable to read script: /home/openkm/tomcat-8.5.69/start.bsh
2024-06-03 11:53:14,111 [localhost-startStop-1] [] WARN com.openkm.util.ExecutionUtils - Unable to read jar: /home/openkm/tomcat-8.5.69/start.jar
2024-06-03 11:53:14,112 [localhost-startStop-1] [] INFO c.o.servlet.RepositoryStartupServlet - *** Execute start SQL ***
2024-06-03 11:53:14,112 [localhost-startStop-1] [] WARN c.o.servlet.RepositoryStartupServlet - Unable to read sql: /home/openkm/tomcat-8.5.69/start.sql
2024-06-03 11:53:14,122 [localhost-startStop-1] [] WARN o.a.c.o.s.i.a.CmisAtomPubServlet - CMIS version is not defined! Setting it to CMIS 1.0.
2024-06-03 11:58:14,073 [Update Info] [] INFO com.openkm.core.UpdateInfo - *** UpdateInfo activated ***
2024-06-03 11:58:14,080 [Update Info] [] INFO c.o.module.common.CommonAuthModule - PrincipalAdapter: com.openkm.principal.DatabasePrincipalAdapter
2024-06-03 11:58:14,239 [Update Info] [] INFO com.openkm.util.Update - checkVersion:

Last lines of the catalina.log file:
03-Jun-2024 11:53:14.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/openkm/tomcat-8.5.69/webapps/OpenKM.war] has finished in [56,417] ms
03-Jun-2024 11:53:14.350 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/openkm/tomcat-8.5.69/webapps/ROOT]
03-Jun-2024 11:53:15.134 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
03-Jun-2024 11:53:15.141 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/openkm/tomcat-8.5.69/webapps/ROOT] has finished in [791] ms
03-Jun-2024 11:53:15.152 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-0.0.0.0-8080"]
03-Jun-2024 11:53:15.165 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-127.0.0.1-8009"]
03-Jun-2024 11:53:15.170 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 57417 ms

I have no clue what should it normally do but sounds weird that it tries to deploy the application into the root instead of openkm? Anyway, I am at loss since this OpenKM error came without warning and without any changes to system itself.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.