jbossas startup has timed out, process still running - /var/log/jbossas/rhevm-slimmed/server.log doesn't exist
I'm trying to setup an RHEV eval environment by following the RHEV 3.0 Evaluation Guide.
rhevm-config-3.0.8_0001-1.el6_3.x86_64
rhevm-dbscripts-3.0.8_0001-1.el6_3.x86_64
rhevm-setup-3.0.8_0001-1.el6_3.x86_64
I got the following erorr during rhevm-setup.
....
2012-12-03 16:41:24::DEBUG::rhevm-setup::1822::root:: Starting JBoss Service
2012-12-03 16:41:24::DEBUG::common_utils::165::root:: cmd = /sbin/service jbossas start
2012-12-03 16:45:26::DEBUG::common_utils::170::root:: output = Starting jbossas:
jbossas startup has timed out, process still running.
....
2012-12-03 16:45:26::ERROR::rhevm-setup::2282::root:: Traceback (most recent call last):
File "/usr/bin/rhevm-setup", line 2276, in <module>
main(confFile)
File "/usr/bin/rhevm-setup", line 2113, in main
runMainFunctions(conf)
File "/usr/bin/rhevm-setup", line 2062, in runMainFunctions
runFunction([_startJboss], output_messages.INFO_START_JBOSS)
File "/usr/bin/rhevm-setup", line 1384, in runFunction
raise Exception(instance)
Exception: Failed starting JBoss service
I checked the /etc/init.d/jbossas script. The start function compare the timestap (-ot older timer) of the following two files and try to grep for "Started in " in the server.log to confirm that jbossas is running.
if [ $JBOSS_HOME/server/$JBOSSCONF/log/temp.file -ot $JBOSS_HOME/server/$JBOSSCONF/log/server.log ]; then
grep -q ' Started in ' $JBOSS_HOME/server/$JBOSSCONF/log/server.log > /dev/null 2>&1
if [ $? -eq 0 ]; then
RETVAL=0
fi
fi
From shell script debug:
+ '[' /var/lib/jbossas/server/rhevm-slimmed/log/temp.file -ot /var/lib/jbossas/server/rhevm-slimmed/log/server.log ']'
In my installation there is no such file as server.log.
sprnr3108e-26# ls -l
total 5708
-rw-rw-r--. 1 jboss jboss 1907359 Dec 4 11:35 boot.log
-rw-r--r--. 1 jboss jboss 3932626 Dec 4 11:35 console.log
The "Started in " message is in the other two files.
sprnr3108e-26# grep 'Started in ' boot.log
12:44:56,467 INFO [ServerImpl] JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201206061626)] Started in 8s:398ms
sprnr3108e-26# grep 'Started in ' console.log
12:44:56,467 INFO [ServerImpl] JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201206061626)] Started in 8s:398ms
The java process is started.
sprnr3108e-26# ps -eaf |grep jboss
jboss 9392 1 0 12:44 ? 00:00:00 /bin/sh /var/lib/jbossas/bin/run.sh -c rhevm-slimmed -b 0.0.0.0
jboss 9441 9392 0 12:44 ? 00:00:27 /usr/lib/jvm/java/bin/java -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djboss.partition.udpGroup=228.1.2.3 -Djboss.webpartition.mcast_port=45577 -Djboss.hapartition.mcast_port=45566 -Djboss.ejb3entitypartition.mcast_port=43333 -Djboss.ejb3sfsbpartition.mcast_port=45551 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/var/lib/jbossas/lib/endorsed -classpath /var/lib/jbossas/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar org.jboss.Main -c rhevm-slimmed -b 0.0.0.0
But it is not listening on the port 8080 or 8443 as I typed in rhevm-setup.
sprnr3108e-26# netstat -an | egrep '8080|8443'
unix 3 [ ] STREAM CONNECTED 18443
Does anyone expierence the same probelm before?
Thanks and Regards,
Andrew.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
