question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config server requires restart for new remote repos

See original GitHub issue

I am using Brixton.M2 and I noticed some behavior that was unexpected to me.

I started my config server, it was serving requests fine. Then I pushed a new branch to my git repo that the config server is using. I tried retrieving a plain text file (using the ResourceController’s endpoint) with the new branch as the label. The config server cannot find the label and returns an error to that effect. I thought this was strange. I sent a POST request to the config server’s /refresh endpoint thinking this might cause it to pull from the remote. However, it continues to not be able to find the new label until I restart the config server.

It would be nice if a full server restart were not required to serve newly pushed branches.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dsyercommented, Jun 27, 2017

This works for me now in 1.4.0 snapshots. I assume it was fixed as a side effect (maybe with #439).

0reactions
ryanjbaxtercommented, Nov 14, 2016

@haripriya-apptium please dont randomly comment on issues. Please open a new issue if you are having an issue, and provide as much information as possible so we can evaluate what might be wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2. Spring Cloud Config Server
By default, the server clones remote repositories when configuration is first ... forever or till the next server restart (which creates new local...
Read more >
How to prevent Spring Config to reset my local git repository to ...
I have configured Spring Config microservice local profile to get the config from my local git, (file:) and not to be HTTP git...
Read more >
Spring Cloud Config Server — Programmer Gate - DZone
Refresh the configuration dynamically without the need to restart each service after a configuration change.
Read more >
SPRING CLOUD CONFIG SERVER. PROBLEM | by Smriti mool
If we change the properties we need to restart the application to use the updated configuration properties. Also, in the context of large...
Read more >
Quick Intro to Spring Cloud Configuration - Baeldung
To complete our server, we have to initialize a Git repository under the configured url, create some new properties files, and populate them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found