Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gsutil cp command error, CommandException: NO URLs matched:

Tags:

cp

cmd

gsutil

Good day, I am not a developer but running simple gsutil command to manage my google cloud storage.

I ran into an issue where I run the following command form the cmd

gsutil -m cp -r gs:/bucket/ .

Scenario1: with most buckets this goes just fine

Scenario2: there is one bucket where I get an error and I really have no clue how this is possible

the error I get is:

CommandException: NO URLs matched: gs://content-music.tapgamez.com/

I am hoping anyone can share their thoughts with me

thnx

like image 754
Eelco Tenbroeke Avatar asked Jul 14 '26 11:07

Eelco Tenbroeke


1 Answers

One scenario where this error message appears is when the bucket you're attempting to recursively copy from contains no objects, e.g.:

$ gsutil mb gs://some-random-bucket-name
$ gsutil -m cp -r gs://some-random-bucket-name/ .
CommandException: No URLs matched: gs://some-random-bucket-name/
CommandException: 1 file/object could not be transferred.

The same issue, but for the rm command, is being tracked on GitHub: https://github.com/GoogleCloudPlatform/gsutil/issues/417

like image 172
mhouglum Avatar answered Jul 22 '26 06:07

mhouglum



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!