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

/bus/refresh causes instances registered in Eureka Server disappeared #692

Closed
yongyanli opened this issue May 9, 2017 · 11 comments
Closed

Comments

@yongyanli
Copy link

yongyanli commented May 9, 2017

Hi, everyone.
I deploy an Eureka Server, a Config Server and RabbitMQ Server on localhost.
The Config Server work on port 8888. It will register in Eureka Server, and will connect to Spring Cloud Bus.
Now I send a POST request to http://localhost:8888/bus/refresh.
Then refresh http://localhost:8761.
The table of "Instances currently registered with Eureka" display "No instances available".
That's why?
May somebody help me?
Thank you!
Attachments are java, yml and pom files with suffix modified.

EurekaServiceApplication.java.txt
EurekaService.yml.txt
pom.xml.EurekaService.txt
ConfigServiceApplication.java.txt
ConfigService.yml.txt
pom.xml.ConfigService.txt

@ryanjbaxter
Copy link
Contributor

Sounds similar to spring-cloud/spring-cloud-netflix#1857. Can you try Dalston.BUILD-SNAPSHOT to confirm?

@spencergibb
Copy link
Member

I concur

@yongyanli
Copy link
Author

Thank you! I will try Dalston.BUILD-SNAPSHOT!

@yongyanli
Copy link
Author

yongyanli commented May 10, 2017

I import the Dalston.BUILD-SNAPSHOT like this:

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-dependencies</artifactId>
			<version>Dalston.BUILD-SNAPSHOT</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>
	</dependencies>
</dependencyManagement>

<repositories>
	<repository>
		<id>spring-snapshots</id>
		<name>Spring Snapshots</name>
		<url>https://repo.spring.io/libs-snapshot-local</url>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
	<repository>
		<id>spring-milestones</id>
		<name>Spring Milestones</name>
		<url>https://repo.spring.io/libs-milestone-local</url>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
	<repository>
		<id>spring-releases</id>
		<name>Spring Releases</name>
		<url>https://repo.spring.io/release</url>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
</repositories>

But came out errors:
[ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.BUILD-SNAPSHOT in http://10.100.31.71:8080/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of mirror1 has elapsed or updates are forced @ line 46, column 16
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 28, column 15

Please tell me how to try Dalston.BUILD-SNAPSHOT, thanks!

@ryanjbaxter
Copy link
Contributor

You should just need this repository

<repository>
        <id>spring-snapshots</id>
        <name>Spring Snapshots</name>
        <url>https://repo.spring.io/libs-snapshot</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>

From the log it doesn't look like maven is looking in the right repo though Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.BUILD-SNAPSHOT in http://10.100.31.71:8080/nexus/content/groups/public/

@yongyanli
Copy link
Author

Hi, RyanjBaxter:
I follow your advice: just use the snapshot repository, but still has the same problem:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.BUILD-SNAPSHOT in http://10.100.31.71:8080/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of mirror1 has elapsed or updates are forced @ line 52, column 16
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 34, column 15

@ryanjbaxter
Copy link
Contributor

Like I said it looks like your app is not looking in the right repo, where is http://10.100.31.71:8080/nexus/content/groups/public/ configured in your maven environment? I think it is a problem with your local environment.

@ityouknow
Copy link

Thanks for all, Help me with this problem。I solved the problem with the latest Spring Cloud package

<dependency>  
           <groupId>org.springframework.cloud</groupId>
           <artifactId>spring-cloud-dependencies</artifactId>
           <version>Dalston.SR1</version>
           <type>pom</type>
           <scope>import</scope>
</dependency>

@iver3on
Copy link

iver3on commented Jan 10, 2018

well done.

@18949274029
Copy link

Thanks for all

@Lincle666
Copy link

me too

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

7 participants