There was an unexpected error (type=Internal Server Error, status=500)
The problem is mostly caused by improper property settings such as label.
To identify the root cause, please follow the following steps:
2021-04-30T12:23:23.39+0200 [APP/PROC/WEB/config-server 0] OUT [http-nio-8080-exec-6] DEBUG o.s.web.servlet.DispatcherServlet.logResult - Failed to complete request: org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: master 2021-04-30T12:23:23.40+0200 [APP/PROC/WEB/config-server 0] OUT [http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet].log - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: master] with root cause 2021-04-26T11:15:11.66+0100 [APP/PROC/WEB/0] OUT [35m[http-nio-8080-exec-9][0;39m [1;31mERROR[0;39m o.a.c.c.C.[.[.[.[dispatcherServlet].log - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause 2021-04-26T11:15:11.66+0100 [APP/PROC/WEB/0] OUT java.lang.NullPointerException: null 2021-04-26T11:15:11.66+0100 [APP/PROC/WEB/0] OUT at io.pivotal.spring.cloud.configserver.git.GitRepositoriesService.snapshotRepository(GitRepositoriesService.java:66)
In Spring Cloud Service (SCS) 3.0 and above, if the git repository label is not specified, "master" will be used as the default label. However, the "master" label is not guaranteed to exist in the repository.
The config-server will hit the above problem if:
The resolution is to specify the correct "label" property when creating or updating the config-server instance.
cf cs -c '{"git":{"uri":"https://github.com/SOME_ORG/SOME_REPO", "label": "SOME_LABEL"}}' p.config-server standard config-server