You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
토큰 생성 후 redis에 저장할 때 서버에서 장애 발생했다. 로그를 원인을 알아보니 다음과 같은 redis 에러 였다.
error) 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.
원인
rdb 스냅샷을 지정되게끔 해놓았지만, 리소스가 저장할 디스크 크기가 적당하지 않아 생긴 오류이며
Redis의 데이터 쓰기가 모두 불가능하게 되어 서버가 정상 작동 하지 않게 된 것이었다.
해결
다음과 같이 설정을 바꾸면 Redis의 기본설정시 "stop-writes-on-bgsave-error yes" 있으므로 RDB 저장 실패시 Redis의 데이터 쓰기가 불가능하게 되고 문제가 해결된다.
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
오류
토큰 생성 후 redis에 저장할 때 서버에서 장애 발생했다. 로그를 원인을 알아보니 다음과 같은 redis 에러 였다.
error) 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.
원인
rdb 스냅샷을 지정되게끔 해놓았지만, 리소스가 저장할 디스크 크기가 적당하지 않아 생긴 오류이며
Redis의 데이터 쓰기가 모두 불가능하게 되어 서버가 정상 작동 하지 않게 된 것이었다.
해결
다음과 같이 설정을 바꾸면 Redis의 기본설정시 "stop-writes-on-bgsave-error yes" 있으므로 RDB 저장 실패시 Redis의 데이터 쓰기가 불가능하게 되고 문제가 해결된다.
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
Beta Was this translation helpful? Give feedback.
All reactions