RHEVM 3.0 configuration failed with "Failed to create database rhevm"

Latest response

Hi 

when i try configuring  rhevm-3.0, it got failed at creating database. i tried all the source to solve, but could'nt. can some one find me a way to proceed. 

 

Log messages:

rhevm-db-install-2012_10_08_06_48_18.log::::

 

[rhevm-db-install] creating rhevm db on postgres.

/usr/share/rhevm/dbscripts ~

Creating the database: rhevm

dropdb: database removal failed: ERROR:  database "rhevm" does not exist

createdb: database creation failed: ERROR:  encoding UTF8 does not match locale en_SG

DETAIL:  The chosen LC_CTYPE setting requires encoding LATIN1.

Failed to create database rhevm

 

rhevm-setup_2012_10_08_06_13_09.log:::::::::

 

2012-10-08 06:28:28::ERROR::rhevm-setup::2295::root:: Traceback (most recent call last):

  File "/usr/bin/rhevm-setup", line 2289, in <module>
    main(confFile)
  File "/usr/bin/rhevm-setup", line 2126, in main
    runMainFunctions(conf)
  File "/usr/bin/rhevm-setup", line 2043, in runMainFunctions
    runFunction([_createDB,  _updateVDCOptions], output_messages.INFO_CREATE_DB)
  File "/usr/bin/rhevm-setup", line 1397, in runFunction
    raise Exception(instance)
Exception: Database creation failed
 
Thanks,
Inbaraj

Responses

Looks like a glitch in DB package. Anyone ?

Hello,

Is this a fresh install on a new installed RHEL 6.x ?

I checked my logs from my latest install and it did not contain the lines

Creating the database: rhevm

dropdb: database removal failed: ERROR:  database "rhevm" does not exist

createdb: database creation failed: ERROR:  encoding UTF8 does not match locale en_SG

 

br

Peter Calum

Hi Peter,

It’s a RHEL6.2 host with default packages installed. so i did an customized installation(selected all the packages) during installation, now database creation is successful. but, it fails at starting JBOSSAS service.

Jboss service starts at the backend, but the init script couldn’t complete and due to this  it errors out.

 

Error message from rhevm_setup logs:

 

2012-10-10 05:43:50::DEBUG::rhevm-setup::1835::root:: Starting JBoss Service

2012-10-10 05:43:50::DEBUG::common_utils::165::root:: cmd = /sbin/service jbossas start

jbossas-run2012-10-10 05:47:52::DEBUG::common_utils::170::root:: output = Starting jbossas:

jbossas startup has timed out, process still running.

 

Here is the process state after the rhevm-setup error out:

 

[root@ibmx3550-229-111 rhevm]# ps -eaf |grep jboss

jboss    15871     1  0 06:52 ?        00:00:00 /bin/sh /var/lib/jbossas/bin/run.sh -c rhevm-slimmed -b 0.0.0.0

jboss    15948 15871  4 06:52 ?        00:00:17 /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

root     16211  7180  0 06:58 pts/2    00:00:00 grep jboss

 

i tried google and seen some similer issues but no solution. 

 

rhevm and jbossas package version::

rhevm-3.0.3_0001-3.el6.x86_64

rhevm-setup-3.0.3_0001-3.el6.x86_64

jbossas-5.1.2-10.ep5.el6.noarch

jbossas-client-5.1.2-10.ep5.el6.noarch

Hi, 

 

I used this home made procedure several times with good results, but it's

made from the official install guide

 

# RHEVM Manager installation

Start with clean server (delete/create raid)

install basic linux server 6.3 (no extra rpm's)

16 GB Ram, 16 GB swap (8 GB of each will work)

Default disk layout

# register to RHN

rhn_register

rhn-channel --list
rhn-channel --help
rhn-channel  --available-channels

# Add subscriptions

rhn-channel --add --channel=jbappplatform-5-x86_64-server-6-rpm
rhn-channel --add --channel=rhel-x86_64-server-supplementary-6
rhn-channel --add --channel=rhel-x86_64-server-6-rhevm-3
rhn-channel --add --channel=rhel-x86_64-server-6-rhevh

rhn-channel --list

yum remove classpathx-jaf  (if present)

# update OS

yum upgrade

#reboot

init 6

# install RHEVM

yum install rhevm

# install RHEV Hypervisor (for hypervisor upgrades)

yum install rhev-hypervisor6

# Configuration of RHEVM

rhevm-setup --help

rhevm-setup

## if something goes wrong do --> rhevm-cleanup

init 6

log in to rhevm

#
br

Peter

Close

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