Page 1 of 1

Not able to start server after successful installation

PostPosted:Mon May 28, 2018 4:35 am
by ashutoshrathi
After installing from the OKMInstaller.jar, The last step is to start tomcat but getting error:
Job for tomcat.service failed because the control process exited with error code.
See "systemctl status tomcat.service" and "journalctl -xe" for details.


after doing journalctl -xe, I get :

Unit tomcat.service has begun starting up.
May 28 10:02:49 ashutoshrathi systemd[21715]: tomcat.service: Failed at step EXEC spawning /opt/tomcat/bin/startup.sh: No such file or director
-- Subject: Process /opt/tomcat/bin/startup.sh could not be executed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The process /opt/tomcat/bin/startup.sh could not be executed and failed.
--
-- The error number returned by this process is 2.
May 28 10:02:49 ashutoshrathi systemd[1]: tomcat.service: Control process exited, code=exited status=203
May 28 10:02:49 ashutoshrathi systemd[1]: Failed to start Apache Tomcat Web Application Container.
-- Subject: Unit tomcat.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit tomcat.service has failed.




Thanks in advance

Re: Not able to start server after successful installation

PostPosted:Tue May 29, 2018 5:44 pm
by jllort
Did you have a previous tomcat installed in your computer ? Consider removing it before installing OpenKM. I think in community edition the installer still is creating a servivice script named tomcat at /etc/init.d. If you have previously installed tomcat from repositories then you already have an script with same name, might be here is the issue.

In future we have planned rename tomcat service to openkm service to do not get this kind of issues. Anyway is not a good idea have several tomcats sharing the same computer.