Skip to content
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

[BUG]: PermissionError: Access Denied when downloading DFP example data #2038

Closed
2 tasks done
dagardner-nv opened this issue Nov 1, 2024 · 0 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@dagardner-nv
Copy link
Contributor

Version

24.10

Which installation method(s) does this occur on?

Source

Describe the bug.

Running fetch_example_data.py in a fresh git checkout results in an access denied error.

The script will skip over any files already downloaded, so this cannot be reproduced if the dataset has already been downloaded.

Minimum reproducible example

python examples/digital_fingerprinting/fetch_example_data.py all

Relevant log output

Click here to see error details

$ python examples/digital_fingerprinting/fetch_example_data.py all
Downloading AZUREAD_2022-08-01T00_03_56.207Z.json
Traceback (most recent call last):
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/s3fs/core.py", line 394, in _lsdir
for i in it:
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/botocore/paginate.py", line 269, in iter
response = self._make_request(current_kwargs)
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/botocore/paginate.py", line 357, in _make_request
return self._method(**current_kwargs)
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/botocore/client.py", line 569, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/botocore/client.py", line 1023, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/dagardner/work/morpheus-2410-reltest2/examples/digital_fingerprinting/fetch_example_data.py", line 588, in
main()
File "/home/dagardner/work/morpheus-2410-reltest2/examples/digital_fingerprinting/fetch_example_data.py", line 584, in main
fetch_dataset(dataset)
File "/home/dagardner/work/morpheus-2410-reltest2/examples/digital_fingerprinting/fetch_example_data.py", line 554, in fetch_dataset
fs_hndl.get_file(os.path.join(s3_base_path, f), train_dir + f)
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/fsspec/spec.py", line 890, in get_file
elif self.isdir(rpath):
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/s3fs/core.py", line 601, in isdir
return bool(self._lsdir(path))
File "/home/dagardner/work/conda/envs/morpheus-2410-reltest2/lib/python3.10/site-packages/s3fs/core.py", line 409, in _lsdir
raise translate_boto_error(e)
PermissionError: Access Denied

Full env printout

Click here to see environment details

[Paste the results of print_env.sh here, it will be hidden by default]

Other/Misc.

No response

Code of Conduct

  • I agree to follow Morpheus' Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
@dagardner-nv dagardner-nv added the bug Something isn't working label Nov 1, 2024
@dagardner-nv dagardner-nv self-assigned this Nov 1, 2024
rapids-bot bot pushed a commit that referenced this issue Nov 1, 2024
…rors (#2039)

Closes #2038

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah)

URL: #2039
@github-project-automation github-project-automation bot moved this from Todo to Done in Morpheus Boards Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant