谷歌奇怪的问题

谷歌奇怪的问题

在过去 8 个月运行的服务器中我们一直在访问以下 URL:https://dl.google.com/dl/cloudsdk/release/components-2.json通过curl。几天前它突然停止工作,并说

  1. 这是个错误。这就是我们所知道的一切。

在此处输入图片描述

但最奇怪的是,这种情况只发生在这台机器上。所有其他机器都可以毫无问题地访问它。这台有问题的机器可以访问所有其他互联网网站,包括 google、gmail 等。

所有机器都运行CentOS 6.4。


这是获取 json 文件时的两个 curl 输出

这是发生故障的机器:

# curl -v https://dl.google.com/dl/cloudsdk/release/components-2.json
* About to connect() to dl.google.com port 443 (#0)
*   Trying 4.59.40.88... connected
* Connected to dl.google.com (4.59.40.88) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_RC4_128_SHA
* Server certificate:
*   subject: CN=*.google.com,O=Google Inc,L=Mountain View,ST=California,C=US
*   start date: Mar 25 14:48:48 2015 GMT
*   expire date: Jun 23 00:00:00 2015 GMT
*   common name: *.google.com
*   issuer: CN=Google Internet Authority G2,O=Google Inc,C=US
> GET /dl/cloudsdk/release/components-2.json HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: dl.google.com
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Content-Length: 1364
< Content-Type: text/html; charset=utf-8
< Server: downloads
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
< Date: Wed, 15 Apr 2015 09:32:31 GMT

这是成功的机器:

# curl -v https://dl.google.com/dl/cloudsdk/release/components-2.json
* About to connect() to dl.google.com port 443 (#0)
*   Trying 74.125.141.136... connected
* Connected to dl.google.com (74.125.141.136) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_SHA
* Server certificate:
*   subject: CN=*.google.com,O=Google Inc,L=Mountain View,ST=California,C=US
*   start date: Mar 25 15:57:18 2015 GMT
*   expire date: Jun 23 00:00:00 2015 GMT
*   common name: *.google.com
*   issuer: CN=Google Internet Authority G2,O=Google Inc,C=US
> GET /dl/cloudsdk/release/components-2.json HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.6.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: dl.google.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Content-Length: 48061
< Content-Type: application/json
< Etag: "526ef"
< Expires: Thu, 16 Apr 2015 02:32:38 PDT
< Last-Modified: Thu, 09 Apr 2015 16:52:00 GMT
< Server: downloads
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
< Date: Wed, 15 Apr 2015 09:32:38 GMT
< Alternate-Protocol: 443:quic,p=0.5

答案1

当我们将公共 IP 从其他 IP 块中更改后,问题得到了解决。看来 Google 不再喜欢这个 IP 了。

相关内容