[google-appengine] Re: GCS Authentication issue

2019-07-13 Thread 'Diogo Almeida' via Google App Engine
By removing the content_type argument 
,
 
Cloud Storage defaults to the type binary/octet-stream when it serves the 
object. 

In regards to Python 3.7, as per the documents [1] 

[2] 

 
the Cloud Storage library is supported. However, I could not find how to 
zip multiple file in the documents. I suggest you take a look here 
 and/or open a 
thread on Stack Overflow where other developers could provide some 
strategies on how to accomplish that.


On Thursday, July 4, 2019 at 7:58:03 PM UTC-4, Kyle Chessman wrote:
>
> I fixed this issue by removing the content_type argument in the open call. 
> I'm not sure if this could cause any side effects but our task queue for 
> zipping files cleared up with no problems.
>
> We want to migrate to Python 3 in the future but the App Engine Cloud 
> Storage library doesn't support Python 3 nor does it seem like it ever will 
> ( https://github.com/GoogleCloudPlatform/appengine-gcs-client/issues/78 ). 
> I wonder if zipping multiple files like this is still possible using the 
> newer google-cloud-storage library.
>
> On Thursday, 4 July 2019 17:18:14 UTC-4, Kyle Chessman wrote:
>>
>> I've been having the same problem since June 28. All other GCS operations 
>> have been continuing just fine.
>>
>> On Thursday, 27 June 2019 22:59:09 UTC-4, Friso Kluit wrote:
>>>
>>> Using App Engine Python 2.7 Standard
>>>
>>> Since about two hours, my operation to create a zip file on GCS is 
>>> failing. Before this, it was working fine. 
>>> The following line 
>>>
>>> import cloudstorage as gcs
>>> ...
>>> with gcs.open(new_zf.gcs_filename, 'w', content_type=b'multipart/x-zip',
>>>   options={b'x-goog-acl': b'public-read', 
>>> b'cache-control': b'private, max-age=0, no-cache'}) as nzf:
>>>
>>> triggers this error
>>>
>>> InvalidAuthenticationThe provided 
>>> authentication header is invalid.Cannot use OAuth 
>>> Authorization header with form POST.". Extra info: None.
>>>
>>> I have tried to change permissions on my roles on GCS from Storage 
>>> Legacy Owner to Storage Admin
>>>
>>> but I get a 'Sorry, there’s a problem. If you entered information, 
>>> check it and try again. Otherwise, the problem might clear up on its own, 
>>> so check back later.'  error
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/660953b6-03b8-464a-82c4-23f5e33f7013%40googlegroups.com.


[google-appengine] Re: Flask App fails to deploy into GCP as an App Engine Flex project

2019-08-08 Thread 'Diogo Almeida' via Google App Engine
Please note that Google Groups is reserved for general product discussions 
and not for reporting issues. Issue Tracker should be used to report Google 
Cloud Platform-end issues and feature requests [1 

]. 

The issue you report here has already been addressed in these threads [2 
][3 
][4 
]. It is a known issue 
and you will find some troubleshooting steps you can use to resolve it in 
the threads.

That said, if you still cannot resolve this issue, I recommend that you 
report it in the Issue Tracker. In that case, please deploy the app using 
the “gcloud app deploy” command with the “--verbosity=debug” and “gcloud 
info” with --anonymize parameter enabled to provide us the stack trace and 
additional information about the current gcloud environment so that we will 
be able to investigate the issue root cause in the Issue Tracker thread.


On Thursday, August 8, 2019 at 1:45:12 PM UTC-4, Maksims Kompanijecs wrote:
>
> Hi,
>
> Trying to deploy my Flask App into GCP using App Engine Flex environment. 
> Deployment fails every single time and the following error message is 
> displayed
>
> *GCLOUD: 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 'readiness_check' section.*
>
> *OR*
>
> *ERROR: (gcloud.app.deploy) Error Response: [4] Timed out waiting for the 
> app infrastructure to become healthy.*
>
> I have tried to do the following:
>
>
>1. Updated Cloud SDK to the latest version - *gcloud components update*
>2. Increased memory allocation manually *memory_gb: 2*
>3. Adjusting '*app_start_timeout_sec*' from default 300 to 600 seconds 
>4. Disable health checks *gcloud app update --no-split-health-check*
>
>
> *app.yaml*
>
> runtime: python
> env: flex
>
> handlers:
> - url: /.*
>   script: main.py
>
> runtime_config:
>   python_version: 3
>
> resources:
>   cpu: 2
>   memory_gb: 2
>   disk_size_gb: 10
>
> readiness_check:
>   path: "/readiness_check"
>   check_interval_sec: 5
>   timeout_sec: 4
>   failure_threshold: 2
>   success_threshold: 2
>   app_start_timeout_sec: 300
>
>
>
>
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/aecfa0d1-1cbd-457a-83f6-ae63b3b0da02%40googlegroups.com.


[google-appengine] Re: Verification Failed

2019-08-14 Thread 'Diogo Almeida' via Google App Engine
Please make sure you are following the instructions of this document 
 to determine the 
namespace. If it still does not work I recommend you file a case with us so 
that we can take a look at your project and determine the reason why it 
fails.

Note that Groups is intended only for discussions about the Google Cloud 
Platform products. For issues like the one you reported here, you will need 
to file a new case .

On Wednesday, August 14, 2019 at 2:09:26 PM UTC-4, Tech Team Arcadia wrote:
>
> I have registered my domain on goDaddy's platform. I'm using Google Cloud 
> to host my website. We've changed the nameservers in goDaddy with the 
> google cloud server names. I'm unable to complete verification process on 
> google cloud. How do I do it?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/12548f9a-a44f-4e3a-bc44-a34fd54141fd%40googlegroups.com.


[google-appengine] Re: Embed Bokeh Server in Flask App

2019-08-14 Thread 'Diogo Almeida' via Google App Engine
Have you tried to use forwarded_ports 

 
in your app.yaml file to configure multiple ports? Multiple app.yaml files 
 
should be used when you want to deploy multiple versions of the same 
application. 

In regards to the need of opening the port 5006 or coding inquiries, it is 
recommended that you open a thread on Stack Overflow where the community of 
developers will be able to help you properly configure app.yaml to work 
with Bokeh server. Google Groups 
 is dedicated to 
discussions about Google products like service status updates and release 
notes [3].

On Wednesday, August 14, 2019 at 2:09:26 PM UTC-4, Bryce Chudomelka wrote:
>
> Hello Everyone,
>
> I am trying to create a canonical example for embedding a Bokeh Server in 
> a Flask App using Google App Engine. I am having connectivity issues I 
> believe because I do not understand how to properly configure the app.yaml 
> for multiple .py files and utilizing different ports. I am attaching my 
> GitHub Repo for reference. Does there need to be only one yaml file? Should 
> I open the port 5006 so that the main.py (Flask App) can access the bokeh 
> server?
>
> GitHub: MLCDashboard 
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c458f8f9-a219-40a5-890f-566e6e272e6b%40googlegroups.com.


Re: [google-appengine] appspot being used for phishing

2019-08-16 Thread 'Diogo Almeida' via Google App Engine
Thank you for reporting the issue. As this issue has been reported on 
5/14/15, I flagged it again to the product engineering team using the form 
.

On Friday, August 16, 2019 at 9:19:23 PM UTC-4, Ron Krause wrote:
>
> Some of this is being sent from the Bahamas...….here's the address listed 
> but it's probably bogusI'm getting 20-40 messages a day from 
> appspot…...this is a copy of a message from Microsoft when trying to go to 
> the actual web site"The site owner has blocked Bing from crawling the 
> page and hence we are not able to show you a description. If you know the 
> site owners, let them know that ‘your website robots.txt is blocking Bing 
> crawler and Bing cannot create a useful description in search results’. 
> "...……..these last couple of messages are coming from the Bahamas...…   
> Donatelco Inc 
>   
> 
> 
>   303 Shirley Street 
>   
> 
> 
>Nassasu Bahamas
>
> On Thursday, May 14, 2015 at 3:21:49 PM UTC-7, joshuamo wrote:
>>
>> Thanks for reporting this issue!  In the future, you can use this form to 
>> report abusive projects for App Engine or other Cloud Platform products: 
>> https://support.google.com/code/contact/cloud_platform_report
>>
>> I've done so for this instance, and will escalate the issue internally to 
>> ensure quick visibility.
>>
>> Cheers,
>> Josh
>>
>> On Thu, May 7, 2015 at 3:50 PM, Kevin Hemminger  
>> wrote:
>>
>>> I have no idea where to report this, so I'm posting it here.
>>>
>>> http://loggedoutsession.appspot.com/
>>>
>>> That URL is being used to phish for twitter login details. Please shut 
>>> it down, thanks.
>>>
>>> -- 
>>> 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-a...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/640ea842-3ccd-456e-8d72-f64edc308495%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> Josh Moore |  Cloud Solutions Engineer |  josh...@google.com |  
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c686776f-79b4-4049-a9dd-fa9d38048a93%40googlegroups.com.


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

2019-08-21 Thread 'Diogo Almeida' via Google App Engine
Hello Adam,

As commented by George, it is recommend to add a comment on the issue 
tracker so that the product team will know how many more App Engine users 
are being impacted by this issue.

I see that the product team is actively working on this issue and updates 
will be posted in the issue tracker as soon as they have concrete progress 
towards the resolution.


On Wednesday, August 21, 2019 at 8:09:53 AM UTC-4, Adam Weaver wrote:
>
> Hmmm I dont think it will ever resolve. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6aa2249d-70c9-499b-a2c5-b4302747107b%40googlegroups.com.


[google-appengine] Re: Appspot Spam

2019-08-21 Thread 'Diogo Almeida' via Google App Engine
Hello Stephen.

As informed here 
, it 
is recommended to report the spam you are receiving via the proper channel 
to the App Engine product team. Please use this form 
 to flag the 
issue and provide details about the spam you have received.


On Monday, August 19, 2019 at 1:23:59 PM UTC-4, Stephen Williams wrote:
>
> Myself and other Microsoft email users have been getting bombarded for 
> weeks now by spam emails, all ending with various sub domains of 
> appspot.com. Most days, I am getting dozens of these emails and it is 
> getting out of control. It is the  biggest bombardment of spam, I have ever 
> seen. 
>
> I reached out on Twitter to Google Cloud, who advised to post about the 
> issue here. 
>
> Please help as this is getting very frustrating.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f2cbe8f9-5734-43fe-ae13-8ffb3eddbf49%40googlegroups.com.


Re: [google-appengine] appspot being used for phishing

2019-08-21 Thread 'Diogo Almeida' via Google App Engine
Hello Stephen,

In case you haven’t, please use the form 
 to report 
the spam. The App Engine product team will be looking into it.


On Monday, August 19, 2019 at 1:24:07 PM UTC-4, Stephen Williams wrote:
>
> Am getting bombarded with appspot spam as well. It’s getting out of 
> control. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/25aef470-cdc6-4e5d-b701-028edd550849%40googlegroups.com.


[google-appengine] Re: Deploying Coursebuilder

2019-08-21 Thread 'Diogo Almeida' via Google App Engine
According to this video  on 
the Google Open Online Education Youtube channel (which is a bit outdated) 
you will need to use the App Engine project id (or app id) to deploy 
content using the Course Builder. The App Engine app id has this format: 
".appspot.com". 

According to the video, you would only need to use the “” part.

I recommend you check this document 

 
which will help you deploy an App Engine project to get the project id. 
Note that Google App Engine charges may apply but it comes with a free tier 
.

Note that this Google group is intended for discussions related to Google 
Cloud Platform App Engine only. If you would like to discuss about Course 
Builder, I recommend you post a new topic on this Course Builder Forum 
.


On Monday, August 19, 2019 at 12:58:29 PM UTC-4, Heather Finch wrote:
>
> Extremely new to all things related to building Open Online Education .
>
> I'm trying to deploy Coursebuilder. At the end of running windows_deploy.bat, 
> it asks for an App Engine Instance. What do I enter?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e0bc8d78-7d4e-4888-81e1-52a70431%40googlegroups.com.


Re: [google-appengine] Re: Source Code download from GAE Flex

2019-08-22 Thread 'Diogo Almeida' via Google App Engine
Have you tried to upload the files directly to a Cloud Storage bucket? Read 
here  how to do it 
using gsutil.

On Thursday, August 22, 2019 at 1:58:09 PM UTC-4, Sai M wrote:
>
> Yes Andrew , i think  your suggestion makes sense
> I got similar instructions from Google Support team as follows...
>
> 1.- Enter to App Engine > Instances
> 2.-Click on ssh option of the instance you need to explore.
> 3.- In the popup window type the command "docker ps" to list the docker 
> container.
> 4.- Write "docker exec -it CONTAINER_NAME bash" for access to the 
> container (for example gaeapp).
> 5.- Do click on the cogwheel and choose the option "Download file", then 
> write the full path of the file you need to download.
>
> I have exactly followed the above instructions and i am able to see my 
> source code in side the Container. But when i try to download , i always 
> get the error "No Such File" .
>
> For your reference, i have attached screenshots, 
> *ScreenShot-1* Shows the details .pwd as (/app) and file name i am 
> trying to down is (/package.json)
> *Screen Shot-2* shows the full path of the file i am trying to download..
> *Screenshot-3* shows the error of "No Such file" i am repeatedly getting 
> even though i think i am entering the correct file path.
>   
> As far as i know, i think i am in correct directory of Container and using 
> correct full path to download as you can see in the screenshots .  Pls. 
> suggest where i am going wrong.. 
>
> On Tue, 20 Aug 2019 at 18:25, 'Andrew Gorcester' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> As a workaround, may I suggest enabling debug mode and SSHing into a 
>> running instance to inspect the filesystem directly? You might be able to 
>> exfiltrate the code manually. 
>> https://cloud.google.com/appengine/docs/flexible/python/debugging-an-instance
>>
>> On Tue, Aug 20, 2019 at 10:16 AM 'Nicolas (Google Cloud Platform 
>> Support)' via Google App Engine  
>> wrote:
>>
>>> Hi Sai,
>>>
>>> It used to be possible to download your source code with the appcfg.py 
>>> tools but unfortunately this tool is now deprecated and it’s replacement, 
>>> the Cloud SDK   does not support 
>>> this feature.
>>> There is a feature request for this, and you can follow their progress 
>>> here , although there is no 
>>> ETA for when it will be implemented.
>>>
>>> On Monday, August 19, 2019 at 6:26:58 PM UTC-4, Sai M wrote:

 Hello,

 By accident i have lost the data on my personal laptop where i have 
 kept the Source code of the project i have deployed on Google App Flex.  
 Unfortunately i don't have the backup as it happened by accident when i 
 was 
 trying to upgrade my OS.

 The Project ID is..."smartcc".

 Can you pls. help on instructions of how to down load the latest 
 application source code deployed on Google App Flex env please.

 Thanks a ton in advance.

 Best Regards
 Sai

>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/e52822af-78fd-45dc-97d1-4a72915fe6ef%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/CANtYgFKkbxfDY6kXoXB_-E8n8HB_C_o1LM217PbYRXmTEoVhDg%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0b125507-de7c-4ac3-bb9b-3a38d513a359%40googlegroups.com.


[google-appengine] Re: AppEngine Dev, QA and production environments, how to manage them and and set it up?

2019-08-22 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
As per the document [1], the different development environments should be 
managed by setting up a different project for each environment. That said, 
you would manage the different environments with separate repositories and 
could use Cloud Source Repository and Cloud Build to deploy the code to App 
Engine.

I would recommend you explore the documentation of these two products:

1 - Cloud Source Repositories [2][3]: `Google Cloud Source Repositories 
provides Git version control to support collaborative development of an 
application or service, such as those that run on App Engine and Compute 
Engine`. You can automatically deploy an application stored in Cloud Source 
Repositories to App Engine when there is a new commit on your repository. 

2 - Cloud Build [4]: `Cloud Build can import source code from a variety of 
repositories or cloud storage spaces, execute a build to your 
specifications, and produce artifacts such as Docker containers or Java 
archives`.

I also recommend you take a look at this Youtube video [5] where you will 
see a hands-on presentation on how to use both products.

[1] 
https://cloud.google.com/appengine/docs/standard/go/creating-separate-dev-environments
[2] 
https://cloud.google.com/source-repositories/docs/quickstart-triggering-builds-with-source-repositories
[3] https://cloud.google.com/source-repositories/
[4] https://cloud.google.com/cloud-build/
[5] https://www.youtube.com/watch?v=yP9a5gDRUqY


On Thursday, August 22, 2019 at 8:03:33 PM UTC-4, Eduardo Moreira wrote:
>
> Hello Everyone
>
> We have a project that we would like to manage in the most professional 
> way, so we would like to have a DEV environment for developers to upload 
> the project and test in the AppEnginne environment, then we would like to 
> have a QA Environment, where we after the Devs are ok with the work, we 
> upload the project for customers and Selenium automated test to their part, 
> finally, when we are all happy, then we need to move the project into a 
> PRODUCTION environment which is the one where customer actually access the 
> final product.
>
> All we have found about this is the following:
>
> https://cloud.google.com/appengine/docs/standard/go/creating-separate-dev-environments
>
> But we have many questions, like what is the best way to setup this 
> environment, how to copy code from one environment to the other, for 
> example how do we move the code from DEV to QA. 
>
> Is there a course or a step by step video anyone can share with us? we 
> need some help with this.
>
> Thank you
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/76f925fc-0a89-4ea7-ba46-f7a44e32b6f7%40googlegroups.com.


[google-appengine] Re: native libraries with Java?

2019-08-25 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
It seems your Dockerfile is having issues to find the library in the path 
specified. Take a look at this 

 
Stack Overflow thread with a suggestion on how to resolve this error.


On Sunday, August 25, 2019 at 7:14:39 PM UTC-4, Dane Wallinga wrote:
>
> Thanks! So I've written my Dockerfile as follows:
>
> FROM jetty:9.4.18-jre11
> WORKDIR $JETTY_BASE
>
> RUN curl -SL 
> https://github.com/google/or-tools/releases/download/v7.3/or-tools_ubuntu-16.04_v7.3.7083.tar.gz
>  
> -o or-tools.tar.gz
> RUN tar -xvf or-tools.tar.gz
>
> ADD generate-program-0.1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
>
> RUN java 
> -Djava.library.path=$JETTY_BASE/or-tools_Ubuntu-16.04-64bit_v7.3.7083/lib 
> -jar $JETTY_HOME/start.jar --approve-all-licenses --create-startd 
> --add-to-start=jmx,stats,hawtio && chown -R jetty:jetty $JETTY_BASE
>
> But when I go to my servlet, I get the error:
>
> java.lang.UnsatisfiedLinkError: no jniortools in java.library.path: 
> [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
>
>
> For some reason the -Djava.libary.path flag doesn't seem to be working? I've 
> ssh-ed into the container, and the or-tools are extracted in the expected 
> location, so the path I'm specifying exists. Any idea what I'm doing wrong 
> here?
>
>
> Thanks
>
>
> On Monday, August 19, 2019 at 1:45:21 PM UTC-7, George (Cloud Platform 
> Support) wrote:
>>
>> Hello Dane, 
>>
>> You may try using a Flexible Environment Custom Runtime 
>> , 
>> and its Dockerfile to configure the environment and install OR-Tools. 
>> Success in installing OR-Tools depends on Dockerfile's own capabilities, as 
>> described on its documentation page 
>> . You may check 
>> related page Installing OR-Tools Java from Source on Linux 
>> . 
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/48cbc356-ee45-4a35-9fbf-c2d4acbaa33b%40googlegroups.com.


[google-appengine] Re: How do I calculate how much AppEngine is costing me?

2019-08-28 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
First off, note that your app.yaml settings use a deprecated version of Go (
1.9 ). 
You can now use versions 1.11 
 or 
1.12 .

The documents that go over the version 1.11 and 1.12 provide more details 
about what the app.yaml settings mean. However, note that not all of the 
app.yaml settings are directly related to parameters that are used in the 
calculator. Moreover, there are some parameters in the calculator that are 
not set in the app.yaml file: region for instance.

That said, note that resources are billed on a per-second basis with a 1 
minute minimum usage cost, which means that if you want to estimate the 
cost, you need to estimate how much of the resources your app will need to 
use and set it up accordingly. The cost for cores and memory per hour as 
well as persistent disk is explained here 
.

If you have any other questions about the calculator parameter I suggest 
you take a look at the document links provided in calculator (the ? button 
of each parameter).

On Wednesday, August 28, 2019 at 12:31:57 PM UTC-4, Jasmine Sultanah wrote:

> I am using this calculator
>
>
> https://cloud.google.com/products/calculator/#id=ce96468c-3b00-4dd6-920b-e838ab805265
>
> I have a version running with these spec
>
> runtime: go
> api_version: go1
> env: flexible
> threadsafe: true
> handlers:
>   - url: .*
> script: _go_app
> secure: always
> redirect_http_response_code: '301'
> automatic_scaling:
>   cool_down_period: 120s
>   min_num_instances: 2
>   max_num_instances: 20
>   cpu_utilization:
> target_utilization: 0.5
> network: {}
>
> How do I find out all the parameters to put into the appengine calculator?
> my Location is london, environment is flexible. but where do i find Cores 
> per hour, memory per hour and persistent disk?
>
> Thanks
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4a6c3cb5-35e2-4c08-a292-057948c24ee7%40googlegroups.com.


[google-appengine] Re: How to add new domain to app engine

2019-08-29 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
I just tested on my end and it seems that “projektecommerce.pl” is now 
mapping to your application.

Note that Google Groups is intended only for discussions about the Google 
Cloud Platform products. For issues like the one you reported here, in case 
additional investigation is needed, you will need to file a case instead 
[1].

[1] https://cloud.google.com/support-hub/


On Thursday, August 29, 2019 at 12:35:57 PM UTC-4, Szymon Ciba wrote:
>
> Im waiting, but i still can't open my domain projektecommerce.pl. How i 
> can add domain to service?
>
> W dniu środa, 28 sierpnia 2019 18:31:57 UTC+2 użytkownik Szymon Ciba 
> napisał:
>>
>> Hello,
>>
>> I have my engine app here:
>> http://inplitest.appspot.com/
>>
>> And i want to change my domain from inplitest.appspot.com to ,,
>> projektecommerce.pl" but i can't do this...
>>
>> Can you help me?
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/beb7d7f2-2a23-4c3d-993b-95b52ba905ea%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-08-29 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
Other than the parameter you are already using, I recommend you check how 
auto scaling services use dynamic instances 

 
and the parameter you can use in the app.yaml.

On Thursday, August 29, 2019 at 12:36:08 PM UTC-4, Harshit Dwivedi wrote:
>
> Thanks George for the explanation.
> Is there a way I can tweak the autoscaling params for my appengine flex 
> deployment?
>
> As far as I can see, it only allows me to modify the scaling based on the 
> CPU utilization.
>
> On Thu, Aug 29, 2019 at 4:46 AM 'George (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> Hello Harshit, 
>>
>> You seem to imply that downscaling depends strictly on CPU utilization 
>> levels. This is in fact not exactly the case, there are more factors 
>> involved; following policies may be adopted:
>>
>> - Average CPU utilization (not identical to target utilization)
>> - HTTP load balancing serving capacity, which can be based on either 
>> utilization or requests per second.
>> - Stackdriver Monitoring metrics. 
>>
>> Scaling algorithms are not easy to describe. One factor that comes to 
>> mind is historic in nature: CPU charge for a certain past period, for 
>> instance. You may find related detail in the Scaling characteristics 
>> 
>>  
>> sub-chapter of the "App Engine Flexible Environment for Users of App Engine 
>> Standard Environment", which refers to Autoscaling policy and target 
>> utilization .
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4d7b4fde-207d-4e4b-9743-c8b90c99a1cc%40googlegroups.com.


[google-appengine] Re: Is headless Chrome really available on App Engine/Cloud Functions?

2019-08-29 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
The link to the article “Introducing headless Chrome support in Cloud 
Functions and App Engine” is not working and I could not find it anywhere 
even though the link to it is here 
.
 
I inquired the blog administrators whether it will be republished and you 
can follow up on this issue tracker 
.

On Wednesday, August 28, 2019 at 11:34:53 PM UTC-4, Masataka Yakura wrote:
>
> Hello George,
>
> On Thursday, August 29, 2019 at 5:14:58 AM UTC+9, George (Cloud Platform 
> Support) wrote:
>>
>> Hello Masataka, 
>>
>> Headless Chrome is indeed available in Cloud Functions, you may check 
>> sub-chapter 
>> 
>>  
>> "Support for headless Chrome and additional system libraries" on "Cloud 
>> Functions serverless platform is generally available" page. You can easily 
>> convince yourself by creating a Cloud Function and importing Puppeteer. You 
>> may also read related material on the web, for instance "running 
>> puppeteer code in firebase cloud functions 
>> 
>> ". 
>>
>
> Thanks! That helps me a lot.
>
> What happened to the blog entry? Just curious. It's worth republishing. 
>
> Anyways. Thank you.
>
> Masataka
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1b721973-f623-444a-9648-6b0c6512fb95%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-08-30 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
In that case, you are already using all the app.yaml parameters 
<https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#automatic_scaling>
 
made available for the flexible environment.

On Friday, August 30, 2019 at 12:38:10 AM UTC-4, Harshit Dwivedi wrote:
>
> Thanks but this seems to be available only for the Standard environment.
> I'm currently using Appengine in the flex environment.
>
> On Fri, Aug 30, 2019, 7:21 AM 'Diogo Almeida' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> Other than the parameter you are already using, I recommend you check how 
>> auto scaling services use dynamic instances 
>> <https://cloud.google.com/appengine/docs/standard/go111/how-instances-are-managed>
>>  
>> and the parameter you can use in the app.yaml.
>>
>> On Thursday, August 29, 2019 at 12:36:08 PM UTC-4, Harshit Dwivedi wrote:
>>>
>>> Thanks George for the explanation.
>>> Is there a way I can tweak the autoscaling params for my appengine flex 
>>> deployment?
>>>
>>> As far as I can see, it only allows me to modify the scaling based on 
>>> the CPU utilization.
>>>
>>> On Thu, Aug 29, 2019 at 4:46 AM 'George (Cloud Platform Support)' via 
>>> Google App Engine  wrote:
>>>
>>>> Hello Harshit, 
>>>>
>>>> You seem to imply that downscaling depends strictly on CPU utilization 
>>>> levels. This is in fact not exactly the case, there are more factors 
>>>> involved; following policies may be adopted:
>>>>
>>>> - Average CPU utilization (not identical to target utilization)
>>>> - HTTP load balancing serving capacity, which can be based on either 
>>>> utilization or requests per second.
>>>> - Stackdriver Monitoring metrics. 
>>>>
>>>> Scaling algorithms are not easy to describe. One factor that comes to 
>>>> mind is historic in nature: CPU charge for a certain past period, for 
>>>> instance. You may find related detail in the Scaling characteristics 
>>>> <https://cloud.google.com/appengine/docs/flexible/python/flexible-for-standard-users#scaling_characteristics>
>>>>  
>>>> sub-chapter of the "App Engine Flexible Environment for Users of App 
>>>> Engine 
>>>> Standard Environment", which refers to Autoscaling policy and target 
>>>> utilization 
>>>> <https://cloud.google.com/compute/docs/autoscaler/#policies>.
>>>>
>>>> -- 
>>>> 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 view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/4d7b4fde-207d-4e4b-9743-c8b90c99a1cc%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/4d7b4fde-207d-4e4b-9743-c8b90c99a1cc%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/73df3297-2e5b-47a0-9b23-1f017e8c18d4%40googlegroups.com.


[google-appengine] Re: How do I calculate how much AppEngine is costing me?

2019-09-02 Thread &#x27;Diogo Almeida&#x27; via Google App Engine


For the sake of the calculator, the configuration you set in App Engine is 
what you are charged for, regardless of the effective usage.

For CPU (cpu parameter in app.yaml), you have set the scaling factor 
(target_utilization) which will determine when a new instance will spin up. 
That will determine the moment when you can consider that a new instance 
will be necessary to handle the application load. So, if you set the 
application to run with up to 2 cores, 2 cores will be charged, regardless 
of how much you make use of it. If your workload fits inside 1 CPU then you 
should not get any more CPUs than that to avoid spending more than 
necessary. The unit for the cost is core per hour, so you are charged per 
core that is running rather than % usage of the core being effectively 
used. The benefit of this format is that you are guaranteed to have at 
least the level of resources specified.

Note that App Engine Flex is a managed Compute Engine VM, which is charged 
per core per minute of VM running, not by usage [1] 
.

For memory (memory_gb), you also need to know how your application behaves 
in different scenarios or different memory settings. Therefore, whatever 
you consider appropriate and set will be charged. That said, it is a 
trade-off with performance and cost and you need to manually set the memory 
configuration so that your application has the best performance with the 
lowest cost you can get.

For persistent disk (disk_size_gb) you can consider the same principle as 
in memory usage. More details about the cpu, memory_gb and disk_size_gb 
settings here [2] 

.

In regards to CPU, its use is averaged across all running instances and is 
used to decide when to reduce or increase the number of instances [3] 

.

However, for the sake of monitoring the application resources usage, you 
can use the Stackdriver Monitoring to control for example the fraction of 
CPU utilization for all cores on a single App Engine flexible instance 
(flex/instance/cpu/utilization) and the total memory used by running 
instances (system/memory/usage) [4] 
.


On Thursday, August 29, 2019 at 12:35:57 PM UTC-4, Jasmine Sultanah wrote:
>
> Thanks Diogo. I have read all these links. My question is how do I find 
> out how many cores per hour i'm using, how much memory per hour and how 
> much persistent disk. the app is already running and I can see the 
> dashboards in AppEngine. For example in AppEngine, my memory usage is 
> 800MiB each minute,my instances remain at 2, CPU usage is about 5% (is this 
> CPU usage of combined CPU for two instances?), my write Disk bytes is 50KiB 
> a minute.  How do I translate this information into number of cores per 
> hour, persistent disk and memory per hour. thanks
>
> On Thursday, August 29, 2019 at 1:01:29 AM UTC+1, Diogo Almeida wrote:
>>
>> First off, note that your app.yaml settings use a deprecated version of 
>> Go (1.9 
>> ). 
>> You can now use versions 1.11 
>>  
>> or 1.12 
>> .
>>
>> The documents that go over the version 1.11 and 1.12 provide more details 
>> about what the app.yaml settings mean. However, note that not all of the 
>> app.yaml settings are directly related to parameters that are used in the 
>> calculator. Moreover, there are some parameters in the calculator that are 
>> not set in the app.yaml file: region for instance.
>>
>> That said, note that resources are billed on a per-second basis with a 1 
>> minute minimum usage cost, which means that if you want to estimate the 
>> cost, you need to estimate how much of the resources your app will need to 
>> use and set it up accordingly. The cost for cores and memory per hour as 
>> well as persistent disk is explained here 
>> 
>> .
>>
>> If you have any other questions about the calculator parameter I suggest 
>> you take a look at the document links provided in calculator (the ? button 
>> of each parameter).
>>
>> On Wednesday, August 28, 2019 at 12:31:57 PM UTC-4, Jasmine Sultanah 
>> wrote:
>>
>>> I am using this calculator
>>>
>>>
>>> https://cloud.google.com/products/calculator/#id=ce96468c-3b00-4dd6-920b-e838ab805265
>>>
>>> I have a version running with these spec
>>>
>>> runtime: go
>>> api_version: go1
>>> env: flexible
>>> threadsafe: true
>>> handlers:
>>>   - url: .*
>>> script: _go_app
>>> secure: always
>>> redirect_http_response_code: '301'
>>> automatic_scaling:
>>>   cool_down_period: 1

[google-appengine] Re: App Engine Console shows deprecation warning about Go upgrade, but why?

2019-09-02 Thread &#x27;Diogo Almeida&#x27; via Google App Engine


According to the Go “Release History” document, the Go language release 
policy determines that “each major Go release is supported until there are 
two newer major releases. For example, Go 1.5 was supported until the Go 
1.7 release, and Go 1.6 was supported until the Go 1.8 release” [1] 
. 

Currently, App Engine First Generation runtime supports Go version 1.11 [2] 
. According to the 
document “Google Cloud Platform Services Subject to the Deprecation Policy” 
[3] , App Engine support for a 
programming language version that is no longer publicly supported or 
receiving security updates from the organization maintaining that 
programming language is excluded from the App Engine deprecation policy [4] 
.

The Go 1.9 [5]  
deprecation was announced here [6] 
. That said, the 
message you received is not asking you to upgrade App Engine to the Second 
Generation but rather upgrade the Go runtime environment in the First 
Generation runtime from version 1.9 to 1.11 before October 1, 2019.

On Sunday, September 1, 2019 at 11:06:47 PM UTC-4, Kousuke Ebihara wrote:

> My app uses the first generation runtime of App Engine but a console of 
> the app shows the following errors.
>
> > A version of your app is using a deprecated version of Go. Please 
> upgrade before October 1, 2019
>
> I was shocked. Why?
>
> It means that we require to upgrade the first generation runtime to the 
> second generation runtime, but 
> https://cloud.google.com/appengine/docs/standard/runtimes says:
>
> > App Engine first generation runtime support
> > 
> > There are no plans to deprecate the App Engine first generation runtimes 
> at this time. The second generation runtimes represent the future direction 
> of App Engine; however, developers and customers using the first generation 
> runtimes will continue to receive support and feature updates.
>
> **There are no plans to deprecate the App Engine first generation runtimes 
> at this time***!! I believe this sentence and use the first generation 
> because the second generation doesn't provides some features which we need.
>
> Isn't this warning wrong? Is it is really?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6c9e1457-2380-4aa7-a19e-864cc0d47e96%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-09-03 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
You can use the App Engine custom runtime 
 to 
deploy an application in any language.

I did not find any documents about Angular 8, but as a starting point you 
could take a look at this tutorial for deploying Angular 6 

.

As not all use cases can be covered in the App Engine documents I recommend 
you take request development assistance on Stack Overflow 
,
 
where the community of developers will be able to help you with your 
Angular coding.

On Tuesday, September 3, 2019 at 8:54:41 AM UTC-4, chuda mani wrote:
>
> hi i need a suggestion , i have to deploy angular 8 application with 
> apache server in gcp app engine..is it possible?..if so please  forward any 
> reference documents..thank you
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0aebc9c1-910d-4eb8-9793-a8ce55fa0c93%40googlegroups.com.


[google-appengine] Re: Weak SSL/TLS Configuration

2019-09-03 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
You need to have the TLS 1.2 enforced and all the other TLS cyphers 
disabled on your app domain. If you have your application deployed on App 
Engine we can help with that. However, you will need to open a case with us 
either if you have free or paid support package [1][2], informing the 
project ID and impacted domain(s) so that we can handle this privately.

[1] https://cloud.google.com/support-hub/
[2] https://cloud.google.com/support/docs/

On Tuesday, September 3, 2019 at 9:54:17 AM UTC-4, Rajesh Gupta wrote:
>
> Hello,
>
> Recently, we got security review done by X company, and they pointed out 
> the weak server side SSL/TLS 
> The following tool was used.
> sslyze.exe --tlsv1 --tlsv1_1 --tlsv1_2 --hide_rejected_ciphers 
>
> Please see the output
>
> [image: image.png]
>
>
>
> Following was recommended
>
> The server-side TLS endpoint's configuration should be updated to allow 
> only TLSv1.2 connections with cipher suites that use:
> • Ephemeral Diffie-Hellman for key exchange (optionally, allow RSA for key 
> exchange if necessary for supporting some clients) 
> • Block ciphers with key lengths of at least 128 bits (AES-128 and 
> AES-256) 
> • Block ciphers in GCM mode. 
>
> What should be done from my end?
>
> - eng-team
> www.ServiceFolder.com
> *Field Service Software on Google Cloud Platform and Mobile*
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5e0e236e-ab7a-4a09-ab69-b5397b9b1a46%40googlegroups.com.


[google-appengine] Re: Need help understanding transactions in tasklets

2019-09-03 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
Note that post hooks do not check whether the RPC was successful. The hook 
runs regardless of failure that might have occurred due to issues, more 
specifically the contention 

 
which is when you attempt to write to a single entity group too quickly. 
Also note that it is normal that a small number of datastore operations 
will result in timeout in normal operation. Read more here 
 
about the most common datastore issues and here 
 how to 
avoid the contention.

In case you need any coding assistance, I suggest you post your inquiries 
on Stack Overflow where the community of developers are better prepared to 
assist you in that matter. Google Groups is oriented more towards general 
opinions, trends, and issues of general nature regarding Google Cloud 
Platform.

On Monday, September 2, 2019 at 11:17:01 AM UTC-4, Rob Curtis wrote:
>
> Hi,
>
> I have some code that queues up a task inside *_post_put_hook*. 
> The task retrieves the key and fetches the entity. However sometimes the 
> worker fails because the object for that key hasn't been created yet, but 
> will succeed when it next runs.
> Note that we're retrieving the object by key, so I expect the data to be 
> consistent.
>
> I want to understand WHY the object isn't available. I'm only calling the 
> enqueue on commit, but it seems this isn't always working.
> Below is the example code which does the committing of the entity.
>
>
> @ndb.synctasklet
> def log_usage(self):
>
> @ndb.transactional_tasklet(xg=True)
>
> def _txn():   
>
># some other stuff happens here, but trying to make this example as 
> simple as possible.
>yield Log.insert_document_log_async() 
>
>
>
> yield _txn()
>
>
>
> class Log(ndb.Expando):
>
>  @classmethod
>
> @ndb.tasklet
>
> def insert_document_log_async(cls):
>
> log = cls()
>
> logging.debug("insert document log in transaction: 
> {}".format(ndb.in_transaction()))
>
> yield log.put_async()
>
>
>
> @ndb.synctasklet
>
> def _post_put_hook(self, future):
>
>
> @ndb.synctasklet
>
> def _callback_on_commit():
>
> key = future.get_result()
>
> yield SqlTaskHelper.enqueue_syncronise_sql_model_async(key)
>
>
> logging.debug("_post_put_hook In transaction: 
> {}".format(ndb.in_transaction()))
>
> ndb.get_context().call_on_commit(lambda: _callback_on_commit())
>
>
>
>
>
>1. *log_usage *is called. 
>2. When calling *insert_document_log_async* logging indicates that 
>we're in a transaction (insert document log in transaction: *True*). 
>3. But the post put hook* _post_put_hook* In transaction: *False *(so 
>call_on_commit is executed immediately). The task runs shortly after an 
>occasional fails.
>
>
> Can someone please shed some light on where the problem is?
>
> Thanks
> Rob
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2a78bb0e-79a4-4e4e-97c4-1dd76a2fb6e3%40googlegroups.com.


Re: [google-appengine] Re: Need help understanding transactions in tasklets

2019-09-04 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
If an exception is detected by Datastore, it would be raised when the code 
calls get_result() 
<https://cloud.google.com/appengine/docs/standard/python/ndb/async#using>, 
so the key would not return. However, note that “all post- hooks have a 
Future argument at the end of the call signature. This Future object holds 
the result of the action. You can call get_result() on this Future to 
retrieve the result; you can be sure that get_result() won't block, since 
the Future is complete by the time the hook is called.” [1] 
<https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entity-models#using_model_hooks>
.

That said, in case you don’t have an exception, the future already has the 
result and get_result function is not blocking, occasionally failing to 
retrieve the key. Take a look at this <https://stackoverflow.com/a/15744244> 
Stack Overflow post with a suggestion to resolve an issue similar to your 
case.

On Tuesday, September 3, 2019 at 2:58:47 PM UTC-4, Rob Curtis wrote:
>
> Thanks Diogo,
> But that’s why we check get_result for the key. If the get_result failed 
> for the the future, the key wouldn’t be returned would it? 
>
>
> On Tue, 03 Sep 2019 at 20:28, 'Diogo Almeida' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> Note that post hooks do not check whether the RPC was successful. The 
>> hook runs regardless of failure that might have occurred due to issues, 
>> more specifically the contention 
>> <https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entity-models>
>>  
>> which is when you attempt to write to a single entity group too quickly. 
>> Also note that it is normal that a small number of datastore operations 
>> will result in timeout in normal operation. Read more here 
>> <https://cloud.google.com/appengine/articles/handling_datastore_errors> 
>> about the most common datastore issues and here 
>> <https://cloud.google.com/appengine/articles/scaling/contention> how to 
>> avoid the contention.
>>
>> In case you need any coding assistance, I suggest you post your inquiries 
>> on Stack Overflow where the community of developers are better prepared to 
>> assist you in that matter. Google Groups is oriented more towards general 
>> opinions, trends, and issues of general nature regarding Google Cloud 
>> Platform.
>>
>> On Monday, September 2, 2019 at 11:17:01 AM UTC-4, Rob Curtis wrote:
>>>
>>> Hi,
>>>
>>> I have some code that queues up a task inside *_post_put_hook*. 
>>> The task retrieves the key and fetches the entity. However sometimes the 
>>> worker fails because the object for that key hasn't been created yet, but 
>>> will succeed when it next runs.
>>> Note that we're retrieving the object by key, so I expect the data to be 
>>> consistent.
>>>
>>> I want to understand WHY the object isn't available. I'm only calling 
>>> the enqueue on commit, but it seems this isn't always working.
>>> Below is the example code which does the committing of the entity.
>>>
>>>
>>> @ndb.synctasklet
>>> def log_usage(self):
>>>
>>> @ndb.transactional_tasklet(xg=True)
>>>
>>> def _txn():   
>>>
>>># some other stuff happens here, but trying to make this example as 
>>> simple as possible.
>>>yield Log.insert_document_log_async() 
>>>
>>>
>>>
>>> yield _txn()
>>>
>>>
>>>
>>> class Log(ndb.Expando):
>>>
>>>  @classmethod
>>>
>>> @ndb.tasklet
>>>
>>> def insert_document_log_async(cls):
>>>
>>> log = cls()
>>>
>>> logging.debug("insert document log in transaction: 
>>> {}".format(ndb.in_transaction()))
>>>
>>> yield log.put_async()
>>>
>>>
>>>
>>> @ndb.synctasklet
>>>
>>> def _post_put_hook(self, future):
>>>
>>>
>>> @ndb.synctasklet
>>>
>>> def _callback_on_commit():
>>>
>>> key = future.get_result()
>>>
>>> yield SqlTaskHelper.enqueue_syncronise_sql_model_async(key)
>>>
>>>
>>> logging.debug("_post_put_hook In transaction: 
>>> {}".format(ndb.in_transaction()))
>>>
>>> ndb.get_context().call_on_commit(lambda: _callback_on_commit())
>>>
>>>
>>>
>>>
>>>
>>>1. 

Re: [google-appengine] Re: Weak SSL/TLS Configuration

2019-09-04 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
If you have not been able to file a case after setting up the role based 
support 
<https://cloud.google.com/support/docs/role-based-support#setting_up_your_support>,
 
I suggest you contact the Billing team 
<https://support.google.com/cloud/contact/cloud_platform_billing/> to make 
sure that everything is ok with your account. If no action is needed on 
their part, they will route the case to the technical support and we will 
be able to help you. I also recommend you check this 
<https://cloud.google.com/support/docs/> document which goes over how to 
get technical and billing support.

The issue tracker 
<https://cloud.google.com/support/docs/community#report_bugs_and_request_features>
 
isn’t the right support channel for this case either, as it is meant to 
report known issues and feature requests.

On Wednesday, September 4, 2019 at 4:03:08 AM UTC-4, Rajesh Gupta wrote:
>
> We are not able to open a case, based on the above links.  
> There is always a message saying about the 'organisation resource'.  The 
> organization is also enabled.  Tried several links and enabled 'role based' 
> account also.
> There is already a billing account attached with the project.
>
> Is a private issue tracker ok 
> https://issuetracker.google.com/issues/new 
>
> On Tue, Sep 3, 2019 at 8:55 PM 'Diogo Almeida' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> You need to have the TLS 1.2 enforced and all the other TLS cyphers 
>> disabled on your app domain. If you have your application deployed on App 
>> Engine we can help with that. However, you will need to open a case with us 
>> either if you have free or paid support package [1][2], informing the 
>> project ID and impacted domain(s) so that we can handle this privately.
>>
>> [1] https://cloud.google.com/support-hub/
>> [2] https://cloud.google.com/support/docs/
>>
>> On Tuesday, September 3, 2019 at 9:54:17 AM UTC-4, Rajesh Gupta wrote:
>>>
>>> Hello,
>>>
>>> Recently, we got security review done by X company, and they pointed out 
>>> the weak server side SSL/TLS 
>>> The following tool was used.
>>> sslyze.exe --tlsv1 --tlsv1_1 --tlsv1_2 --hide_rejected_ciphers 
>>>
>>> Please see the output
>>>
>>> [image: image.png]
>>>
>>>
>>>
>>> Following was recommended
>>>
>>> The server-side TLS endpoint's configuration should be updated to allow 
>>> only TLSv1.2 connections with cipher suites that use:
>>> • Ephemeral Diffie-Hellman for key exchange (optionally, allow RSA for 
>>> key exchange if necessary for supporting some clients) 
>>> • Block ciphers with key lengths of at least 128 bits (AES-128 and 
>>> AES-256) 
>>> • Block ciphers in GCM mode. 
>>>
>>> What should be done from my end?
>>>
>>> - eng-team
>>> www.ServiceFolder.com
>>> *Field Service Software on Google Cloud Platform and Mobile*
>>>
>>>
>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/5e0e236e-ab7a-4a09-ab69-b5397b9b1a46%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/5e0e236e-ab7a-4a09-ab69-b5397b9b1a46%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> eng-team
> www.ServiceFolder.com
> *Field Service Software on Google Cloud Platform and Mobile*
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d8342a8d-4f6f-45fa-9eb9-c7fc23a8d648%40googlegroups.com.


[google-appengine] Re: Access Compute Engine through internal ip address from App Engine

2019-09-04 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
Virtual Private Cloud (VPC) allows you to connect Compute Engine VMs with 
App Engine Flex apps via internal IPs subject to applicable network firewall 
rules .

I suggest you take a look at the VPC specifications 
, how to create 
 and use 
 the VPC networks.

On Monday, September 2, 2019 at 8:06:10 AM UTC-4, sujesh thekkepatt wrote:
>
> I have an app running in google app engine flexible environment. I also 
> have a compute engine instance running my queue service(docker). Currently, 
> I have exposed a public IP and through which I am connecting app engine and 
> the instance. But I need to use the internal IP address and need to 
> implement firewall rules. So whenever I use an internal IP address app 
> engine can't connect to it. Any help 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cfbac8dd-9520-4e33-8ee9-f02fabb7e34a%40googlegroups.com.


Re: [google-appengine] Re: Weak SSL/TLS Configuration

2019-09-04 Thread &#x27;Diogo Almeida&#x27; via Google App Engine
Hello Rajesh,

While you discuss with the Billing team anything that needs to be resolved 
in your account, I decided to open the following private issue tracker, so 
that we can work together with the App Engine product team to resolve your 
issue.

Please go to the issue tracker here 
<https://issuetracker.google.com/140496214> and provide the information I 
requested there.

Looking forward to your updates there.

On Wednesday, September 4, 2019 at 4:03:08 AM UTC-4, Rajesh Gupta wrote:
>
> We are not able to open a case, based on the above links.  
> There is always a message saying about the 'organisation resource'.  The 
> organization is also enabled.  Tried several links and enabled 'role based' 
> account also.
> There is already a billing account attached with the project.
>
> Is a private issue tracker ok 
> https://issuetracker.google.com/issues/new 
>
> On Tue, Sep 3, 2019 at 8:55 PM 'Diogo Almeida' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> You need to have the TLS 1.2 enforced and all the other TLS cyphers 
>> disabled on your app domain. If you have your application deployed on App 
>> Engine we can help with that. However, you will need to open a case with us 
>> either if you have free or paid support package [1][2], informing the 
>> project ID and impacted domain(s) so that we can handle this privately.
>>
>> [1] https://cloud.google.com/support-hub/
>> [2] https://cloud.google.com/support/docs/
>>
>> On Tuesday, September 3, 2019 at 9:54:17 AM UTC-4, Rajesh Gupta wrote:
>>>
>>> Hello,
>>>
>>> Recently, we got security review done by X company, and they pointed out 
>>> the weak server side SSL/TLS 
>>> The following tool was used.
>>> sslyze.exe --tlsv1 --tlsv1_1 --tlsv1_2 --hide_rejected_ciphers 
>>>
>>> Please see the output
>>>
>>> [image: image.png]
>>>
>>>
>>>
>>> Following was recommended
>>>
>>> The server-side TLS endpoint's configuration should be updated to allow 
>>> only TLSv1.2 connections with cipher suites that use:
>>> • Ephemeral Diffie-Hellman for key exchange (optionally, allow RSA for 
>>> key exchange if necessary for supporting some clients) 
>>> • Block ciphers with key lengths of at least 128 bits (AES-128 and 
>>> AES-256) 
>>> • Block ciphers in GCM mode. 
>>>
>>> What should be done from my end?
>>>
>>> - eng-team
>>> www.ServiceFolder.com
>>> *Field Service Software on Google Cloud Platform and Mobile*
>>>
>>>
>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/5e0e236e-ab7a-4a09-ab69-b5397b9b1a46%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/5e0e236e-ab7a-4a09-ab69-b5397b9b1a46%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> eng-team
> www.ServiceFolder.com
> *Field Service Software on Google Cloud Platform and Mobile*
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d2b1747a-7bf3-4517-9e6b-6ae3d7f8e96d%40googlegroups.com.