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

Address already in use #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StephanPraetsch
Copy link

Hi there,

if you started and not stopped a test then the embedded redis is still running. During start of your next test the test fails with the only message

java.lang.RuntimeException: Can't start redis server. Check logs for details.
	at redis.embedded.AbstractRedisInstance.awaitRedisServerReady(AbstractRedisInstance.java:61)
	at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:39)
	at redis.embedded.RedisServer.start(RedisServer.java:9)
[...]

I don't know if and where the logs are. I only see one binary

> l /tmp/1546964996223-0/ 
total 4180
drwxrwxr-x  2 stephan stephan    4096 Jan  8 17:29 .
drwxrwxrwt 32 root    root      32768 Jan  8 17:30 ..
-rwxrw-r--  1 stephan stephan 4236300 Jan  8 17:29 redis-server-2.8.19

I added printing the complete input. That would have helped me by printing

[5017] 08 Jan 18:13:47.548 # Creating Server TCP listening socket *:6379: bind: Address already in use

Though it's not like my other logs

18:13:47 INFO  org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners ...

@diogosouza
Copy link

Is that still gonna be done?

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

Successfully merging this pull request may close these issues.

2 participants