While there can be several reasons for error, most likely is:
GCP VM you created does not has permission to write to storage bucket. The VM creation command that I have written (as below) has scope: “https://www.googleapis.com/auth/cloud-platform” which gives VM permission to all the GCP APIs including GCS Writes.

If you created your VM from UI, it only gives GCS reads permission to VM.

--

--

--

Database Migrations Engineer, Google Cloud

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shashank Agarwal

Shashank Agarwal

Database Migrations Engineer, Google Cloud

More from Medium

5 Businesses You Can Launch from Home and Scale for Less Than $100

Educators and Challenges in a Post Covid Society

The path of Programming ..

How to Find Purpose — Wise Words from Hunter S. Thompson