Per risolvere i problemi relativi a MART in Apigee hybrid, esamina i file di log. I log MART vengono scritti su stdout/stderr e possono essere visualizzati utilizzando il comando kubectllogs.
Sulla macchina di amministrazione Kubernetes, esegui il seguente comando:
kubectl logs pod_name -n namespace
Per maggiori dettagli, consulta anche Registrazione.
Codici di errore di MART
Nei log di MART possono verificarsi i seguenti codici di errore:
Errore
Descrizione
ROUTING_SERVICE_NOT_ENABLED
routing.RoutingServiceNotEnabled
Si verifica quando routing.service.enable è impostato su false
in questo file nel pod MART:
/opt/apigee/edge-hybrid-mart-server/conf/routing-service.properties
HYBRID_MART_SERVER_ENDPOINT_NOT_FOUND
routing.HybridMARTServerEndpointNotFound
Si verifica quando l'organizzazione non ha un valore per la proprietà org:
features.mart.server.endpoint
HYBRID_AUTHN_AUTHZ_TOKEN_ERROR
routing.HybridAuthNAuthZTokenError
Si verifica quando il servizio AuthN-AuthZ restituisce un codice di risposta diverso da 200 o un token non valido
MART_ENDPOINT_REQUIRED
organizations.MartEndpointRequired
Si verifica quando la proprietà org features.mart.server.endpoint ha un valore nullo o vuoto.
HTTPS_MART_ENDPOINT_REQUIRED
organizations.HttpsMartEndpointRequired
Si verifica quando la proprietà org
features.mart.server.endpoint ha un valore che inizia con
"http://" quando mart.routing.https.validation.enable è impostato su true in questo file nel pod MART:
/opt/apigee/edge-hybrid-mart-server/conf/routing-service.properties
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-03-10 UTC."],[[["MART logs in Apigee hybrid are written to stdout/stderr and can be viewed using the `kubectl logs` command on the Kubernetes administration machine."],["The `ROUTING_SERVICE_NOT_ENABLED` error occurs when `routing.service.enable` is set to false in the `routing-service.properties` file within the MART pod."],["The `HYBRID_MART_SERVER_ENDPOINT_NOT_FOUND` error indicates that an organization is missing a value for the `features.mart.server.endpoint` property."],["The error `MART_ENDPOINT_REQUIRED` occurs when `features.mart.server.endpoint` is null or empty."],["The `HTTPS_MART_ENDPOINT_REQUIRED` error appears when the org property `features.mart.server.endpoint` begins with \"http://\" and `mart.routing.https.validation.enable` is true in the MART pod's configuration."]]],[]]