Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hotfix] could not connect redis exception #207

Merged
merged 1 commit into from
Sep 26, 2021
Merged

[hotfix] could not connect redis exception #207

merged 1 commit into from
Sep 26, 2021

Conversation

jyeonjyan
Copy link
Member

What's wrong?

회원가입 후 로그인 시도하는데 .. unable to connect redis exception 이 발생했습니다.

{
    "success": false,
    "code": -9999,
    "msg": "Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379"
}

How I Fixed it ?

이 방법을 사용하여 운영에서 정상적으로 작동하는지 실험해보려 합니다.

Before & After

Before

db:
    image: "redis"
    hostname: redis
    ports:
      - "6379:6379"

After

redis:
    image: redis:latest
    command: ["redis-server", "--bind", "redis", "--port", "6379"]

@jyeonjyan jyeonjyan added bug This doesn't work urgent This needs quick approval hotfix When I have to fix it urgently. labels Sep 26, 2021
@jyeonjyan jyeonjyan merged commit 679ad6a into master Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This doesn't work hotfix When I have to fix it urgently. urgent This needs quick approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant