I'm trying to run a gsutil command to list the contents within a bucket on Google Cloud Storage. I'm almost certain there's nothing wrong with the command.
The error I'm getting is:
CommandException: You have multiple types of configured credentials (['Oauth 2.0 User Account', 'OAuth 2.0 Service Account']), which is not supported. For more help, see "gsutil help creds".
I've read the details in "gsutil help creds", but that just contains high-level definitions on the four credential types, which isn't helpful.
Reading the error message, it would seem like I basically need to remove one of the "configured credentials", and in this case I want to remove the "Oauth 2.0 User Account" credentials. And use the "OAuth 2.0 Service Account".
Thus I've looked inside the ".boto" file containing my automatically generated config credentials, but it doesn't look like there's an Oauth 2.0 User Account that can be edited.
I've also tried digging throughout Google's Developer Console to remove the Oauth 2.0 User Account, but I'm unable to.
Basically, my question (assuming it's the right question), how do I remove "Oauth 2.0 User Account" credentials in the Google Cloud Platform?
config_file_list
, and one of the config's it was reading from seemed to be an old config that I set up in the past. The directory that contained the old config was:/.config/gcloud/legacy_credentials/[MY_EMAIL_ADDRESS]/.boto
I completely removed the directorylegacy_credentials
, and that fixed the issue. – Gluten