Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, mostramos como resolver problemas com origens
ao configurá-las para funcionar com o Media CDN.
Resolver problemas de conectividade de origem
Se você estiver recebendo erros HTTP 50x, como HTTP 502 (tempo limite do gateway) ou HTTP
500 (erro interno do servidor), considere o seguinte:
Teste se o nome de host de origem pode ser resolvido com o DNS público
do Google e se os endereços IP resolvidos correspondem
às expectativas. Se você tiver mudado seus registros DNS recentemente, os resolvedores ainda
poderão ter o endereço antigo nos caches.
Se a origem somente for compatível com HTTP/1.1 e não com HTTP/2,
configure o campo protocol na origem para usar HTTP ou HTTPS
em vez de HTTP2. A CDN de mídia não retorna a conexões HTTP/1.1,
a menos que especificado.
Verifique se a origem tem um certificado SSL (TLS) válido (públicamente confiável) e não expirado.
Os trailers HTTP/2 não são compatíveis, e as solicitações para um servidor de origem
não incluem o cabeçalho de solicitação "TE". Os trailers incluídos em uma
resposta não são armazenados em cache nem retornados ao cliente.
Solução de problemas de failover de origem
Se uma origem de failover não estiver funcionando como esperado, considere o seguinte:
Verifique se a substituição de cabeçalho de host adequada está configurada na
origem de failover.
Verifique se a origem principal está configurada com maxAttemptsTimeout, maxAttempts e timeouts suficientes para acomodar redirecionamentos e failovers de origem. Os redirecionamentos de origem são contabilizados como tentativas de conexão
separadas em relação à configuração maxAttempts.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-27 UTC."],[],[],null,["# Troubleshoot origins\n\nThis page shows you how to resolve issues with [origins](/media-cdn/docs/origins)\nwhen you configure them to work with Media CDN.\n\nTroubleshoot origin connectivity\n--------------------------------\n\nIf you are receiving HTTP 50x errors, such as HTTP 502 (Gateway Timeout) or HTTP\n500 (Internal Server Error), consider the following:\n\n- Test that the origin hostname can be resolved with [Google Public\n DNS](http://dns.google.com/), and that the resolved IP addresses matches\n expectations. If you recently changed your DNS records, resolvers might\n still have the old address in their caches.\n\n- If your origin *only* supports HTTP/1.1 and does not support HTTP/2,\n configure the `protocol` field on the origin to use `HTTP` or `HTTPS`\n instead of `HTTP2`. Media CDN does not fall back to HTTP/1.1\n connections unless specified.\n\n- Check that [request logs in Cloud Logging](/media-cdn/docs/logging)\n contain the correct origin IP address.\n\n- Check that origin has a valid (publicly trusted) and unexpired SSL (TLS)\n certificate.\n\n- HTTP/2 Trailers are not supported, and requests to an origin\n server don't include the \"TE\" request header. Trailers included in a\n response are not cached or returned to the client.\n\nTroubleshooting origin failover\n-------------------------------\n\nIf an origin failover isn't behaving as expected, consider the following:\n\n- Ensure that the appropriate host header rewrite is configured on your\n failover origin.\n\n- Ensure that your primary origin is configured with sufficient\n `maxAttemptsTimeout`, `maxAttempts`, and `timeouts` to accommodate origin\n redirects and failovers. Origin redirects count as separate connection\n attempts against the `maxAttempts` setting.\n\nWhat's next\n-----------\n\n- Read about [origin connectivity and shielding](/media-cdn/docs/origins)"]]