db/redis

[redis] MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk

겸쨔 2024. 12. 3. 15:26
반응형

안녕하세요.

개발 서버 로그인이 안 돼서 로그를 보니 아래 에러를 뱉고 있더라구요.

org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

 

찾아보니 디스크 용량 부족이라는 말이 있길래 봤는데

 

 

보이시나요 ..? 

저기가 꽉 차서 redis가 스냅샷을 디스크에 저장하려 할 때 에러를 뱉은거였어요.

그래서 저장하는 경로를 변경 해줬어요.

오늘 이 글에서는 redis write path 변경하는걸 기록 할게요.

 

아마 정상적으로? redis 설치 하셨으면 설정 파일이 아래 경로에 있을거에요.

vi /etc/redis/redis.conf

 

들어가서 내리다 보면 아래처럼 저런 경로가 있을텐데

 dir /var/{님들경로}

 

저 경로를 님들이 원하시는 경로로 변경하시면 돼요.

혹시 몰라서 redis 재시작하고 하니까 오류 안 나고 잘 되더라구요.

service redis restart

 

요즘 집에서 이론 공부랑 롤만 하다가 오랜만에 사이드 하려니까

리액트 다 까먹어가지고.. 다시 공부 제대로 하려고 해요.

님들도 화이팅 ~

반응형