gcloud

Cannot access file using relative path in local test when developing Google App Engine applications

泄露秘密 提交于 2019-12-25 05:05:39
问题 I am trying to write and deploy a simple web-app at Google Cloud Platform. I installed gcloud and the corresponding libraries/plugins on Eclipse in my Mac. I use the following code to try to open a file specified in a HttpServeletRequest: public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType("text/html"); resp.getWriter().println("<p>DEBUG: In Create2.</p>"); // get the file info // to get the value of each input, always use the name and

Google Cloud: can't add disk to instance template with write permission

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 20:16:03
问题 I am running preemptable instance on Google Cloud. To keep it up, I am using instance group that spawns this instance from an instance template once it gets killed. I want to run Mongo on this instance (I understand that it is a bad idea, it is good enough for me) so I need to add a persistent disk to the instance. When I add a disk to the instance template, the mode radio button is greyed out and set on read-only . There is a warning stating that I can change mode only when manually spawn an

gCloud SDK failed to install in macOS behind corporate proxy

对着背影说爱祢 提交于 2019-12-24 17:20:06
问题 I am trying to install gcloud SDK while using a coporate network which works behind a proxy (and a VPN sometimes). I get proxy settings automatically using a pac.fcgi file (Automatic Proxy Configuration). Now when I try to run ./install.sh in the terminal, I am constantly getting the following error ➜ google-cloud-sdk ./install.sh Welcome to the Google Cloud SDK! To help improve the quality of this product, we collect anonymized usage data and anonymized stacktraces when crashes are

Container Engine: AttributeError: 'module' object has no attribute 'Credentials'

允我心安 提交于 2019-12-24 16:24:35
问题 I'm following the "hello wordpress" example: https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress, but it stops with: henrik_ormasen_gmail_com@k8s-test2-master:~$ gcloud alpha container kubectl create -f wordpress.json Traceback (most recent call last): File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 209, in <module> main() File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line

Google Managed VM error - custom entry point

人盡茶涼 提交于 2019-12-24 15:23:53
问题 I'm running a custom managed VM with PHP, HHVM, nginx, Centos. I'm having issues running it locally and keep getting the ValueError: The --custom_entrypoint flag must be set for custom runtimes issue. This happens if I use 'dev_appserver.py app.yaml' or 'gcloud preview app run app.yaml' gcloud -v produces the following: $: gcloud -v Google Cloud SDK 0.9.82 I have also tried fixing the SDK version as per: Running node.js on google cloud, but error running with docker This results in: Please

Google App Engine deploy with Django module after gcloud update?

巧了我就是萌 提交于 2019-12-24 12:34:12
问题 We are deploying to GAE using Django 1.7 (we are sending it as a symlinked module of our virtualenv ). Everything was fine up until the latest update of the gcloud tools. Now when we execute $ gcloud preview app deploy app.yaml we get: Updating module [default]...failed. ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid JSON payload received. Unknown name "datata_devops/local/libs/django /contrib/formtools/locale/hr/_lc_messages/django.mo" at 'version.deployment.files[2368]':

Unable to deploy my code to google cloud app engine via gitlab

╄→гoц情女王★ 提交于 2019-12-24 11:18:23
问题 I am trying to create a gitlab pipeline for deploying my spring boot app to google app engine and i am able to authenticate app engine to gitlab but at deployment step of ci file i am getting Java 7+ JRE must be installed and on your system PATH though i have installed it with gcloud install components app-engine-java command in gitlab ci file. Please suggest what needs to be done to resolve this error. .gitlab-ci.yml file: image: google/cloud-sdk:alpine deploy_production: stage: deploy

How to increase Google App Engine request timer. Default is 60 sec

无人久伴 提交于 2019-12-24 10:57:47
问题 I have a PHP script that is running on Google Cloud Engine which fires an SQL query and the query sometimes takes more than 60 second to execute. If the request fails to return within 60 seconds and a DeadlineExceededError is thrown and not caught, the request is aborted and a 500 internal server error is returned. Following is mentioned in the documentation. The Google App Engine request timer (Java/Python/Go) ensures that requests have a finite lifespan and do not get caught in an infinite

Appengine remote_api_shell not working with application-default credentials since update

青春壹個敷衍的年華 提交于 2019-12-24 10:46:21
问题 I recently updated my gcloud libraries from 118.0.0 to 132.0.0 and immediately remote_api_shell no longer worked. I went through a number of permutations of re-logging in, to set the application-default credentials through gcloud, and to use a service account and environment variable. All permutations failed with the same error message: Traceback (most recent call last): File "/Users/mbostwick/google-cloud-sdk/bin/remote_api_shell.py", line 133, in <module> run_file(__file__, globals()) File