tensorflow - 带有 s3 logdir 的 Tensorboard/tensorflow - curl 返回错误代码 6
问题描述
一直在尝试许多设置/env-vars/tf-versions 但不起作用..
在我的本地机器上这有效:AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=XXX AWS_REGION=eu-west-1 tensorboard --logdir="s3://my-bucket/tflogs/"
在 AWS 实例上,这将抛出:
I tensorflow/core/platform/s3/aws_logging.cc:54] Creating HttpClient with max connections2 and scheme http
I tensorflow/core/platform/s3/aws_logging.cc:54] Initializing CurlHandleContainer with size 2
I tensorflow/core/platform/s3/aws_logging.cc:54] Creating Instance with default EC2MetadataClient and refresh rate 900000
I tensorflow/core/platform/s3/aws_logging.cc:54] Found secret key
I tensorflow/core/platform/s3/aws_logging.cc:54] Initializing CurlHandleContainer with size 25
I tensorflow/core/platform/s3/aws_logging.cc:54] Found secret key
I tensorflow/core/platform/s3/aws_logging.cc:54] Pool grown by 2
I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
E tensorflow/core/platform/s3/aws_logging.cc:60] Curl returned error code 6
W tensorflow/core/platform/s3/aws_logging.cc:57] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.
W tensorflow/core/platform/s3/aws_logging.cc:57] Request failed, now waiting 0 ms before attempting again.
I tensorflow/core/platform/s3/aws_logging.cc:54] Found secret key
2018-08-14 16:32:18.725199: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
E tensorflow/core/platform/s3/aws_logging.cc:60] Curl returned error code 6
W tensorflow/core/platform/s3/aws_logging.cc:57] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.
在https://github.com/tensorflow/tensorflow/issues/16397
中没有找到任何提示
并且没有明确的线索可能存在差异,我确保拥有相同的 tensorflow/tensorboard 版本(1.8.0)。也会发生在指定 s3 tensorboard logdir 的情况下运行 tensorflow。
解决方案
Solved it like this:
export AWS_ACCESS_KEY_ID=<access key id>
export AWS_SECRET_ACCESS_KEY=<secret access key>
export AWS_REGION=us-west-2
export S3_REGION=us-west-2
export S3_ENDPOINT=s3.us-west-2.amazonaws.com
export S3_USE_HTTPS=1
export S3_VERIFY_SSL=0
tensorboard --logdir=s3://<path>
推荐阅读
- javascript - 似乎无法附加到 .json 数组
- laravel - 如何在 laravel 的 CSV 导出中追加行
- excel - Excel 宏导入 CSV 数据失败,TextFileParseType
- batch-file - 批处理文件:在字符串中查找字符串不起作用
- cors - 由于 CORS,HTTP 响应中缺少标头
- java - 如何在每个选项卡中创建带有选项卡和 PDFviewer 的 ViewPager?
- angular - 从组件访问 CSS 变量
- c++ - 为什么我不能直接调用通过指向成员的指针访问的实例的方法
- php - TCPDF - 如果内容不适合一页,则添加页面
- excel - 从 GMAIL 到 Google 表格的 Excel (xlsx) 文件 - 复制为值而不是公式错误