inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

AWS 배포 완벽가이드 (feat. Lightsail, Docker, ECS)

redis Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) 에러

해결된 질문

797

huk

작성한 질문수 9

0

안녕하세요

redis-serve 실행까지는 잘되는데

vsCode 에서 yarn test 만 하면 꼭 아래와 같은 에러가 발생합니다.

기본포트로 할때는 되다가

6380 포트로 바꾼이후로 잘안되고 redis 에서도

바뀐포트로 연결하고 비밀번호까지 쳤는데 아래와 같은 에러가 발생합니다.

그리고 제소스가 에러가 나서

제공해주신

express 소스를 압축을 풀어도 같은 에러가 발생을 합니다.

혹시몰라 build 파일을 삭제하고 재빌드후 다시 켜도 아래와 같은 에러가 나는데

혹시 이유를 알 수 있을까요?

 

 

● POST /messages › responds with a success message

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)

at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)

at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)

● GET /messages › responds with all messages

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)

at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)

at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)

● Test suite failed to run

thrown: "Exceeded timeout of 5000 ms for a hook.

Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

18 | });

19 |

> 20 | afterAll(async () => {

| ^

21 | await client.flushDb();

22 | await client.quit();

23 | });

at Object.<anonymous> (app/index.test.ts:20:1)

Test Suites: 1 failed, 1 total

FAIL app/index.test.ts (101.064 s)

● POST /messages › responds with a success message

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)

at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)

at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)

● GET /messages › responds with all messages

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

FAIL app/index.test.ts (100.278 s)

● POST /messages › responds with a success message

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)

at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)

at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)

● GET /messages › responds with all messages

Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])

at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)

at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)

at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)

● Test suite failed to run

thrown: "Exceeded timeout of 100000 ms for a hook.

Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

18 | });

19 |

> 20 | afterAll(async () => {

| ^

21 | await client.flushDb();

22 | await client.quit();

23 | }, 100000);

at Object.<anonymous> (app/index.test.ts:20:1)

aws docker ci/cd aws-ecs

답변 1

0

김시훈 (도도소프트)

음 오류 메시지를 봤을 때 인증 쪽의 문제로 보입니다. 그러면 소스코드를 제가 제공한걸로 해도 문제가 발생하게 되죠. 레디스 서버를 구동하실 때 강의에서와 동일하게 설정했는지 그리고 소스코드에서 사용하는 환경변수는 올바르게 설정되었는지 확인 해주세요!

1

huk

아..넵 답변 감사드립니다.

강의와 똑같이 다시 보고 했는데 redis 서버도 잘구동되는데 계속 에러가 나네요 ㅎㅎ...

test 와 dev 실행만 에러가 나도

그나마 start 가 되어서

aws ubuntu 에서는 잘 적용되니깐 그나마 다행입니다.

 

다시한번 강의돌려보며 따라해보겠습니다.

답변감사드립니다!!

0

김시훈 (도도소프트)

혹시 이 문제는 해결 하셨을까요?

0

huk

하하..아직 해결은 못했지만 그냥 넘어갔습니다..ㅎㅎ

이후 aws lightsail 도 잘 세팅되길래 ㅎㅎ

39강 배포용 workflow 만들기에서 main 브랜치에 merge 가 자꾸 실패합니다.

0

43

1

도메인 생성이 너무 오래 걸려요

0

44

2

loadbalancer로 vm 연결할때 궁금한 점

0

37

1

typescript 개발 환경 세팅해주기(nodemon) 질문

0

45

1

lightsail 가상서버에서 sudo npm start를 실행했을때 오류 질문드립니다.

0

62

1

ec2로 배포

0

57

1

올려주신 자료 다운로드 후 npm run test 오류

0

77

1

강의 학습시 애플리케이션 질문

0

63

1

네임스페이스

0

120

1

springboot

0

117

2

영상 중복

0

139

1

강의 영상 시청문의

1

168

1

WSL에 설치한 Redis에 연결이 안 됩니다.

0

325

1

실습시 비용 관련 질문드립니다.

0

394

2

secret manager 질문있습니다.

0

123

1

자동 유효성 검사 실패

0

155

1

ECS 클러스터에서 레디스와 express 연결할 때 질문이 있습니다!

0

393

2

프론트 백엔드간의 http 요청을 주고 받으려면

0

337

1

aws ecs + fargate 환경에서 aws elasticache 연동 이슈

1

519

1

docker volume

0

214

1

[AWS 배포 완벽가이드] artillery 버전

1

286

1

deploy.yml github action 성공 , 하지만 AWS

0

403

2

ECS ALB설정을 위한 vpc 설정

0

431

2

도커는 OS를 공유하지 않나요?

0

457

1