Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.RuntimeException: Can't start redis server. Check logs for details

Tags:

windows

redis

I am using Redis server of Windows version 3.2.x (MSOpenTech Redis 3.2 Release Notes). I am developing Spring Boot + Spring Data Redis example and I am continuously getting the below error.

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)
    at com.example.test.config.EmbeddedRedisServer.before(EmbeddedRedisServer.java:38)
    at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)

In this case I always need to restart my machine. Is there any solution? I don't have admin rights on my machine, so machine reboot is the only option.

like image 613
PAA Avatar asked Nov 13 '18 18:11

PAA


Video Answer


2 Answers

Stop any Redis services operating currently outside the IDE or change the embedded Redis port to a different port

like image 135
Sameera Manorathna Avatar answered Oct 13 '22 10:10

Sameera Manorathna


For me change of port didn't work out. so I opened task manager and then under details tab killed redis-server-0.7.2.exe process and it worked.

like image 23
spidy Avatar answered Oct 13 '22 11:10

spidy