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

アンテナが更新されない #12303

Closed
penginn-net opened this issue Nov 10, 2023 · 11 comments
Closed

アンテナが更新されない #12303

penginn-net opened this issue Nov 10, 2023 · 11 comments
Labels
⚠️bug? This might be a bug

Comments

@penginn-net
Copy link

penginn-net commented Nov 10, 2023

💡 Summary

作成したアンテナが新しい投稿を拾わなくなります。
同時期に作成した別のアンテナは更新されてます

同じ設定でアンテナを作成すると新しい方は更新されます。

設定
すべてのノート
返信含む
受信キーワードのみ指定
その他プション全部無効

🥰 Expected Behavior

アンテナが更新され続ける

🤬 Actual Behavior

アンテナの更新が止まる

📝 Steps to Reproduce

1.アンテナを作成する
2.いつの間にか更新されなくなる

💻 Frontend Environment

* Model and OS of the device(s):
* Browser:chrome
* Server URL:gc-key.xn--vusz0j.life / misskey.io
* Misskey:2023.11.0

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:
* Misskey:2023.11.0
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:
@penginn-net penginn-net added the ⚠️bug? This might be a bug label Nov 10, 2023
@penginn-net
Copy link
Author

他サーバも見たところ設定に関係なく、作成から2,3ヶ月経過すると更新されなくなるみたいです

@syuilo
Copy link
Member

syuilo commented Nov 17, 2023

自分は再現したことないわね

@samunohito
Copy link
Member

(ご参考までに)

一定期間更新がなかったアンテナは非アクティブ化されてノートが配信されなくなるような実装になっていました。
https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/queue/processors/CleanProcessorService.ts#L49-L55

配信先のアンテナを取得する箇所
https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/core/AntennaService.ts

実装を見る限り、以下の条件で再アクティブ化が出来るようです。

  1. アンテナのエンドポイントからノート一覧を取得しようとする(アンテナのタイムラインを表示してリロードなど)
    https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/antennas/notes.ts#L88-L91
  2. アンテナの設定を更新する
    https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/antennas/notes.ts#L88-L91

@samunohito
Copy link
Member

なので…アンテナのTLを表示したり、アンテナの設定から保存ボタンを押したら動き出したりしませんか??

@penginn-net
Copy link
Author

アンテナのTLは定期的に見てるんでけど変わらなかったです。
保存ボタンを押してからキーワードを含むノートをしても拾われなかったです。(新しい方には追加されました)

@penginn-net
Copy link
Author

penginn-net commented Nov 17, 2023

ioの方見に行ったら更新されてました(アンテナTLをすこし前に開きました)
自分のサーバだと変わらないですね...

@samunohito
Copy link
Member

		if (!this.antennasFetched) {
			this.antennas = await this.antennasRepository.findBy({
				isActive: true,
			});
			this.antennasFetched = true;
		}

antennasFetchedでAntennaServiceが初期化された直後の状態しか持たないようになってる…?
もしかしたらですが、再起動後に反映されるかもしれません…

@samunohito
Copy link
Member

@syuilo
https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/antennas/notes.ts#L88-L91
↑ここでisActiveがfalseからtrueに変わった時、アンテナ更新時と同じようにantennaUpdatedを配信したほうが良いように思えるのですが、どうでしょう

@syuilo
Copy link
Member

syuilo commented Nov 17, 2023

YOSASOU

@penginn-net
Copy link
Author

開きっぱなしのタブ全部閉じたりして今日見たら動き始めてました!。
ありがとうございます

@samunohito
Copy link
Member

(issueは閉じられましたが、antennaUpdatedの配信対応は必要だと思うので、後々対応します)

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

3 participants