Skip to content

Bug in v1.47.0 after allowing default bucket to be specified by the user #1174

Closed

Description

@elvinx

@andremoeller thank you for the quick fix!
I am afraid this feature (#1168) introduced a bug :/ And now by default the SDK tries to create the bucket all the time

  • I upgraded to SageMaker 1.47
  • Run below lines of code
import sagemaker
role = sagemaker.get_execution_role()
  • I get the below error
    ClientError: An error occurred (AccessDenied) when calling the CreateBucket operation: Access Denied

Screen Shot 2019-12-16 at 2 22 24 PM

#1165

Activity

  1. changed the title [-]Bug in 1.47 after allowing default bucket to be specified by a user[/-] [+]Bug in v1.47.0 after allowing default bucket to be specified by a user[/+] on Dec 16, 2019
  2. changed the title [-]Bug in v1.47.0 after allowing default bucket to be specified by a user[/-] [+]Bug in v1.47.0 after allowing default bucket to be specified by the user[/+] on Dec 16, 2019
  3. andremoeller commented on Dec 16, 2019

    @andremoeller
    Contributor

    @elvinx

    Thanks for reporting this! We're looking into this now.

  4. knakad commented on Dec 16, 2019

    @knakad
    Contributor

    While we push a revert out, I believe a workaround is to specify the session with the custom bucket name as part of the session you pass in to .get_execution_role().

    i.e.:

    my_session = Session(..., default_bucket="my_custom_bucket")
    role = sagemaker.get_execution_role(sagemaker_session=my_session)
    

    Alternatively, you can also downgrade to a previous version to unblock yourself.

    In the meantime, we're working on a version of this fix that doesn't create the bucket on init.

  5. added
    status: pending release
    on Dec 16, 2019
  6. ajaykarpur commented on Dec 16, 2019

    @ajaykarpur
    Contributor

    Hi @elvinx, we've merged in the fix for this bug. We'll have a release out soon.

  7. ajaykarpur commented on Dec 17, 2019

    @ajaykarpur
    Contributor

    The bugfix has been released. Please feel free to reach out if you have any further questions.

  8. removed
    status: pending release
    on Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions