• can't show the tomcat after running the ls -lisa /etc/init.d/

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #50531  by jllort
 
The script should be named openkm.
what is the result if you execute:
systemctl status openkm

How did you installed openkm? with OKMInstaller.jar tool ? did you executed under root user?
 #50632  by stony007_de
 
Hi there

the same here
Ubuntu 20.04 x64

Installation with root -> #java -jar OKMInstaller.jar
Database -> MariaDB
systemctl status openkm:
Code: Select all
● openkm.service - LSB: Start and stop OpenKM
     Loaded: loaded (/etc/init.d/openkm; generated)
     Active: active (exited) since Mon 2020-10-12 06:48:59 CEST; 10s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 30305 ExecStart=/etc/init.d/openkm start (code=exited, status=0/SUCCESS)
but no Tomcat Service in the init.d
 #50674  by stony007_de
 
OK, i Found the issue(s)

[*]first:
i haven't a local user with the name openkm on my ubuntu!
I've created it and the installation runs!

[*]second:
after start of the /etc/init.d/openkm i get the log:
Code: Select all
 ==> /home/openkm/tomcat-8.5.34/logs/localhost.2020-10-18.log <==
18-Oct-2020 13:52:57.032 SCHWERWIEGEND [localhost-startStop-1] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [RepositoryStartup] in web application [/OpenKM] threw load() exception
 java.sql.SQLException: Access denied for user 'openkm'@'127.0.0.1' (using password: YES)
Current charset is UTF-8. If password has been set using other charset, consider using option 'passwordCharacterEncoding'
so i Added the 'openkm'@'127.0.0.1' to the mySql
Code: Select all
MariaDB [(none)]> CREATE USER openkm@127.0.0.1 IDENTIFIED BY 'xxxxxxxx';
Query OK, 0 rows affected (0.005 sec)
MariaDB [(none)]> GRANT ALL ON okmdb.* TO openkm@127.0.0.1 WITH GRANT OPTION;
Query OK, 0 rows affected (0.010 sec)
[*]Third
after the next start i get the issue in log:
Code: Select all
java.sql.SQLException: Table 'okmdb.OKM_NODE_BASE' doesn't exist
so i was modified the vi /home/openkm/tomcat-8.5.34/OpenKM.cfg
from hibernate.hbm2ddl=none --> to -->hibernate.hbm2ddl=create

after that the okmdb was filled on start with tables.


now i can go further...

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.