google-app-engine

google dev_appserver throws error 'python2: command not found' after upgrade to python 3.7

♀尐吖头ヾ 提交于 2020-08-09 06:59:25
问题 Until yesterday I was successfully using the dev_appserver.py app.yaml --enable_console for my development. Yesterday I attempted to upgrade to python 3.7 for my development. The upgrade seemed to be Ok, but now I get the following error message. server:bones brian$ dev_appserver.py app.yaml --enable_console ERROR: (dev_appserver) python2: command not found app.yaml: application: bones version: 1 runtime: python37 entrypoint: gunicorn -b :$PORT main:app api_version: 1 threadsafe: true

Negative Lookahead work around for RE2 Syntax

浪尽此生 提交于 2020-08-09 04:57:17
问题 I was hoping to figure out how make re2 syntax work with a regular expression like the following: (?!(support|help|admin|contact))@example\.com Where you do not match on exactly those terms above. For example, it should match: test@example.com hello@example.com but not match: support@example.com help@example.com i I cannot figure out a way for exactly those terms. I have seen a lot of work arounds where it requires you to test if it does match in golang/the re2 processer, and then return

Improving cold start up times on Google App Engine running Django on Python 3.7 Standard environment

杀马特。学长 韩版系。学妹 提交于 2020-08-08 06:38:22
问题 I'm running a Django-based web app on Google App Engine under the Python 3.7 Standard Environment. When using the app, requests usually take around 500ms, which is completely acceptable. Howevever, when the app has not been accessed for some time (a few minutes), the logs show that the Google App Engine instance is shut down, and the next request requires gunicorn to load again and takes about 20 second. I obciously can't have users wait 20 seconds before the page loads. When testing on my

Improving cold start up times on Google App Engine running Django on Python 3.7 Standard environment

蓝咒 提交于 2020-08-08 06:37:20
问题 I'm running a Django-based web app on Google App Engine under the Python 3.7 Standard Environment. When using the app, requests usually take around 500ms, which is completely acceptable. Howevever, when the app has not been accessed for some time (a few minutes), the logs show that the Google App Engine instance is shut down, and the next request requires gunicorn to load again and takes about 20 second. I obciously can't have users wait 20 seconds before the page loads. When testing on my

Spring boot app engine logs not properly formatted

感情迁移 提交于 2020-08-06 05:44:03
问题 I've deployed a spring boot 2 application on appengine and its doing great. The only thing is that the standard logging mechanism clashes with the gcp logging system. What I get are hundred of info logs, even when there's an exception thrown or a warning. I think the problem is that the logs are really long and starts with some unnecessary data. In my configuration I use lombok+Slf4j to log inside my application, and I think logback is enabled by default since I've spring-boot-starter-web. my

Spring boot app engine logs not properly formatted

你离开我真会死。 提交于 2020-08-06 05:40:56
问题 I've deployed a spring boot 2 application on appengine and its doing great. The only thing is that the standard logging mechanism clashes with the gcp logging system. What I get are hundred of info logs, even when there's an exception thrown or a warning. I think the problem is that the logs are really long and starts with some unnecessary data. In my configuration I use lombok+Slf4j to log inside my application, and I think logback is enabled by default since I've spring-boot-starter-web. my

Spring boot app engine logs not properly formatted

旧城冷巷雨未停 提交于 2020-08-06 05:40:05
问题 I've deployed a spring boot 2 application on appengine and its doing great. The only thing is that the standard logging mechanism clashes with the gcp logging system. What I get are hundred of info logs, even when there's an exception thrown or a warning. I think the problem is that the logs are really long and starts with some unnecessary data. In my configuration I use lombok+Slf4j to log inside my application, and I think logback is enabled by default since I've spring-boot-starter-web. my

My GCP project is automatically creating storage buckets

不想你离开。 提交于 2020-08-05 19:21:05
问题 I have deployed a node.js API on Google App Engine which uses cloud storage for storing files. I had created a bucket, which bore the title as <my-project-id>.appspot.com . After a few days I have come to realize that there are 2 more storage buckets which were created without my knowledge, with the titles: staging.<my-project-id>.appspot.com and <zone-name>.artifacts.<my-project-id>.appspot.com . Why are these buckets getting created? Are those meant for backups? Am I being charged for those

Using SQLITE for local Django development for Google App Engine?

别等时光非礼了梦想. 提交于 2020-08-05 05:46:27
问题 I am doing development in Django with Google App Engine. For production I plan to use Google Cloud SQL but for local development I want to use the simple SQLITE. The Google Tutorial (https://developers.google.com/appengine/docs/python/cloud-sql/django) suggests that I run the development server with dev_appserver.py mysite instead of the Django default manage.py runserver However, when I run the development server as Google suggested I get two strange errors (I removed the rest of the stack

are updated health checks causing App Engine deployment to fail?

喜欢而已 提交于 2020-08-01 06:27:47
问题 we updated our google app engine health checks from the legacy version to the new version using and now our deployments are failing. Nothing else on the project has changed. We tested the default settings and then extended checks just in case. This is the error: ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the