google cloud platform - the exception:boto.https_connection.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate -
i use boto create bucket. there appears problem: dump information:
file "train.py", line 111, in <module> main() file "train.py", line 48, in main train(args) file "train.py", line 51, in train data_loader = textloader(args.data_dir, args.batch_size, args.seq_length) file "/users/sun/workspace/word-rnn-tensorflow/utils.py", line 32, in __init__ self.preprocess(input_file, vocab_file, tensor_file) file "/users/sun/workspace/word-rnn-tensorflow/utils.py", line 106, in preprocess uri.create_bucket(headers=header_values) file "/library/python/2.7/site-packages/boto/storage_uri.py", line 563, in create_bucket storage_class) file "/library/python/2.7/site-packages/boto/gs/connection.py", line 95, in create_bucket data=get_utf8_value(data)) file "/library/python/2.7/site-packages/boto/s3/connection.py", line 668, in make_request retry_handler=retry_handler file "/library/python/2.7/site-packages/boto/connection.py", line 1071, in make_request retry_handler=retry_handler) file "/library/python/2.7/site-packages/boto/connection.py", line 943, in _mexe request.body, request.headers) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/httplib.py", line 1053, in request self._send_request(method, url, body, headers) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request self.endheaders(body) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders self._send_output(message_body) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output self.send(msg) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/httplib.py", line 855, in send self.connect() file "/library/python/2.7/site-packages/boto/https_connection.py", line 138, in connect 'certificate' % hostname) boto.https_connection.invalidcertificateexception: host storage.googleapis.com returned invalid certificate (remote hostname "storage.googleapis.com" not match certificate): {'crldistributionpoints': (u'http://pki.google.com/giag2.crl',), 'subjectaltname': (('dns', '*.google.com'), ('dns', '*.android.com'), ('dns', '*.appengine.google.com'), ('dns', '*.cloud.google.com'), ('dns', '*.google-analytics.com'), ('dns', '*.google.ca'), ('dns', '*.google.cl'), ('dns', '*.google.co.in'), ('dns', '*.google.co.jp'), ('dns', '*.google.co.uk'), ('dns', '*.google.com.ar'), ('dns', '*.google.com.au'), ('dns', '*.google.com.br'), ('dns', '*.google.com.co'), ('dns', '*.google.com.mx'), ('dns', '*.google.com.tr'), ('dns', '*.google.com.vn'), ('dns', '*.google.de'), ('dns', '*.google.es'), ('dns', '*.google.fr'), ('dns', '*.google.hu'), ('dns', '*.google.it'), ('dns', '*.google.nl'), ('dns', '*.google.pl'), ('dns', '*.google.pt'), ('dns', '*.googleadapis.com'), ('dns', '*.googleapis.cn'), ('dns', '*.googlecommerce.com'), ('dns', '*.googlevideo.com'), ('dns', '*.gstatic.cn'), ('dns', '*.gstatic.com'), ('dns', '*.gvt1.com'), ('dns', '*.gvt2.com'), ('dns', '*.metric.gstatic.com'), ('dns', '*.urchin.com'), ('dns', '*.url.google.com'), ('dns', '*.youtube-nocookie.com'), ('dns', '*.youtube.com'), ('dns', '*.youtubeeducation.com'), ('dns', '*.ytimg.com'), ('dns', 'android.clients.google.com'), ('dns', 'android.com'), ('dns', 'developer.android.google.cn'), ('dns', 'g.co'), ('dns', 'goo.gl'), ('dns', 'google-analytics.com'), ('dns', 'google.com'), ('dns', 'googlecommerce.com'), ('dns', 'policy.mta-sts.google.com'), ('dns', 'urchin.com'), ('dns', 'www.goo.gl'), ('dns', 'youtu.be'), ('dns', 'youtube.com'), ('dns', 'youtubeeducation.com')), 'notbefore': u'oct 26 10:09:57 2016 gmt', 'caissuers': (u'http://pki.google.com/giag2.crt',), 'ocsp': (u'http://clients1.google.com/ocsp',), 'serialnumber': u'151fc9adb8f5ff10', 'notafter': 'jan 18 09:56:00 2017 gmt', 'version': 3l, 'subject': ((('countryname', u'us'),), (('stateorprovincename', u'california'),), (('localityname', u'mountain view'),), (('organizationname', u'google inc'),), (('commonname', u'*.google.com'),)), 'issuer': ((('countryname', u'us'),), (('organizationname', u'google inc'),), (('commonname', u'google internet authority g2'),))}
i have search solutions on google , , try add code follows in local .boto file ,but did not work.
[s3] calling_format = boto.s3.connection.ordinarycallingformat host = s3-eu-west-1.amazonaws.com
Comments
Post a Comment