Accessing config-server dashboard got "Whitelabel Error Page"
search cancel

Accessing config-server dashboard got "Whitelabel Error Page"

book

Article ID: 297175

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

When accessing config-server dashboard URL, it returned "Whitelabel Error Page" as show in below image.
while-label-page.png
The config-server service instance is implemented by deploying an application called config-server in org p-spring-cloud-services / space <config-server service instance GUID>. Checking recent logs of config-server app  you might see some exception or error. For example,
no-master-label.png
The error "No such label: master" indicated that there was no "master" branch in configured remote Git repository. 
As described in the document, config-server would try to fetch data from master branch by default if no branch explicitly specified with "label" parameter.
In this case there was only "main" branch in remote Git repository.

Environment

Product Version: 3.1

Resolution

The resolution depends on the details of error/exception produced in config-server app logs. For the given example, either of the following solutions should work.
  • Create master branch in remote Git repository
  • Add "label" parameter in Git repo configuration and set its value to some existing branch in remote Git repository. Refer to the document for more details