日々精進

新しく学んだことを書き留めていきます

S3上のデータを直接tensorflowから読み込んだ場合に「curl returned error code 77」「If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.」エラーが出る

tensorflowのtf.data.TFRecordDatasetにS3に置いたTFRecordのパスを渡すと読み込んでくれるという機能がある。

github.com

これを使うと curl returned error code 77 が出た。77はSSL証明書のエラーらしい。

curl.haxx.se

今回はEC2からのアクセスで、man in the middle攻撃を受けることはないので環境変数S3_VERIFY_SSL=0を設定して解決した。