Pivotal Knowledge Base

Follow

Healthwatch Installation Fails on a Non-RFC 1918 Network

Environment

Pivotal Cloud Foundry 2.0 and upper

Symptom

When attempting to install Healthwatch v1.1 on a non-RFC 1918 network, the smoke test fails with the following error message.

Error Message:

Stdout Running Suite: Smoketests Suite 
===============================
Random Seed: 1514193179
Will run 4 of 4 specs

UI Tests
Redirects to a login page
/var/vcap/packages/healthwatch-data/src/github.com/pivotal-cf/healthwatch-data/data-ingestion/smoketests/ui_test.go:40

Failure [0.023 seconds]
UI Tests
/var/vcap/packages/healthwatch-data/src/github.com/pivotal-cf/healthwatch-data/data-ingestion/smoketests/ui_test.go:47
Redirects to a login page [It]
/var/vcap/packages/healthwatch-data/src/github.com/pivotal-cf/healthwatch-data/data-ingestion/smoketests/ui_test.go:40

The healthwatch application is not running correctly. Please check the logs for this application.

Cause 

In a non-RFC 1918 network, there are too many HTTP 302 redirects if routers IP are not specified as internal proxies with TomCat server.

Resolution

Follow the steps to workaround this issue:

1. ssh into UAA VM, open the file /var/vcap/jobs/uaa/config/tomcat/server.xml

copy the internal proxy settings, the "internalProxies" line

Example with a non-RFC 1918 network with 3 routers (27.100.160.220,27.100.160.221,27.100.160.222)

internalProxies="27\.100\.160\.220|27\.100\.160\.222|27\.100\.160\.221|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3}|169\.254\.\d{1,3}\.\d{1,3}|127\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.1[6-9]{1}\.\d{1,3}\.\d{1,3}|172\.2[0-9]{1}\.\d{1,3}\.\d{1,3}|172\.3[0-1]{1}\.\d{1,3}\.\d{1,3}" 

2. Log in with cf command and add the InternalProxies list to "cf srevg"

cf login
cf target -o system -s healthwatch
cf srevg '{"SERVER_TOMCAT_INTERNAL_PROXIES":"27\\.100\\.160\\.220|27\\.100\\.160\\.222|27\\.100\\.160\\.221|10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|192\\.168\\.\\d{1,3}\\.\\d{1,3}|169\\.254\\.\\d{1,3}\\.\\d{1,3}|127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}"}'

3. Restage all Healthwatch apps

Additional Information

A fix will be released in a future Healthwatch release.

 

Comments

Powered by Zendesk