gcloud

gcloud command not found -installing Google Cloud SDK

老子叫甜甜 提交于 2021-02-19 01:52:06
问题 I am trying to install the Google Cloud SDK on Mac using the following command in terminal curl https://sdk.cloud.google.com | bash It worked fine but when I move to the next step of gcloud init I get the following -bash: gcloud: command not found I have tried all solutions to the same question as in here, however I still get the same error message. The installer didn't prompt me with the following message either: Modify profile to update your $PATH and enable bash completion? (Y/n)? 回答1: The

Python: How can I create a GoogleCredentials using a specific user instead of get_application_default()

老子叫甜甜 提交于 2021-02-18 18:57:12
问题 I'm updating a script to call OAuth2-protected Google Cloud endpoints. The previous version assumed a single user previously authenticated by gcloud auth login and thus was able to use the default: credentials = GoogleCredentials.get_application_default() http = credentials.authorize(http) However now I must do some calls as user A and some as user B. I can perform these steps in the shell to generate access tokens, but I would prefer to do it in the program directly: gcloud auth login user_A

How to restart Google App Engine Standard Service

给你一囗甜甜゛ 提交于 2021-02-17 03:53:51
问题 Context: I have an app that serves interactive graphs and data analysis. In order to calculate plots and data summaries, it uses a dataset that is loaded upon App initialization by querying google BigQuery. The data is then kept as a global variable (in memory) and is used in all data calculations and plots that might be run by different users (each user saves in their session their own filters/mask). This dataset changes in BigQuery once per day during the night (I know the exact datetime of

gsutil ServiceException: 401 Anonymous caller does not have storage.objects.list access to bucket even though I'm loggedin in gcloud

余生长醉 提交于 2021-02-15 11:16:00
问题 I am trying to create an internal app to upload files to google cloud. I don't want each individual user or this app to log in so I'm using a service account. I login into the service account and everything is ok, but when I try to upload it gives me this error: ServiceException: 401 Anonymous caller does not have storage.objects.list access to bucket As you can see I am logged in with a service account and my account and(neither service or personal) works 回答1: I had similar problem, and as

gsutil ServiceException: 401 Anonymous caller does not have storage.objects.list access to bucket even though I'm loggedin in gcloud

北战南征 提交于 2021-02-15 11:15:53
问题 I am trying to create an internal app to upload files to google cloud. I don't want each individual user or this app to log in so I'm using a service account. I login into the service account and everything is ok, but when I try to upload it gives me this error: ServiceException: 401 Anonymous caller does not have storage.objects.list access to bucket As you can see I am logged in with a service account and my account and(neither service or personal) works 回答1: I had similar problem, and as

Facing error while deploying node.js app on google cloud

懵懂的女人 提交于 2021-02-11 14:14:23
问题 I am trying to deploy node.js app on google cloud but getting following error. I am facing this error since 10th October. don't know how to resolve: Step #2: ERROR: (gcloud.beta.app.deploy) PERMISSION_DENIED: You do not have permission to act as '[xxxxxxx]@appspot.gserviceaccount.com' Step #2: - '@type': type.googleapis.com/google.rpc.ResourceInfo Step #2: description: You do not have permission to act as this service account. Step #2: resourceName: [xxxxxx]@appspot.gserviceaccount.com Step

Facing error while deploying node.js app on google cloud

时光毁灭记忆、已成空白 提交于 2021-02-11 14:08:44
问题 I am trying to deploy node.js app on google cloud but getting following error. I am facing this error since 10th October. don't know how to resolve: Step #2: ERROR: (gcloud.beta.app.deploy) PERMISSION_DENIED: You do not have permission to act as '[xxxxxxx]@appspot.gserviceaccount.com' Step #2: - '@type': type.googleapis.com/google.rpc.ResourceInfo Step #2: description: You do not have permission to act as this service account. Step #2: resourceName: [xxxxxx]@appspot.gserviceaccount.com Step

Discord bot sends response twice

风流意气都作罢 提交于 2021-02-11 13:41:40
问题 I'm coding a discord.js bot, and whenever I send a command, it gives a response twice. I've concluded it's because I have too many instances running. I try to delete the instances, but it doesn't delete. Sometimes it says "Some instances could not be deleted", and sometimes it doesn't delete at all. And through Terminal SERVICE VERSION ID VM_STATUS DEBUG_MODE default 20191208t223728 aef-default-20191208t223728-0l57 RUNNING default 20191208t223728 aef-default-20191208t223728-jb53 RUNNING

Discord bot sends response twice

蓝咒 提交于 2021-02-11 13:39:19
问题 I'm coding a discord.js bot, and whenever I send a command, it gives a response twice. I've concluded it's because I have too many instances running. I try to delete the instances, but it doesn't delete. Sometimes it says "Some instances could not be deleted", and sometimes it doesn't delete at all. And through Terminal SERVICE VERSION ID VM_STATUS DEBUG_MODE default 20191208t223728 aef-default-20191208t223728-0l57 RUNNING default 20191208t223728 aef-default-20191208t223728-jb53 RUNNING

How to configure multiple gcloud projects

风格不统一 提交于 2021-02-11 05:18:40
问题 On my work laptop, i have gcloud configured with our prod projects. when i do gcloud config configurations list , I get only one row in result, which is ACTIVE and it's my work-project. Now for some personal testing, I have created a separate project which is associated with my personal email id. How would i configure/connect this project with my gcloud cli? I have tried gcloud auth application-default login which opened the browser, i signed in using personal email id. The webpage showed me