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

Error when uploading custom model to Vertex AI Model registry #3710

Open
TheFabRepos opened this issue Nov 14, 2024 · 1 comment
Open

Error when uploading custom model to Vertex AI Model registry #3710

TheFabRepos opened this issue Nov 14, 2024 · 1 comment

Comments

@TheFabRepos
Copy link

Expected Behavior

Custom Model being uploaded in Vertex AI registry when executing the following cell:

        import google.cloud.aiplatform as aiplatform
        
        MODEL_PATH = "gs://mco-mm/churn"
        MODEL_NAME = "churn"
        IMAGE = "us-docker.pkg.dev/cloud-aiplatform/prediction/tf2-cpu.2-5:latest"
        
        model = aiplatform.Model.upload(
            display_name=MODEL_NAME,
            artifact_uri=MODEL_PATH,
            serving_container_image_uri=IMAGE,
            sync=True,
        )
        MODEL_ID = model.resource_name.split("/")[-1]

in file "notebooks/official/model_monitoring_v2/model_monitoring_for_custom_model_batch_prediction_job.ipynb"

Actual Behavior

I receive the following error message:

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "Service account [[email protected]](mailto:[email protected]) does not have [storage.objects.get] IAM permission(s) to the directory "gs://mco-mm/churn". Please either copy the files to the Google Cloud Storage bucket owned by your project, or grant the required IAM permission(s) to the service account."
debug_error_string = "UNKNOWN:Error received from peer ipv4:74.125.126.95:443 {grpc_message:"Service account [[email protected]](mailto:[email protected]) does not have [storage.objects.get] IAM permission(s) to the directory "gs://mco-mm/churn". Please either copy the files to the Google Cloud Storage bucket owned by your project, or grant the required IAM permission(s) to the service account.", grpc_status:9, created_time:"2024-11-14T05:59:29.185932594+00:00"}"

I don't have any form of privilege to add permission on the gs://mco-mm/churn directory in the mco-mm bucket.

Steps to Reproduce the Problem

  1. Execute the cells in "notebooks/official/model_monitoring_v2/model_monitoring_for_custom_model_batch_prediction_job.ipynb" and when you reach the cell containing the code reported above then you have the exception.

Specifications

  • Version:
  • Platform: Colb Enterprise ig Google Cloud Platform
@gericdong
Copy link
Contributor

@TheFabRepos: this issue is being looked at. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants