misskey icon indicating copy to clipboard operation
misskey copied to clipboard

Redisが不意に死んだ場合の再接続を試みてほしい

Open fruitriin opened this issue 2 years ago • 1 comments

💡 Summary

Redisが死ぬと以下のエラーが出て、以降Driver not Connected となり続ける模様

Jun 29 15:25:24 gamelore misskey[1126929]: [ioredis] Unhandled error event: Error: read ECONNRESET
Jun 29 15:25:24 gamelore misskey[1126946]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126946]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126946]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126946]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126940]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126957]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126940]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126940]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126940]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126957]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126957]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:24 gamelore misskey[1126957]: [ioredis] Unhandled error event: Error: connect ECONNREFUSED ::1:6379
Jun 29 15:25:38 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in users/show: Connection terminated
Jun 29 15:25:38 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in notes/timeline: Connection terminated
Jun 29 15:25:38 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in get-online-users-count: Driver not Connected
Jun 29 15:25:38 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in get-online-users-count: Driver not Connected
Jun 29 15:25:39 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in notes/hybrid-timeline: Driver not Connected
Jun 29 15:25:39 gamelore misskey[1126929]: ERR  *        [api]        Internal error occurred in notes/hybrid-timeline: Driver not Connected

🥰 Expected Behavior

Unhandled になってるので Handleして適当にSleepして再接続を試みてほしい

🤬 Actual Behavior

インフラ的にRedisを再起動したとしても、エラーが継続している

📝 Steps to Reproduce

📌 Environment

💻 Frontend

  • Model and OS of the device(s):
  • Browser:
  • Server URL:
  • Misskey: 13.x.x

🛰 Backend (for server admin)

  • Installation Method or Hosting Service:
  • Misskey: 13.13.2
  • Node: 18.16.0
  • PostgreSQL: 15.x.x
  • Redis: 7.x.x
  • OS and Architecture:

fruitriin avatar Jun 29 '23 15:06 fruitriin

ref: https://github.com/redis/ioredis#auto-reconnect

u1-liquid avatar Jun 29 '23 19:06 u1-liquid