Config Server creation fails with 5000ms timeout
search cancel

Config Server creation fails with 5000ms timeout

book

Article ID: 297167

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

When remote repository or composite repositories configured with Tanzu config server are very big following or network is very slow following timeout error can be thrown in the config service back end app(app located in p-spring-cloud-services org / SI guid space):
nested exception is org.eclipse.jgit.api.errors.TransportException: Read timed out after 5,000 ms


This may indicate that mirror service or client app needs more time to complete all its operations with remote repository/mirror service. 
Workaround is to increase timeout value to 30s to allow extra time.
 


Environment

Product Version: 3.1

Resolution

In 3.2+, "timeout" parameter can be used as described in docs.

In 3.1, this property is only configurable by setting environmental variable on the mentioned config-service back end app. At the moment there is no possibility to set this property when creating config service instance.

Setting this property can be done with use of cf cli from the p-spring-cloud-services org / SI guid space(to get guid run cf service <config_service_name> --guid
cf set-env config-server SPRING_CLOUD_CONFIG_SERVER_GIT_TIMEOUT 30
cf restage config-server 
Or from apps manager ui by navigating to org and space mentioned above and setting variable via ui and restaging back end application.