This forum is no longer active. Please post your questions to our new community site

Forums General

Unable to restart tomcat

Subscribe to Unable to restart tomcat 4 post(s), 2 voice(s)

 
Avatar Ed 6 post(s)

I just installed the liferay stack on a system and it worked. But I had to move it to a different IP. So I shutdown the system, changed the cable to the new network, restarted it and all is fine for the network, but tomcat does not seem to be starting.

When I use the ./ctlscript.sh start tomcat, it comes back with “tomcat could not be started”. There is nothing in the tomcat logs and restart or stop gets the same issue.

Any ideas on what has to be changed if you change IP’s on a system with a bitnami stack?

Thanks,
Ed

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Could you post the exact error? Try to remove the “your_installdir/apache-tomcat/tmp/tomcat.pid” file and restart it again. Have you modified the hostname? Check the “apache-tomcat/logs/catalina.out” file and post the errors.

 
Avatar Ed 6 post(s)

Here is the exact command and messages that come out if I try to start just the tomcat portion of a liferay install. If I try to do the full start without specifying tomcat, it hangs on the mysql startup and has to be ctrl-c’d to get the terminal to come back:

user@dell-linux:~/liferay-6.0.5-0$ sudo ./ctlscript.sh start tomcat
Using CATALINA_BASE: /home/erought/liferay-6.0.5-0/apache-tomcat
Using CATALINA_HOME: /home/erought/liferay-6.0.5-0/apache-tomcat
Using CATALINA_TMPDIR: /home/erought/liferay-6.0.5-0/apache-tomcat/temp
Using JRE_HOME: /home/erought/liferay-6.0.5-0/java
Using CLASSPATH: /home/erought/liferay-6.0.5-0/apache-tomcat/bin/bootstrap.jar
PID file (/home/erought/liferay-6.0.5-0/apache-tomcat/temp/catalina.pid) found. Is Tomcat still running? Start aborted.
/home/erought/liferay-6.0.5-0/apache-tomcat/scripts/ctl.sh : tomcat could not be started

On the file you said to remove, there is no “tmp” folder, there is a “temp” folder but it does not have the file you reference, only a calalina.pid file. Should I remove that one?

As for the logs, since tomcat won’t start no logs are being generated to look at.

When I try to restart either liferay on a liferay stack installed on an existing machine or a redmine stack installed on a bitnami VM LAPP stack the load of mysql hangs for several minutes. On the redmine one on a bitnami LAPP vm the following is what comes up after several minutes:

bitnami@linux:~/redmine-1.1.1-0$ sudo ./ctlscript.sh start
[sudo] password for bitnami:
110211 16:19:11 mysqld_safe Logging to ‘/home/bitnami/redmine-1.1.1-0/mysql/data/mysqld.log’.
chown: invalid user: `mysql’
110211 16:19:11 mysqld_safe Starting mysqld.bin daemon with databases from /home/bitnami/redmine-1.1.1-0/mysql/data
110211 16:19:11 mysqld_safe mysqld from pid file /home/bitnami/redmine-1.1.1-0/mysql/data/linux.pid ended
/home/bitnami/redmine-1.1.1-0/mysql/scripts/ctl.sh : mysql could not be started
starting port 3001
starting port 3002
Syntax OK
/home/bitnami/redmine-1.1.1-0/apache2/scripts/ctl.sh : httpd started at port 8080
/home/bitnami/redmine-1.1.1-0/subversion/scripts/ctl.sh : subversion started at port 3690

Thanks,
Ed

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi Ed,

Sorry but it seems that you are not using the virtual appliance. For instance redmine was installed in your home (maybe in a virtual machine) but you are using the native installer. As redmine was installed by “the bitnami user” you should runt the “ctlscript.sh” command without the “sudo” command.

Forums General