You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
First we place a public github repo link in configserver\src\main\resources\application.yml
open cmd in configserver folder
run mvnw spring-boot:run on cmd
steeltoe configserver will start running successfully
this was working fine and we are getting all values on first attempt
then we change the repo link to azure repo and also we specify the git credentials in configserver\src\main\resources\application.yml
then again run the configserver using cmd and it starts running successfully.
then we start running our project on vs2019
we have to run the project multiple times in order to fetch the configuration values from azure repo, as it does not fetch the configuration values on first and even in 2nd or 3rd attempt.
the main bug is that sometimes it gives the values on all attempts even on first and sometimes fails after 2 to 3 attempts
Expected behavior
steeltoe configserver should get the configuration values from azure repo on first attempt as well
Environment (please complete the following information, if applicable):
Platform: .net core 2.2, vs2019
OS Version: Windows 10
we have installed a nuget package Steeltoe.Extensions.Configuration.ConfigServerCore version 2.5.3 in our project and add a code line .AddConfigServer() in CreateWebHostBuilder() in Program.cs
running the configserver on my machine locally and in production we are using a windows server
Screenshots
2021-05-10 16:04:12.458 INFO 22380 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2021-05-10 16:04:12.469 INFO 22380 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2021-05-10 16:04:17.740 INFO 22380 --- [ main] c.n.e.EurekaDiscoveryClientConfiguration : Registering application configserver with eureka with status UP
2021-05-10 16:04:17.746 DEBUG 22380 --- [ main] s.c.c.d.h.DiscoveryClientHealthIndicator : Discovery Client has been initialized
2021-05-10 16:04:17.850 INFO 22380 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8888 (http)
2021-05-10 16:04:17.851 INFO 22380 --- [ main] c.n.e.EurekaDiscoveryClientConfiguration : Updating port to 8888
2021-05-10 16:04:17.857 INFO 22380 --- [ main] demo.ConfigServerApplication : Started ConfigServerApplication in 16.41 seconds (JVM running for 20.961)
as you see, steeltoe configserver is started above, now i start running my project
sometimes in cmd no further log is written when i start running my project and when i stop running the project these logs described below are written and sometimes these logs are written as my application start running
2021-05-10 16:04:45.394 INFO 22380 --- [nio-8888-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2021-05-10 16:04:45.395 INFO 22380 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2021-05-10 16:04:45.417 INFO 22380 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 21 ms
2021-05-10 16:04:49.502 INFO 22380 --- [nio-8888-exec-1] o.s.boot.SpringApplication : Starting application on DESKTOP-SASDHXX with PID 22380 (started by MY PC in C:\Users\MY PC\configserver)
2021-05-10 16:04:49.502 INFO 22380 --- [nio-8888-exec-1] o.s.boot.SpringApplication : The following profiles are active: Development
2021-05-10 16:04:49.511 INFO 22380 --- [nio-8888-exec-1] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@524d320c: startup date [Mon May 10 16:04:49 PKT 2021]; root of context hierarchy
2021-05-10 16:04:49.516 INFO 22380 --- [nio-8888-exec-1] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-05-10 16:04:49.532 INFO 22380 --- [nio-8888-exec-1] o.s.boot.SpringApplication : Started application in 0.498 seconds (JVM running for 52.637)
2021-05-10 16:04:49.536 INFO 22380 --- [nio-8888-exec-1] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/MY~1/AppData/Local/Temp/config-repo-3468960334054136571/appSettings.yml
2021-05-10 16:04:49.537 INFO 22380 --- [nio-8888-exec-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@524d320c: startup date [Mon May 10 16:04:49 PKT 2021]; root of context hierarchy
if Adding property source: file:/C:/Users/MY~1/AppData/Local/Temp/config-repo-3468960334054136571/appSettings.yml
file is added then we got our configuration values but sometime steeltoe configserver does not add it first time, even not in 2nd or 3rd time
Describe the bug
steeltoe configserver not sending values on first attempt
Steps to reproduce
Steps to reproduce the behavior:
git
configserver\src\main\resources\application.yml
mvnw spring-boot:run
on cmdconfigserver\src\main\resources\application.yml
Expected behavior
steeltoe configserver should get the configuration values from azure repo on first attempt as well
Environment (please complete the following information, if applicable):
.AddConfigServer()
in CreateWebHostBuilder() in Program.csScreenshots
Additional context or links
Using Azure Repos for Azure Spring Cloud Configuration
Spring Cloud
The text was updated successfully, but these errors were encountered: