[google-appengine] Re: Can't run sample applications on AppEngine Stanadard Python3.7

2018-09-27 Thread 'George (Cloud Platform Support)' via Google App Engine
The recommended way to run Standard Environment applications in the local 
environment is by using the dev_appserver.py command as follows, from the 
directory that contains your app's app.yaml configuration file, and 
specifying the directory path to your app, for example:

dev_appserver.py [PATH_TO_YOUR_APP]

You may find related detail on the "Using the Local Development Server" 
documentation page 

. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5961637a-ae36-4c31-b942-f1005c28edc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: [Error: Server Error] GAE Nodejs8 Standard. Upgrade to Nuxtjs@2.0.0 and deployment fails (could be unrelated)

2018-09-27 Thread Jason Collins
For Nuxt in the past, I had to set the HOST env variable in app.yaml:

env_variables:
  HOST: 0.0.0.0

Not sure if that would help in this case or not.

On Thursday, 27 September 2018 13:11:46 UTC-7, Steren Giannini wrote:
>
> Hi David,
>
> Error Reporting is supported by the Node.js App Engine standard runtime, 
> we will fix our docs.
> However, Error Reporting does not catch all errors (it only catches 
> exceptions), you should be also looking at your logs.
>
> Can you look at your application output in your logs? (Open Stackdriver 
> Logging from the left nav) 
>
> Can you share here your package.json? I'd like to help you understand what 
> could fix the issue
>
> We have many customers using Nuxtjs on App Engine standard, I personally 
> made sure I was able to deploy a Nuxtjs app in the past
>
> Steren
> Product Manager
> App Engine
>
>
>
> On Thursday, September 27, 2018 at 10:33:56 AM UTC-7, David Davis wrote:
>>
>> [image: Screen Shot 2018-09-26 at 3.35.02 PM.png]
>> I've been building and deploying on Nodejs8 standard and everything was 
>> ok untill today when I upgraded from Nuxtjs 1.4.x to 2.0. Everything works 
>> fine locally but upon deploying am getting this 500 error. According to 
>> these docs 
>> https://cloud.google.com/error-reporting/docs/setup/app-engine-standard-environment
>>  
>> the nodejs8 environement doesn't allow error reporting. I see this in the 
>> console. Honestly confused how Im supposed to debug and proceed without any 
>> sort of error reporting. Please advise if anyone knows what to do.
>>
>> Project ID
>> agency-215614
>> Project number
>> 885488244632
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e5346396-d44b-46b7-84cc-4cbdb64b7574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Can't run sample applications on AppEngine Stanadard Python3.7

2018-09-27 Thread vvv vvv

Hello, after installing everything, I am trying to run
* 
~/python-docs-samples/appengine/standard_python37/building-an-app/building-an-app-2*
*building-an-app/building-an-app-1* built and run successfully, my problem 
is with the rest in the series which use the cloud datastore.
When i start my virtual environment and run
pip3 install -r requirements.txt

python3 main.py


I get Traceback (most recent call last):
  File "main.py", line 20, in 
from google.cloud import datastore
  File 
"/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/__init__.py"
, line 61, in 
from google.cloud.datastore.batch import Batch
  File 
"/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/batch.py"
, line 24, in 
from google.cloud.datastore import helpers
  File 
"/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/helpers.py"
, line 24, in 
from google.type import latlng_pb2
ModuleNotFoundError: No module named 'google.type'


If on the other hand I run:

pip install -r requirements.txt

python main.py


The output is:
  File "main.py", line 22, in 
datastore_client = datastore.Client()
...
psep = app_id.find(_PARTITION_SEPARATOR)
AttributeError: 'NoneType' object has no attribute 'find'


I found here 
(https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/168) 
in the end that I have to set APPLICATION_ID. How do I do this, and is this 
documented somewhere?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e0fa21c1-c54c-4a5c-b8f5-7cda200b3bf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Java heap dump in Google App engine standard environment?

2018-09-27 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Kishu, 

You are right about the local file system in App Engine Standard, and 
indeed, saving the heap dump rather to Cloud Storage might prove the right 
solution. There is no such feature yet, but development is under way. As 
yet, we cannot offer a good estimate for a final implementation date. If 
you think this may speed things up, you are encouraged to open an issue 
with similar content in the Public Issue Tracker 
. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bd45a834-5a23-4b16-b59d-d080a45e58bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] OAuth consent screen now showing scope options

2018-09-27 Thread o. topalov
I have two seemingly identical projects created in two different accounts. 
Both projects use the same set of Google APIs - Google Picker and Google 
Drive. In one of the projects (the one created earlier) I can see and set 
up scope options inside the console.developers.google.com UI under 
Credentials/OAuth consent screen. In the other project the same screen is 
missing the scope options (and other settings). What am I missing?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5462c93d-072e-4f2a-9210-553313169f76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Custom Domain much slower than $PROJECT_ID.appspot.com

2018-09-27 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi Skillful, 

You have done the right thing, to leave a comment on the know issue page. 
This should offer the appropriate impression of urgency on the thread. 
Unfortunately, there are other urgent issues to be addressed, and someone 
else might have the same sense of urgency, as you. Work is in progress as 
we speak; meanwhile, your understanding is appreciated.  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ebd1fe0b-50ea-4cb3-a014-97a324ab57bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: App engine standard java8 - how to add health check for instances?

2018-09-27 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Roman, 

It is not possible to implement custom health checks in App Engine 
Standard. Still, App Engine sends periodic health check requests to confirm 
that an instance has been successfully deployed, and to check that a 
running instance maintains a healthy status. Each health check must be 
answered within a specified time interval. An instance is unhealthy when it 
fails to respond to a specified number of consecutive health check 
requests. This procedure covers normally the situation you describe, and 
offers chances of providing for faulty instances and avoiding status 500 
for hours. You should organize your GAE Standard apps to handle this 
situation. More details on the "How Instances are Managed" page 

. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/468e33ce-3221-4ca8-bc87-71bf799f1f24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] [Error: Server Error] GAE Nodejs8 Standard. Upgrade to Nuxtjs@2.0.0 and deployment fails (could be unrelated)

2018-09-27 Thread diogoalmeida via Google App Engine
As per this  document, 
Node.js version 8 is in beta release and you can find out more by checking 
this  tutorial.

As per the errors you noticed after the update and deploy, please note that 
Node.js runtime in the App Engine standard environment uses the latest 
release of Node.js version 8. That said, you need to make sure that Nuxtjs 
2.0 complies to the latest version 
 and 
also make sure you have the same Node.js version installed on your machine 
in order to avoid errors when setting up the environment 

.

In regards to error logging, the beta release of Node.js support writing 
application logs with the log levels INFO, ERROR, and DEBUG. Please check 
more details here 

.


On Thursday, September 27, 2018 at 1:39:30 PM UTC-4, David J. Davis wrote:
>
> I've decided to move to another hosting platform, there's clearly not 
> enough support especially with the absense of Error reporting for Nodejs 
> standard.
>
> On Thu, Sep 27, 2018 at 10:33 AM David Davis  
> wrote:
>
>> [image: Screen Shot 2018-09-26 at 3.35.02 PM.png]
>> I've been building and deploying on Nodejs8 standard and everything was 
>> ok untill today when I upgraded from Nuxtjs 1.4.x to 2.0. Everything works 
>> fine locally but upon deploying am getting this 500 error. According to 
>> these docs 
>> https://cloud.google.com/error-reporting/docs/setup/app-engine-standard-environment
>>  
>> the nodejs8 environement doesn't allow error reporting. I see this in the 
>> console. Honestly confused how Im supposed to debug and proceed without any 
>> sort of error reporting. Please advise if anyone knows what to do.
>>
>> Project ID
>> agency-215614
>> Project number
>> 885488244632
>>
>> -- 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0d08c0ba-179e-4ebc-8609-367f748639f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: [Error: Server Error] GAE Nodejs8 Standard. Upgrade to Nuxtjs@2.0.0 and deployment fails (could be unrelated)

2018-09-27 Thread 'Steren Giannini' via Google App Engine
Hi David,

Error Reporting is supported by the Node.js App Engine standard runtime, we 
will fix our docs.
However, Error Reporting does not catch all errors (it only catches 
exceptions), you should be also looking at your logs.

Can you look at your application output in your logs? (Open Stackdriver 
Logging from the left nav) 

Can you share here your package.json? I'd like to help you understand what 
could fix the issue

We have many customers using Nuxtjs on App Engine standard, I personally 
made sure I was able to deploy a Nuxtjs app in the past

Steren
Product Manager
App Engine



On Thursday, September 27, 2018 at 10:33:56 AM UTC-7, David Davis wrote:
>
> [image: Screen Shot 2018-09-26 at 3.35.02 PM.png]
> I've been building and deploying on Nodejs8 standard and everything was ok 
> untill today when I upgraded from Nuxtjs 1.4.x to 2.0. Everything works 
> fine locally but upon deploying am getting this 500 error. According to 
> these docs 
> https://cloud.google.com/error-reporting/docs/setup/app-engine-standard-environment
>  
> the nodejs8 environement doesn't allow error reporting. I see this in the 
> console. Honestly confused how Im supposed to debug and proceed without any 
> sort of error reporting. Please advise if anyone knows what to do.
>
> Project ID
> agency-215614
> Project number
> 885488244632
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/595d5b01-1d60-4ad0-8ffc-b98be4a9325e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: php with app engine

2018-09-27 Thread 'George (Cloud Platform Support)' via Google App Engine
If you would like to deploy more than one service, it is indeed possible in 
App Engine. Services were previously named "modules". They do not behave 
exactly as different apps, sharing the same Datastore. You may find more 
detail on the "Overview of App Engine" documentation page 

. 

You also benefit from another option, namely to deploy your different apps 
as different versions within the same projects. This gives you up to 25 
different versions to use for deployment. You can access these different 
versions through URLs such as http://version.application-id.appspot.com , 
or https://version-dot-application-id.appspot.com in case of https.  The 
"app.yaml Reference" page 
 offers 
you more insight. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c0693434-3a8a-448f-a144-04f68e6e6894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: using 3rd party libraries on GAE standard with Python

2018-09-27 Thread 'Dan S (Cloud Platform Support)' via Google App Engine


Hi,

It seems that you’re experiencing an issue regarding access 
permissions(Java:403) and maybe you have used a not supported library (459 
issue).

Kindly note that the Google Groups channel is designed to provide a free 
expression space to Google community rise discussions on different matters. 

I believe that your questions should get a better assistance in the Stack 
Overflow[1] since it is related to a technical issue. There, you should 
receive help from the community fellow enthusiasts, and from Google 
engineers when you add a tag in your post according to the product where 
you require assistance, as you can check in our documentation[2]. 
Additionally, you can post some details regarding your scaling setup, 
project config, and some code samples.


[1] http://stackoverflow.com/

[2] https://cloud.google.com/support/docs/stackexchange


On Wednesday, September 26, 2018 at 11:39:01 PM UTC-4, Dewey Gaedcke wrote:
>
> does anyone recognize these errors upon deploying a Golang project on Std.
>
> com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:459)\\n\\tat
>  
> com.google.gse.internal.DispatchQueueImpl$WorkerThread.run(DispatchQueueImpl.java:403)\\n\"",
> "  } ],",
> "  \"message\" : null",
> "}",
> "\t\tat 
> com.google.apps.framework.producers.PresentImpl.get(PresentImpl.java:29)",
> "\t\tat 
> com.google.apphosting.admin.flex.lib.dm.InsertDmDeploymentProducerModule.produceInsert(InsertDmDeploymentProducerModule.java:75)",
> "\tSuppressed: CriticalInputFailure: 
> com.google.apphosting.admin.flex.lib.dm.InsertDmDeploymentProducerModule.produceDoneOrFailedOperation
>  failed while trying to inject 
> @com.google.apps.framework.producers.PrivateVisibility(annotation=\"@com.google.apphosting.admin.flex.lib.dm.InsertDmDeploymentProducerModule$InsertDmOperation\",
>  
> module=com.google.apphosting.admin.flex.lib.dm.InsertDmDeploymentProducerModule.class)
>  com.google.apphosting.admin.flex.lib.dm.internal.proto.Operation",
> "\tSuppressed: 
> com.google.common.util.concurrent.UncheckedExecutionException: ",
> "\t\tat 
> com.google.apps.framework.producers.Present.checkSucceeded(Present.java:54)",
> "\t\tat 
> com.google.apphosting.admin.flex.resources.deployment.CreateResourcesProducerModule.produceBackendService(CreateResourcesProducerModule.java:128)",
> "\tSuppressed: CriticalInputFailure: 
> com.google.apphosting.admin.flex.resources.deployment.CreateResourcesProducerModule.produceDeployedRecord
>  failed while trying to inject 
> @com.google.apps.framework.producers.PrivateVisibility(annotation=\"@com.google.apphosting.admin.flex.resources.deployment.CreateResourcesProducerModule$NewBackendService\",
>  
> module=com.google.apphosting.admin.flex.resources.deployment.CreateResourcesProducerModule.class)
>  java.util.Optional"
>   ]
> }
>   }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/53cd4a11-dfeb-4eca-adc3-068c10301927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: 2nd Gen GAE Python 3.7 memory usage

2018-09-27 Thread rahulrv via Google App Engine
Hello Adam,
  We have a Stackdriver based profiler in development(soon to be in alpha) 
which may help. I have forwarded your thread to them as input as well.

Until then, could you leverage the memory usage dashboard in the cloud 
console from App Engine -> Dashboard -> [Select Memory Usage from the 
dropdown] to help?
Thanks,
~Rahul

On Thursday, September 27, 2018 at 10:33:56 AM UTC-7, Adam Lugowski wrote:
>
> I'm using a Python profiler that appears to report resident size.
>
> I understand what you're saying that there is more to memory usage than 
> just the app. But I hope you can understand my frustration: AppEngine 
> provides no tooling or metrics to help track down what is the root of a 
> problem that is not reproducible anywhere else. Maybe Googlers have some 
> internal metrics and/or profiling tools, because clearly the runtime is 
> monitoring memory usage.
>
> Even something as simple as a plot of the app's memory usage over time 
> would be useful. I can make changes to the app, monitor requests, and see 
> which request is causing a spike.
>
> As of now, it looks like I'm just supposed to guess if the issue lies in 
> the app, the kernel, memory mappings, or other bits and pieces.
>
> On Thursday, September 20, 2018 at 4:44:46 PM UTC-7, Phillip Pearson wrote:
>>
>> Hi Adam,
>>
>> How are you measuring memory usage locally?  If you're looking at the 
>> resident size (RSS in ps, RES in top), that's only a subset of the actual 
>> memory used by your application, so you should expect the memory usage 
>> reported in the App Engine console to be higher than what you see locally 
>> -- it includes kernel memory specific to your app, mapped file data, and 
>> some other bits and pieces.
>>
>> As for the entrypoint line, we haven't advertised this usage too widely 
>> because we hope the defaults will work for most people -- and just in case 
>> we come up with a better way to do it :)
>>
>> Cheers,
>> Phil
>>
>> On Thu, Sep 20, 2018 at 2:12 PM Adam Lugowski  wrote:
>>
>>> Thanks for the suggestions, Phillip.
>>>
>>> Yes the memory is as expected. This was never in doubt, the 
>>> out-of-memory message says both usage and the quota. The quota matches 
>>> GAE_MEMORY_MB. The problem is why the usage is so high, not that the quota 
>>> isn't changing.
>>>
>>> Thank you for the command to use. Google's docs didn't make it clear 
>>> that this is how you control parallelism. After adding gunicorn to 
>>> requirements.txt, the following now helps:
>>>
>>> entrypoint: gunicorn main:app --threads 4 --workers 1 -c 
>>> /config/gunicorn.py
>>>
>>> It only solves half the problem. This now no longer crashes an F4. It 
>>> does still crash an F2, with 270 MB usage. Locally it's still only 115MB.
>>>
>>>
>>> On Monday, September 17, 2018 at 1:25:55 PM UTC-7, Phillip Pearson wrote:

 Hi Adam,

 Here's a few ideas for diagnosis:

 1. Can you try printing or logging repr(os.environ) and checking for 
 the GAE_MEMORY_MB environment variable?  I just tried deploying a test app 
 with instance_class: F4 and service: xyz, and print(repr(os.environ)) 
 gives 
 me something like this:

   environ({'GAE_MEMORY_MB': '512', 'GAE_INSTANCE': ...etc etc...})

 The python37 runtime *should* start one worker if GAE_MEMORY_MB <= 128, 
 two if <= 256, four if <= 512, otherwise eight.

 If you see 'GAE_MEMORY_MB': '512' in there but anything other than four 
 workers starting up, I'm extremely interested in figuring out why :)  
 Likewise if you see anything other than 512 for an F4 instance.

 2. Check that you're looking at the logs for the correct service -- 
 make sure you see "GAE Application, xyz" and not "GAE Application, Default 
 Service" or just "GAE Application" (which combines logs from all services) 
 in the logs viewer.

 3. Once you've done those two, if nothing sticks out, you can manually 
 configure the worker count by adding a line like this to app.yaml:

   entrypoint: gunicorn main:app --workers 2 -c /config/gunicorn.py

 This will start up two workers.  You can also configure the number of 
 threads per worker:

   entrypoint: gunicorn main:app --threads 8 --workers 2 -c 
 /config/gunicorn.py

 (The default if you just using 'gunicorn main:app -c 
 /config/gunicorn.py' is four workers with four threads each.)

 Cheers,
 Phil

 On Monday, September 17, 2018 at 10:30:06 AM UTC-7, Adam Lugowski wrote:
>
> Hi Rahul,
>
> I'm not manually configuring workers. Happy to learn of how to do 
> that. My app.yaml is simple:
>
> runtime: python37
> service : xyz
>
> inbound_services:
> - warmup
>
> instance_class: F4
>
> handlers:
> 
>
> On Sunday, September 16, 2018 at 6:59:38 AM UTC-7, rah...@google.com 
> wrote:
>>
>> Hello Adam,
>>   Could you paste 

Re: [google-appengine] [Error: Server Error] GAE Nodejs8 Standard. Upgrade to Nuxtjs@2.0.0 and deployment fails (could be unrelated)

2018-09-27 Thread David J. Davis
I've decided to move to another hosting platform, there's clearly not
enough support especially with the absense of Error reporting for Nodejs
standard.

On Thu, Sep 27, 2018 at 10:33 AM David Davis  wrote:

> [image: Screen Shot 2018-09-26 at 3.35.02 PM.png]
> I've been building and deploying on Nodejs8 standard and everything was ok
> untill today when I upgraded from Nuxtjs 1.4.x to 2.0. Everything works
> fine locally but upon deploying am getting this 500 error. According to
> these docs
> https://cloud.google.com/error-reporting/docs/setup/app-engine-standard-environment
> the nodejs8 environement doesn't allow error reporting. I see this in the
> console. Honestly confused how Im supposed to debug and proceed without any
> sort of error reporting. Please advise if anyone knows what to do.
>
> Project ID
> agency-215614
> Project number
> 885488244632
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/e4da13a3-ced1-4e24-b5b4-63acf4586c46%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CA%2BeXqL_NoJXbAMNkCN0iFffpiM%2BrTmc5sQLQkv%2Boi2o36%3DxS%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How To Install libssh2 on PHP runtime

2018-09-27 Thread 'Stewart Reichling' via Google App Engine
Your best bet would be to use a custom runtime
 on the
flexible environment. This would allow you to use a Dockerfile to specify
system packages and install arbitrary binaries (e.g., php and python3).

On Thu, Sep 27, 2018 at 10:33 AM  wrote:

> Hi Everyone, Since yesterday I'm trying and searching how to install the
> extension libssh2 in GAE
> But without success yet, I would like to know if anyone there knows / has
> a tutorial on how to install libssh in GAE
> I want to install libssh2 on GAE PHP FLEX to execute this php code on my
> page:
>  $connection = ssh2_connect('shell.example.com', 22);
> ssh2_auth_password($connection, 'username', 'password');
>
> $stream = ssh2_exec($connection, '/usr/local/bin/php -i');
> ?>
>
>
> And how i can run multiple runtimes (PHP + PYTHON3) in the same app ?,
> I'alredy tried to create a Custom Runtime and set the two (PHP and
> PYTHON3) in my app.yaml but give the error at the time of deploy saying
> that the command "runtime: " was declared twice.
>
> Thanks for anybody to answer.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/940a5984-0bf1-4034-963d-0ce6b4d1ccfb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Stewart Reichling | Product Manager, Serverless | stewa...@google.com |
 650.906.3381

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADAgkGbEykt4W8QCzB2N6N%2B61s%3Dp1t7ieCnx6umMPhPcUoHRTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-27 Thread 'Stewart Reichling' via Google App Engine
Thanks for the feedback. It would be helpful to understand the use case
because the "magic" default credentials *should* work.

On Thu, Sep 27, 2018 at 10:27 AM Eric G  wrote:

> It was more a question because the documentation was unclear for 2nd
> generation standard GAE environments.
> I have no problem using an explicit credentials file - in fact I prefer
> that to the magic of default credentials, and using the GCE metadata
> service involves an extra network hop if I'm not mistaken.
>
> On Tuesday, September 25, 2018 at 4:50:57 PM UTC-4, Stewart Reichling
> wrote:
>>
>> Hi Eric -- can you follow up with more details about your use case?
>>
>> On Tuesday, September 18, 2018 at 10:02:24 AM UTC-7, Eric G wrote:
>>>
>>> Thanks!  I think I will stick with using an explicit service account
>>> json file, but it's good to know this route works.
>>>
>>> On Monday, September 17, 2018 at 3:43:43 PM UTC-4, David (Google Cloud
>>> Support) wrote:

 Python 3.7 on App Engine standard provides the GCE metadata service, so
 as an alternative, you could use Compute Engine Credentials
 .
 I will inform our documentation team to update this document since it is
 outdated and it does not include App Engine Standard Second Generation as
 one of the platforms where you could use these credentials.

>>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/e46520e4-b680-422b-baec-6b983145043b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Stewart Reichling | Product Manager, Serverless | stewa...@google.com |
 650.906.3381

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADAgkGYPgY-AOeWH7LQoON_i9Xf1%2Bsa3-C8G88miwS9%3Dr5oGGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] This morning, I couldn't deploy AppEngine Flex - Failed to complete within deadline. Task was cancelled

2018-09-27 Thread Suttiwat Youngklai

Hi All:

This morning (10.40am GMT+7 Timezone), when I perform AppEngine Flex deploy 
new code of software,  I've got the error below , so I can't deploy the new 
version.Are there anyone encounter this kind of problem?   Please 
suggest the solution.  Thanks, 

PS:  Yesterday, I can deploy it as usual. So don't know why this happen ?


[INFO] GCLOUD: 
..failed.
 

[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Could not 
get clean deployment: "ZeusDeploymentError("Failed to delete deployment: 
TemporaryError('TEMPORARY_ERROR: Failed to complete within deadline. Task 
was cancelled.', 'TEMPORARY_ERROR')",)" [INFO] 
 

[INFO] BUILD FAILURE [INFO] 
 

[INFO] Total time: 02:49 min 
[INFO] Finished at: 2018-09-27T10:43:19+07:00 
[INFO] Final Memory: 31M/520M [INFO] 


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ea282651-5b11-49bb-b38d-1fc7cba9367a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] php with app engine

2018-09-27 Thread shafeekrahul123
Hi friends, I want to know can we upload multiple php file to one project 
in Google app engine? Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cfa3e012-e624-44b9-969e-8556f3adf21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How export BiqQuery data to google Storage bucket either using with API or Java SDK automatically ?

2018-09-27 Thread vitaly . tarasiuk
Hi all,
Working with app engine 1.9.37 with java8 , we are using BiqQuery , is it 
possibly to export to Storage bucket cloud name ""  the data/tables 
either with API CRON.xml or with java SDK ?

Our mission is to do it automatically.

Is it possible ? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2d505a42-ad95-48e9-b521-fe0e7a4954ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How To Install libssh2 on PHP runtime

2018-09-27 Thread cdanet2017
Hi Everyone, Since yesterday I'm trying and searching how to install the 
extension libssh2 in GAE
But without success yet, I would like to know if anyone there knows / has a 
tutorial on how to install libssh in GAE
I want to install libssh2 on GAE PHP FLEX to execute this php code on my 
page:



And how i can run multiple runtimes (PHP + PYTHON3) in the same app ?, 
I'alredy tried to create a Custom Runtime and set the two (PHP and PYTHON3) 
in my app.yaml but give the error at the time of deploy saying that the 
command "runtime: " was declared twice.

Thanks for anybody to answer.



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/940a5984-0bf1-4034-963d-0ce6b4d1ccfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Java heap dump in Google App engine standard environment?

2018-09-27 Thread Kishu Agarwal


I have an Java application running on Google App Engine Standard 
Environment for which I want to analyse memory usage by taking heap dump.

Are there any tools which can help in this task?

I know of *HotSpotDiagnosticMXBean* which can do this, but it will write 
the file to the local filesystem which I don't have access to on app 
engine. Is there any way to stream the dump to cloud storage?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ec0bc68c-16c2-40b9-8f9b-b175767079c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Profiling python on GAE flex

2018-09-27 Thread Neil Ghosh
Has anyone tried profiling a service in python GAE flex? The cloud profiler 
is not available yet for python.

pyflame needs ptracing to be enabled inside docker and cProfile does not 
seem to be profiling across process. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6df5926b-4604-4b03-968d-48bf52f858c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cloud Tasks Api for Appengine flex

2018-09-27 Thread Joshua Lyon
I just noticed that my App Engine (Standard) Task Queue admin interface is 
now redirecting me to a new Cloud Tasks section in the GCP console. I did a 
quick search and didn't see any announcements in the Google Cloud Blog, but 
I noticed that there's a Cloud Tasks product page indicating that the 
product is now in beta. So it looks like they are moving it out of alpha 
and into public beta.

https://cloud.google.com/tasks/

[image: chrome_2018-09-26_17-03-37.png]

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b798496b-796e-45cc-a427-ddcca56e9598%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Custom Domain much slower than $PROJECT_ID.appspot.com

2018-09-27 Thread Skillful
Same thing here, will they never fix it??

My service is running in São Paulo.

Em quinta-feira, 9 de agosto de 2018 10:41:52 UTC-3, James Kozianski 
escreveu:
>
> Hi,
>
> I've set up a custom domain for my service and I find that when accessing 
> the service via that domain it is significantly slower than accessing it 
> via its $PROJECT_ID.appspot.com address. I have determined that it's not 
> an issue with DNS as the difference in latency is still there when using 
> the resolved IP addresses directly.
>
> The slowdown is very noticeable: it varies from 2x to 10x slower on the 
> custom domain, and the delay occurs in the period between the connection 
> being established and the first byte being sent.
>
> Also note my app engine service is running in Sydney.
>
> Is it possible I've misconfigured something? My DNS is CNAMEd to 
> ghs.googlehosted.com, but it seems to me that using custom domains for 
> routing is simply really slow. Is there anything I can do to improve the 
> latency here?
>
> Cheers,
> James
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/df0bdab9-17b3-4825-8643-49890aba91fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] [Error: Server Error] GAE Nodejs8 Standard. Upgrade to Nuxtjs@2.0.0 and deployment fails (could be unrelated)

2018-09-27 Thread David Davis


[image: Screen Shot 2018-09-26 at 3.35.02 PM.png]
I've been building and deploying on Nodejs8 standard and everything was ok 
untill today when I upgraded from Nuxtjs 1.4.x to 2.0. Everything works 
fine locally but upon deploying am getting this 500 error. According to 
these 
docs 
https://cloud.google.com/error-reporting/docs/setup/app-engine-standard-environment
 
the nodejs8 environement doesn't allow error reporting. I see this in the 
console. Honestly confused how Im supposed to debug and proceed without any 
sort of error reporting. Please advise if anyone knows what to do.

Project ID
agency-215614
Project number
885488244632

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e4da13a3-ced1-4e24-b5b4-63acf4586c46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App engine standard java8 - how to add health check for instances?

2018-09-27 Thread Roman Mašek


Is it possible to implement a custom health-check for instances in App 
Engine Standard? I tried to configure liveness-check and readiness-check, 
but these seem to be supported only in flex environment.

The reason I would like to do this is that recently we ran into following 
issue several times: because of a bug, one of the instances stopped 
responding successfully to requests, always returning HTTP status 500. This 
instance has been then kept alive and accessible for hours, leading to 
intermittent failures for our customers.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/05894c88-d61f-4930-8da9-8cc13a09900e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Java heap dump in Google App engine standard environment?

2018-09-27 Thread Kishu Agarwal


I have an Java application running on Google App Engine Standard 
Environment for which I want to analyse memory usage by taking heap dump.

Are there any tools which can help in this task?

I know of *HotSpotDiagnosticMXBean* which can do this, but it will write 
the file to the local filesystem which I don't have access to on app 
engine. Is there any way to stream the dump to cloud storage?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/12ac0c5e-a364-4f22-8129-854716daa3e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: 2nd Gen GAE Python 3.7 memory usage

2018-09-27 Thread Adam Lugowski
I'm using a Python profiler that appears to report resident size.

I understand what you're saying that there is more to memory usage than 
just the app. But I hope you can understand my frustration: AppEngine 
provides no tooling or metrics to help track down what is the root of a 
problem that is not reproducible anywhere else. Maybe Googlers have some 
internal metrics and/or profiling tools, because clearly the runtime is 
monitoring memory usage.

Even something as simple as a plot of the app's memory usage over time 
would be useful. I can make changes to the app, monitor requests, and see 
which request is causing a spike.

As of now, it looks like I'm just supposed to guess if the issue lies in 
the app, the kernel, memory mappings, or other bits and pieces.

On Thursday, September 20, 2018 at 4:44:46 PM UTC-7, Phillip Pearson wrote:
>
> Hi Adam,
>
> How are you measuring memory usage locally?  If you're looking at the 
> resident size (RSS in ps, RES in top), that's only a subset of the actual 
> memory used by your application, so you should expect the memory usage 
> reported in the App Engine console to be higher than what you see locally 
> -- it includes kernel memory specific to your app, mapped file data, and 
> some other bits and pieces.
>
> As for the entrypoint line, we haven't advertised this usage too widely 
> because we hope the defaults will work for most people -- and just in case 
> we come up with a better way to do it :)
>
> Cheers,
> Phil
>
> On Thu, Sep 20, 2018 at 2:12 PM Adam Lugowski  > wrote:
>
>> Thanks for the suggestions, Phillip.
>>
>> Yes the memory is as expected. This was never in doubt, the out-of-memory 
>> message says both usage and the quota. The quota matches GAE_MEMORY_MB. The 
>> problem is why the usage is so high, not that the quota isn't changing.
>>
>> Thank you for the command to use. Google's docs didn't make it clear that 
>> this is how you control parallelism. After adding gunicorn to 
>> requirements.txt, the following now helps:
>>
>> entrypoint: gunicorn main:app --threads 4 --workers 1 -c 
>> /config/gunicorn.py
>>
>> It only solves half the problem. This now no longer crashes an F4. It 
>> does still crash an F2, with 270 MB usage. Locally it's still only 115MB.
>>
>>
>> On Monday, September 17, 2018 at 1:25:55 PM UTC-7, Phillip Pearson wrote:
>>>
>>> Hi Adam,
>>>
>>> Here's a few ideas for diagnosis:
>>>
>>> 1. Can you try printing or logging repr(os.environ) and checking for the 
>>> GAE_MEMORY_MB environment variable?  I just tried deploying a test app with 
>>> instance_class: F4 and service: xyz, and print(repr(os.environ)) gives me 
>>> something like this:
>>>
>>>   environ({'GAE_MEMORY_MB': '512', 'GAE_INSTANCE': ...etc etc...})
>>>
>>> The python37 runtime *should* start one worker if GAE_MEMORY_MB <= 128, 
>>> two if <= 256, four if <= 512, otherwise eight.
>>>
>>> If you see 'GAE_MEMORY_MB': '512' in there but anything other than four 
>>> workers starting up, I'm extremely interested in figuring out why :)  
>>> Likewise if you see anything other than 512 for an F4 instance.
>>>
>>> 2. Check that you're looking at the logs for the correct service -- make 
>>> sure you see "GAE Application, xyz" and not "GAE Application, Default 
>>> Service" or just "GAE Application" (which combines logs from all services) 
>>> in the logs viewer.
>>>
>>> 3. Once you've done those two, if nothing sticks out, you can manually 
>>> configure the worker count by adding a line like this to app.yaml:
>>>
>>>   entrypoint: gunicorn main:app --workers 2 -c /config/gunicorn.py
>>>
>>> This will start up two workers.  You can also configure the number of 
>>> threads per worker:
>>>
>>>   entrypoint: gunicorn main:app --threads 8 --workers 2 -c 
>>> /config/gunicorn.py
>>>
>>> (The default if you just using 'gunicorn main:app -c 
>>> /config/gunicorn.py' is four workers with four threads each.)
>>>
>>> Cheers,
>>> Phil
>>>
>>> On Monday, September 17, 2018 at 10:30:06 AM UTC-7, Adam Lugowski wrote:

 Hi Rahul,

 I'm not manually configuring workers. Happy to learn of how to do that. 
 My app.yaml is simple:

 runtime: python37
 service : xyz

 inbound_services:
 - warmup

 instance_class: F4

 handlers:
 

 On Sunday, September 16, 2018 at 6:59:38 AM UTC-7, rah...@google.com 
 wrote:
>
> Hello Adam,
>   Could you paste your app.yaml? Are you explicitly configuring the 
> number of workers?
> Thanks,
> ~Rahul.
>
>
> On Friday, September 14, 2018 at 3:47:41 PM UTC-7, Adam Lugowski wrote:
>>
>> The only theory I have is informed by these log messages on startup:
>>
>> A  [2018-09-14 19:28:38 +] [1] [INFO] Starting gunicorn 19.9.0 
>> A  [2018-09-14 19:28:38 +] [1] [INFO] Listening at: 
>> http://0.0.0.0:8080 (1) 
>> A  [2018-09-14 19:28:38 +] [1] [INFO] Using worker: threads 
>> A  [2018-09-14 19:28:38 

[google-appengine] Re: Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-27 Thread Eric G
It was more a question because the documentation was unclear for 2nd 
generation standard GAE environments.  
I have no problem using an explicit credentials file - in fact I prefer 
that to the magic of default credentials, and using the GCE metadata 
service involves an extra network hop if I'm not mistaken.

On Tuesday, September 25, 2018 at 4:50:57 PM UTC-4, Stewart Reichling wrote:
>
> Hi Eric -- can you follow up with more details about your use case?
>
> On Tuesday, September 18, 2018 at 10:02:24 AM UTC-7, Eric G wrote:
>>
>> Thanks!  I think I will stick with using an explicit service account json 
>> file, but it's good to know this route works.
>>
>> On Monday, September 17, 2018 at 3:43:43 PM UTC-4, David (Google Cloud 
>> Support) wrote:
>>>
>>> Python 3.7 on App Engine standard provides the GCE metadata service, so 
>>> as an alternative, you could use Compute Engine Credentials 
>>> .
>>>  
>>> I will inform our documentation team to update this document since it is 
>>> outdated and it does not include App Engine Standard Second Generation as 
>>> one of the platforms where you could use these credentials.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e46520e4-b680-422b-baec-6b983145043b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Why I (can not) choose AppEngine Flexible

2018-09-27 Thread 'David (Google Cloud Support)' via Google App Engine
Hello Henderson,

I answered you in your other thread. 


On Tuesday, September 25, 2018 at 11:36:28 PM UTC-4, Handerson Contreras 
wrote:
>
> Hey Steren
>
> How much time takes to enable the Cloud task api after fill in the form?
>
> I already filled but i haven't received news
>
> I am getting this error:
>
> google.api_core.exceptions.PermissionDenied: 403 Cloud Tasks API has not 
> been used in project  before or it is disabled
>
> I suppous the cause is because is not enabled yet, but i enabled it from 
> here 
> https://console.cloud.google.com/apis/api/tasks.googleapis.com/overview?project=myprojectid
>  
>
> Or do you have an idea what could be the problem?
>
> Thanks 
>
> On Monday, November 20, 2017 at 8:06:42 PM UTC-6, Steren Giannini wrote:
>>
>> Thanks for the detailed feedback. We value it a lot and it helps us 
>> orient the direction of our products.
>>
>> Regarding managed services: A new API, currently in Alpha, called "Cloud 
>> Tasks API" allows you to submit push tasks from App Engine Flex.
>> Get whitelisted by filling this form: https://goo.gl/Ya0AZd
>>
>> Thanks,
>>
>> Steren
>> Product Manager 
>> Google Cloud Platform
>>
>> On Saturday, November 18, 2017 at 12:11:32 AM UTC-8, Attila-Mihaly Balazs 
>> wrote:
>>>
>>> Hello all,
>>>
>>> I would like to kick off this discussion because I think the Google 
>>> AppEngine team is missing an opportunity to differentiate themselves from 
>>> the competitors.
>>>
>>> First, a quick rundown of why I've chosen AppEngine many years ago and 
>>> why I continue to use/recommend it:
>>>
>>> - the free tier (important to try stuff out)
>>> - managed services (like Memcache, Datastore, Taskqueues, CloudSQL)
>>> - automatic scaling / failover
>>> - automatic patching / updating / tuning of the instances
>>>
>>> In short, I want to focus on delivering the solution to my stakeholders 
>>> and I don't have the time to become ops (even though ops is very 
>>> important). Also, I have confidence in the world-class ops team at Google 
>>> that they will keep my app secure and well-performing.
>>>
>>> Of course this is not to say that everything is rosy. One big painpoint 
>>> was/is the lag of updating the runtimes (only recently did we get Java 8 - 
>>> god knows when we'll get Java 9 - and Python 3 isn't even discussed - even 
>>> though major libraries are dropping support for Python 2 soon). The other 
>>> one is the inability to "bring your own libraries" if they require native 
>>> code. And finally sometimes there is a general flakyness to AppEngine, but 
>>> that's just a fact of life when running on such a large distributed system.
>>>
>>> So the new AppEngine flex offering comes out which is basically "we run 
>>> your docker image using the autoscaler". Which is great, but looses many of 
>>> the advantages of AppEngine standard:
>>>
>>> - free tier? forget it
>>> - managed services? some yes, some no (like memcache), some in beta with 
>>> limitations (like taskqueue - I think you can't submit push tasks with 
>>> AppEngine Flex)
>>> - the big one for me: NO automatic updating / patching / tuning / 
>>> optimizing of your runtime environment (see the discussion at [1])
>>>
>>> So basically: I'm paying more (since AppEngine flex is more expensive) 
>>> and I get less performance (since Google engineers are not assisting me in 
>>> tuning Nginx / the JVM / etc inside my container) and I have to play ops by 
>>> following the security discussions for the different parts of my stack and 
>>> diligently rebuild/patch my containers.
>>>
>>> At this point I'm like: screw it, there is very little difference 
>>> between running a bunch of docker images on the Google Cloud vs any other 
>>> competitor.
>>>
>>> But this could be very easily be fixed:
>>>
>>> - offer a "no questions asked, here are $300 / month" tier on Google 
>>> Cloud which the user can spend on anything (including running AppEngine 
>>> flex instances, CloudSQL instances, etc). It could even be $10 / day to 
>>> avoid the "because of a bug I just used up my monthly allowance" kind of 
>>> situations
>>> - allow flexible environments to scale down to 0 instances. The "it's 
>>> slow to start up" seem bull, since a docker container is just like a 
>>> process - isolated using namespaces, cgroups, etc. So it's not like you 
>>> have to boot a VM to serve the first request
>>> - have an official base image (based on Debian for example) and say: as 
>>> long as your docker images are derived "FROM 
>>> google-appengine-flex-base:latest", we promise to update/tune the 
>>> underlying packages and apply it to your instances without you having to do 
>>> anything
>>> - commit to provide complete access to all the Google Cloud Services in 
>>> a select number of programming languages (lets say C/C++ / Java - which 
>>> covers the JVM languages / C# - covering the .NET languages / Python 3 / 
>>> PHP - and the other 

[google-appengine] Re: Cloud Tasks Api for Appengine flex

2018-09-27 Thread 'David (Google Cloud Support)' via Google App Engine


The fact that you need to be whitelisted is most likely the cause of this 
error. The reason you have not been whitelisted yet might be because the 
beta version of Cloud Tasks API will be released soon and it will be 
visible in the Cloud Console so there won’t be any whitelisting process 
anymore. You may have to wait until it is released which should occur 
within the next week.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cea78c28-7796-4902-a132-be374789d7ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.