VMware Cloud Community
eSumit
Contributor
Contributor

Hyperic HQ 5.0 Server is not running (Open Source Version)

I have done below steps to install hyperic hq (5.0 open source) on ubuntu 
12.04 (64 bit) fresh machine, even i followed the steps mentioned everywhere , 
it still giving below error ( though commercial version installed correctly):

Is there any can provide his comments ?

**[Step-1]**
esumit@esumit-HVM-domU:~/HQ$ sudo chown -R esumit:esumit /home/esumit/HQ
esumit@esumit-HVM-domU:~/HQ$ 
esumit@esumit-HVM-domU:~/HQ$ 

**[Step-2]**
esumit@esumit-HVM-domU:~/HQ$ ls
hyperic-hq-installer-5.0.0  hyperic-hq-installer-x86-64-linux-5.0.0.tar.gz
esumit@esumit-HVM-domU:~/HQ$ cd HQ
bash: cd: HQ: No such file or directory
esumit@esumit-HVM-domU:~/HQ$ ls
hyperic-hq-installer-5.0.0  hyperic-hq-installer-x86-64-linux-5.0.0.tar.gz
esumit@esumit-HVM-domU:~/HQ$ ls
hyperic-hq-installer-5.0.0  hyperic-hq-installer-x86-64-linux-5.0.0.tar.gz
esumit@esumit-HVM-domU:~/HQ$ cd hyperic-hq-installer-5.0.0/
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ ls
COPYING.txt                                 LICENSE.txt          setup.sh
hyperic-hq-agent-x86-64-linux-5.0.0.tar.gz  server-5.0.0.tar.gz
installer                                   setup.bat

**[Step-3]**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ 
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ 
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ ./setup.sh -full
Unpacking JRE to temporary directory /tmp/jre
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 5.0.0 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
1
HQ server installation path [default '/home/hyperic']:

What port should the HQ server's web-based GUI listen on for http communication? [default '7080']:

What port should the HQ server's web-based GUI listen on for secure https communication? [default '7443']:

Choices:
    1: Yes
    2: No
Would you like to use your own java keystore? [default '2']:

Enter the base URL for the HQ server's web-based GUI [default 'http://192.168.30.207:7080/']:

Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default '192.168.30.207']:

Enter the email address that HQ will use as the sender for email messages [default 'hqadmin@168.30.207']:

Choices:
    1: HQ Built-in Database
    2: PostgreSQL
The HQ built-in database is provided for EVALUATION PURPOSES ONLY. For production purposes use vPosgreSQL. What backend database should the HQ server use? [default '1']:

What port should HQ's built-in database use? [default '9432']:

Choices:
    1: Yes
    2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default '1']:

What should the username be for the initial admin user? [default 'hqadmin']:

What should the password be for the initial admin user?: 
(again): 
What should the email address be for the initial admin user? [default 'hqadmin@168.30.207']:

Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /home/hyperic...
Creating server configuration files...
Using "small" installing profile...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server db-upgrade files...
Copying server libs...
Setting up server database...

Now login to another terminal as root and execute this script:

    /home/esumit/HQ/hyperic-hq-installer-5.0.0/installer/data/hqdb/tune-os.sh

This script sets up the proper shared memory settings to run the
built-in database.

Press Enter after you run the script to continue this installation.


Setting up JDBC driver...
Copying database files...
Configuring database...
Loading taskdefs...
Taskdefs loaded
Starting repopulation of configuration table...
Starting built-in database...
Waiting for built-in database to start (on port 9432)...
Preparing database...
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Waiting for server to stop...
Stopping built-in database...
Built-in database stopped.
Installing the server JRE ...
Unpacking JRE amd64-linux-1.6_33.tar.gz to: /home/hyperic/server-5.0.0...
Setting permissions on /home/hyperic/server-5.0.0...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
  Server successfully installed to: /home/hyperic/server-5.0.0
--------------------------------------------------------------------------------


 You can now start your HQ server by running this command:

  /home/hyperic/server-5.0.0/bin/hq-server.sh start

 Note that the first time the HQ server starts up it may take several minutes
 to initialize.  Subsequent startups will be much faster.

 Once the HQ server reports that it has successfully started, you can log in
 to your HQ server at: 

  http://192.168.30.207:7080/
  username: hqadmin
  password: sumit123

 To change your password, log in to the HQ server, click the "Administration"
 link, choose "List Users", then click on the "hqadmin" user.


Setup completed.
A copy of the output shown above has been saved to:
  /home/esumit/HQ/hyperic-hq-installer-5.0.0/installer/logs/hq-install.log

Deleting temporary JRE

**[Step-4]**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh start
-e Starting HQ Server...

**[Step-5]**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status
HQ Server is running (PID:2814).
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status
HQ Server is running (PID:2814).
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status
HQ Server is running (PID:2814).

**[Step-6]**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status
HQ Server is running (PID:2814).

**[Step-7]**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status
**HQ Server is not running.**
esumit@esumit-HVM-domU:~/HQ/hyperic-hq-installer-5.0.0$ 
Tags (1)
0 Kudos
4 Replies
admin
Immortal
Immortal

Hi,

Did you see any errors in server log files?

Thanks,

Tal

0 Kudos
eSumit
Contributor
Contributor

I can see following logs :

esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$ ls -ltr
total 16
-rw------- 1 esumit esumit     0 Nov  1 07:13 server.log
-rw------- 1 esumit esumit     0 Mar  8 16:16 hqdb.log
-rw-r--r-- 1 root   root   10286 Mar  8 16:37 bootstrap.log
-rw-r--r-- 1 root   root    2548 Mar  8 16:37 wrapper.log
esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$
BootStrap Logs
===========
esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$
esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$ cat bootstrap.log
2013-03-08 16:16:57,269 INFO  [WrapperStartStopAppMain] [org.springframework.context.support.ClassPathXmlApplicationContext@456] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@36baa466: startup date [Fri Mar 08 16:16:57 KST 2013]; root of context hierarchy
2013-03-08 16:16:57,320 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader@315] Loading XML bean definitions from URL [jar:file:/home/hyperic/server-5.0.0/lib/hq-bootstrap-5.0.0.jar!/META-INF/spring/bootstrap-context.xml]
2013-03-08 16:16:57,727 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.config.PropertiesFactoryBean@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:16:57,777 INFO  [WrapperStartStopAppMain] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [spring-jdbc.properties]
2013-03-08 16:16:57,778 INFO  [WrapperStartStopAppMain] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:16:58,051 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.support.DefaultListableBeanFactory@555] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@40f892a4: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,processManagerImpl,HQServer,tomcatEngineController,serverConfiguratorImpl,postgresEmbeddedDatabaseController,org.hyperic.sigar.OperatingSystem#0,org.hyperic.sigar.Sigar#0,jasyptConfiguration,propertyPasswordEncryptor,serverProps,org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer#0,org.apache.tomcat.jdbc.pool.DataSource#0]; root of factory hierarchy
2013-03-08 16:16:58,132 INFO  [WrapperStartStopAppMain] [org.hyperic.bootstrap.HQServer@95] Starting HQ server...
2013-03-08 16:16:58,141 INFO  [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@84] Starting HQ built-in database...
2013-03-08 16:16:58,156 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.ProcessManagerImpl@119] Command did not execute successfully (exit code = 1)
2013-03-08 16:17:18,213 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@94] HQ built-in database failed to start
2013-03-08 16:17:18,213 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@95] The log file /home/hyperic/server-5.0.0/logs/hqdb.log may contain further details on why it failed to start
2013-03-08 16:17:19,217 INFO  [Wrapper-Stopper] [org.springframework.context.support.ClassPathXmlApplicationContext@456] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@6bab600f: startup date [Fri Mar 08 16:17:19 KST 2013]; root of context hierarchy
2013-03-08 16:17:19,218 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader@315] Loading XML bean definitions from URL [jar:file:/home/hyperic/server-5.0.0/lib/hq-bootstrap-5.0.0.jar!/META-INF/spring/bootstrap-context.xml]
2013-03-08 16:17:19,281 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.config.PropertiesFactoryBean@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:17:19,283 INFO  [Wrapper-Stopper] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [spring-jdbc.properties]
2013-03-08 16:17:19,284 INFO  [Wrapper-Stopper] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:17:19,296 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.support.DefaultListableBeanFactory@555] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@731de9b: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,processManagerImpl,HQServer,tomcatEngineController,serverConfiguratorImpl,postgresEmbeddedDatabaseController,org.hyperic.sigar.OperatingSystem#0,org.hyperic.sigar.Sigar#0,jasyptConfiguration,propertyPasswordEncryptor,serverProps,org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer#0,org.apache.tomcat.jdbc.pool.DataSource#0]; root of factory hierarchy
2013-03-08 16:17:19,315 INFO  [Wrapper-Stopper] [org.hyperic.bootstrap.HQServer@156] Stopping HQ server...
2013-03-08 16:17:19,321 INFO  [Wrapper-Stopper] [org.hyperic.bootstrap.TomcatEngineController@110] HQ server not running
2013-03-08 16:36:58,140 INFO  [WrapperStartStopAppMain] [org.springframework.context.support.ClassPathXmlApplicationContext@456] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@36baa466: startup date [Fri Mar 08 16:36:58 KST 2013]; root of context hierarchy
2013-03-08 16:36:58,191 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader@315] Loading XML bean definitions from URL [jar:file:/home/hyperic/server-5.0.0/lib/hq-bootstrap-5.0.0.jar!/META-INF/spring/bootstrap-context.xml]
2013-03-08 16:36:58,589 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.config.PropertiesFactoryBean@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:36:58,637 INFO  [WrapperStartStopAppMain] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [spring-jdbc.properties]
2013-03-08 16:36:58,638 INFO  [WrapperStartStopAppMain] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:36:58,910 INFO  [WrapperStartStopAppMain] [org.springframework.beans.factory.support.DefaultListableBeanFactory@555] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7f636e4e: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,processManagerImpl,HQServer,tomcatEngineController,serverConfiguratorImpl,postgresEmbeddedDatabaseController,org.hyperic.sigar.OperatingSystem#0,org.hyperic.sigar.Sigar#0,jasyptConfiguration,propertyPasswordEncryptor,serverProps,org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer#0,org.apache.tomcat.jdbc.pool.DataSource#0]; root of factory hierarchy
2013-03-08 16:36:58,990 INFO  [WrapperStartStopAppMain] [org.hyperic.bootstrap.HQServer@95] Starting HQ server...
2013-03-08 16:36:58,999 INFO  [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@84] Starting HQ built-in database...
2013-03-08 16:36:59,016 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.ProcessManagerImpl@119] Command did not execute successfully (exit code = 1)
2013-03-08 16:37:19,060 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@94] HQ built-in database failed to start
2013-03-08 16:37:19,061 ERROR [WrapperStartStopAppMain] [org.hyperic.bootstrap.PostgresEmbeddedDatabaseController@95] The log file /home/hyperic/server-5.0.0/logs/hqdb.log may contain further details on why it failed to start
2013-03-08 16:37:20,064 INFO  [Wrapper-Stopper] [org.springframework.context.support.ClassPathXmlApplicationContext@456] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@73265109: startup date [Fri Mar 08 16:37:20 KST 2013]; root of context hierarchy
2013-03-08 16:37:20,065 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader@315] Loading XML bean definitions from URL [jar:file:/home/hyperic/server-5.0.0/lib/hq-bootstrap-5.0.0.jar!/META-INF/spring/bootstrap-context.xml]
2013-03-08 16:37:20,135 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.config.PropertiesFactoryBean@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:37:20,137 INFO  [Wrapper-Stopper] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [spring-jdbc.properties]
2013-03-08 16:37:20,138 INFO  [Wrapper-Stopper] [org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer@177] Loading properties file from class path resource [hq-server.conf]
2013-03-08 16:37:20,150 INFO  [Wrapper-Stopper] [org.springframework.beans.factory.support.DefaultListableBeanFactory@555] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bc794cc: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,processManagerImpl,HQServer,tomcatEngineController,serverConfiguratorImpl,postgresEmbeddedDatabaseController,org.hyperic.sigar.OperatingSystem#0,org.hyperic.sigar.Sigar#0,jasyptConfiguration,propertyPasswordEncryptor,serverProps,org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer#0,org.apache.tomcat.jdbc.pool.DataSource#0]; root of factory hierarchy
2013-03-08 16:37:20,168 INFO  [Wrapper-Stopper] [org.hyperic.bootstrap.HQServer@156] Stopping HQ server...
2013-03-08 16:37:20,174 INFO  [Wrapper-Stopper] [org.hyperic.bootstrap.TomcatEngineController@110] HQ server not running

Wrapper Logs

==============

esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$ ls -ltr

total 16

-rw------- 1 esumit esumit     0 Nov  1 07:13 server.log

-rw------- 1 esumit esumit     0 Mar  8 16:16 hqdb.log

-rw-r--r-- 1 root   root   10286 Mar  8 16:37 bootstrap.log

-rw-r--r-- 1 root   root    2548 Mar  8 16:37 wrapper.log

esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$ cat wrapper.log

STATUS | wrapper  | 2013/03/08 16:16:56 | --> Wrapper Started as Daemon

STATUS | wrapper  | 2013/03/08 16:16:56 | Java Service Wrapper Community Edition 64-bit 3.5.6

STATUS | wrapper  | 2013/03/08 16:16:56 |   Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved.

STATUS | wrapper  | 2013/03/08 16:16:56 |     http://wrapper.tanukisoftware.com

STATUS | wrapper  | 2013/03/08 16:16:56 |

WARN   | wrapper  | 2013/03/08 16:16:56 | The configured wrapper.java.command could not be found, attempting to launch anyway: /home/hyperic/server-5.0.0/jre/bin/java

STATUS | wrapper  | 2013/03/08 16:16:56 | Launching a JVM...

INFO   | jvm 1    | 2013/03/08 16:16:56 | WrapperManager: Initializing...

INFO   | jvm 1    | 2013/03/08 16:16:58 | pg_ctl: cannot be run as root

INFO   | jvm 1    | 2013/03/08 16:16:58 | Please log in (using, e.g., "su"hat will

INFO   | jvm 1    | 2013/03/08 16:16:58 | own the seged) user that will

INFO   | jvm 1    | 2013/03/08 16:16:58 | own the server process.

INFO   | jvm 1    | 2013/03/08 16:17:18 | [HQServer.main(start)]: Shutdown of type 'AbnormalStop' was request

INFO   | jvm 1    | 2013/03/08 16:17:19 | [HQServer.main(stop)]: Shutdown of type 'NormalStop' was request

STATUS | wrapper  | 2013/03/08 16:17:20 | <-- Wrapper Stopped

STATUS | wrapper  | 2013/03/08 16:36:57 | --> Wrapper Started as Daemon

STATUS | wrapper  | 2013/03/08 16:36:57 | Java Service Wrapper Community Edition 64-bit 3.5.6

STATUS | wrapper  | 2013/03/08 16:36:57 |   Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved.

STATUS | wrapper  | 2013/03/08 16:36:57 |     http://wrapper.tanukisoftware.com

STATUS | wrapper  | 2013/03/08 16:36:57 |

WARN   | wrapper  | 2013/03/08 16:36:57 | The configured wrapper.java.command could not be found, attempting to launch anyway: /home/hyperic/server-5.0.0/jre/bin/java

STATUS | wrapper  | 2013/03/08 16:36:57 | Launching a JVM...

INFO   | jvm 1    | 2013/03/08 16:36:57 | WrapperManager: Initializing...

INFO   | jvm 1    | 2013/03/08 16:36:59 | pg_ctl: cannot be run as root

INFO   | jvm 1    | 2013/03/08 16:36:59 | Please log in (using, e.g., "su"hat will

INFO   | jvm 1    | 2013/03/08 16:36:59 | own the seged) user that will

INFO   | jvm 1    | 2013/03/08 16:36:59 | own the server process.

INFO   | jvm 1    | 2013/03/08 16:37:19 | [HQServer.main(start)]: Shutdown of type 'AbnormalStop' was request

INFO   | jvm 1    | 2013/03/08 16:37:20 | [HQServer.main(stop)]: Shutdown of type 'NormalStop' was request

STATUS | wrapper  | 2013/03/08 16:37:21 | <-- Wrapper Stopped

0 Kudos
eSumit
Contributor
Contributor

All the steps of above are fine, What the mistake I did actually to start the server :

sudo /home/hyperic/server-5.0.0/bin/hq-server.sh start

I used the command like : (Without sudo) /home/hyperic/server-5.0.0/bin/hq-server.sh start

And it works

esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$ sudo /home/hyperic/server-5.0.0/bin/hq-server.sh status HQ Server is running (PID:7374). esumit@esumit-HVM-domU:/home/hyperic/server-5.0.0/logs$

Now it works

0 Kudos
admin
Immortal
Immortal

I can see that HQ built-in database failed to start.

Can you please supply /home/hyperic/server-5.0.0/logs/hqdb.log that may contain further details on why it failed to start.

0 Kudos