[google-appengine] Re: Auto scaling to basic scaling migrate

2022-05-18 Thread 'Jose Lorea Sanchez' via Google App Engine
Here is a post from “StackOverflow” that has similar characteristics. The 
user configures SECURE_SSL_REDIRECT and his App Engine has presented 
similar issues. The answer suggests adding a secure parameter 
 to the app.yaml file. Could 
you try this?

handlers:
- url: /*
  script: anyfile.py
  secure: always

On Tuesday, May 17, 2022 at 2:55:19 AM UTC-5 nikhilhem...@rakuten.com wrote:

> To update you I managed to get the root cause. Django settings.py has  
> SECURE_SSL_REDIRECT configuration. If I enable it(I must), I get above 
> issue,if I disable then the instance starts successfully. Do you have any 
> idea?
>
>
> On Saturday, May 14, 2022 at 8:12:47 AM UTC+9 Osvaldo Lopez Acuña wrote:
>
>> Were you able to change your App Engine settings the way Ernesto 
>> suggested?
>>
>> The issue ended on May 6, as you can see in the shared link, and App 
>> Engine was not affected.
>>
>>
>> On Thursday, May 12, 2022 at 10:46:30 PM UTC-5 nikhilhem...@rakuten.com 
>> wrote:
>>
>>> Any update on this?
>>>
>>>
>>> On Saturday, May 7, 2022 at 5:49:29 AM UTC+9 Ernesto Contreras Pinon 
>>> wrote:
>>>
 Yes, using the app.yaml file, you can set the type of scaling that is 
 used by your App Engine app. You can specifically see the reference 
 
  
 on how the scaling elements are to be syntactically added in your app.yaml 
 file. Since this file contains the specifications for the deployment of 
 your app, it would be the proper place to change the settings. 

 Have you recently encountered this issue? There is currently an 
 existing incident 
  that 
 is affecting multiple Google Cloud products which could be related to the 
 errors you are seeing.
 On Friday, May 6, 2022 at 2:36:23 AM UTC-5 nikhilhem...@rakuten.com 
 wrote:

> I was using autoscaling but it has 10 min request timeout,so I want to 
> change it to basic scaling.
> Does changing app.yaml will do the thing? or I need more settings.
> runtime: python39 service: dev-app instance_class: B1 basic_scaling: 
> max_instances: 10 idle_timeout: 10m
> I am getting error as
> The request failed because the instance could not start 
> successfullyProcess terminated because it failed to respond to the start 
> request with an HTTP status code of 200-299 or 404.
>


-- 
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/828d6daa-8802-45a4-9682-286836af7a16n%40googlegroups.com.


[google-appengine] Re: Google Cloud App Engine (GAE) Flexible: Load Balancer error: backend_connection_closed_before_data_sent_to_client

2022-05-18 Thread 'Andres Marquez Rodriguez' via Google App Engine


As per the error "backend_connection_closed_before_data_sent_to_client", 
the backend unexpectedly closed its connection to the load balancer before 
the response was proxied to the client. Please, follow this link for more 
information [1].

The GFE generates this HTTP response code[2] when the connection to the 
backend is dropped during a request.

It is usually caused because the keepalive configuration parameter for the 
web server software running on the backend instance is less than the fixed 
(10 minute) keepalive (HTTP idle) timeout of the GFE. There are some 
situations where the backend may close a connection too soon while the GFE 
is still sending the HTTP request.

The solution for this issue, is to configure the keepalive timeout 
parameter for your web server appropriately. (In short, set Keepalive to 
greater than 10 minutes, such as the recommended value of 620.)

For more information, see the reference Google documentation below in 
link[3][4].

If it keeps failing after you changed the timeout, I’d suggest you contact 
Support.

[1] 
https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring#:~:text=backend_connection_closed_before_data_sent_to_client

[2] 502s - "backend_connection_closed_before_data_sent_to_client" responses

[3] https://cloud.google.com/load-balancing/docs/https#timeouts_and_retries 
   

[4] 
https://cloud.google.com/load-balancing/docs/https#statusdetail_http_failure_messages
 

[5]  https://cloud.google.com/support


On Monday, May 16, 2022 at 2:06:47 AM UTC-5 46346...@gmail.com wrote:

> I have GAE flexible this app.yaml:
>
> # [START runtime]
> runtime: python
> env: flex
> entrypoint: gunicorn -b :$PORT **.wsgi
> 
> automatic_scaling:
>   min_num_instances: 2
>   max_num_instances: 2
> 
> beta_settings:
> cloud_sql_instances: **:europe-west6:***
> 
> runtime_config:
>   python_version: 3
> 
> handlers:
> - url: /.*
>   script: auto
>   secure: always
>   redirect_http_response_code: 301
> # [END runtime]
>
> [image: Screenshot 2022-05-14 130338.png]
> After standard instance weekly restarting 
> ,
>  
> I've seen some internal errors in logs and 502 errors on POST requests:
>
> {
>   "insertId": "2",
>   "jsonPayload": {...},
>   "timestamp": "2022-05-14T08:34:42.512018934Z",
>   "severity": "ERROR",
>   "logName": "projects//logs/compute.googleapis.com
> %2Fshielded_vm_integrity",
>   "receiveTimestamp": "2022-05-14T08:34:44.518408254Z"
> }
>
> and 
>
> {
>   "insertId": "***",
>   "jsonPayload": {
> "remoteIp": "**",
> "@type": "
> type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry",
> "statusDetails": 
> "backend_connection_closed_before_data_sent_to_client"
>   },
>   "httpRequest": {
> "requestMethod": "POST",
> "requestUrl": "https://*";,
> "requestSize": "2208",
> "status": 502,
> "responseSize": "451",
> "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) 
> Gecko/20100101 Firefox/100.0",
> "remoteIp": "***",
> "referer": "",
> "serverIp": ""
>   },
>   "resource": {
> "type": "http_load_balancer",
> "labels": {
>   "url_map_name": "",
>   "target_proxy_name": "",
>   "zone": "global",
>   "project_id": "",
>   "backend_service_name": "",
>   "forwarding_rule_name": ""
> }
>   },
>   "timestamp": "2022-05-14T08:36:28.064500Z",
>   "severity": "WARNING",
>   "logName": "projects//logs/requests",
>   "trace": "projects//traces/",
>   "receiveTimestamp": "2022-05-14T08:36:28.882230792Z",
>   "spanId": ""
> }
>
> Also I have some messages with
>
> /readiness_check failReason:"null"
>
> I've read Tuning NGINX behind Google Cloud Platform HTTP(S) Load Balancer 
> .
>  
> But as I understand it is related to GCE(not GAE). 
>
>  For the current app it is VERY important to handle every request, so I 
> want to be confident with fixing 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/70dff8d6-cf81-41ae-8815-489172f39727n%40googlegroups.com.


[google-appengine] Getting error during Billing

2022-05-18 Thread MySelf Luqman


[image: error.PNG]

I am trying to buy Google API but in the final step it shows me this error 
how I can solve this can anyone help me out I will be very thankful to 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/01109e07-66e2-423f-a3a5-339b7fa027a7n%40googlegroups.com.


[google-appengine] Re: Error: Cannot sign data without `client_email`.

2022-05-18 Thread 'Ernesto Contreras Pinon' via Google App Engine


You can review the relevant roles for Cloud Storage that allow you to 
download/upload/manage objects and buckets here 
.
 
Did your application start showing this error without any change in the 
configuration? Also, which language and client library are you using to 
access Cloud Storage?
On Tuesday, May 17, 2022 at 9:25:09 AM UTC-5 Maha Farhat wrote:

> I am running GAE Flexible environment that is set up to use the default 
> service account which has the Editor Role. 
>
> Since last week I have started facing the below issue when connecting to 
> GCS from GAE which results in the failure of the running process. 
>
> *Error: Cannot sign data without `client_email`.*
>
> How do I fix this? What permissions do I need to provide to my GAE service 
> account?
>

-- 
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/c349b872-def5-47f3-9260-d953864c411en%40googlegroups.com.