Backend/Spring Boot

[Spring/Redis] lettuce-core ๋ฒ„์ „ ๋ฌธ์ œ - Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.

giraffe_ 2025. 9. 25. 23:00

โš ๏ธ ๋ฌธ์ œ ์ƒํ™ฉ


 Spring Boot์—์„œ Gradle์— ์žˆ๋Š” Dependency์˜ ๋ฒ„์ „์„ ์ •๋ฆฌํ•˜๋˜ ์ค‘์— Redis ์‚ฌ์šฉ์„ ์œ„ํ•œ Lettuce ์˜์กด์„ฑ์„ ์ˆ˜์ •ํ•˜๋˜ ์ค‘ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

 

 

๊ธฐ์กด์—๋Š” ์‚ฌ์šฉํ•˜๋Š” Lettuce ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ๋ฒ„์ „์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ช…์‹œ์ ์œผ๋กœ ์ ์–ด์คฌ์—ˆ๋‹ค.

implementation 'io.lettuce:lettuce-core:6.0.0.RELEASE'

 

 

ํ•˜์ง€๋งŒ ํ˜„์žฌ Spring Boot ๋ฒ„์ „์— ๋งž๊ฒŒ ์‚ฌ์šฉํ•˜๋„๋ก ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ๋ฒ„์ „์„ ๋•Œ๋„๋ก ์ˆ˜์ •ํ•ด์คฌ๋‹ค.

implementation 'io.lettuce:lettuce-core'

 

 

 

๋นŒ๋“œ๋Š” ์ œ๋Œ€๋กœ ๋˜์ง€๋งŒ ๋Ÿฐํƒ€์ž„ ์ค‘์— ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

 

 

 

 

 

โ—๏ธ์—๋Ÿฌ ๋ฉ”์‹œ์ง€


Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.

 

 

 

 

๐Ÿ’ป ๊ฐœ๋ฐœ ํ™˜๊ฒฝ


  • Framework : Spring Boot 3.4.1
  • Language : Java 21
  • DB : Redis ???

 

 

 

 

 

๐Ÿ”Ž ์›์ธ


 Spring Boot 3.4.1 ๋ฒ„์ „์˜ dependency ๋ฒ„์ „๋“ค์˜ ๋ชฉ๋ก์„ ๋ณด๋ฉด, lettuce-core `6.4.1.RELEASE` ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜์–ด์žˆ๋‹ค.

 

 

spring boot 3.4.1์˜ dependencies

 

 

letter-core๋ฅผ ์ฐพ์•˜๋‹ค

 

 

lettuce.version ํ™•์ธ

 

 

 

 

 ํ•˜์ง€๋งŒ, spring-boot ํ”„๋กœ์ ํŠธ ๊นƒํ—ˆ๋ธŒ์— ๊ฐ€๋ณด๋ฉด, lettuce-core `6.4.1.REALSE` ๋ฒ„์ „์—์„œ "NOAUTH Authentication required" ์—๋Ÿฌ๊ฐ€ ์žˆ๋‹ค๋Š” ์ด์Šˆ๊ฐ€ ๋ณด๊ณ  ๋˜์—ˆ๋‹ค.

 

https://github.com/redis/lettuce/issues/3104

 

"NOAUTH Authentication required" upgrading to Lettuce 6.4.1 · Issue #3104 · redis/lettuce

Bug Report Current Behavior A number of Spring Boot users upgrading to Spring Boot 3.4.x are reporting that the upgrade broke their redis-based app. They also reported that upgrading from Lettuce 6...

github.com

 

 

 

 

 

๐Ÿ’ก ํ•ด๊ฒฐ


 

 Spring Boot maintainer ์™ˆ, `6.4.0.RELEASE`๋กœ ๋‹ค์šด๊ทธ๋ž˜์ด๋“œ ํ•˜๊ฑฐ๋‚˜, `6.4.2.RELEASE`๋กœ ๊ณ ์น˜๋ผ๊ณ  ํ•œ๋‹ค.

 

 

 ์ฒจ์—” ์—๋Ÿฌ ๋ฉ”์‹œ์ง€ ๋ณต์‚ฌํ•ด์„œ ChatGPTํ•œํ…Œ ๋ฌผ์–ด๋ดค๋‹ค๊ฐ€, ๊ณ„์† config ๋‚ด Redis ์„ค์ •์„ ๋ฐ”๊พธ๋Š” ๋ฐฉ๋ฒ•๋งŒ ์•Œ๋ ค์คฌ๊ณ  ์ ์šฉํ–ˆ๋Š”๋ฐ๋„ ์•ˆ๋˜์—ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‹ค๊ฐ€ ๊นƒํ—ˆ๋ธŒ ์ด์Šˆ๋ฅผ ๋’ค์ง€๊ฒŒ ๋˜์—ˆ๋Š”๋ฐ, ์Šคํ”„๋ง ๊ณต์‹ ๊นƒํ—ˆ๋ธŒ ์ด์Šˆ๊ฐ€ ์ •ํ™•ํ–ˆ๋‹ค!

 

 

 

 

 

๐Ÿ“– ์ฐธ๊ณ 


https://github.com/redis/lettuce/issues/3104

 

"NOAUTH Authentication required" upgrading to Lettuce 6.4.1 · Issue #3104 · redis/lettuce

Bug Report Current Behavior A number of Spring Boot users upgrading to Spring Boot 3.4.x are reporting that the upgrade broke their redis-based app. They also reported that upgrading from Lettuce 6...

github.com