How to disable ConfigServicePropertySourceLocator logs from Spring Cloud Dataflow server
search cancel

How to disable ConfigServicePropertySourceLocator logs from Spring Cloud Dataflow server

book

Article ID: 297094

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

Verbose logs from the dataflow server, as shown below, can generate a lot of logs and get in the way of troubleshooting issues. This is logged by config-server’s client that is bundled in SCDF, this is the default behavior. It is possible to suppress these logs by disabling the config server client.
2020-10-06T17:38:42.684+03:00 [APP/PROC/WEB/dataflow 0] [OUT] 2020-10-06 14:38:42.684 WARN 26 --- [nio-8080-exec-7] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/data-flow-server-23f4fe7e-d18b-4d6f-864d-75c9445682be/cloud": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2020-10-06T17:39:09.398+03:00 [APP/PROC/WEB/skipper 0] [OUT] 2020-10-06 14:39:09.397 INFO 32 --- [nio-8080-exec-7] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2020-10-06T17:39:09.403+03:00 [APP/PROC/WEB/skipper 0] [OUT] 2020-10-06 14:39:09.403 INFO 32 --- [nio-8080-exec-7] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2020-10-06T17:39:09.403+03:00 [APP/PROC/WEB/skipper 0] [OUT] 2020-10-06 14:39:09.403 WARN 32 --- [nio-8080-exec-7] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/skipper-23f4fe7e-d18b-4d6f-864d-75c9445682be/cloud": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
2020-10-06T17:39:12.700+03:00 [APP/PROC/WEB/dataflow 0] [OUT] 2020-10-06 14:39:12.699 INFO 26 --- [nio-8080-exec-9] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2020-10-06T17:39:12.709+03:00 [APP/PROC/WEB/dataflow 0] [OUT] 2020-10-06 14:39:12.709 INFO 26 --- [nio-8080-exec-9] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2020-10-06T17:39:12.709+03:00 [APP/PROC/WEB/dataflow 0] [OUT] 2020-10-06 14:39:12.709 WARN 26 --- [nio-8080-exec-9] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/data-flow-server-23f4fe7e-d18b-4d6f-864d-75c9445682be/cloud": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)


Resolution

From the user’s space / org where the data flow service instance was created, run the following command where dataflowSI is the dataflow service instance name:
cf t -o p-dataflow -s $(cf service dataflowSI --guid) 

You should now be in the space / org of the data flow backing app. Next, run the commands below.
cf set-env dataflow SPRING_CLOUD_CONFIG_ENABLED false

cf restage dataflow