Application: xxxxxx; version: 1
Host: appengine.google.com
Traceback (most recent call last):
File "/home/thinkpad/下载/GAppEngine/google_appengine/appcfg.py", line 125, in <module>
run_file(__file__, globals())
File "/home/thinkpad/下载/GAppEngine/google_appengine/appcfg.py", line 121, in run_file
execfile(script_path, globals_)
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 3999, in <module>
main(sys.argv)
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 3990, in main
result = AppCfgApp(argv).Run()
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 2521, in Run
self.action(self)
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 3756, in __call__
return method()
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 2975, in Update
self.UpdateVersion(rpcserver, self.basepath, appyaml)
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 2957, in UpdateVersion
updatecheck.CheckForUpdates()
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appcfg.py", line 592, in CheckForUpdates
runtime=self.config.runtime)
File "/home/thinkpad/下载/GAppEngine/google_appengine/google/appengine/tools/appengine_rpc.py", line 366, in Send
f = self.opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1209, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/home/thinkpad/下载/GAppEngine/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 354, in do_open
req)
File "/usr/lib/python2.7/urllib2.py", line 1168, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/home/thinkpad/下载/GAppEngine/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 170, in connect
'hostname mismatch')
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (hostname mismatch): {'notAfter': 'Sep 30 23:59:59 2013 GMT', 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'www.google.com'),))}
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
找到解决方法并上传成功了
出自:http://www.lugw.net/?p=49002
找到刚才的的报错文件google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py
把165~170行的这段验证代码删掉就行了
1: if self.cert_reqs &; ssl.CERT_REQUIRED:
2: cert = self.sock.getpeercert()
3: hostname = self.host.split(':', 0)[0]
4: if not self._validate_certificate_hostname(cert, hostname):
5: raise InvalidCertificateException(hostname, cert,
6: 'hostname mismatch')