Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No URLs will be polled as dynamic configuration sources. #275

Closed
michaelwittig opened this issue Jun 17, 2014 · 13 comments
Closed

No URLs will be polled as dynamic configuration sources. #275

michaelwittig opened this issue Jun 17, 2014 · 13 comments

Comments

@michaelwittig
Copy link

hi,

I am using :

<dependency>
    <groupId>com.netflix.hystrix</groupId>
    <artifactId>hystrix-core</artifactId>
    <version>1.3.16</version>
</dependency>

From time to time I see the following log message:

WARN No URLs will be polled as dynamic configuration sources. ("com.netflix.config.sources.URLConfigurationSource)

URLConfigurationSource is located in archaius-core which is a dependency of hystrix-core.

Any ideas why hystrix wants to use a URLConfigurationSource ?

@vixns
Copy link

vixns commented Sep 4, 2014

Hi,
Create a config.properties file in your classpath, it prevents this warning.

@Caratacus
Copy link

I also encountered this problem, why create a config.properties, do not want to create config.properties do not want to see this warning, because useless

@asarkar
Copy link

asarkar commented Jul 27, 2017

If Hystrix works without config.properties, it's merely an info. Why'd the user create a useless file to suppress this warning?

@erikw
Copy link

erikw commented Jan 5, 2018

@benjchristensen I suggest re-opening this issue, as it's still an issue.

@LuboVarga
Copy link
Contributor

LuboVarga commented Feb 2, 2018

Imho to fix this issue (simple lumber way), just removal of one line is needed: URLConfigurationSource.java#L126

Information will not be lost, as next line will print similar info.

Proper fix probably should be done in archaius in DynamicPropertyFactory class. It should not use some URLConfigurationSource if not requested. According to nice documentation it will automatically try to get config from url saved in system property URLConfigurationSource.CONFIG_URL = "archaius.configurationSource.additionalUrls". What about to check, if given property is set and use URLConfigurationSource only when it has some value?

PS: setting DISABLE_DEFAULT_CONFIG = "archaius.dynamicProperty.disableDefaultConfig" system property to true, will get rid of trying doing things which you do not use. Thus get rid of given warning and info message.

@kindaries
Copy link

为什么非要创建一个没有用的文件呢,就没有别的方法吗?

@slindenberg
Copy link

Another approach for your Spring Boot properties file: logging.level.com.netflix.config.sources.URLConfigurationSource=ERROR

@alexwakeman
Copy link

Had to delete application and git clone + fresh install... tried all the suggestions here

@jack80342
Copy link

@benjchristensen I suggest re-opening this issue, as it's still an issue.

@ewirch
Copy link

ewirch commented Nov 13, 2019

We use Zuul, which requires Hystrix. System is working as expected without the need of any additional configuration. So this warning is misleading. Nothing is wrong with configuration.

Get rid of the warning please. Reduce log level or delete it completely.

@msb1
Copy link

msb1 commented Mar 2, 2020

Had similar problem. WARN -- No URLs will be polled as dynamic configuration sources.

Next line is INFO - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

Just added a blank config.properties file to the classpath (in the resources folder) and warning is gone.

Can also define system property: https://github.com/Netflix/archaius/wiki/Getting-Started and https://www.baeldung.com/netflix-archaius-spring-cloud-integration

@mbogner
Copy link

mbogner commented Dec 26, 2020

the warning is still in place. to silence it adding an empty config.properties still helps. so i would guess it will stay in because after 6 years i don't think a fix will happen.

@NirdeshMohan
Copy link

Add Spring web starter then you will be good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests