티스토리 뷰

Springboot에서 Redis 연동을 하려는데 아래와 같은 오류가 발생을 하였다. 

2021-04-16 12:12:11.439 ERROR 26480 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost/<unresolved>:6379] with root cause

io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
	at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:137) ~[lettuce-core-6.0.4.RELEASE.jar:6.0.4.RELEASE]
	at io.lettuce.core.internal.ExceptionFactory.createExecutionException(ExceptionFactory.java:110) ~[lettuce-core-6.0.4.RELEASE.jar:6.0.4.RELEASE]
	at io.lettuce.core.protocol.AsyncCommand.completeResult(AsyncCommand.java:120) ~[lettuce-core-6.0.4.RELEASE.jar:6.0.4.RELEASE]

Unable to connect to localhost/<unresolved>:6379] with root cause

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.

 

이런 내용들의 오류이다. 

만약 내가 Redis를 순수 Cache 용도로만 사용을 하기를 원한다면 RDB를 끄거나 다음과 같은 명령어를 통해 해결이 가능하다. 

127.0.0.1:6379> config set stop-writes-on-bgsave-error no

끝!

댓글
최근에 올라온 글
최근에 달린 댓글
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31