jbossas startup has timed out, process still running - /var/log/jbossas/rhevm-slimmed/server.log doesn't exist

Latest response

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.

 

 

Responses

Hi Andrew - it doesn't look like the community has been able to help you out with this one yet. If you don't see a response and the issue is urgent, you may need to open a support case.

looks like a faulty installation to me, can you run `rhevm-cleanup` and then reinstall?

Hi David, Dan,

Thanks very much for your help.   I tried rhevm-cleanup already.  I even yum remove rhevm and reinstalled it again.  Nothing helped.

 

I ended up removing rhevm, jboss and changed the subcription channel to 3.1

Release Channels for Red Hat Enterprise Linux 6 for x86_64
RHEL Server Supplementary (v. 6 64-bit x86_64) (Channel Details)
Red Hat Enterprise Virtualization Hypervisor (v.6 x86_64) (Channel Details)
Red Hat Enterprise Virtualization Manager (v.3.0 x86_64) (Channel Details)
Red Hat Enterprise Virtualization Manager (v.3.1 x86_64) (Channel Details)     <<<

Additional Services Channels for Red Hat Enterprise Linux 6 for x86_64
JBoss Application Platform (v 5) for 6Server x86_64 (Channel Details)
JBoss Application Platform (v 6) for 6Server x86_64 (Channel Details)   <<<

 

I got the following java error when trying to start up the ovirt-engine.at first.

 

sprnr3108e-26# cat boot.log
22:33:50,520 INFO  [org.jboss.modules] JBoss Modules version 1.1.2.GA-redhat-1
22:33:50,685 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA-redhat-1
22:33:50,730 INFO  [org.jboss.as] JBAS015899: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) starting
22:33:51,100 WARN  [org.jboss.modules]
Failed to define class
    org.jboss.metadata.ear.spec.EarMetaData
in Module
    "org.jboss.metadata:main"
from local module loader @5219f360
(roots:
/usr/share/ovirt-engine/modules,
/usr/share/jbossas/modules
): org.jboss.modules.ModuleLoadError: Error loading module from /usr/share/jbossas/modules/javax/jws/api/main/module.xml
 

After I did a yum update, now ovirt-engine can be started.   I can now access RHEVM from the Windows 2008 IE. 

 

Actually do I still need the Windows 2008 system to access RHEVM 3.1?   I can login using firefox on the RHEL6 system.

 

Hopefully I can perform the rest of the setup without major problems.

 

One small suggestion - Can Red Hat provide a virtual machine with the RHEVM preinstalled?  I can just fire it up with KVM and avoid the painful setup procedure.

 

Regards,

Andrew.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.