Search code examples
google-cloud-datalabgoogle-cloud-platform

I can't create the repository datalab-notebooks


Try to create a datalab session following this page: https://cloud.google.com/datalab/docs/quickstarts

$datalab create instance-name

after running this code, a error occured.

ERROR: (gcloud.source.repos.create) ResponseError: status=[PERMISSION_DENIED], code=[403], message=[You do not have permission to access project [project-name] (or it may not exist): The caller does not have permission]. Failed to find or create the repository datalab-notebooks. Ask a project owner to create it for you.

I am the editor role in this project.

I think editor has permission to access project...

Why does this error occur?

And how can I create datalab-notebook?

Please any idea for me...


Solution

  • EDITOR permissions are not sufficient to create a repository; you have to have the OWNER role to do that.

    You have two options for this:

    1. Ask a project owner to create the repository

    or

    1. Pass in the --no-create-repository flag to tell the datalab command to skip repository creation.