Thursday, April 19, 2012

Hyperic, installing Server on a Linux machine

requires root access if you want to use the internal PostGREs Database:

this script:
/opt/hyperic/installer/data/hqdb/tune-os.sh

must be run as root.

If you are not root, you can try to fool him by doing

touch /tmp/_hq-was-tuned

and hope your system will be fool enough to believe you... do at your own risk!!!

do
cd /opt/hyperic/server/server-4.6.5-EE/bin/
./hq-server.sh start
cd ../logs/
less bootstrap.log

I find this :o( :


2012-04-22 11:50:20,511 ERROR [main] [org.apache.tools.ant.UnknownElement@135] Task "dbupgrade" finished with error.
/opt/hyperic/server/server-4.6.5-EE/data/db-upgrade.xml:43: DBUpgrader: sql error: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.hyperic.tools.ant.dbupgrade.DBUpgrader.execute(DBUpgrader.java:244)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)




In fact I do

cd /opt/hyperic/installer/bin
./db-start.sh

and I find

./db-start.sh: line 7: cd: hqdb: No such file or directory
./db-start.sh: line 16: /opt/hyperic/installer/bin/pg_ctl: No such file or directory

:o(



Otherwise you must configure the Server to use an external db, such as Oracle

No comments: