Pivotal Knowledge Base

Follow

jetty server fails to mount applications

Environment

PHD 2.0.1.0
RHEL 6.2

 

Symptom

- icm_client import command get hung or fails to run

- PCC commander service fails to start:

# service commander start
Starting PHD Manager Services...
Starting httpd: [ OK ]
Preparing nodeagent: [ OK ]
Starting nodeagent: [ OK ]
Starting Jetty [ OK ]
Waiting for Jetty to mount applications [FAILED]  <<< 
Starting Pivotal Command Center HTTPS [ OK ]
Starting Pivotal Command Center Background Worker [ OK ]
Waiting for Jetty to mount applications [FAILED]

- curl command against the jetty web server report HTTP Error

# curl -s -I http://localhost:8080/gphdmgr/v1/stacks
HTTP/1.0 500 Internal Server Error

- gphdmgr DB has no tables created

# psql -p 10432 -d gphdmgr -U postgres
gphdmgr=# \d
No relations found.

- gpdhmgr-webservices.log reports ERROR: relation "cluster" does not exist.

# cat /var/log/gphd/gphdmgr/gphdmgr-webservices.log:
:
2014-02-05 21:26:12,397 WARN org.hibernate.util.JDBCExceptionReporter: SQL Error: 0, SQLState: 42P01
2014-02-05 21:26:12,397 ERROR org.hibernate.util.JDBCExceptionReporter: ERROR: relation "cluster" does not exist
:

Cause

In this case the environment variable JAVA_HOME has incorrect path.

PCC installation script will use the Java Binaries derived from the $JAVA_HOME variable and internal table creations for gphdmgr will fail if $JAVA_HOME is not set to Oracle JDK. 

Fix

1. Unset the JAVA_HOME variable and delete the entry from .bashrc and/or .bash_profile of 'root' user.
2. Uninstall and reinstall PCC

Notes

Pivotal internal tickets JIRA CC-3819 and CC-3609 reported similar symptoms.

 

Comments

Powered by Zendesk