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

カスタム絵文字を含むノートの配送ができない・リモートにカスタム絵文字でリアクションしても届かない #10603

Closed
nexryai opened this issue Apr 12, 2023 · 9 comments
Labels
⚠️bug? This might be a bug

Comments

@nexryai
Copy link
Contributor

nexryai commented Apr 12, 2023

💡 Summary

リモートにカスタム絵文字でリアクションしても届かない

🥰 Expected Behavior

リモートにカスタム絵文字でリアクションすると届く

🤬 Actual Behavior

ジョブキューには特にエラーは残っていません

カスタム絵文字

image
image

Unicode絵文字

Screenshot from 2023-04-12 21-02-45
image

📝 Steps to Reproduce

  1. リモートにカスタム絵文字でリアクション

📌 Environment

Misskey version: v13.11.2
Your OS: Rocky Linux
Your browser: Firefox

参考情報(?)

  • アップデート後しばらくは順調に動いていたのですが突然できなくなりました(設定も弄ってないので本当に突然)
  • Unicode絵文字でのリアクションやリアクション取り消し、カスタム絵文字を含まないリプライは正常に遅延なく行われます

試してだめだったこと

  • Misskey再起動
  • del example.com:singlecache:localEmojis
@nexryai nexryai added the ⚠️bug? This might be a bug label Apr 12, 2023
@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

これリプライにカスタム絵文字が入ってても同じ現象が発生することがあるみたいです。
image
image

@nexryai nexryai changed the title リモートにカスタム絵文字でリアクションしても届かない リモートにカスタム絵文字でリアクションしても届かないことがある Apr 12, 2023
@nexryai nexryai changed the title リモートにカスタム絵文字でリアクションしても届かないことがある リモートにカスタム絵文字でリアクションしても届かない Apr 12, 2023
@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

RedisをFLUSHALLで爆破したら治りました 即再発

@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

これカスタム絵文字を含むノートの配送自体が死んだっぽいです

@nexryai nexryai changed the title リモートにカスタム絵文字でリアクションしても届かない カスタム絵文字を含むノートの配送ができない・リモートにカスタム絵文字でリアクションしても届かない Apr 12, 2023
@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

journaldにemoji.updatedAt.toISOString is not a functionというログが残ってました(配送できないのと関係あるんでしょうか?)
image

@okayurisotto
Copy link
Contributor

このIssueはこのコミット(とそれに関連したいくつかのコミット)により解決しているかもしれません。
d06d1e8

journaldに残されたログの内容は、配送を担うActivityPubの処理が行われるApRendererServiceにおいて、Date型ではないRedisから得たデータにDate型専用のtoISOString()を呼び出していることによってTypeErrorが発生したことを示しています。

配送を担う処理をする場所で起きたエラーですので、このエラーとこのIssueは関連があると思われます。

上記PRではRedisからのデータ取り出し時にあらかじめDate型へ変換しておく処理がされています。そのため、このエラーは上記PRが適用されたバージョンであれば起きないものと思われます。

そもそもの上記PRがどういった経緯で作成され、上記PRで修正された「カスタム絵文字でリアクションできないことがある問題」がこのIssueの内容を含んでいるかについては情報を追えていないのでわかりませんが、少なくともjournaldに残されたログの件については解決済みだと思われます。

@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

ご丁寧にありがとうございます!!!
該当コミットを適用してみたところ、無事に動作しました。本当にありがとうございます🙏
この不具合の影響範囲はリアクションできないどころかカスタム絵文字が絡む連合関係の処理がほとんど全滅してたので早急にアップデートで出すべきだと考えます。

@nexryai nexryai closed this as completed Apr 12, 2023
@nexryai
Copy link
Contributor Author

nexryai commented Apr 12, 2023

これカスタム絵文字が本文になくてもリアクションに入ってるノートも配送されてない可能性(13.11.2のioで観測した)

@tamaina
Copy link
Contributor

tamaina commented Apr 13, 2023

#10502 と同じだと思う

@remador
Copy link

remador commented Apr 13, 2023

Estou fazendo uma ocorrência policial.
Muito obrigado!
@remador

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

4 participants