New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF 2.3 S3 client having permission issues with tf.data.TFRecordDataset()
#44564
Comments
tf.data.TFRecordDataset()
@shaowei-su |
Thank you @Saduf2019 taking look into this.
(Unfortunately, my current setup is not public accessible/sharable)
|
Quick updates on my end: |
I am working on this error. But I am not able to reproduce it locally. Could you tried |
Hi @vnvo2409
In this use case, credentials are not passed in as environment variables but configured for Amazon EC2 instance that has an IAM role. Side note:
|
Unfortunately, I don't have access to an EC2 instance right now. Could you please set the environement as follow in order to see what did happend behind the scene ? import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0"
os.environ["TF_CPP_MIN_VLOG_LEVEL"] = "5"
os.environ["AWS_LOG_LEVEL"] = "trace" |
The stack trace is quite long I pasted it here: https://gist.github.com/shaowei-su/4485e00a7a2d1e78f39275be3e7dd8f1 |
@shaowei-su Maybe it could be related here #43344 |
@vnvo2409 thanks for reminding! deleted the stack trace for now |
@shaowei-su |
@vnvo2409 Yes! I can confirm that by adding |
Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information
You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
TF 2.3
tf.data.TFRecordDataset()
failed to load files from S3.Side note:
tf_file_io
is working properly for the same setup.See error log below.
Describe the expected behavior
Same API and environments works well with TF 2.1 and TF 1.15.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: