

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 문제 해결
<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`가 정상 상태인지 확인하세요.