# よくある障害の直し方

> 導入と設定のエラー、Synchronizerに繋がらない障害、DevNetやMainNetの障害、よくある障害の決まった対応を、症状ごとに直す手順として、章の中の図解で追います。

- URL: https://cardene.dev/diagrams/canton-ops-troubleshooting
- 公開日: 2026-11-24
- 更新日: 2026-11-24
- トピック: Blockchain
- タグ: Canton
- 親の図解: [Canton Networkの全体像](https://cardene.dev/diagrams/canton-network.md): トランザクションの中身を関わるpartyにだけ見せるCanton Networkについて、部品ごとの役割と、1つのトランザクションが部品の間をどう流れるかを段ごとに追います。
- 子の図解: [導入と設定のエラーを直す](https://cardene.dev/diagrams/canton-install-config.md): validatorが起動しない時に、HOCONの書き間違い、環境変数と.envの食い違い、DockerとKubernetesの導入の失敗、SDKの版を、エラーの文から直します。
- 子の図解: [Synchronizerに繋がらない時に直す](https://cardene.dev/diagrams/canton-sync-connectivity.md): validatorがSequencerに繋がらない、または繋がりが切れる時に、接続先のURL、到達性、証明書、keep-aliveの順に何を確かめ、どう直すかを追います。
- 子の図解: [DevNetやMainNetの障害を直す](https://cardene.dev/diagrams/canton-live-network-issues.md): アプリがDevNet、TestNet、MainNetの稼働中のネットワークで動く時に、trafficが尽きた、packageの版がずれた、Spliceの版が合わない、PQSが止まった障害を追います。
- 子の図解: [よくある障害の決まった対応](https://cardene.dev/diagrams/canton-runbooks.md): validatorが止まった、trafficが尽きた、ディスクが満杯、更新が失敗した、2026年11月のLSUの後に止まった時の決まった対応を、runbookの5段で戻す手順として追います。

前の章「障害の調べ方」と「エラーの読み方と回復」では、障害の調べ方と、エラーの読み方を見ました。
この章では、症状ごとの直し方を追います。

まず、validatorが起動しない時に、設定のファイル、環境変数、DockerとKubernetesの導入、SDKの版のどこを疑い、どう直すかを見ます。

https://cardene.dev/diagrams/canton-install-config

次に、validatorがSequencerに繋がらない時に、接続先のURL、到達性、証明書の順に何を確かめるかを見ます。
繋がりが切れる時は、プロキシなどが通信に動きが無いとみなして既存の接続を切る場合に、keep-aliveの値を確かめます。
keep-aliveは、gRPCの接続が生きているかを、pingを送り合って確かめる仕組みです。

:::details gRPC
gRPCは、Googleが開発した、ネットワーク越しに別のプログラムの処理を呼び出すための通信の仕組みです。
:::

https://cardene.dev/diagrams/canton-sync-connectivity

さらに、アプリがDevNet、TestNet、MainNetで動く時に、trafficが尽きた、packageの版がずれた、Spliceの版が合わない、PQSが止まったという障害を、症状と直し方で見ます。
PQSは、Participant Query Storeの略で、台帳のデータをPostgreSQLに写して、バックエンドが標準のSQLでコントラクトの状態を問い合わせられるようにします。

:::details PostgreSQL
PostgreSQLは、オープンソースで開発されているリレーショナルデータベースです。
データをテーブルに分けて持ち、SQLで読み書きします。
:::

https://cardene.dev/diagrams/canton-live-network-issues

最後に、validatorが止まった、trafficが尽きた、ディスクが満杯、更新が失敗した時の、決まった対応を、runbookの5つの段で見ます。
runbookは、知られた種類の障害への、決まった対応です。

https://cardene.dev/diagrams/canton-runbooks

下の図は、この章の4つの頁が扱う物を、運用者からvalidatorとSequencerの順に置きます。
虫眼鏡の印が付いた部品を押すと、その部品の中へ入ります。
外側へ戻る時は、右上の「戻る」か、上に並んだ名前を押します。

箱の下に頁の題が出る部品は、その題を押すと頁を開きます。

```dragon
architecture 運用者からvalidatorとSequencerへ障害の直し方
group Top as よくある障害の直し方 [icon: net]
  box Op as 運用者 [note: 症状から原因を探して直す, color: blue, icon: user]
  box Val as validator [note: 起動しない時は設定と導入を直す, color: slate, icon: server, link: /diagrams/canton-install-config]
  box Seq as Sequencer [note: validatorが繋がる先, color: rose, icon: server, link: /diagrams/canton-sync-connectivity]
end
group OpIn as 運用者の中 [color: blue, icon: user]
  box Live as 稼働中のネットワークの障害を直す [note: trafficが尽きた、packageの版がずれた、Spliceの版が合わない、PQSが止まった障害を直す, icon: card, link: /diagrams/canton-live-network-issues]
  box Run as 決まった対応で戻す [note: validatorが止まった、trafficが尽きた、ディスクが満杯、更新が失敗した時に戻す, icon: card, link: /diagrams/canton-runbooks]
end

step 運用者からvalidatorとSequencerへ
  say 運用者は、症状から原因を探して直します。起動しないvalidatorは、設定と導入を直します。validatorは、Sequencerへ繋がります。
  Val -> Seq: 繋がる
  source CantonのConfiguration Problems [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/configuration-problems]
  source CantonのInstallation Issues [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/installation-issues]
  source CantonのCommon Error Codes [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/error-code-reference]
  source CantonのTroubleshooting Methodology [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/troubleshooting-methodology]
  source CantonのInstalling a Compatible Daml SDK [url: https://docs.canton.network/global-synchronizer/understand/installing-daml-sdk]
  source CantonのConnectivity Issues [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/connectivity-issues]
  source CantonのDiagnose Canton Nodes [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/diagnose-canton-nodes]
  source CantonのCommon Questions [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/common-questions]

step 運用者の中
  say 運用者は、稼働中のネットワークで起きる4つの障害を、症状と直し方で直します。validatorが止まった、trafficが尽きた、ディスクが満杯、更新が失敗した時は、決まった対応で戻します。
  source CantonのOperational Issues [url: https://docs.canton.network/appdev/troubleshooting-guide/operational-issues]
  source CantonのConfiguration Reference [url: https://docs.canton.network/global-synchronizer/reference/configuration-reference]
  source CantonのGET /v2/packages [url: https://docs.canton.network/reference/json-api-reference/get-v2packages]
  source CantonのPOST /v2/package-vetting/list [url: https://docs.canton.network/reference/json-api-reference/post-v2package-vettinglist]
  source CantonのRunbooks [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/runbooks]
  source CantonのPerformance Issues [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/performance-issues]
  source CantonのTransaction Failures [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures]
  source CantonのCommon Questions [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/common-questions]
  source CantonのTroubleshooting Methodology [url: https://docs.canton.network/global-synchronizer/troubleshooting-guide/troubleshooting-methodology]
```

一番外の階では、validatorがSequencerへ繋がります。
運用者は、起動しないvalidatorの設定と導入を直し、validatorの箱からは設定と導入の頁を、Sequencerの箱からは接続の直し方の頁を開いて追います。

運用者の中では、運用者が行う2つの作業を置きます。
稼働中のネットワークの障害は症状と直し方で直し、決まった対応は決まった手順で戻します。

## 出典

https://docs.canton.network/global-synchronizer/troubleshooting-guide/configuration-problems

https://docs.canton.network/global-synchronizer/troubleshooting-guide/installation-issues

https://docs.canton.network/global-synchronizer/troubleshooting-guide/error-code-reference

https://docs.canton.network/global-synchronizer/troubleshooting-guide/troubleshooting-methodology

https://docs.canton.network/global-synchronizer/understand/installing-daml-sdk

https://docs.canton.network/global-synchronizer/troubleshooting-guide/connectivity-issues

https://docs.canton.network/global-synchronizer/troubleshooting-guide/diagnose-canton-nodes

https://docs.canton.network/global-synchronizer/troubleshooting-guide/common-questions

https://docs.canton.network/appdev/troubleshooting-guide/operational-issues

https://docs.canton.network/global-synchronizer/troubleshooting-guide/runbooks

https://docs.canton.network/global-synchronizer/troubleshooting-guide/performance-issues

https://docs.canton.network/global-synchronizer/troubleshooting-guide/transaction-failures

https://docs.canton.network/global-synchronizer/reference/configuration-reference

https://docs.canton.network/reference/json-api-reference/get-v2packages

https://docs.canton.network/reference/json-api-reference/post-v2package-vettinglist
