

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# トラブルシューティング
<a name="troubleshooting-agent"></a>

## エージェントの起動の失敗
<a name="agent-fails-to-start"></a>

 AWS Ground Station エージェントは、いくつかの理由で起動に失敗することがありますが、最も一般的なシナリオは、エージェント設定ファイルの設定ミスである可能性があります。エージェントを起動すると (「[AWS Ground Station エージェント開始](managing-agent.md#gs-agent-start)」を参照)、次のようなステータスが表示される場合があります。

```
#agent is automatically retrying a restart
aws-groundstation-agent.service - aws-groundstation-agent
Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-03-10 01:48:14 UTC; 23s ago
Docs: https://aws.amazon.com/ground-station/
Process: 43038 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=101)
Main PID: 43038 (code=exited, status=101)

#agent has failed to start
aws-groundstation-agent.service - aws-groundstation-agent
Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2023-03-10 01:50:15 UTC; 13s ago
Docs: https://aws.amazon.com/ground-station/
Process: 43095 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=101)
Main PID: 43095 (code=exited, status=101)
```

### トラブルシューティング
<a name="agent-fails-to-start-ts"></a>

```
sudo journalctl -u aws-groundstation-agent | grep -i -B 3 -A 3 'Loading Config' | tail -6
```

これによる出力は、次のようになります。

```
launch-aws-gs-agent[43095]: Running with options Production(ProductionOptions { endpoint: None, region: None })
launch-aws-gs-agent[43095]: Loading Config
launch-aws-gs-agent[43095]: System has 96 logical cores
systemd[1]: aws-groundstation-agent.service: main process exited, code=exited, status=101/n/a
systemd[1]: Unit aws-groundstation-agent.service entered failed state.
```

 「Loading Config」の後にエージェントを起動できない場合、これは、エージェント設定に問題があることを示しています。エージェント設定を検証するには、「[エージェント設定ファイル](configuring-agent.md#agent-config-file)」を参照してください。

## AWS Ground Station エージェントログ
<a name="gs-agent-logs"></a>

 AWS Ground Station エージェントは、問い合わせの実行、エラー、ヘルスステータスに関する情報を、エージェントを実行しているインスタンスのログファイルに書き込みます。インスタンスに手動で接続することで、ログファイルを表示できます。

エージェントログは以下の場所で確認できます。

```
/var/log/aws/groundstation
```

## 利用可能な連絡先はありません
<a name="no-contacts-available"></a>

 コンタクトをスケジュールするには、正常な AWS Ground Station エージェントが必要です。get-dataflow-endpoint-group を介して AWS Ground Station API にクエリを実行して、 AWS Ground Station エージェントが起動し、正常であることを確認します。

```
aws groundstation get-dataflow-endpoint-group --dataflow-endpoint-group-id ${DATAFLOW-ENDPOINT-GROUP-ID} --region ${REGION}
```

`awsGroundStationAgentEndpoint` の `agentStatus` がアクティブで、`auditResults` が正常であることを検証します。