Google

Google奇怪的問題

  • April 17, 2015

在過去 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

當我們從不同的 IP 塊更改公共 IP 時,該問題已得到解決。看起來Google不再喜歡這個IP了。

引用自:https://serverfault.com/questions/682749