relay fails to register with web - web resets the connection

オープン
#4,103 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, docker-compose

調査の方向性

install.sh と docker compose up -d で再現し、その後 /api/0/relays/register/response/ 周辺の relay ログを調べる。接続リセットを relay issue 1096 と比較し、web コンテナがリクエストを受信しているか確認する。relay の登録が成功し、Sentry が受信したレポートを処理できれば完了とする。

索引モデルが issue の本文から書いたものです。

説明

Category: Docs
Self-Hosted Version

25.10.0

CPU Architecture

x86_64

Docker Version

29.1.3

Docker Compose Version

5.0.0

Machine Specification
  • My system meets the minimum system requirements of Sentry
Installation Type

Was fresh install some time ago (23.something?), then upgraded to 25.10

Steps to Reproduce
  1. Run ./install.sh
  2. Run docker compose up -d
  3. Run docker compose logs -n 100 -f relay
Expected Result

Sentry to be up and running, processing incoming reports.

Actual Result

Sentry starts and the Web UI is fully usable.

relay repeatedly fails to register with the error

relay-1  | 2025-12-15T19:51:26.067553Z ERROR relay_server::services::upstream: authentication encountered error error=could not send request to upstream error.sources=[error sending request for url (http://web:9000/api/0/relays/register/response/), client error (SendRequest), connection closed before message completed] tags.attempts=20

This looks exactly like https://github.com/getsentry/relay/issues/1096

While I don't want to upload the pcap I took in case it contains secrets, the web node resets the connection to relay 3ms after it sends the register/response HTTP call as seen in the below screenshot of the pcap:

Screenshot of Pcap

It seems this isn't completely uncommon by the issue raised on Relay several years ago that was never fixed.

The HTTP call to /api/0/relays/register/response/ is never logged by the web container at all.

Event ID

No response

主要言語
Shell
スター
9.7k
フォーク
2k
平均マージ
3日 2時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/self-hosted のほかの issue

getsentry/self-hosted の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。