google-flexible

gcloud app deploy fails with flexible environment

[亡魂溺海] 提交于 2021-01-29 12:42:08
问题 I've tried the hello world example with nodejs and php and both the standard environments work fine. But both examples using the flexible give the same error when I use 'gcloud app deploy': ERROR: gcloud crashed (TypeError): '>' not supported between instances of 'NoneType' and 'int' Works: https://cloud.google.com/nodejs/getting-started/hello-world https://cloud.google.com/appengine/docs/standard/php7/quickstart Fails: https://cloud.google.com/appengine/docs/flexible/nodejs/quickstart https:

Deploying Django channels app on google flex engine

天大地大妈咪最大 提交于 2020-02-25 04:15:48
问题 I am working on django channels and getting problem while deploying them on google flex engine,first I was getting error of 'deployment has failed to become healthy in the allotted time' and resolved it by adding readiness_check in app.yaml,now I am getting below error: (gcloud.app.deploy) Operation [apps/socketapp-263709/operations/65c25731-1e5a-4aa1-83e1-34955ec48c98] timed out. This operation may still be underway. App.yaml runtime: python env: flex runtime_config: python_version: 3

java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.GoogleDriver]

旧巷老猫 提交于 2020-01-09 03:53:06
问题 I am trying to connect to my database from the Google Flexible Environment to the Google Cloud SQL . The connection string and the driver class are shown below: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.GoogleDriver" /> <property name="url" value="jdbc:google:mysql://mz-test:us-central1:mz-life-cloudsql-prod/mz_db" /> <property name="username" value="root" /> <property name="password" value

Increase time to run code for Google flexible app engine delaying DeadlineExceededError

…衆ロ難τιáo~ 提交于 2019-12-09 06:25:32
问题 I have a single function running on Google App Engine Flexible as part of an API call. The structure is something like this import externalmod ... ... @app.route('/calc_here') def calc: answer = externalmod.Method() return answer The function externalmod is a complicated algorithm (not datastore, not urlfetch, just pure python), which works for every possible case on the desktop but for some input cases on the app engine, when the endpoint is called it gives the following error { "code": 13,

How do I register API environment for Datastore in GAE Flexible Environment?

纵然是瞬间 提交于 2019-12-08 09:50:44
问题 When trying to run Datastore in a Servlet in Google App Engine Flexible Environment I get "No API environment is registered for this thread." (Details below.) I see questions on StackOverflow about this happening in local machines or unit tests, but this is happening in GAE in a regular Servlet. Here is the entirety of my Datastore code, a simple query. Do I need to register an API environment? If so, how? List<String> kinds = new ArrayList<String>(); DatastoreService datastore =

java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.GoogleDriver]

谁说胖子不能爱 提交于 2019-11-27 09:35:53
I am trying to connect to my database from the Google Flexible Environment to the Google Cloud SQL . The connection string and the driver class are shown below: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.GoogleDriver" /> <property name="url" value="jdbc:google:mysql://mz-test:us-central1:mz-life-cloudsql-prod/mz_db" /> <property name="username" value="root" /> <property name="password" value="" /> </bean> However, I am currently getting org.springframework.beans.factory.BeanCreationException: