배포 오류

Apigee Edge 문서입니다.
Go to the Apigee X 문서로 이동합니다.
info

API 프록시를 배포하는 중에 발생하는 오류를 배포 오류 라고 합니다. API 프록시 배포 는 Edge 서버 간 네트워크 연결 문제, Cassandra 데이터 저장소 문제, ZooKeeper 예외, API 프록시 번들 오류 등 다양한 이유로 실패할 수 있습니다.

플레이북

이 섹션에서는 배포 오류를 해결하고 해결하기 위해 수행할 수 있는 몇 가지 구체적인 절차에 관한 정보와 안내를 제공합니다.

오류 메시지 플레이북
Error: Call timed out; either server is down or server is not reachable 제한 시간 오류
Unexpected error Error while fetching children for path 경로의 하위 요소 가져오기 오류
Error while accessing datastore;Please retry later 데이터 저장소 액세스 오류
Configuration failed, associated contexts = [] 구성 실패
Unexpected error occurred while processing the updates,associated contexts = [] 업데이트 처리 오류

진단 정보

배포 오류에 관해 Apigee Edge 지원팀의 지원이 필요한 경우 다음 진단 정보를 수집하여 지원 케이스에 공유하세요.

진단 정보 이 정보는 어디에서 수집할 수 있나요? 이 정보는 어떻게 수집하나요?
Deployments API 출력 관리 서버
curl -s 0:8080/v1/organizations/ORGNAME/environments/ENVNAME/apis/APINAME/deployments > /tmp/ms_deployments_output_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).json
관리 서버 로그 관리 서버
tar cvzf /tmp/ms_systemlogs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/edge-management-server/logs/system*
tar cvzf /tmp/ms_transactionlogs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/edge-management-server/logs/transactions*

다음 명령어를 사용하여 관리 서버의 모든 데이터를 번들링합니다.

tar -cvzf /tmp/ms_data_CASE#_$(hostname).tar.gz* /tmp/ms_*
분류 트리 출력 메시지 프로세서
curl -s 0:8082/v1/classification/tree > /tmp/rmp_classification_tree_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).json
메시지 프로세서 로그 메시지 프로세서
tar cvzf /tmp/rmp_systemlogs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/edge-message-processor/logs/system*
tar cvzf /tmp/rmp_transactionlogs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/edge-message-processor/logs/transactions*
tar cvzf /tmp/rmp_system_monitor_config_mp_logs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/edge-message-processor/edge-message-processor* /opt/apigee/var/log/edge-message-processor/config* /opt/apigee/var/log/edge-message-processor/system-monitor*
Cassandra와의 연결 메시지 프로세서
telnet CASSANDRA_IP 9042 | tee /tmp/rmp_cassandra_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt
telnet CASSANDRA_IP 9160 | tee /tmp/rmp_cassandra_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt

telnet이 없는 경우 다음과 같이 netcat 명령어를 사용할 수 있습니다.

nc -vz CASSANDRA_IP 9042 | tee /tmp/rmp_cassandra_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt
nc -vz CASSANDRA_IP 9160 | tee /tmp/rmp_cassandra_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt
ZooKeeper와의 연결 메시지 프로세서
telnet ZOOKEEPER_IP 2181 | tee /tmp/rmp_zookeeeper_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt

telnet이 없는 경우 다음과 같이 netcat 명령어를 사용할 수 있습니다.

nc -vz ZOOKEEPER_IP 2181 | tee /tmp/rmp_zookeeper_NODE#_connectivity_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).txt
의 각 ZooKeeper 노드에 대해 위 단계를 반복해야 합니다.
모든 진단 데이터 압축 메시지 프로세서
tar -cvzf /tmp/rmp_data_CASE#_$(hostname).tar.gz* /tmp/rmp_*
Cassandra 로그 Cassandra
tar cvzf /tmp/cassandra_logs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/apigee-cassandra/system* /opt/apigee/var/log/apigee-cassandra/config*
tail -2000 /opt/apigee/var/log/apigee-cassandra/apigee-cassandra.log > /tmp/cassandra_apigee-cassandra_log_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).log
ZooKeeper 로그 및 연결된 파일 ZooKeeper
tar cvzf /tmp/zookeeper_logs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/apigee-zookeeper/*.log /opt/apigee/apigee-zookeeper/conf/zoo.cfg /opt/apigee/data/apigee-zookeeper/data/myid