question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: base url with s3 failed in check_write_permissions

See original GitHub issue

I have error in check_write_permissions when set 3S target as default_output_uri after this commit https://github.com/allegroai/clearml/commit/21712a709d052a2bd62f1324b7c1fa928dbd6ece#diff-bc25f5894da3c404d2b542d9da72ed37c7a42522b4032f2530beaf560210b653

Traceback (most recent call last):
  File "/home/shm/Documents/project/CMLP/examples/./clearml_test_local.py", line 9, in <module>
    task = Task.init(project_name="great project", task_name="best experiment")
  File "/home/shm/Documents/project/CMLP/examples/venv/lib/python3.9/site-packages/clearml/task.py", line 602, in init
    task.output_uri = cls.__default_output_uri
  File "/home/shm/Documents/project/CMLP/examples/venv/lib/python3.9/site-packages/clearml/task.py", line 1084, in output_uri
    helper.check_write_permissions(value)
  File "/home/shm/Documents/project/CMLP/examples/venv/lib/python3.9/site-packages/clearml/storage/helper.py", line 851, in check_write_permissions
    err_msg = 'Insufficient permissions ({} failed) for ' + base_url
  File "/home/shm/Documents/project/CMLP/examples/venv/lib/python3.9/site-packages/clearml/utilities/proxy_object.py", line 286, in method
    mtd = getattr(obj, name)
AttributeError: 'str' object has no attribute '__radd__'

It fixes with

err_msg = 'Insufficient permissions ({} failed) for ' + str(base_url)

in 847 line clearml/storage/helper.py

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jkhenningcommented, Jul 4, 2022

@Shm013 v1.6.2 is out 🙂

0reactions
jkhenningcommented, Jul 4, 2022

Hi @Shm013,

I’ll be releasing the formal version today and updating the code, it was basically solved by changing the format string construction to using a safer conversion (as the + operator caused issues with the URL value that might be lazily loaded)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access Denied error when using an S3 static website endpoint
I'm using the Amazon S3 static website feature but getting an Access Denied error. Why is this happening? · Short description · Resolution....
Read more >
Media Composer | First Common Issues - avid.force.com
Launching on one of the new 2018 MacBook Pro, gets you the error message "Exception: std:exception, what: Failed to change priority". Related ...
Read more >
Troubleshoot 403 errors from opening a URL to an S3 object
I opened the URL in the Amazon S3 console for that object. However, I got an Access Denied error message. How can I...
Read more >
getSignedUrl not always returning a valid signed-url #3305
Describe the bug. Sometimes when calling s3.getSignedUrl(method, params) we receive an invalid signed URL from the SDK and no error is ...
Read more >
AWS S3 Generating Signed Urls ''AccessDenied''
Your code is correct, double check the following things: Your bucket access policy. Your bucket permission via your API key.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found