Pivotal Knowledge Base

Follow

Error message "404 Not Found: Requested route does not exist in PCF Metrics" seen

Environment

Product Version
Pivotal Cloud Foundry® (PCF) 1.6, 1.7
PCF Metrics Tile

1.0.3 - 1.0.7

Symptom

Once PCF Metric is installed, opening https://metrics.<system-domain> in the browser returns the following message:

404 Not Found: Requested route ('metrics.system-dev.cf.pivotal.io') does not exist.

NOTE : This issue is Fixed in PCF Metrics version 1.0.8

Cause

During the uninstall of PCF Metrics, not all resources (i.e. apps and routes) are removed. Updates or upgrades of other PCF Tiles may also cause this issue to arise if the PCF Metrics Tile errands are rerun.

Resolution

Log on to Apps Manager via CLI and run the following commands:

cf target -o system -s metrics

cf stop metrics cf stop metrics-api cf unmap-route metrics <system-domain> --hostname metrics cf unmap-route metrics-api <system-domain> --hostname metrics cf map-route metrics <system-domain> --hostname metrics cf map-route metrics-api <system-domain> --hostname metrics --path v2 cf start metrics cf start metrics-api

Executing a cf routes afterwards, you should have something similar to the following:

cf routes
Getting routes for org system / space metrics as admin ...

space     host      domain            port  path  type   apps                  service
metrics   metrics   <system-domain>         /v2          metrics-api
metrics   metrics   <system-domain>                      metrics

Additional Information

If you execute cf routes command and notice that no applications exists (see below), Please run  cf delete-orphaned-routes  to delete routes, then try map-route commands above
 
Getting routes for org system / space metrics as admin ...
 
space     host      domain            path   apps   service  
metrics   metrics   <system-domain>   /v2              
metrics   metrics   <system-domain>        

 

If the steps listed above do not resolve the problem, submit a ticket to PCF support at support.pivotal.io.

 

Comments

Powered by Zendesk