[google-appengine] Re: Brief Outage?

2022-09-14 Thread 'Osvaldo Lopez Acuña' via Google App Engine


HTTP 503 is a specific indicator on GAE standard for appservers being too 
busy (not enough clones to serve the request). This is also known as 
pushback. You need to allow more clones, reduce traffic, stay under quota, 
or change your spending limit.
On Tuesday, September 13, 2022 at 1:05:33 PM UTC-5 Joshua Smith wrote:

> Just got this a few times for one of my AppEngine services (using the old 
> Python2.7 runtime):
>
>
> It's cleared up now, and the cloud status dashboard shows all green checks.
>
> -Joshua
>
>

-- 
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/0483ea43-1ed5-4850-a284-78e4dfd25cffn%40googlegroups.com.


[google-appengine] Re: Local Development server when opening "Datastore Viewer"

2022-09-12 Thread Khaled Wagdy
Thank you very much =D! 340.0.0 worked indeed,

On Wednesday, August 31, 2022 at 2:37:59 PM UTC+2 limin...@gmail.com wrote:

> Had the same issue, but ver. 340.0.0 was proved fine.
>
> On Tuesday, August 16, 2022 at 12:37:15 AM UTC+9 khaled@gmail.com 
> wrote:
>
>> So I moved to ver. 270.0.0 indeed the problem has gone, which indicates 
>> that there was some string/unicode/ascii related update along the way that 
>> may have broken its ability to handle Unicode characters. I also tried 
>> versions 396, 383, 380 all had the same problem and error output. 
>>
>> If someone can look into this so that we can work with the latest Google 
>> Cloud CLI versions, it would be great!
>>
>> Have a nice day,
>> Khaled
>>
>> On Friday, August 12, 2022 at 11:56:30 PM UTC+2 Khaled Wagdy wrote:
>>
>>> Hello, 
>>>
>>> I am using Python 2.7 on AppEngine and Datastore. I moved my code & test 
>>> database file to another laptop, I also made a fresh install of gcloud 
>>> components, currently at version 397.0.0.
>>>
>>> Ever since then, trying to access local datastore viewer "
>>> http://localhost:8000/datastore?kind=" from the browser causes as 
>>> ascii error as seen in the screenshot below and server output. I have some 
>>> Arabic content in the DB, but on the old laptop which was running an old 
>>> gcloud components version (270.0.0) there was no problem browsing through 
>>> the entities.
>>>
>>> I will try to install the old version 270.0.0 using the command *gcloud 
>>> components update --version 270.0.0* and see if that resolves it. But I 
>>> would think working on the latest version is best in case something can be 
>>> fixed to resolve this matter.
>>>
>>> Has there been a breaking update in the local development server and/or 
>>> datastore emulator that might have been causing this issue? Is there a way 
>>> around this ascii error to be able to browse through the local DB entities 
>>> without problems? This is important during debugging, and can save a lot of 
>>> time.
>>>
>>> [image: Screen Shot 2022-08-12 at 18.02.18.png]ERROR2022-08-12 
>>> 16:05:04,764 webapp2.py:1553] 'ascii' codec can't encode characters in 
>>> position 0-3: ordinal not in range(128)
>>> Traceback (most recent call last):
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 1536, in __call__
>>> rv = self.handle_exception(request, response, e)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 1530, in __call__
>>> rv = self.router.dispatch(request, response)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 1278, in default_dispatcher
>>> return route.handler_adapter(request, response)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 1102, in __call__
>>> return handler.dispatch()
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/admin_request_handler.py",
>>>  
>>> line 88, in dispatch
>>> super(AdminRequestHandler, self).dispatch()
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 572, in dispatch
>>> return self.handle_exception(e, self.app.debug)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>>  
>>> line 570, in dispatch
>>> return method(*args, **kwargs)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>>  
>>> line 674, in get
>>> start))
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>>  
>>> line 625, in _get_entity_template_data
>>> value = data_type.format(raw_value)
>>>   File 
>>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>>  
>>> line 200, in format
>>> return str(value)
>>> UnicodeEncodeError: 'ascii' codec can't encode characters in position 
>>> 0-3: ordinal not in range(128)
>>>
>>> Thank you,
>>> Khaled
>>>
>>

-- 
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/6e84f58c-132e-458d-be3f-be901b64784fn%40googlegroups.com.


[google-appengine] Re: After deploying Django app in App Engine my website doesn't load

2022-09-02 Thread 'Rogelio Monter Rodriguez' via Google App Engine


I would suggest referring to this Stack Overflow post 

 
and this one 
,
 
as they describe how to check the logs and identify the root cause of the 
issue. 

Also, I would suggest checking out these other post based on the errors 
shown on your logs:

   - 
   
   How to run TensorFlow in Google App Engine Flexible Environment? 
   


   - 
   
   TensorFlow2.1: Opened Dynamic Library: libcuda.so.1 
   

   
Please note that Google Groups is reserved for general product discussions 
and is not for technical support. If you require further support for 
debugging of your application, it is recommended to post your detailed 
questions on Stack Overflow using the supported Cloud tags.
On Wednesday, August 31, 2022 at 7:37:41 AM UTC-5 ges...@myteam.ai wrote:

> So after deploying my Django App with Google Cloud App Engine, I cannot 
> get a respone from the website, in other words the website keeps loading 
> non stop.
>
> You can check it here : https://sam-website-358409.ew.r.appspot.com/
>
> The message I got after the deployment was done :
>
> *Updating service [default] (this may take several minutes)...done. **Setting 
> traffic split for service [default]...done. Stopping version 
> [sam-website-358409/default/20220825t151307]. Sent request to stop version 
> [sam-website-358409/default/20220825t151307]. This operation may take some 
> time to complete. If you would like to verify that it succeeded, run: $ 
> gcloud app versions describe -s default 20220825t151307 until it shows that 
> the version has stopped. Deployed service [default] to 
> [https://sam-website-358409.ew.r.appspot.com 
> ] You can stream logs from the 
> command line by running: $ gcloud app logs tail -s default To view your 
> application in the web browser run: $ gcloud app browse*
>
> Which seems fine, so trying to debug the problem, I have run : 
>
> *gcloud app logs tail -s default*
>
> I notice then lots of warnings that keeps showing repeatidly :
>
>
> * - This IS expected if you are initializing CamembertModel from the 
> checkpoint of a model trained on another task or with another architecture 
> (e.g. initializing a BertForSequenceClassification model from a 
> BertForPreTraining model). 2022-08-25 16:33:36 default[20220825t175602] - 
> This IS NOT expected if you are initializing CamembertModel from the 
> checkpoint of a model that you expect to be exactly identical (initializing 
> a BertForSequenceClassification model from a BertForSequenceClassification 
> model). 2022-08-25 16:33:39 default[20220825t175602] 
> /env/lib/python3.7/site-packages/sklearn/base.py:338: UserWarning: Trying 
> to unpickle estimator LogisticRegression from version 0.24.2 when using 
> version 1.0.2. This might lead to breaking code or invalid results. Use at 
> your own risk. For more info please refer to: 2022-08-25 16:33:39 
> default[20220825t175602] 
> https://scikit-learn.org/stable/modules/model_persistence.html#security-maintainability-limitations
>  
> 2022-08-25 
> 
>  
> 16:33:39 default[20220825t175602] UserWarning, 2022-08-25 16:33:39 
> default[20220825t175602] 
> /env/lib/python3.7/site-packages/spacy/util.py:865: UserWarning: [W095] 
> Model 'fr_core_news_lg' (3.1.0) was trained with spaCy v3.1 and may not be 
> 100% compatible with the current version (3.4.1). If you see errors or 
> degraded performance, download a newer compatible model or retrain your 
> custom model with the current spaCy version. For more details and available 
> updates, run: python -m spacy validate 2022-08-25 16:33:39 
> default[20220825t175602] warnings.warn(warn_msg) 2022-08-25 16:33:41 
> default[20220825t175602] Some weights of the model checkpoint at 
> camembert-base were not used when initializing CamembertModel: 
> ['lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 
> 'lm_head.layer_norm.weight', 'lm_head.dense.weight', 
> 'lm_head.decoder.weight'] 2022-08-25 16:33:41 default[20220825t175602] - 
> This IS expected if you are initializing CamembertModel from the checkpoint 
> of a model trained on another task or with another architecture (e.g. 
> initializing a BertForSequenceClassification model from a 
> BertForPreTraining model). 2022-08-25 16:33:41 default[20220825t175602] - 
> This IS NOT expected if you are initializing CamembertModel from the 
> checkpoint of a model that you expect to be exactly identical (initializing 
> a 

[google-appengine] The website doesn't load after deploying Django app in Google Cloud App Engine

2022-09-01 Thread Gestion MYTEAM


So after deploying my Django App with Google Cloud App Engine, I cannot get 
a respone from the website, in other words the website keeps loading non 
stop.

You can check it here : https://sam-website-358409.ew.r.appspot.com/

So, trying to debug the problem, I have run : gcloud app logs tail -s 
default

I notice then lots of warnings that keeps showing repeatidly :

   - This IS expected if you are initializing CamembertModel from the 
   checkpoint of a model trained on another task or with another architecture 
   (e.g. initializing a BertForSequenceClassification model from a 
   BertForPreTraining model). 2022-08-25 16:33:36 default[20220825t175602] - 
   This IS NOT expected if you are initializing CamembertModel from the 
   checkpoint of a model that you expect to be exactly identical (initializing 
   a BertForSequenceClassification model from a BertForSequenceClassification 
   model). 2022-08-25 16:33:39 default[20220825t175602] 
   /env/lib/python3.7/site-packages/sklearn/base.py:338: UserWarning: Trying 
   to unpickle estimator LogisticRegression from version 0.24.2 when using 
   version 1.0.2. This might lead to breaking code or invalid results. Use at 
   your own risk. For more info please refer to: 2022-08-25 16:33:39 
   default[20220825t175602] 
   
https://scikit-learn.org/stable/modules/model_persistence.html#security-maintainability-limitations
 2022-08-25 
   16:33:39 default[20220825t175602] UserWarning, 2022-08-25 16:33:39 
   default[20220825t175602] 
   /env/lib/python3.7/site-packages/spacy/util.py:865: UserWarning: [W095] 
   Model 'fr_core_news_lg' (3.1.0) was trained with spaCy v3.1 and may not be 
   100% compatible with the current version (3.4.1). If you see errors or 
   degraded performance, download a newer compatible model or retrain your 
   custom model with the current spaCy version. For more details and available 
   updates, run: python -m spacy validate 2022-08-25 16:33:39 
   default[20220825t175602] warnings.warn(warn_msg) 2022-08-25 16:33:41 
   default[20220825t175602] Some weights of the model checkpoint at 
   camembert-base were not used when initializing CamembertModel: 
   ['lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 
   'lm_head.layer_norm.weight', 'lm_head.dense.weight', 
   'lm_head.decoder.weight'] 2022-08-25 16:33:41 default[20220825t175602] - 
   This IS expected if you are initializing CamembertModel from the checkpoint 
   of a model trained on another task or with another architecture (e.g. 
   initializing a BertForSequenceClassification model from a 
   BertForPreTraining model). 2022-08-25 16:33:41 default[20220825t175602] - 
   This IS NOT expected if you are initializing CamembertModel from the 
   checkpoint of a model that you expect to be exactly identical (initializing 
   a BertForSequenceClassification model from a BertForSequenceClassification 
   model). 2022-08-25 16:33:44 default[20220825t175602] [2022-08-25 16:33:44 
   +] [179] [INFO] Worker exiting (pid: 179) 2022-08-25 16:33:45 
   default[20220825t175602] [2022-08-25 16:33:45 +] [191] [INFO] Booting 
   worker with pid: 191 2022-08-25 16:33:46 default[20220825t175602] 
   2022-08-25 16:33:46.542163: I 
   tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary 
   is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the 
   following CPU instructions in performance-critical operations: AVX2 FMA 
   2022-08-25 16:33:46 default[20220825t175602] To enable them in other 
   operations, rebuild TensorFlow with the appropriate compiler flags. 
   2022-08-25 16:33:48 default[20220825t175602] 2022-08-25 16:33:48.108067: W 
   tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not 
   load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: 
   cannot open shared object file: No such file or directory 2022-08-25 
   16:33:48 default[20220825t175602] 2022-08-25 16:33:48.108101: I 
   tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart 
   dlerror if you do not have a GPU set up on your machine. 2022-08-25 
   16:33:50 default[20220825t175602] [2022-08-25 16:33:50 +] [1] 
   [CRITICAL] WORKER TIMEOUT (pid:132) 2022-08-25 16:33:50 
   default[20220825t175602] [2022-08-25 16:33:50 +] [132] [INFO] Worker 
   exiting (pid: 132) 2022-08-25 16:33:51 default[20220825t175602] [2022-08-25 
   16:33:51 +] [1] [WARNING] Worker with pid 132 was terminated due to 
   signal 9 2022-08-25 16:33:51 default[20220825t175602] [2022-08-25 16:33:51 
   +] [144] [INFO] Booting worker with pid: 144 2022-08-25 16:33:52 
   default[20220825t175602] 2022-08-25 16:33:52.437860: W 
   tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not 
   load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open 
   shared object file: No such file or directory 2022-08-25 16:33:52 
   default[20220825t175602] 2022-08-25 16:33:52.437899: W 
   

[google-appengine] Re: Local Development server when opening "Datastore Viewer"

2022-08-31 Thread limin xiao
Had the same issue, but ver. 340.0.0 was proved fine.

On Tuesday, August 16, 2022 at 12:37:15 AM UTC+9 khaled@gmail.com wrote:

> So I moved to ver. 270.0.0 indeed the problem has gone, which indicates 
> that there was some string/unicode/ascii related update along the way that 
> may have broken its ability to handle Unicode characters. I also tried 
> versions 396, 383, 380 all had the same problem and error output. 
>
> If someone can look into this so that we can work with the latest Google 
> Cloud CLI versions, it would be great!
>
> Have a nice day,
> Khaled
>
> On Friday, August 12, 2022 at 11:56:30 PM UTC+2 Khaled Wagdy wrote:
>
>> Hello, 
>>
>> I am using Python 2.7 on AppEngine and Datastore. I moved my code & test 
>> database file to another laptop, I also made a fresh install of gcloud 
>> components, currently at version 397.0.0.
>>
>> Ever since then, trying to access local datastore viewer "
>> http://localhost:8000/datastore?kind=" from the browser causes as 
>> ascii error as seen in the screenshot below and server output. I have some 
>> Arabic content in the DB, but on the old laptop which was running an old 
>> gcloud components version (270.0.0) there was no problem browsing through 
>> the entities.
>>
>> I will try to install the old version 270.0.0 using the command *gcloud 
>> components update --version 270.0.0* and see if that resolves it. But I 
>> would think working on the latest version is best in case something can be 
>> fixed to resolve this matter.
>>
>> Has there been a breaking update in the local development server and/or 
>> datastore emulator that might have been causing this issue? Is there a way 
>> around this ascii error to be able to browse through the local DB entities 
>> without problems? This is important during debugging, and can save a lot of 
>> time.
>>
>> [image: Screen Shot 2022-08-12 at 18.02.18.png]ERROR2022-08-12 
>> 16:05:04,764 webapp2.py:1553] 'ascii' codec can't encode characters in 
>> position 0-3: ordinal not in range(128)
>> Traceback (most recent call last):
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1536, in __call__
>> rv = self.handle_exception(request, response, e)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1530, in __call__
>> rv = self.router.dispatch(request, response)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1278, in default_dispatcher
>> return route.handler_adapter(request, response)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1102, in __call__
>> return handler.dispatch()
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/admin_request_handler.py",
>>  
>> line 88, in dispatch
>> super(AdminRequestHandler, self).dispatch()
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 572, in dispatch
>> return self.handle_exception(e, self.app.debug)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 570, in dispatch
>> return method(*args, **kwargs)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>  
>> line 674, in get
>> start))
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>  
>> line 625, in _get_entity_template_data
>> value = data_type.format(raw_value)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>>  
>> line 200, in format
>> return str(value)
>> UnicodeEncodeError: 'ascii' codec can't encode characters in position 
>> 0-3: ordinal not in range(128)
>>
>> Thank you,
>> Khaled
>>
>

-- 
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/dbcb3642-a93f-4988-b786-1243441b19bfn%40googlegroups.com.


[google-appengine] After deploying Django app in App Engine my website doesn't load

2022-08-31 Thread Gestion MYTEAM


So after deploying my Django App with Google Cloud App Engine, I cannot get 
a respone from the website, in other words the website keeps loading non 
stop.

You can check it here : https://sam-website-358409.ew.r.appspot.com/

The message I got after the deployment was done :

*Updating service [default] (this may take several minutes)...done. **Setting 
traffic split for service [default]...done. Stopping version 
[sam-website-358409/default/20220825t151307]. Sent request to stop version 
[sam-website-358409/default/20220825t151307]. This operation may take some 
time to complete. If you would like to verify that it succeeded, run: $ 
gcloud app versions describe -s default 20220825t151307 until it shows that 
the version has stopped. Deployed service [default] to 
[https://sam-website-358409.ew.r.appspot.com] You can stream logs from the 
command line by running: $ gcloud app logs tail -s default To view your 
application in the web browser run: $ gcloud app browse*

Which seems fine, so trying to debug the problem, I have run : 

*gcloud app logs tail -s default*

I notice then lots of warnings that keeps showing repeatidly :


* - This IS expected if you are initializing CamembertModel from the 
checkpoint of a model trained on another task or with another architecture 
(e.g. initializing a BertForSequenceClassification model from a 
BertForPreTraining model). 2022-08-25 16:33:36 default[20220825t175602] - 
This IS NOT expected if you are initializing CamembertModel from the 
checkpoint of a model that you expect to be exactly identical (initializing 
a BertForSequenceClassification model from a BertForSequenceClassification 
model). 2022-08-25 16:33:39 default[20220825t175602] 
/env/lib/python3.7/site-packages/sklearn/base.py:338: UserWarning: Trying 
to unpickle estimator LogisticRegression from version 0.24.2 when using 
version 1.0.2. This might lead to breaking code or invalid results. Use at 
your own risk. For more info please refer to: 2022-08-25 16:33:39 
default[20220825t175602] 
https://scikit-learn.org/stable/modules/model_persistence.html#security-maintainability-limitations
 
2022-08-25 16:33:39 default[20220825t175602] UserWarning, 2022-08-25 
16:33:39 default[20220825t175602] 
/env/lib/python3.7/site-packages/spacy/util.py:865: UserWarning: [W095] 
Model 'fr_core_news_lg' (3.1.0) was trained with spaCy v3.1 and may not be 
100% compatible with the current version (3.4.1). If you see errors or 
degraded performance, download a newer compatible model or retrain your 
custom model with the current spaCy version. For more details and available 
updates, run: python -m spacy validate 2022-08-25 16:33:39 
default[20220825t175602] warnings.warn(warn_msg) 2022-08-25 16:33:41 
default[20220825t175602] Some weights of the model checkpoint at 
camembert-base were not used when initializing CamembertModel: 
['lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 
'lm_head.layer_norm.weight', 'lm_head.dense.weight', 
'lm_head.decoder.weight'] 2022-08-25 16:33:41 default[20220825t175602] - 
This IS expected if you are initializing CamembertModel from the checkpoint 
of a model trained on another task or with another architecture (e.g. 
initializing a BertForSequenceClassification model from a 
BertForPreTraining model). 2022-08-25 16:33:41 default[20220825t175602] - 
This IS NOT expected if you are initializing CamembertModel from the 
checkpoint of a model that you expect to be exactly identical (initializing 
a BertForSequenceClassification model from a BertForSequenceClassification 
model). 2022-08-25 16:33:44 default[20220825t175602] [2022-08-25 16:33:44 
+] [179] [INFO] Worker exiting (pid: 179) 2022-08-25 16:33:45 
default[20220825t175602] [2022-08-25 16:33:45 +] [191] [INFO] Booting 
worker with pid: 191 2022-08-25 16:33:46 default[20220825t175602] 
2022-08-25 16:33:46.542163: I 
tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary 
is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the 
following CPU instructions in performance-critical operations: AVX2 FMA 
2022-08-25 16:33:46 default[20220825t175602] To enable them in other 
operations, rebuild TensorFlow with the appropriate compiler flags. 
2022-08-25 16:33:48 default[20220825t175602] 2022-08-25 16:33:48.108067: W 
tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not 
load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: 
cannot open shared object file: No such file or directory 2022-08-25 
16:33:48 default[20220825t175602] 2022-08-25 16:33:48.108101: I 
tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart 
dlerror if you do not have a GPU set up on your machine. 2022-08-25 
16:33:50 default[20220825t175602] [2022-08-25 16:33:50 +] [1] 
[CRITICAL] WORKER TIMEOUT (pid:132) 2022-08-25 16:33:50 
default[20220825t175602] [2022-08-25 16:33:50 +] [132] [INFO] Worker 
exiting (pid: 132) 2022-08-25 16:33:51 

[google-appengine] Re: AppEngine Standard PHP7.4 Deploy-Error

2022-08-23 Thread Sirko Uhl
Hello Ernesto

thanks for your response. I have also seen this difference. But i think 
this is a error in the documentation. If you look in the vendor directory 
there is no path named /vendor/*google*/cloud/.

In the meantime, however, I have found several solutions.

1. it's documented in this documentation 
.
  If 
you cannot modify your php.ini, the prepend.php file can be manually 
included to register the error handler:
require_once __DIR__ . 
'/vendor/google/cloud-error-reporting/src/prepend.php';
found by another at stackoverflow 
.

2. worked for me, if i use the relative Path  *./vendor/.../...*

Sincerely

Ernesto Contreras Pinon schrieb am Montag, 22. August 2022 um 17:41:13 
UTC+2:

> From the documentation 
> ,
>  
> the path to the *prepend.php* file should be as follows: 
> //vendor/google/cloud/cloud-error-reporting/src/prepend.php. 
> The path you included in your *php.ini* is a bit different, have you 
> previously tried with the exact path shown in the documentation?
>
> On Thursday, August 18, 2022 at 3:49:59 AM UTC-5 sirk...@talk-point.de 
> wrote:
>
>> I have an App (PHP 7.4) running on Google AppEngine Standard and deploy 
>> works fine. Now i have created a new Project inside CloudConsole 
>>  with same settings and want to 
>> deploy this App to the new generated Project for testreason.
>>
>> *gcloud app deploy app.yaml --project=testapp-2022-08-14*
>>
>> *But i am getting this error:*
>> Fatal error: Unknown: Failed opening required 
>> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
>> (include_path='.:/layers/google.php.runtime/php/lib/php') in Unknown on 
>> line 0
>>
>> To activate the Cloud-Error-Reporting i followed this Documentation: 
>> CloudErrorrEPORTING 
>> 
>>
>> *my php.ini*
>>
>> auto_prepend_file = 
>> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
>> session.gc_maxlifetime = 259200 opcache.memory_consumption = 128
>>
>> *my app.yaml*
>>
>> runtime: php74
>> instance_class: F1
>> entrypoint: serve bootstrap.php
>> handlers:
>>   ...
>> env_variables:
>>   ...
>> runtime_config:
>>   document_root: .
>> automatic_scaling:
>>   max_instances: 20
>>
>> Can anyone help?
>>
>

-- 
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/b3e29c94-b085-4dd5-87a2-5b39d2421699n%40googlegroups.com.


[google-appengine] Re: AppEngine Standard PHP7.4 Deploy-Error

2022-08-22 Thread 'Ernesto Contreras Pinon' via Google App Engine
>From the documentation 
,
 
the path to the *prepend.php* file should be as follows: 
//vendor/google/cloud/cloud-error-reporting/src/prepend.php. The 
path you included in your *php.ini* is a bit different, have you previously 
tried with the exact path shown in the documentation?

On Thursday, August 18, 2022 at 3:49:59 AM UTC-5 sirk...@talk-point.de 
wrote:

> I have an App (PHP 7.4) running on Google AppEngine Standard and deploy 
> works fine. Now i have created a new Project inside CloudConsole 
>  with same settings and want to deploy 
> this App to the new generated Project for testreason.
>
> *gcloud app deploy app.yaml --project=testapp-2022-08-14*
>
> *But i am getting this error:*
> Fatal error: Unknown: Failed opening required 
> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
> (include_path='.:/layers/google.php.runtime/php/lib/php') in Unknown on 
> line 0
>
> To activate the Cloud-Error-Reporting i followed this Documentation: 
> CloudErrorrEPORTING 
> 
>
> *my php.ini*
>
> auto_prepend_file = 
> '/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
> session.gc_maxlifetime = 259200 opcache.memory_consumption = 128
>
> *my app.yaml*
>
> runtime: php74
> instance_class: F1
> entrypoint: serve bootstrap.php
> handlers:
>   ...
> env_variables:
>   ...
> runtime_config:
>   document_root: .
> automatic_scaling:
>   max_instances: 20
>
> Can anyone help?
>

-- 
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/e4333800-537c-4412-86ee-045d2c95044cn%40googlegroups.com.


[google-appengine] Anyone else finally got trapped by 'Google Workspace'?

2022-08-18 Thread Kaan
Every year I dreaded the need to login to each Google Apps domain once to 
prevent them from deactivation

This year being really busy, they finally trapped me, my main project got 
auto upgraded to Google Workspace and I lost my Legacy account for others

The trapped account was new anyway, so I was already a paying account, so 
they didn't gain anything

And my other loved domains have now lost their emails as I just won't go 
through with it every year again

It's just sad, I maintain the App Engine projects even if a project is 
non-profitable, pay quite an uncomfortable amount too, I enjoyed the 
occasional user email, what's the point of taking it away ...

-- 
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/69030344-8547-4b3e-94ca-98c79770fdddn%40googlegroups.com.


[google-appengine] AppEngine Standard PHP7.4 Deploy-Error

2022-08-18 Thread Sirko Uhl
I have an App (PHP 7.4) running on Google AppEngine Standard and deploy 
works fine. Now i have created a new Project inside CloudConsole 
 with same settings and want to deploy 
this App to the new generated Project for testreason.

*gcloud app deploy app.yaml --project=testapp-2022-08-14*

*But i am getting this error:*
Fatal error: Unknown: Failed opening required 
'/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
(include_path='.:/layers/google.php.runtime/php/lib/php') in Unknown on 
line 0

To activate the Cloud-Error-Reporting i followed this Documentation: 
CloudErrorrEPORTING 


*my php.ini*

auto_prepend_file = 
'/srv/vendor/google/cloud-error-reporting/src/prepend.php' 
session.gc_maxlifetime = 259200 opcache.memory_consumption = 128

*my app.yaml*

runtime: php74
instance_class: F1
entrypoint: serve bootstrap.php
handlers:
  ...
env_variables:
  ...
runtime_config:
  document_root: .
automatic_scaling:
  max_instances: 20

Can anyone help?

-- 
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/ce14c3b1-5fd9-49fc-bbdb-01d2a050fc70n%40googlegroups.com.


[google-appengine] Re: Migrating App Engine php5 with google libraries

2022-08-17 Thread Jukka Hautakorpi
Thanks

Those did help a little and got my test project forward.
Google documentation about this is really painful to read..
For example
"Access legacy bundled services for PHP 7+"
What does lecacy bundled service mean ?? 

I know i didn't need composer any libraries for example to make the mail 
work, but with php 7.4 it requires this installed via composer.
Yet if I add 
/vendor/
into .gcloudignore 
the library functions still works...


perjantai 12. elokuuta 2022 klo 1.08.35 UTC+3 Osvaldo Lopez Acuña kirjoitti:

> You can start by taking a look at this guide 
>  
> (if you haven't already done it) about Migrating from PHP5.5 to 7.2. In this 
> GCP document 
>  
> you will learn about subjects related to migrating an app to PHP7+ in the 
> App Engine standard environment. And finally, in this other document 
> 
>  
> you will find information about migrating and Apps using legacy bundled 
> services.
>
> On Thursday, August 11, 2022 at 9:59:03 AM UTC-5 jukka.ha...@gmail.com 
> wrote:
>
>> 
>>
>> I have php app with few hundred users made with php5. It is using some 
>> google libraries, but Actually I don't have them or composer in my local 
>> linux development project, yet they still work. Somehow google environment 
>> has those as default:
>>   require_once 'google/appengine/api/mail/Message.php';
>>   use \google\appengine\api\mail\Message; 
>>
>> Now I also need to add use Google\Cloud\Storage\StorageClient and also 
>> would like to migrate my app to standard php7 evironment with app.py
>>
>>1. Do i need the composer libraries the php7 version when running in 
>>google's servers ?
>>2. Can I upload a second version of my php5 app to run in php7 for 
>>testing before making it promoted version ?
>>
>>

-- 
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/a79bf0ec-6009-4b47-b15a-14827bcfc3edn%40googlegroups.com.


[google-appengine] Re: Local Development server when opening "Datastore Viewer"

2022-08-16 Thread 'Rogelio Monter Rodriguez' via Google App Engine


As shown in the Local Development Server Options 

 
documentation:

Python 2 is no longer supported by the community. We recommend that you 
migrate Python 2 apps to Python 3.

—

About Python 2 support  
in Google Cloud:

The Python community announced that it will sunset Python 2 
 on January 1, 2020, and are 
encouraging all developers to upgrade to Python 3 as soon as they can. In 
recognition that customers may need more time to migrate from Python 2 to 
Python 3, Google Cloud customers will be able to run Python 2 apps and use 
existing Python 2 client libraries 
 
after January 1, 2020.

Managed compute services, such as App Engine, will continue to provide a 
Python 2 runtime beyond January 1, 2020. Python 2 client libraries will 
continue to be available for download, but future major releases will only 
target Python 3.

—
Google Cloud CLI 


Google Cloud CLI version 274.0.0 
 
introduces support for Python 3. Older versions of the gcloud CLI will 
remain available for download 
, but we 
recommend using version 274.0.0 or newer and migrating to Python 3 as soon 
as possible.

—

The best way to report this kind of issues is with issue tracker as you 
have done:

   - 
   
   https://issuetracker.google.com/242384115
   
—

About Issue reports 
:

Google reviews every new issue report submitted by users. Sometimes one of 
our staff will ask for clarification or followup. After we're able to 
replicate the issue, we'll tell you that it's been forwarded to the 
appropriate team.

Depending on the circumstances, we may be able to provide periodic updates 
while an issue is being looked at, but usually we cannot provide too many 
specifics about the exact cause of an issue, or when it will be fixed.

When we've fixed an issue in production, we'll indicate this and then we'll 
close the issue.

If you need further assistance, you can create a Support case 
.


On Monday, August 15, 2022 at 10:37:15 AM UTC-5 khaled@gmail.com wrote:

> So I moved to ver. 270.0.0 indeed the problem has gone, which indicates 
> that there was some string/unicode/ascii related update along the way that 
> may have broken its ability to handle Unicode characters. I also tried 
> versions 396, 383, 380 all had the same problem and error output. 
>
> If someone can look into this so that we can work with the latest Google 
> Cloud CLI versions, it would be great!
>
> Have a nice day,
> Khaled
>
> On Friday, August 12, 2022 at 11:56:30 PM UTC+2 Khaled Wagdy wrote:
>
>> Hello, 
>>
>> I am using Python 2.7 on AppEngine and Datastore. I moved my code & test 
>> database file to another laptop, I also made a fresh install of gcloud 
>> components, currently at version 397.0.0.
>>
>> Ever since then, trying to access local datastore viewer "
>> http://localhost:8000/datastore?kind=" from the browser causes as 
>> ascii error as seen in the screenshot below and server output. I have some 
>> Arabic content in the DB, but on the old laptop which was running an old 
>> gcloud components version (270.0.0) there was no problem browsing through 
>> the entities.
>>
>> I will try to install the old version 270.0.0 using the command *gcloud 
>> components update --version 270.0.0* and see if that resolves it. But I 
>> would think working on the latest version is best in case something can be 
>> fixed to resolve this matter.
>>
>> Has there been a breaking update in the local development server and/or 
>> datastore emulator that might have been causing this issue? Is there a way 
>> around this ascii error to be able to browse through the local DB entities 
>> without problems? This is important during debugging, and can save a lot of 
>> time.
>>
>> [image: Screen Shot 2022-08-12 at 18.02.18.png]ERROR2022-08-12 
>> 16:05:04,764 webapp2.py:1553] 'ascii' codec can't encode characters in 
>> position 0-3: ordinal not in range(128)
>> Traceback (most recent call last):
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1536, in __call__
>> rv = self.handle_exception(request, response, e)
>>   File 
>> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>>  
>> line 1530, in __call__
>> rv = self.router.dispatch(request, response)
>>   File 
>> 

[google-appengine] Re: Local Development server when opening "Datastore Viewer"

2022-08-15 Thread Khaled Wagdy
So I moved to ver. 270.0.0 indeed the problem has gone, which indicates 
that there was some string/unicode/ascii related update along the way that 
may have broken its ability to handle Unicode characters. I also tried 
versions 396, 383, 380 all had the same problem and error output. 

If someone can look into this so that we can work with the latest Google 
Cloud CLI versions, it would be great!

Have a nice day,
Khaled

On Friday, August 12, 2022 at 11:56:30 PM UTC+2 Khaled Wagdy wrote:

> Hello, 
>
> I am using Python 2.7 on AppEngine and Datastore. I moved my code & test 
> database file to another laptop, I also made a fresh install of gcloud 
> components, currently at version 397.0.0.
>
> Ever since then, trying to access local datastore viewer "
> http://localhost:8000/datastore?kind=" from the browser causes as 
> ascii error as seen in the screenshot below and server output. I have some 
> Arabic content in the DB, but on the old laptop which was running an old 
> gcloud components version (270.0.0) there was no problem browsing through 
> the entities.
>
> I will try to install the old version 270.0.0 using the command *gcloud 
> components update --version 270.0.0* and see if that resolves it. But I 
> would think working on the latest version is best in case something can be 
> fixed to resolve this matter.
>
> Has there been a breaking update in the local development server and/or 
> datastore emulator that might have been causing this issue? Is there a way 
> around this ascii error to be able to browse through the local DB entities 
> without problems? This is important during debugging, and can save a lot of 
> time.
>
> [image: Screen Shot 2022-08-12 at 18.02.18.png]ERROR2022-08-12 
> 16:05:04,764 webapp2.py:1553] 'ascii' codec can't encode characters in 
> position 0-3: ordinal not in range(128)
> Traceback (most recent call last):
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 1536, in __call__
> rv = self.handle_exception(request, response, e)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 1530, in __call__
> rv = self.router.dispatch(request, response)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 1278, in default_dispatcher
> return route.handler_adapter(request, response)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 1102, in __call__
> return handler.dispatch()
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/admin_request_handler.py",
>  
> line 88, in dispatch
> super(AdminRequestHandler, self).dispatch()
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 572, in dispatch
> return self.handle_exception(e, self.app.debug)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1/webapp2.py",
>  
> line 570, in dispatch
> return method(*args, **kwargs)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>  
> line 674, in get
> start))
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>  
> line 625, in _get_entity_template_data
> value = data_type.format(raw_value)
>   File 
> "/Users/khaled/Documents/darna/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/admin/datastore_viewer.py",
>  
> line 200, in format
> return str(value)
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: 
> ordinal not in range(128)
>
> Thank you,
> Khaled
>

-- 
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/d99465be-7fdb-4632-beb4-4ded2ab757d4n%40googlegroups.com.


[google-appengine] Re: Migrating App Engine php5 with google libraries

2022-08-11 Thread 'Osvaldo Lopez Acuña' via Google App Engine
You can start by taking a look at this guide 
 
(if you haven't already done it) about Migrating from PHP5.5 to 7.2. In this 
GCP document 
 
you will learn about subjects related to migrating an app to PHP7+ in the 
App Engine standard environment. And finally, in this other document 

 
you will find information about migrating and Apps using legacy bundled 
services.

On Thursday, August 11, 2022 at 9:59:03 AM UTC-5 jukka.ha...@gmail.com 
wrote:

> 
>
> I have php app with few hundred users made with php5. It is using some 
> google libraries, but Actually I don't have them or composer in my local 
> linux development project, yet they still work. Somehow google environment 
> has those as default:
>   require_once 'google/appengine/api/mail/Message.php';
>   use \google\appengine\api\mail\Message; 
>
> Now I also need to add use Google\Cloud\Storage\StorageClient and also 
> would like to migrate my app to standard php7 evironment with app.py
>
>1. Do i need the composer libraries the php7 version when running in 
>google's servers ?
>2. Can I upload a second version of my php5 app to run in php7 for 
>testing before making it promoted version ?
>
>

-- 
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/2d664ba4-b6b8-4cdd-a680-28cd8e7f9331n%40googlegroups.com.


[google-appengine] Re: dev_appserver Python3 Windows support plans?

2022-08-11 Thread 'Andres Fiesco Casasola' via Google App Engine


At the moment, there is no support for dev_appserver. You can use the 
following link [1] to create a feature request. 

[1]:https://cloud.google.com/support/docs/issue-trackers


On Tuesday, August 9, 2022 at 4:55:22 PM UTC-5 jmwo...@gmail.com wrote:

> I have a bunch of Python27 App Engine apps that I have been wanting to 
> upgrade to Python3.
>
> But my development environment is on Windows, and dev_appserver is not 
> supported for Python3 even though P27 was sunset years ago. This makes it 
> extremely painful to re-write and test all the necessary modules, 
> datastore, memcache, authentication, etc. 
>
> Is there a planned support for this?
>
> Windows 10
> gcloud SDK 394.0.0
> app-engine-python 1.9.100
> app-engine-python-extras 1.9.96
> beta 2022.07.19
> bq 2.0.75
> cloud-datastore-emulator 2.2.1
> core 2022.07.19
> gsutil 5.11
>
> GCLOUD COMMAND:
> dev_appserver.py 
> --runtime_python_path="python27=C:\Python27\python,python38=C:\Python38\python"
>  
> C:\Users\*\workspace\* --port=8080
>
> ERROR:
> server2\python\instance_factory.py", line 335, in _RunPipInstall
> pip_proc = subprocess.Popen(pip_cmd, stdout=pip_out, env=pip_env)
>   File "C:\Python27\lib\subprocess.py", line 390, in __init__
> errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
> startupinfo)
> WindowsError: [Error 2] The system cannot find the file specified
>

-- 
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/4441c33d-bac1-41e2-a0bb-d84a86f4a9f4n%40googlegroups.com.


[google-appengine] Re: dev_appserver Python3 Windows support plans?

2022-08-11 Thread 'Andres Fiesco Casasola' via Google App Engine


At the moment, there is no support for dev_appserver. You can use the 
following link [1] to create a feature request. 

[1]:https://issuetracker.google.com/issues

On Tuesday, August 9, 2022 at 4:55:22 PM UTC-5 jmwo...@gmail.com wrote:

> I have a bunch of Python27 App Engine apps that I have been wanting to 
> upgrade to Python3.
>
> But my development environment is on Windows, and dev_appserver is not 
> supported for Python3 even though P27 was sunset years ago. This makes it 
> extremely painful to re-write and test all the necessary modules, 
> datastore, memcache, authentication, etc. 
>
> Is there a planned support for this?
>
> Windows 10
> gcloud SDK 394.0.0
> app-engine-python 1.9.100
> app-engine-python-extras 1.9.96
> beta 2022.07.19
> bq 2.0.75
> cloud-datastore-emulator 2.2.1
> core 2022.07.19
> gsutil 5.11
>
> GCLOUD COMMAND:
> dev_appserver.py 
> --runtime_python_path="python27=C:\Python27\python,python38=C:\Python38\python"
>  
> C:\Users\*\workspace\* --port=8080
>
> ERROR:
> server2\python\instance_factory.py", line 335, in _RunPipInstall
> pip_proc = subprocess.Popen(pip_cmd, stdout=pip_out, env=pip_env)
>   File "C:\Python27\lib\subprocess.py", line 390, in __init__
> errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
> startupinfo)
> WindowsError: [Error 2] The system cannot find the file specified
>

-- 
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/d5c27d77-24b2-47fe-a003-ca2c018063bcn%40googlegroups.com.


[google-appengine] Migrating App Engine php5 with google libraries

2022-08-11 Thread Jukka Hautakorpi
 

I have php app with few hundred users made with php5. It is using some 
google libraries, but Actually I don't have them or composer in my local 
linux development project, yet they still work. Somehow google environment 
has those as default:
  require_once 'google/appengine/api/mail/Message.php';
  use \google\appengine\api\mail\Message; 

Now I also need to add use Google\Cloud\Storage\StorageClient and also 
would like to migrate my app to standard php7 evironment with app.py

   1. Do i need the composer libraries the php7 version when running in 
   google's servers ?
   2. Can I upload a second version of my php5 app to run in php7 for 
   testing before making it promoted version ?

-- 
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/b13c3266-ab30-4966-88cb-31d0116c942dn%40googlegroups.com.


[google-appengine] dev_appserver Python3 Windows support plans?

2022-08-09 Thread Jay Wolberg
I have a bunch of Python27 App Engine apps that I have been wanting to 
upgrade to Python3.

But my development environment is on Windows, and dev_appserver is not 
supported for Python3 even though P27 was sunset years ago. This makes it 
extremely painful to re-write and test all the necessary modules, 
datastore, memcache, authentication, etc. 

Is there a planned support for this?

Windows 10
gcloud SDK 394.0.0
app-engine-python 1.9.100
app-engine-python-extras 1.9.96
beta 2022.07.19
bq 2.0.75
cloud-datastore-emulator 2.2.1
core 2022.07.19
gsutil 5.11

GCLOUD COMMAND:
dev_appserver.py 
--runtime_python_path="python27=C:\Python27\python,python38=C:\Python38\python" 
C:\Users\*\workspace\* --port=8080

ERROR:
server2\python\instance_factory.py", line 335, in _RunPipInstall
pip_proc = subprocess.Popen(pip_cmd, stdout=pip_out, env=pip_env)
  File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

-- 
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/047fca9c-26c0-45ff-b846-8b8e5f816012n%40googlegroups.com.


[google-appengine] Re: Can a single App Engine Standard Java 11/17 web process handle multiple concurrent requests?

2022-08-03 Thread William Linna
Thanks for the people who responded.

It seems that the documentation has been fixed, and no longer states that 
each web server processes only one request at a time etc.

I no longer need help with this issue

tiistai 2. elokuuta 2022 klo 23.25.00 UTC+3 concep...@google.com kirjoitti:

> YAML config and appengine-web.xml file support max_concurrent_requests 
> setting in Java 11/17.[1][2]
>
> [1] 
> https://cloud.google.com/appengine/docs/standard/java-gen2/config/appref#max_concurrent_requests
> [2] 
> https://cloud.google.com/appengine/docs/standard/java-gen2/config/appref-xml#automatic_scaling_max_concurrent_requests
>
> On Thursday, July 28, 2022 at 11:35:57 AM UTC-5 willia...@gmail.com wrote:
>
>> Hello,
>>
>> I'm using App Engine Standard with Java 11. My app is packaged as a JAR 
>> and it doesn't use legacy bundled services. I have set manual scaling to 1. 
>> Now my question is can that one instance handle multiple concurrent 
>> requests? According to the documentation, it seems like it cannot.
>>
>>
>> https://cloud.google.com/appengine/docs/standard/java-gen2/how-requests-are-handled
>>
>>- By default, each web server processes only one request at a time. 
>>To dispatch multiple requests to each web server in parallel, mark your 
>>application as threadsafe by adding a true 
>>
>> 
>>  
>>element to your appengine-web.xml file.
>>
>> However, that appengine-web.xml only appears in examples with legacy 
>> bundled services. I haven't seen any documentation on how to set up 
>> appengine-web.xml for JAR-packaged apps, only for WAR-packaged apps. 
>> manual_scaling doesn't allow setting max_concurrent_requests either. 
>> app.yaml doesn't support threadsafe-setting.
>>
>> This is different from envs such as PHP and Go where docs explicitly 
>> state that "An instance can handle multiple requests concurrently.".
>>
>> What should I do? I can't use multiple instances, because I depend on a 
>> little bit of state, which is what manual scaling is supposed to afford me.
>>
>>- Instances remain in memory and state is preserved across requests. 
>>
>>

-- 
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/98e10eb1-25a4-4889-830f-fb0aa3cb1005n%40googlegroups.com.


[google-appengine] Re: Can a single App Engine Standard Java 11/17 web process handle multiple concurrent requests?

2022-08-02 Thread 'Andrés Márquez' via Google App Engine


YAML config and appengine-web.xml file support max_concurrent_requests 
setting in Java 11/17.[1][2]

[1] 
https://cloud.google.com/appengine/docs/standard/java-gen2/config/appref#max_concurrent_requests
[2] 
https://cloud.google.com/appengine/docs/standard/java-gen2/config/appref-xml#automatic_scaling_max_concurrent_requests

On Thursday, July 28, 2022 at 11:35:57 AM UTC-5 willia...@gmail.com wrote:

> Hello,
>
> I'm using App Engine Standard with Java 11. My app is packaged as a JAR 
> and it doesn't use legacy bundled services. I have set manual scaling to 1. 
> Now my question is can that one instance handle multiple concurrent 
> requests? According to the documentation, it seems like it cannot.
>
>
> https://cloud.google.com/appengine/docs/standard/java-gen2/how-requests-are-handled
>
>- By default, each web server processes only one request at a time. To 
>dispatch multiple requests to each web server in parallel, mark your 
>application as threadsafe by adding a true 
>
> 
>  
>element to your appengine-web.xml file.
>
> However, that appengine-web.xml only appears in examples with legacy 
> bundled services. I haven't seen any documentation on how to set up 
> appengine-web.xml for JAR-packaged apps, only for WAR-packaged apps. 
> manual_scaling doesn't allow setting max_concurrent_requests either. 
> app.yaml doesn't support threadsafe-setting.
>
> This is different from envs such as PHP and Go where docs explicitly state 
> that "An instance can handle multiple requests concurrently.".
>
> What should I do? I can't use multiple instances, because I depend on a 
> little bit of state, which is what manual scaling is supposed to afford me.
>
>- Instances remain in memory and state is preserved across requests. 
>
>

-- 
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/96067597-6ee3-4e77-b3f4-e7006198e1e6n%40googlegroups.com.


Re: [google-appengine] How to change the version of Jetty in my Google App Engine

2022-07-31 Thread 'Ludovic Champenois' via Google App Engine
For java 17 bundled services (configured via appengine-web.xml not 
app.yaml) the jetty version is provided (managed plaform) and cannot be 
changed.


For non bundled services (app.yaml configuration) whatever web server of 
the market can be used including latest jetty versions.


Ludo

On 7/27/22 8:16 PM, 'Mike Wallace' via Google App Engine wrote:


Within IntelliJ I have a Google App Engine Standard Local Server 
running. I'm in the process of updating to Java 17 and also all of my 
3rd party libraries and have moved to GAE 2.0.5 and Jetty 11.0.11 in 
all of my project's pom files. However, when I start up the server I see:


INFO:oejs.Server:main: jetty-9.4.46.v20220331

and I'm getting failures that seem to confirm the above, that an older 
version of Jetty is being used. Where can I update the Jetty version 
that the app engine uses?


Here's the stack trace. The latest versions should be using 
jakarta.ws.rs.Path instead of javax.


java.lang.TypeNotPresentException: Type javax.ws.rs.Path not present 
at 
java.base/sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:47) 
at 
java.base/sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:89) 
at jdk.proxy2/jdk.proxy2.$Proxy2.value(Unknown Source) at 
org.eclipse.jetty.annotations.AnnotationConfiguration.createServletContainerInitializerAnnotationHandlers(AnnotationConfiguration.java:579) 
at 
org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:343) 
at 
org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:498) 
at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) 
at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916) 
at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) 
at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) 
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) 
at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) 
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) 
at org.eclipse.jetty.server.Server.start(Server.java:423) at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) 
at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) 
at org.eclipse.jetty.server.Server.doStart(Server.java:387) at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) 
at 
com.google.appengine.tools.development.jetty9.JettyContainerService.startContainer(JettyContainerService.java:366)


--
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/3ec6a90b-9617-480e-9771-3a39f941c576n%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/2b375ede-8cd0-42e1-c528-17b1cf961388%40google.com.


[google-appengine] Re: How to change the version of Jetty in my Google App Engine

2022-07-28 Thread 'Andrés Márquez' via Google App Engine


To update the Jetty version to the latest one, I would suggest updating the 
Cloud SDK to the latest version. Based on the documentation [1], the most 
recent release of Cloud SDK is version 395.0.0 (2022-07-26) and according 
to the release notes [2], the latest Java SDK version is 1.9.98 and latest 
Jetty version is 11.0.11[3]

I would recommend trying to upgrade the Cloud SDK by following this 
documentation [4] so the Jetty version is updated to the latest one.

[1] https://cloud.google.com/sdk/docs/release-notes

[2] https://cloud.google.com/appengine/docs/standard/java/release-notes
[3] https://www.eclipse.org/jetty/download.php

[4] https://cloud.google.com/sdk/docs/components#updating_components

On Thursday, July 28, 2022 at 11:35:33 AM UTC-5 
mwal...@bluesparktechnologies.com wrote:

> Within IntelliJ I have a Google App Engine Standard Local Server running. 
> I'm in the process of updating to Java 17 and also all of my 3rd party 
> libraries and have moved to GAE 2.0.5 and Jetty 11.0.11 in all of my 
> project's pom files. However, when I start up the server I see: 
>
> INFO:oejs.Server:main: jetty-9.4.46.v20220331 
>
> and I'm getting failures that seem to confirm the above, that an older 
> version of Jetty is being used. Where can I update the Jetty version that 
> the app engine uses? 
>
> Here's the stack trace. The latest versions should be using 
> jakarta.ws.rs.Path instead of javax.
>
> java.lang.TypeNotPresentException: Type javax.ws.rs.Path not present at 
> java.base/sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:47)
>  
> at 
> java.base/sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:89)
>  
> at jdk.proxy2/jdk.proxy2.$Proxy2.value(Unknown Source) at 
> org.eclipse.jetty.annotations.AnnotationConfiguration.createServletContainerInitializerAnnotationHandlers(AnnotationConfiguration.java:579)
>  
> at 
> org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:343)
>  
> at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:498) 
> at 
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) 
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
>  
> at 
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
>  
> at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) 
> at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  
> at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
>  
> at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
>  
> at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
>  
> at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  
> at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
>  
> at org.eclipse.jetty.server.Server.start(Server.java:423) at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
>  
> at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
>  
> at org.eclipse.jetty.server.Server.doStart(Server.java:387) at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  
> at 
> com.google.appengine.tools.development.jetty9.JettyContainerService.startContainer(JettyContainerService.java:366)
>

-- 
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/5d2c976c-3fd4-4286-8f82-0154ab7cf704n%40googlegroups.com.


[google-appengine] Can a single App Engine Standard Java 11/17 web process handle multiple concurrent requests?

2022-07-28 Thread William Linna
Hello,

I'm using App Engine Standard with Java 11. My app is packaged as a JAR and 
it doesn't use legacy bundled services. I have set manual scaling to 1. Now 
my question is can that one instance handle multiple concurrent requests? 
According to the documentation, it seems like it cannot.

https://cloud.google.com/appengine/docs/standard/java-gen2/how-requests-are-handled

   - By default, each web server processes only one request at a time. To 
   dispatch multiple requests to each web server in parallel, mark your 
   application as threadsafe by adding a true 
   

 
   element to your appengine-web.xml file.

However, that appengine-web.xml only appears in examples with legacy 
bundled services. I haven't seen any documentation on how to set up 
appengine-web.xml for JAR-packaged apps, only for WAR-packaged apps. 
manual_scaling doesn't allow setting max_concurrent_requests either. 
app.yaml doesn't support threadsafe-setting.

This is different from envs such as PHP and Go where docs explicitly state 
that "An instance can handle multiple requests concurrently.".

What should I do? I can't use multiple instances, because I depend on a 
little bit of state, which is what manual scaling is supposed to afford me.

   - Instances remain in memory and state is preserved across requests. 

-- 
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/87e34e4f-faa1-4246-afab-e731a69b5df1n%40googlegroups.com.


[google-appengine] Re: Traffic hitting deleted Google App Engine versions

2022-07-28 Thread 'Richard Garbutt' via Google App Engine
To be clear:

> This project only has one service with one version and two instances

The problem is traffic *hitting versions that have been deleted*

We are migrating away from App Engine due to this issue.
On Wednesday, 27 July 2022 at 00:02:01 UTC+1 Osvaldo Lopez Acuña wrote:

> You could report this issue here[1]. You could also make sure you deleted 
> those versions[2]. Take a look at this post[3] where it is explained how to 
> clean up an App Engine project.
>
> [1]:https://issuetracker.google.com/issues/new?component=187191
>
> [2]:https://cloud.google.com/sdk/gcloud/reference/app/versions/delete
> [3]:
> https://medium.com/google-cloud/app-engine-project-cleanup-9647296e796a  
>
> On Tuesday, July 26, 2022 at 11:46:20 AM UTC-5 ric...@getregistered.com 
> wrote:
>
>> Hi All,
>>
>> We're seeing some very strange behaviour with error reporting showing 
>> traffic sporadically hitting a deleted version of the application. It seems 
>> like around 25% of requests hit this incorrect, phantom instance.
>>
>> To be specific we are running a rails application and we are seeing 
>> errors consistent with a previous version of `schema.rb` being loaded by 
>> the application.
>>
>> We build and deploy fresh docker containers for each deployment using 
>> cloudbuild.
>>
>> This project only has one service with one version and two instances. The 
>> last deployment was five days ago and we are still seeing errors.
>>
>> Has anyone encountered something similar? This really seems like an issue 
>> with App Engine routing to stale instances.
>>
>> Regards,
>>
>> Richard Garbutt
>>
>

-- 
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/d35dfbd4-f57b-4a6d-8281-ecab5126eb3cn%40googlegroups.com.


[google-appengine] How to change the version of Jetty in my Google App Engine

2022-07-28 Thread 'Mike Wallace' via Google App Engine


Within IntelliJ I have a Google App Engine Standard Local Server running. 
I'm in the process of updating to Java 17 and also all of my 3rd party 
libraries and have moved to GAE 2.0.5 and Jetty 11.0.11 in all of my 
project's pom files. However, when I start up the server I see: 

INFO:oejs.Server:main: jetty-9.4.46.v20220331 

and I'm getting failures that seem to confirm the above, that an older 
version of Jetty is being used. Where can I update the Jetty version that 
the app engine uses? 

Here's the stack trace. The latest versions should be using 
jakarta.ws.rs.Path instead of javax.

java.lang.TypeNotPresentException: Type javax.ws.rs.Path not present at 
java.base/sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:47)
 
at 
java.base/sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:89)
 
at jdk.proxy2/jdk.proxy2.$Proxy2.value(Unknown Source) at 
org.eclipse.jetty.annotations.AnnotationConfiguration.createServletContainerInitializerAnnotationHandlers(AnnotationConfiguration.java:579)
 
at 
org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:343)
 
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:498) 
at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) 
at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
 
at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
 
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) 
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
 
at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
 
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 
at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
 
at org.eclipse.jetty.server.Server.start(Server.java:423) at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
 
at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
 
at org.eclipse.jetty.server.Server.doStart(Server.java:387) at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 
at 
com.google.appengine.tools.development.jetty9.JettyContainerService.startContainer(JettyContainerService.java:366)

-- 
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/3ec6a90b-9617-480e-9771-3a39f941c576n%40googlegroups.com.


[google-appengine] Re: gcloud auth login fails

2022-07-28 Thread solsTiCe d'Hiver

Out of dispair and boredom, I tried a few things, and finally I just 
changed the language in the login page where you accept the Google Cloud 
SDK permissions. I changed it to english (UK);

I was, then, instantaltly logged in.

WTF !
Le mercredi 27 juillet 2022 à 19:06:37 UTC+2, solsTiCe d'Hiver a écrit :

>
> I don't have an admin at end. I odn't have any admin t perform those steps.
>
> Because like I said, I am just a lambda user of Google App Engine 
> (free-tier mostly). meaning, no entreprise or organisation, just me.
> Le mercredi 27 juillet 2022 à 19:00:07 UTC+2, concep...@google.com a 
> écrit :
>
>>
>> Please ask your admin to perform those steps.
>> On Monday, July 25, 2022 at 6:14:06 PM UTC-5 solstic...@gmail.com wrote:
>>
>>>
>>> Previously, I had a free Google Workspace account, and that's why it 
>>> might have worked.
>>> Since, free Google Workspace was ended, I terminated that account. It 
>>> was linked to my main gmail address.
>>>
>>> If I try to follow the tutorial in the link you gave, I have to login 
>>> with an admin account. It seems I don't have any, do I?
>>> Le mardi 26 juillet 2022 à 00:59:36 UTC+2, concep...@google.com a 
>>> écrit :
>>>
 For each organizational unit, there can only be one active enrollment 
 token. If you need to pause enrollment, you can permanently revoke the 
 token for a specific organizational unit and regenerate a new one.


 https://support.google.com/chrome/a/answer/9301891#zippy=%2Crevoke-and-regenerate-enrollment-token:~:text=For%20each%20organizational%20unit%2C%20there%20can%20only%20be%20one%20active%20enrollment%20token.%20If%20you%20need%20to%20pause%20enrollment%2C%20you%20can%20permanently%20revoke%20the%20token%20for%20a%20specific%20organizational%20unit%20and%20regenerate%20a%20new%20one
 .

 On Friday, July 22, 2022 at 4:52:59 AM UTC-5 solstic...@gmail.com 
 wrote:

> Hi,
> I mistakingly removed my gcloud config, and token/cookies on my 
> desktop. Private user here;
>
> Now, I can't `gcloud auth login` anymore with my default gmail account.
> I got an error at the last step of authentification "an error occured".
>
> I have to use the default account for each project. This is annoying.
>
> Why ?  Why do I do wrong ? Is it a feature ?
>
> 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/e93b4783-67a1-4951-bd83-76972bf8730bn%40googlegroups.com.


[google-appengine] Re: gcloud auth login fails

2022-07-27 Thread solsTiCe d'Hiver

I don't have an admin at end. I odn't have any admin t perform those steps.

Because like I said, I am just a lambda user of Google App Engine 
(free-tier mostly). meaning, no entreprise or organisation, just me.
Le mercredi 27 juillet 2022 à 19:00:07 UTC+2, concep...@google.com a écrit :

>
> Please ask your admin to perform those steps.
> On Monday, July 25, 2022 at 6:14:06 PM UTC-5 solstic...@gmail.com wrote:
>
>>
>> Previously, I had a free Google Workspace account, and that's why it 
>> might have worked.
>> Since, free Google Workspace was ended, I terminated that account. It was 
>> linked to my main gmail address.
>>
>> If I try to follow the tutorial in the link you gave, I have to login 
>> with an admin account. It seems I don't have any, do I?
>> Le mardi 26 juillet 2022 à 00:59:36 UTC+2, concep...@google.com a écrit :
>>
>>> For each organizational unit, there can only be one active enrollment 
>>> token. If you need to pause enrollment, you can permanently revoke the 
>>> token for a specific organizational unit and regenerate a new one.
>>>
>>>
>>> https://support.google.com/chrome/a/answer/9301891#zippy=%2Crevoke-and-regenerate-enrollment-token:~:text=For%20each%20organizational%20unit%2C%20there%20can%20only%20be%20one%20active%20enrollment%20token.%20If%20you%20need%20to%20pause%20enrollment%2C%20you%20can%20permanently%20revoke%20the%20token%20for%20a%20specific%20organizational%20unit%20and%20regenerate%20a%20new%20one
>>> .
>>>
>>> On Friday, July 22, 2022 at 4:52:59 AM UTC-5 solstic...@gmail.com wrote:
>>>
 Hi,
 I mistakingly removed my gcloud config, and token/cookies on my 
 desktop. Private user here;

 Now, I can't `gcloud auth login` anymore with my default gmail account.
 I got an error at the last step of authentification "an error occured".

 I have to use the default account for each project. This is annoying.

 Why ?  Why do I do wrong ? Is it a feature ?

 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/431dc7c9-b75f-4c93-bcbf-17418c1e9f98n%40googlegroups.com.


[google-appengine] Re: gcloud auth login fails

2022-07-27 Thread 'Andrés Márquez' via Google App Engine

Please ask your admin to perform those steps.
On Monday, July 25, 2022 at 6:14:06 PM UTC-5 solstic...@gmail.com wrote:

>
> Previously, I had a free Google Workspace account, and that's why it might 
> have worked.
> Since, free Google Workspace was ended, I terminated that account. It was 
> linked to my main gmail address.
>
> If I try to follow the tutorial in the link you gave, I have to login with 
> an admin account. It seems I don't have any, do I?
> Le mardi 26 juillet 2022 à 00:59:36 UTC+2, concep...@google.com a écrit :
>
>> For each organizational unit, there can only be one active enrollment 
>> token. If you need to pause enrollment, you can permanently revoke the 
>> token for a specific organizational unit and regenerate a new one.
>>
>>
>> https://support.google.com/chrome/a/answer/9301891#zippy=%2Crevoke-and-regenerate-enrollment-token:~:text=For%20each%20organizational%20unit%2C%20there%20can%20only%20be%20one%20active%20enrollment%20token.%20If%20you%20need%20to%20pause%20enrollment%2C%20you%20can%20permanently%20revoke%20the%20token%20for%20a%20specific%20organizational%20unit%20and%20regenerate%20a%20new%20one
>> .
>>
>> On Friday, July 22, 2022 at 4:52:59 AM UTC-5 solstic...@gmail.com wrote:
>>
>>> Hi,
>>> I mistakingly removed my gcloud config, and token/cookies on my desktop. 
>>> Private user here;
>>>
>>> Now, I can't `gcloud auth login` anymore with my default gmail account.
>>> I got an error at the last step of authentification "an error occured".
>>>
>>> I have to use the default account for each project. This is annoying.
>>>
>>> Why ?  Why do I do wrong ? Is it a feature ?
>>>
>>> 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/bedeed12-b9bb-4a2a-9e85-9f21ec290036n%40googlegroups.com.


[google-appengine] Re: Traffic hitting deleted Google App Engine versions

2022-07-26 Thread 'Osvaldo Lopez Acuña' via Google App Engine


You could report this issue here[1]. You could also make sure you deleted 
those versions[2]. Take a look at this post[3] where it is explained how to 
clean up an App Engine project.

[1]:https://issuetracker.google.com/issues/new?component=187191

[2]:https://cloud.google.com/sdk/gcloud/reference/app/versions/delete
[3]:https://medium.com/google-cloud/app-engine-project-cleanup-9647296e796a
  

On Tuesday, July 26, 2022 at 11:46:20 AM UTC-5 ric...@getregistered.com 
wrote:

> Hi All,
>
> We're seeing some very strange behaviour with error reporting showing 
> traffic sporadically hitting a deleted version of the application. It seems 
> like around 25% of requests hit this incorrect, phantom instance.
>
> To be specific we are running a rails application and we are seeing errors 
> consistent with a previous version of `schema.rb` being loaded by the 
> application.
>
> We build and deploy fresh docker containers for each deployment using 
> cloudbuild.
>
> This project only has one service with one version and two instances. The 
> last deployment was five days ago and we are still seeing errors.
>
> Has anyone encountered something similar? This really seems like an issue 
> with App Engine routing to stale instances.
>
> Regards,
>
> Richard Garbutt
>

-- 
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/d2b70b68-645e-48c3-8908-1dc410fc51a2n%40googlegroups.com.


[google-appengine] Re: Is there a Cloud Newsletter?

2022-07-26 Thread 'Rogelio Monter Rodriguez' via Google App Engine
At the Google Cloud Blog  you will find 
what’s new with Google Cloud. Additionally, you can stay in the loop by signing 
up for Google Cloud newsletters . 
Finally, the following Google Cloud release notes 
 cover the most recent changes over 
the last 60 days. For a comprehensive list of product-specific release 
notes, see the individual product release note pages 
.

On Friday, July 22, 2022 at 10:10:11 AM UTC-5 kaan...@gmail.com wrote:

> Just discovered the new TTL policies: 
> https://cloud.google.com/datastore/docs/ttl
>
> It's an awesome new feature
>
> Is there a Newsletter to keep up with new Google Cloud additions, if not, 
> would be nice if it's added
>

-- 
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/6de003f1-8c08-4219-bf5a-dc6c7b2df92en%40googlegroups.com.


[google-appengine] Traffic hitting deleted Google App Engine versions

2022-07-26 Thread 'Richard Garbutt' via Google App Engine
Hi All,

We're seeing some very strange behaviour with error reporting showing 
traffic sporadically hitting a deleted version of the application. It seems 
like around 25% of requests hit this incorrect, phantom instance.

To be specific we are running a rails application and we are seeing errors 
consistent with a previous version of `schema.rb` being loaded by the 
application.

We build and deploy fresh docker containers for each deployment using 
cloudbuild.

This project only has one service with one version and two instances. The 
last deployment was five days ago and we are still seeing errors.

Has anyone encountered something similar? This really seems like an issue 
with App Engine routing to stale instances.

Regards,

Richard Garbutt

-- 
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/d91514ae-d662-4095-a78a-305371a3af5dn%40googlegroups.com.


[google-appengine] Re: gcloud auth login fails

2022-07-25 Thread solsTiCe d'Hiver

Previously, I had a free Google Workspace account, and that's why it might 
have worked.
Since, free Google Workspace was ended, I terminated that account. It was 
linked to my main gmail address.

If I try to follow the tutorial in the link you gave, I have to login with 
an admin account. It seems I don't have any, do I?
Le mardi 26 juillet 2022 à 00:59:36 UTC+2, concep...@google.com a écrit :

> For each organizational unit, there can only be one active enrollment 
> token. If you need to pause enrollment, you can permanently revoke the 
> token for a specific organizational unit and regenerate a new one.
>
>
> https://support.google.com/chrome/a/answer/9301891#zippy=%2Crevoke-and-regenerate-enrollment-token:~:text=For%20each%20organizational%20unit%2C%20there%20can%20only%20be%20one%20active%20enrollment%20token.%20If%20you%20need%20to%20pause%20enrollment%2C%20you%20can%20permanently%20revoke%20the%20token%20for%20a%20specific%20organizational%20unit%20and%20regenerate%20a%20new%20one
> .
>
> On Friday, July 22, 2022 at 4:52:59 AM UTC-5 solstic...@gmail.com wrote:
>
>> Hi,
>> I mistakingly removed my gcloud config, and token/cookies on my desktop. 
>> Private user here;
>>
>> Now, I can't `gcloud auth login` anymore with my default gmail account.
>> I got an error at the last step of authentification "an error occured".
>>
>> I have to use the default account for each project. This is annoying.
>>
>> Why ?  Why do I do wrong ? Is it a feature ?
>>
>> 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/b1486337-a541-46a3-b8d7-b6f2e45d89f6n%40googlegroups.com.


[google-appengine] Re: How do I install Wordpress on App Engine?

2022-07-25 Thread 'Osvaldo Lopez Acuña' via Google App Engine


Please share the steps and/or the tutorial you are following.
On Monday, July 25, 2022 at 11:47:16 AM UTC-5 car...@tunnyville.com wrote:

> Hello,
>
> I am trying to install Wordpress on App Engine but I am confused about the 
> steps, I need someone to help we with the details of how to do it.
>
> I have a couple of Wordpress site on Compute Engine but I am billed even 
> though there is no traffic to those site this is why I want to use App 
> Engine now.
>
> I will greatly appreciate any help.
>
> Thank you guys
>

-- 
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/082c4198-b91c-4108-b04f-0924049be17cn%40googlegroups.com.


[google-appengine] Re: gcloud auth login fails

2022-07-25 Thread 'Andrés Márquez' via Google App Engine


For each organizational unit, there can only be one active enrollment 
token. If you need to pause enrollment, you can permanently revoke the 
token for a specific organizational unit and regenerate a new one.

https://support.google.com/chrome/a/answer/9301891#zippy=%2Crevoke-and-regenerate-enrollment-token:~:text=For%20each%20organizational%20unit%2C%20there%20can%20only%20be%20one%20active%20enrollment%20token.%20If%20you%20need%20to%20pause%20enrollment%2C%20you%20can%20permanently%20revoke%20the%20token%20for%20a%20specific%20organizational%20unit%20and%20regenerate%20a%20new%20one.

On Friday, July 22, 2022 at 4:52:59 AM UTC-5 solstic...@gmail.com wrote:

> Hi,
> I mistakingly removed my gcloud config, and token/cookies on my desktop. 
> Private user here;
>
> Now, I can't `gcloud auth login` anymore with my default gmail account.
> I got an error at the last step of authentification "an error occured".
>
> I have to use the default account for each project. This is annoying.
>
> Why ?  Why do I do wrong ? Is it a feature ?
>
> 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/8216c938-c1fd-4595-932b-581270231fa0n%40googlegroups.com.


[google-appengine] How do I install Wordpress on App Engine?

2022-07-25 Thread Carter Olayemi
Hello,

I am trying to install Wordpress on App Engine but I am confused about the 
steps, I need someone to help we with the details of how to do it.

I have a couple of Wordpress site on Compute Engine but I am billed even 
though there is no traffic to those site this is why I want to use App 
Engine now.

I will greatly appreciate any help.

Thank you guys

-- 
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/84c9f4dc-bff8-4a9a-9760-6b298d437521n%40googlegroups.com.


[google-appengine] Is there a Cloud Newsletter?

2022-07-22 Thread Kaan
Just discovered the new TTL 
policies: https://cloud.google.com/datastore/docs/ttl

It's an awesome new feature

Is there a Newsletter to keep up with new Google Cloud additions, if not, 
would be nice if it's added

-- 
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/2ed2fb21-8a61-41d5-b602-931a9b58b758n%40googlegroups.com.


[google-appengine] gcloud auth login fails

2022-07-22 Thread solsTiCe d'Hiver
Hi,
I mistakingly removed my gcloud config, and token/cookies on my desktop. 
Private user here;

Now, I can't `gcloud auth login` anymore with my default gmail account.
I got an error at the last step of authentification "an error occured".

I have to use the default account for each project. This is annoying.

Why ?  Why do I do wrong ? Is it a feature ?

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/55e496f2-38ad-4247-9817-618fc3081328n%40googlegroups.com.


[google-appengine] Re: App Engine PHP environment: MongoDB extension not found

2022-07-18 Thread 'Andrés Márquez' via Google App Engine


Does this compatibility table[1] solve your problem?

Additionally, as this is not a GCP problem per se, you can post it as a 
question on Stack Overflow.

[1] https://i.stack.imgur.com/bOc3R.png

On Thursday, July 14, 2022 at 3:21:07 PM UTC-5 tatsuki...@gmail.com wrote:

> Hi,
>
> I am trying to deploy PHP application to GAE Standard PHP8.1 environment, 
> to find the errors below:
> ```
> File upload done.
> Updating service [api-sandbox-1]...failed.
> ...
>  Problem 1
> - mongodb/mongodb is locked to version 1.11.0 and an update of this 
> package was not requested.
> - mongodb/mongodb 1.11.0 requires ext-mongodb ^1.12.0 -> it is missing 
> from your system. Install or enable PHP's mongodb extension.
> ...
> ```
>
> I have put php.ini in my root directory (same directory where the app.yaml 
> file exists) with the contents below:
> ```
> extension=mongodb.so
> extension=redis.so
> ```
>
> This was not happening before June 30th, when I last deployed my 
> application successfully.
>
> If anyone knows how to fix this, please kindly let us know.
>
> 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/f9019e4e-3272-44a0-9c6b-f4f195f2ff7dn%40googlegroups.com.


[google-appengine] Entities not being returning in query result -- index bug?

2022-07-15 Thread bmurr
I was alerted by one of my users that some entries they are associated with 
were not appearing to them.

Indeed, when I query the datastore for these entities (with a single 
property filter), they are not returned. After writing them to the 
datastore, the index is updated and they are returned in the query.

Perhaps technically my query is not guaranteed to return the entities as it 
is weakly consistent, but none of the entities were changed recently and 
usually any inconsistent results are resolved quite quickly. (it has been 
several hours now)

So it seems like the index entries for this property on these entities were 
lost or damaged somehow. What to do? Wait and hope the index will be 
regenerated? I can write entities for this user to the datastore to 
regenerate the index...but doing it for all my users is not really an 
option.


-- 
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/8c53a518-2e5b-456e-98d5-79d38993e973n%40googlegroups.com.


[google-appengine] App Engine PHP environment: MongoDB extension not found

2022-07-14 Thread 磯上樹
Hi,

I am trying to deploy PHP application to GAE Standard PHP8.1 environment, 
to find the errors below:
```
File upload done.
Updating service [api-sandbox-1]...failed.
...
 Problem 1
- mongodb/mongodb is locked to version 1.11.0 and an update of this 
package was not requested.
- mongodb/mongodb 1.11.0 requires ext-mongodb ^1.12.0 -> it is missing 
from your system. Install or enable PHP's mongodb extension.
...
```

I have put php.ini in my root directory (same directory where the app.yaml 
file exists) with the contents below:
```
extension=mongodb.so
extension=redis.so
```

This was not happening before June 30th, when I last deployed my 
application successfully.

If anyone knows how to fix this, please kindly let us know.

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/6d51d672-c912-473f-a79f-70f747a7e052n%40googlegroups.com.


[google-appengine] Re: Billing charges incurred on a project application that has been disabled on app engine [getting-started]

2022-06-29 Thread 'Osvaldo Lopez Acuña' via Google App Engine


If you disable an app, you should also disable billing for that app [1], as 
the app can still be charged for fixed billing costs, like datastore 
storage.

While the app is disabled, requests to your app will fail. You may continue 
to incur charges from other Google Cloud products. For example, if your 
project has exceeded the free quota for Cloud Storage, you will continue 
incurring charges for storage.[2]

App Engine does not provide a free tier in the flexible environment as you 
can read in this document[3], so to not incur charges by default try 
standar environment because it has a free tier for App Engine resources. 

You could try this example[4]. As is stated: There are no costs associated 
with running this guide. Running this sample app alone does not exceed your 
free quota. But after finishing it and to avoid incurring charges, you can 
delete your Cloud project to stop billing for all the resources used within 
that project as established here [5].

This is a recommended github project [6] that is used to test GAE but use 
it in standar environment because, as described above, a flexible 
environment doesn’t have a free tier.

[1]:
https://cloud.google.com/billing/docs/how-to/modify-project?visit_id=637921382749559972-959610604=1#disable-billing
 

[2]:https://cloud.google.com/appengine/docs/managing-costs#disable_manally 

[3]:https://cloud.google.com/appengine/pricing 

[4]:https://cloud.google.com/appengine/docs/standard/java-gen2/create-app 

[5]:
https://cloud.google.com/appengine/docs/standard/java-gen2/create-app#clean-up
 
[6]:
https://cloud.google.com/appengine/docs/standard/java-gen2/create-app#download_the_hello_world_app

On Wednesday, June 29, 2022 at 9:50:23 AM UTC-5 mobilem...@gmail.com wrote:

> Hi Everyone,
>
> Would anyone know how to stop my application on app engine from incurring 
> more costs after it has been disabled in the project settings, with no 
> instances running?
>
> I tried to run the getting-started app on a project. The billing account 
> isn't mine, but I asked someone so I could start testing on GCP, hoping it 
> would be on the free tier for testing. Unfortunately, the getting-started 
> app on github by default would be deployed in the flex env (and not the 
> standard env, where it would have been on the free tier), so some costs 
> were incurred. The app was deployed but could not receive API requests due 
> to some versioning (config) issue, so I was surprised that after a day, 
> there were billing charges from the Flex environment usage.
> I tried to modify app.yaml by removing  the "flex" env, and also setting 
> max_instances in basic scaling to 1. The API is still not receiving 
> requests, so I disabled the app in the settings. After another day, some 
> charges are still incurred. 
>
> Does anyone know why this is? Also, how to fix this so there are no more 
> charges? 
> And which starter code for GCP in github would not incur charges by 
> default?
>
> Thanks.
>
> Regards,
>

-- 
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/19dea686-9f1f-4810-a985-7497ba354fa7n%40googlegroups.com.


[google-appengine] Re: Is this an attack?

2022-06-29 Thread 'Osvaldo Lopez Acuña' via Google App Engine


You can fill out this form [1] to report suspected abuse on Google Cloud 
Platform.

Also, as a workaround, you can block abusive IP addresses as established 
here [2]: *you can use the App Engine firewall to block traffic to your app 
from IP addresses that present malicious intent or shield your app from 
denial of service attacks and similar forms of abuse. You can add IP 
addresses or subnetworks to a denylist so that requests routed from those 
addresses and subnetworks are denied before they reach your App Engine app.*

[1]:https://support.google.com/code/contact/cloud_platform_report 
[2]:
https://cloud.google.com/appengine/docs/standard/java/application-security#app_engine_firewall

On Tuesday, June 28, 2022 at 10:46:10 AM UTC-5 guana...@gmail.com wrote:

> While checking the logs of my GAE flask app, I noticed that from June 3rd 
> through June 10th there was a spike on traffick, which is highly unusual 
> for my website.
> I checked the logs and found the reason for that were 3 IP addresses:
>
> 94.154.188.130:   1045 Times,
> 176.103.88.57:  678 Times,
> 176.103.85.167:1392 Times,
>
> I have posted the requests on a gist HERE 
>  for 
> the last one with 1392 requests. ipqualityscore 
> 
>  says 
> that this is a proxy based from russia, actually the 3 ips in question are 
> from the same data center, and Ip Quality score has it on a 99 Fraud Score 
> while scamalitycs  shows 
> nothing wrong, maybe because is a VPN or something of the likes.
>
> According to the logs the first request was at 2022-06-04T08:50:45 with 
> the last on that time frame was on 2022-06-10T01:03:42, so it was not a DOS 
> attack, times between request were as long as 46 minutes and as frequent as 
> 1 second in between. 
>
> What was that? Was my site being attacked? Or maybe just a someone playing 
> a penetration tester?
>
> There were 1273 unique endpoints as listed in the gist above, 98% of them 
> returned a 404. As of today 27+ days, my site has 486 hours usage, during 
> the time frame for this hits, was 214.
> That raised my bill by US$0.95, is not much but since I do not have 
> traffic on my site I usually pay nothing for it. Of course, if I had more 
> traffic, I wouldn't have noticed this.
> It was only for close to 6 days if it was to be more frequent is just 
> raising the bill for nothing.
>
> How can you protect against this?
>
> Best Regards
>

-- 
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/4883a331-1c6d-4ba8-8428-b0a2daffe902n%40googlegroups.com.


[google-appengine] Billing charges incurred on a project application that has been disabled on app engine [getting-started]

2022-06-29 Thread Mobile Market
Hi Everyone,

Would anyone know how to stop my application on app engine from incurring 
more costs after it has been disabled in the project settings, with no 
instances running?

I tried to run the getting-started app on a project. The billing account 
isn't mine, but I asked someone so I could start testing on GCP, hoping it 
would be on the free tier for testing. Unfortunately, the getting-started 
app on github by default would be deployed in the flex env (and not the 
standard env, where it would have been on the free tier), so some costs 
were incurred. The app was deployed but could not receive API requests due 
to some versioning (config) issue, so I was surprised that after a day, 
there were billing charges from the Flex environment usage.
I tried to modify app.yaml by removing  the "flex" env, and also setting 
max_instances in basic scaling to 1. The API is still not receiving 
requests, so I disabled the app in the settings. After another day, some 
charges are still incurred. 

Does anyone know why this is? Also, how to fix this so there are no more 
charges? 
And which starter code for GCP in github would not incur charges by default?

Thanks.

Regards,

-- 
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/285b8cad-cbe4-4343-bc78-8e245fc721b0n%40googlegroups.com.


[google-appengine] Re: Trouble using appengine-python-standard image and blob libraries in my py3 app

2022-06-28 Thread 'Andres Marquez Rodriguez' via Google App Engine


Python 3 does not have the bundled services enabled by default. Did you 
follow the guidelines (steps)[1] documented on this page?

[1] https://cloud.google.com/appengine/docs/standard/python3/services/access

On Tuesday, June 28, 2022 at 12:41:01 PM UTC-5 Daniel Kramer wrote:

> I'm creating a simple server to serve images from a Google Cloud Storage 
> bucket.  It will serve images to a mobile app.  I'm new to Google Cloud 
> Storage and a python3 Appengine server, I've been running a py2.7 server 
> for years.
>
> I am able to create a cloud storage client and query items, that's 
> working. It seems wasteful to download the images to the Appengine server 
> to in-turn send those to my app. Ideally I can provide my app a url to pull 
> from storage directly.  I can do this if I make the bucket publicly 
> accessible but ideally I don't have to do that.
>
> From what I can tell there are a couple of options
> 1) Use *from google.appengine.api import images *which has a *get_serving_url 
> *function which sounds like it's the right thing.  But when I try using 
> it I'm getting and error:
> *AssertionError: No api proxy found for service "image"*
>
> 2) Also looks like there's an option to use *from google.appengine.api 
> import blobstore *and use*  blobstore.create_gs_key('/gs' + filename) *but 
> I get a similar error:
> *AssertionError: No api proxy found for service "blobstore"*
>
> 3) lastly it looks like there's a way to generate a url that times out 
> using* blob.generate_signed_url(). *When I use that I get:
>
> *You need a private key to sign credentials.the credentials you are 
> currently using  'google.auth.compute_engine.credentials.Credentials'> just contains a 
> token. see 
> https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account
>  
> 
>  
> for more details.*
>
> So far a lot of dead ends. Reading about the* no api proxy *most people 
> are pointing to users who are not running within the AppEngine environment 
> .. but I am and I think it may be because these api's were originally built 
> for the py2 version of Appengine and I'm attempting to use them in py3? I 
> suppose I could change my app to a py2 app, but that seems like a dead end 
> long term.
>
> Thanks for any pointers!
> Daniel
>
>

-- 
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/5310dd2f-4e50-4d98-a9be-8c2a0b36f3c1n%40googlegroups.com.


[google-appengine] Re: App Engine Python3 - Error creating public url for Google Cloud Storage files

2022-06-28 Thread Daniel Kramer
Apologies for the duplicate post. I sent the first and didn't see it post, 
after several hours I questioned whether I sent it properly so re-sent.  I 
know realize it was due to it being my first post here and it was held back 
during a moderation period. 

On Tuesday, June 28, 2022 at 10:50:35 AM UTC-7 Daniel Kramer wrote:

> I'm creating a very simple server to pass images to a mobile app. My 
> images are stored in Google Cloud Storage. I'm new to App Engine in the py3 
> env, I've been running a py2.7 app for years.  I'm also new to Cloud 
> Storage.
>
> I have a bucket in storage with a bunch of images. I am able to access 
> that bucket from appengine and iterate over the objects. If I make the 
> bucket's permissions public I can simply pass the url to my app to display 
> the images. 
>
> Ideally I don't have to make the bucket's permissions public. It seems 
> there are a couple of options
>
> 1) Looks like google.appengine.api.blobstore can create a url:
> 
> *blobkey = blobstore.create_gs_key(gs_path) serving_url = 
> images.get_serving_url(blobkey, secure_url=False)*
>
> Running this I get an error in my logs:
> *AssertionError: No api proxy found for service "blobstore"*
>
> If I create the *BlobKey* directly and pass that to the images function I 
> get
> *AssertionError: No api proxy found for service "images"*
>
> 2)  Looks like theres a way to generate a url that times out after a 
> certain period of time:
> *blobs = storage_client.list_blobs(bucket_name, prefix=myPrefix, 
> delimiter=None)*
> *for blob in blobs:* 
> * exp = datetime.timedelta(minutes=15)*
> * blob.generate_signed_url(version="v4",expiration=**exp*
> *,method="GET")*
>
> Running that I get a diff error:
> *AttributeError: you need a private key to sign credentials.the 
> credentials you are currently using  'google.auth.compute_engine.credentials.Credentials'> just contains a 
> token. see 
> https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account
>  
> 
>  
> for more details.*
>
> I've found others with the *no api proxy error* and it seems in all those 
> cases it's when people are trying to use these api's outside of the 
> AppEngine Environment. But I am running it within an AppEngine app so those 
> posts aren't helpful. 
>
> My *requirements.txt* is:
> Flask==2.0.1
> urlfetch
> googleapis_common_protos
> appengine-python-standard
> google-cloud-ndb
> google-cloud-logging
> google-cloud-storage
>
> Any advice would be helpful, been banging my head on this for several 
> hours.
>
> Thanks!
>
> Daniel
>

-- 
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/2711bd83-8f57-4a63-8053-f50bdd792ee1n%40googlegroups.com.


[google-appengine] App Engine Python3 - Error creating public url for Google Cloud Storage files

2022-06-28 Thread Daniel Kramer
I'm creating a very simple server to pass images to a mobile app. My images 
are stored in Google Cloud Storage. I'm new to App Engine in the py3 env, 
I've been running a py2.7 app for years.  I'm also new to Cloud Storage.

I have a bucket in storage with a bunch of images. I am able to access that 
bucket from appengine and iterate over the objects. If I make the bucket's 
permissions public I can simply pass the url to my app to display the 
images. 

Ideally I don't have to make the bucket's permissions public. It seems 
there are a couple of options

1) Looks like google.appengine.api.blobstore can create a url:

*blobkey = blobstore.create_gs_key(gs_path) serving_url = 
images.get_serving_url(blobkey, secure_url=False)*

Running this I get an error in my logs:
*AssertionError: No api proxy found for service "blobstore"*

If I create the *BlobKey* directly and pass that to the images function I 
get
*AssertionError: No api proxy found for service "images"*

2)  Looks like theres a way to generate a url that times out after a 
certain period of time:
*blobs = storage_client.list_blobs(bucket_name, prefix=myPrefix, 
delimiter=None)*
*for blob in blobs:* 
* exp = datetime.timedelta(minutes=15)*
* blob.generate_signed_url(version="v4",expiration=**exp*
*,method="GET")*

Running that I get a diff error:
*AttributeError: you need a private key to sign credentials.the credentials 
you are currently using  just contains a 
token. see 
https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account
 
for more details.*

I've found others with the *no api proxy error* and it seems in all those 
cases it's when people are trying to use these api's outside of the 
AppEngine Environment. But I am running it within an AppEngine app so those 
posts aren't helpful. 

My *requirements.txt* is:
Flask==2.0.1
urlfetch
googleapis_common_protos
appengine-python-standard
google-cloud-ndb
google-cloud-logging
google-cloud-storage

Any advice would be helpful, been banging my head on this for several hours.

Thanks!

Daniel

-- 
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/961fa55c-a0d7-4cbb-8486-61be6c0f00f3n%40googlegroups.com.


[google-appengine] Trouble using appengine-python-standard image and blob libraries in my py3 app

2022-06-28 Thread Daniel Kramer
I'm creating a simple server to serve images from a Google Cloud Storage 
bucket.  It will serve images to a mobile app.  I'm new to Google Cloud 
Storage and a python3 Appengine server, I've been running a py2.7 server 
for years.

I am able to create a cloud storage client and query items, that's working. 
It seems wasteful to download the images to the Appengine server to in-turn 
send those to my app. Ideally I can provide my app a url to pull from 
storage directly.  I can do this if I make the bucket publicly accessible 
but ideally I don't have to do that.

>From what I can tell there are a couple of options
1) Use *from google.appengine.api import images *which has a *get_serving_url 
*function which sounds like it's the right thing.  But when I try using it 
I'm getting and error:
*AssertionError: No api proxy found for service "image"*

2) Also looks like there's an option to use *from google.appengine.api 
import blobstore *and use*  blobstore.create_gs_key('/gs' + filename) *but 
I get a similar error:
*AssertionError: No api proxy found for service "blobstore"*

3) lastly it looks like there's a way to generate a url that times out using* 
blob.generate_signed_url(). 
*When I use that I get:

*You need a private key to sign credentials.the credentials you are 
currently using  just contains a 
token. see 
https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account
 
for more details.*

So far a lot of dead ends. Reading about the* no api proxy *most people are 
pointing to users who are not running within the AppEngine environment .. 
but I am and I think it may be because these api's were originally built 
for the py2 version of Appengine and I'm attempting to use them in py3? I 
suppose I could change my app to a py2 app, but that seems like a dead end 
long term.

Thanks for any pointers!
Daniel

-- 
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/ba0a9413-dcb1-4e36-9fb5-63e8ab7be516n%40googlegroups.com.


[google-appengine] Is this an attack?

2022-06-28 Thread Guanaco Devs
While checking the logs of my GAE flask app, I noticed that from June 3rd 
through June 10th there was a spike on traffick, which is highly unusual 
for my website.
I checked the logs and found the reason for that were 3 IP addresses:

94.154.188.130:   1045 Times,
176.103.88.57:  678 Times,
176.103.85.167:1392 Times,

I have posted the requests on a gist HERE 
 for 
the last one with 1392 requests. ipqualityscore 

 says 
that this is a proxy based from russia, actually the 3 ips in question are 
from the same data center, and Ip Quality score has it on a 99 Fraud Score 
while scamalitycs  shows nothing 
wrong, maybe because is a VPN or something of the likes.

According to the logs the first request was at 2022-06-04T08:50:45 with the 
last on that time frame was on 2022-06-10T01:03:42, so it was not a DOS 
attack, times between request were as long as 46 minutes and as frequent as 
1 second in between. 

What was that? Was my site being attacked? Or maybe just a someone playing 
a penetration tester?

There were 1273 unique endpoints as listed in the gist above, 98% of them 
returned a 404. As of today 27+ days, my site has 486 hours usage, during 
the time frame for this hits, was 214.
That raised my bill by US$0.95, is not much but since I do not have traffic 
on my site I usually pay nothing for it. Of course, if I had more traffic, 
I wouldn't have noticed this.
It was only for close to 6 days if it was to be more frequent is just 
raising the bill for nothing.

How can you protect against this?

Best Regards

-- 
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/70ee359d-25b0-4851-bd78-74f2291cd529n%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-23 Thread Pablo Nieto
I have only *runtime: php81* in my app.yaml.

El miércoles, 22 de junio de 2022 a las 0:03:54 UTC+2, Andres Fiesco 
Casasola escribió:

> It is important to know if you are using a flexible or standard 
> environment since flex environment is compatible with PHP 7.2 and 7.3 
> runtimes, and standard is compatible with PHP 8.1, but in its preview phase 
> [1], [2].  You can use PHP 8.1 in flex environment, but you need to use 
> custom runtimes [5] and provide a custom Docker image or Dockerfile from 
> the open source community.
>
> How to know if you are in a Standard or Flexible environment:
>
> In your app.yaml, find the runtime line.
>
> If it looks similar to the following: 
>
> runtime: php81 # Replace with php74 to use PHP 7.4
>
> Then you are running under a standard environment [3]. 
>
> And if it looks like this other example: 
>
> runtime: python
>
> env: flex
>
> runtime_config:
>
> python_version: 3
>
> Then you are using a flexible environment for the deployment [4]. 
>
> [1]:https://cloud.google.com/appengine/docs/php
>
> [2]:https://cloud.google.com/appengine/docs/the-appengine-environments   
>
> [3]:
> https://cloud.google.com/appengine/docs/standard/php-gen2/config/appref 
>
> [4]:
> https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#general
>   
> [5]:
> https://cloud.google.com/appengine/docs/flexible/custom-runtimes/quickstart
>   
>
> On Tuesday, June 21, 2022 at 10:36:38 AM UTC-5 phu...@gmail.com wrote:
>
>> HI.
>>
>> PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
>> Gcloud Storage with web browser.
>>
>> El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
>> escribió:
>>
>>> Are you able to connect locally to Google Cloud Storage? Are you using a 
>>> standard or flexible App Engine environment? Which PHP version are you 
>>> working on?
>>>
>>> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>>>
 Hi all.

 I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
 App Engine. Locally, the app works fine, but it doesn't work at Google 
 Cloud. I dont't know how to configure my application to work wit Goocle 
 Cloud Storage. I have this code at *config/web.php*:

 'components' => [
 'assetManager' => [
 'basePath'=>'gs://url-to-my-bucket',
 'baseUrl'=>'@web',
 ],

 But I have the next exception:

 [image: excepcion.png]

 Locally, I use this code:

 'components' => [
 'assetManager' => [
 'basePath'=>'@webroot',
 'baseUrl'=>'@web',
 ],

 And it works, but in Google Cloud I have another exception:

 [image: excepcion2.png]

 ¿What can I do? I don't have experience with Yii 2 and also wit Google 
 Cloud :(

 Thank you very much, sorry if my English is not very well.

>>>

-- 
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/4e3bc200-dd7c-4367-93da-8f237b506151n%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread 'Andres Fiesco Casasola' via Google App Engine


It is important to know if you are using a flexible or standard environment 
since flex environment is compatible with PHP 7.2 and 7.3 runtimes, and 
standard is compatible with PHP 8.1, but in its preview phase [1], [2].  
You can use PHP 8.1 in flex environment, but you need to use custom 
runtimes [5] and provide a custom Docker image or Dockerfile from the open 
source community.

How to know if you are in a Standard or Flexible environment:

In your app.yaml, find the runtime line.

If it looks similar to the following: 

runtime: php81 # Replace with php74 to use PHP 7.4

Then you are running under a standard environment [3]. 

And if it looks like this other example: 

runtime: python

env: flex

runtime_config:

python_version: 3

Then you are using a flexible environment for the deployment [4]. 

[1]:https://cloud.google.com/appengine/docs/php

[2]:https://cloud.google.com/appengine/docs/the-appengine-environments   

[3]:https://cloud.google.com/appengine/docs/standard/php-gen2/config/appref 

[4]:
https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#general
  
[5]:
https://cloud.google.com/appengine/docs/flexible/custom-runtimes/quickstart
  

On Tuesday, June 21, 2022 at 10:36:38 AM UTC-5 phu...@gmail.com wrote:

> HI.
>
> PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
> Gcloud Storage with web browser.
>
> El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
> escribió:
>
>> Are you able to connect locally to Google Cloud Storage? Are you using a 
>> standard or flexible App Engine environment? Which PHP version are you 
>> working on?
>>
>> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>>
>>> Hi all.
>>>
>>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>>> Cloud. I dont't know how to configure my application to work wit Goocle 
>>> Cloud Storage. I have this code at *config/web.php*:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'gs://url-to-my-bucket',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> But I have the next exception:
>>>
>>> [image: excepcion.png]
>>>
>>> Locally, I use this code:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'@webroot',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> And it works, but in Google Cloud I have another exception:
>>>
>>> [image: excepcion2.png]
>>>
>>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>>> Cloud :(
>>>
>>> Thank you very much, sorry if my English is not very well.
>>>
>>

-- 
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/75bf4488-1dbd-4e8d-9eb1-1327840b81ean%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread 'Andres Fiesco Casasola' via Google App Engine


It is important to know if you are using a flexible or standard environment 
since flex environment is compatible with PHP 7.2 and 7.3, and standard is 
compatible with PHP 8.1, but in its preview phase [1], [2].

How to know if you are in a Standard or Flexible environment:

In your app.yaml, find the runtime line.

If your app.yaml starts with: 

runtime: php81 # Replace with php74 to use PHP 7.4

Then you are running under a standard environment [3]. 

And if your app.yaml starts with: 

runtime: python

env: flex

runtime_config:

python_version: 3

Then you are using a flexible environment for the deployment [4]. 

[1]:https://cloud.google.com/appengine/docs/php

[2]:https://cloud.google.com/appengine/docs/the-appengine-environments   

[3]:https://cloud.google.com/appengine/docs/standard/php-gen2/config/appref 
[4]:
https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#general
  
 

On Tuesday, June 21, 2022 at 10:36:38 AM UTC-5 phu...@gmail.com wrote:

> HI.
>
> PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
> Gcloud Storage with web browser.
>
> El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
> escribió:
>
>> Are you able to connect locally to Google Cloud Storage? Are you using a 
>> standard or flexible App Engine environment? Which PHP version are you 
>> working on?
>>
>> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>>
>>> Hi all.
>>>
>>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>>> Cloud. I dont't know how to configure my application to work wit Goocle 
>>> Cloud Storage. I have this code at *config/web.php*:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'gs://url-to-my-bucket',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> But I have the next exception:
>>>
>>> [image: excepcion.png]
>>>
>>> Locally, I use this code:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'@webroot',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> And it works, but in Google Cloud I have another exception:
>>>
>>> [image: excepcion2.png]
>>>
>>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>>> Cloud :(
>>>
>>> Thank you very much, sorry if my English is not very well.
>>>
>>

-- 
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/449cedc3-ba38-431b-90a2-f3ec3a505b93n%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread Pablo Nieto
HI.

PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
Gcloud Storage with web browser.

El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
escribió:

> Are you able to connect locally to Google Cloud Storage? Are you using a 
> standard or flexible App Engine environment? Which PHP version are you 
> working on?
>
> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>
>> Hi all.
>>
>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>> Cloud. I dont't know how to configure my application to work wit Goocle 
>> Cloud Storage. I have this code at *config/web.php*:
>>
>> 'components' => [
>> 'assetManager' => [
>> 'basePath'=>'gs://url-to-my-bucket',
>> 'baseUrl'=>'@web',
>> ],
>>
>> But I have the next exception:
>>
>> [image: excepcion.png]
>>
>> Locally, I use this code:
>>
>> 'components' => [
>> 'assetManager' => [
>> 'basePath'=>'@webroot',
>> 'baseUrl'=>'@web',
>> ],
>>
>> And it works, but in Google Cloud I have another exception:
>>
>> [image: excepcion2.png]
>>
>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>> Cloud :(
>>
>> Thank you very much, sorry if my English is not very well.
>>
>

-- 
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/e6a4bf8b-af4f-491e-8f32-7e4c722b3993n%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-20 Thread 'Osvaldo Lopez Acuña' via Google App Engine
Are you able to connect locally to Google Cloud Storage? Are you using a 
standard or flexible App Engine environment? Which PHP version are you 
working on?

On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:

> Hi all.
>
> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using App 
> Engine. Locally, the app works fine, but it doesn't work at Google Cloud. I 
> dont't know how to configure my application to work wit Goocle Cloud 
> Storage. I have this code at *config/web.php*:
>
> 'components' => [
> 'assetManager' => [
> 'basePath'=>'gs://url-to-my-bucket',
> 'baseUrl'=>'@web',
> ],
>
> But I have the next exception:
>
> [image: excepcion.png]
>
> Locally, I use this code:
>
> 'components' => [
> 'assetManager' => [
> 'basePath'=>'@webroot',
> 'baseUrl'=>'@web',
> ],
>
> And it works, but in Google Cloud I have another exception:
>
> [image: excepcion2.png]
>
> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
> Cloud :(
>
> Thank you very much, sorry if my English is not very well.
>

-- 
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/e562606e-1671-439c-aa7f-8e5428faf76cn%40googlegroups.com.


[google-appengine] Re: Phantom Front End instances are being counted and billed

2022-06-19 Thread OferR
My bad...

The old default version was a F1 class. 
The new default (and only) version is F4 class.

Question answered...


On Sunday, June 19, 2022 at 8:34:15 AM UTC+12 OferR wrote:

> Following the change to '*App Engine max_idle_instances setting will 
> apply per-version starting May 24, 2022*', I have migrated all traffic to 
> a single version and removed 3 other versions.
>
> My settings are (for all current and deleted versions):
> min_idle_instances = 1
> max_idle_instances = 1
>
> The Console's Instances Count show a normal behavior. 
> However, hours are counted and billed as if there are some 4 extra 
> instances running at all times.
>
> I have disabled and re-enables the application.
> When disabled, no hours are counted. When re-enabled, the same issue 
> persists.
>
> I cannot easily re-deploy, as I will have to catch up with all changes of 
> the past 2 years.
>
> Help anyone?
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/60c846ea-ef2c-4dd3-8c4e-dcf1f6ebc0den%40googlegroups.com.


[google-appengine] Phantom Front End instances are being counted and billed

2022-06-18 Thread OferR
Following the change to '*App Engine max_idle_instances setting will apply 
per-version starting May 24, 2022*', I have migrated all traffic to a 
single version and removed 3 other versions.

My settings are (for all current and deleted versions):
min_idle_instances = 1
max_idle_instances = 1

The Console's Instances Count show a normal behavior. 
However, hours are counted and billed as if there are some 4 extra 
instances running at all times.

I have disabled and re-enables the application.
When disabled, no hours are counted. When re-enabled, the same issue 
persists.

I cannot easily re-deploy, as I will have to catch up with all changes of 
the past 2 years.

Help anyone?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3ea56d76-7070-4d27-a62d-f3efda4f3c32n%40googlegroups.com.


[google-appengine] Re: App Engine Phishing Website

2022-06-17 Thread Dan Babbitt
Thank you Hector for your help and for escalating internally.

Our company is a Web Risk customer so we push URLs to Web Risk via API as 
opposed to the public facing website.

Would your team be open to possibly vetting my company for direct access to 
report Phishing Websites hosted on GCE or App Engine?

​Dan Babbitt

Director, Security Operations

Allure Security

877-669-8883 x717
https://www.alluresecurity.com/



On Friday, June 17, 2022 at 2:00:52 PM UTC-4 Hector Martinez Rodriguez 
wrote:

> The form you submitted is correct, but you can additionally use this one 
>  to report 
> the fraudulent clone. Nevertheless, we created an internal report to 
> escalate this concern too.
>
> On Thursday, June 16, 2022 at 4:58:18 PM UTC-5 dbab...@alluresecurity.com 
> wrote:
>
>> Hello,
>> I used the form 
>>  to 
>> report a phishing website 10 days ago and the site, while difficult to 
>> reach, is still publicly accessible.
>>
>> What can we do to escalate?
>>
>> IP address: 34.145.113.173
>> https://34.145.113.173/
>> *Hostname:* 173.113.145.34.bc.googleusercontent.com.
>>
>> That's a fraudulent clone of First Republic Bank's online banking website.
>>
>>
>>

-- 
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/42aab346-2078-4494-9361-6b9334ee77fdn%40googlegroups.com.


[google-appengine] Re: App Engine Phishing Website

2022-06-17 Thread 'Hector Martinez Rodriguez' via Google App Engine
The form you submitted is correct, but you can additionally use this one 
 to report the 
fraudulent clone. Nevertheless, we created an internal report to escalate 
this concern too.

On Thursday, June 16, 2022 at 4:58:18 PM UTC-5 dbab...@alluresecurity.com 
wrote:

> Hello,
> I used the form 
>  to report 
> a phishing website 10 days ago and the site, while difficult to reach, is 
> still publicly accessible.
>
> What can we do to escalate?
>
> IP address: 34.145.113.173
> https://34.145.113.173/
> *Hostname:* 173.113.145.34.bc.googleusercontent.com.
>
> That's a fraudulent clone of First Republic Bank's online banking website.
>
>
>

-- 
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/ae033d4f-4057-4587-86cb-a62ae64ddd8dn%40googlegroups.com.


Re: [google-appengine] Re: appengine cron jobs

2022-06-16 Thread 'Jose Lorea Sanchez' via Google App Engine


It seems there is no way to delete them directly from the Console. Instead, 
you will need to follow the documentation on Deleting cron jobs 

 
selecting the language you are currently using. 

Here is an example using Python and Java 
,
 
and here is another using the gcloud command tool 

.

On Wednesday, June 15, 2022 at 10:21:39 PM UTC-5 
rajesh...@veersoftsolutions.com wrote:

> I dont see the jobs to pause them.  Regards,
>
> [image: image.png]
>
> On Thu, Jun 16, 2022 at 12:36 AM 'Andres Marquez Rodriguez' via Google App 
> Engine  wrote:
>
>> You can’t ‘stop’ it, but here is a documentation on how to pause it. [1]
>>
>> [1] https://cloud.google.com/scheduler/docs/creating?hl=en#pause
>> On Wednesday, June 15, 2022 at 3:25:20 AM UTC-5 
>> rajesh...@veersoftsolutions.com wrote:
>>
>>> Hello,
>>> How do I stop 'appengine-cron-jobs' from a console?
>>> I am referring to the following screen in the console
>>>
>>> [image: image.png]
>>>
>>>
>>> --
>>> Support 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-appengi...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/a603e840-dd7d-4213-a1a9-4cba745ecf24n%40googlegroups.com
>>  
>> 
>> .
>>
>
> -- 
> Support 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/eb34a6b4-4fad-4518-ae48-7d4279bb0a19n%40googlegroups.com.


[google-appengine] App Engine Phishing Website

2022-06-16 Thread Dan Babbitt
Hello,
I used the form 
 to report a 
phishing website 10 days ago and the site, while difficult to reach, is 
still publicly accessible.

What can we do to escalate?

IP address: 34.145.113.173
https://34.145.113.173/
*Hostname:* 173.113.145.34.bc.googleusercontent.com.

That's a fraudulent clone of First Republic Bank's online banking website.


-- 
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/2a0b704f-6721-4ccc-a84e-16284fb0555en%40googlegroups.com.


Re: [google-appengine] Re: appengine cron jobs

2022-06-15 Thread 'Rajesh G' via Google App Engine
I dont see the jobs to pause them.  Regards,

[image: image.png]

On Thu, Jun 16, 2022 at 12:36 AM 'Andres Marquez Rodriguez' via Google App
Engine  wrote:

> You can’t ‘stop’ it, but here is a documentation on how to pause it. [1]
>
> [1] https://cloud.google.com/scheduler/docs/creating?hl=en#pause
> On Wednesday, June 15, 2022 at 3:25:20 AM UTC-5
> rajesh...@veersoftsolutions.com wrote:
>
>> Hello,
>> How do I stop 'appengine-cron-jobs' from a console?
>> I am referring to the following screen in the console
>>
>> [image: image.png]
>>
>>
>> --
>> Support 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/a603e840-dd7d-4213-a1a9-4cba745ecf24n%40googlegroups.com
> 
> .
>


-- 
Support 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/CA%2BS7ijbGDeaPunjtK1PLhq0iFXhg5AU9ROA9TiKQgxtf9kL8XQ%40mail.gmail.com.


[google-appengine] Re: appengine cron jobs

2022-06-15 Thread 'Andres Marquez Rodriguez' via Google App Engine


You can’t ‘stop’ it, but here is a documentation on how to pause it. [1]

[1] https://cloud.google.com/scheduler/docs/creating?hl=en#pause
On Wednesday, June 15, 2022 at 3:25:20 AM UTC-5 
rajesh...@veersoftsolutions.com wrote:

> Hello,
> How do I stop 'appengine-cron-jobs' from a console?
> I am referring to the following screen in the console
>
> [image: image.png]
>
>
> --
> Support 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/a603e840-dd7d-4213-a1a9-4cba745ecf24n%40googlegroups.com.


Re: [google-appengine] Re: Not able to delete app engine

2022-06-15 Thread sidh kadu
Hi,

Please refer to the attachment, I have done some testing and after
that want to delete this on my personal account.

I'm not able to delete, now I have disabled app but I'm not sure
billing is still active.

I have deleted the bucket as well but only not able to delete this app engine.

Regards,
Siddhesh Kadu

On Wed, Jun 15, 2022 at 10:28 PM 'Osvaldo Lopez Acuña' via Google App
Engine  wrote:
>
> Please share exactly what you have tried to delete your versions and service, 
> what documentation you have checked, any error or log you have. If your 
> environment is standard or flexible and also it might be helpful to share 
> which language you are using. Finally, make sure you have the right 
> credentials to do it.
>
> If you’re using Cloud SDK this document [1] might be helpful. Consider that 
> you cannot delete a version of a service that is currently receiving traffic.
>
> [1]:https://cloud.google.com/sdk/gcloud/reference/app/versions/delete
>
> On Tuesday, June 14, 2022 at 4:26:42 PM UTC-5 sidh@gmail.com wrote:
>>
>> Hi Team,
>>
>> I have created app engine for some testing, but now I'm not able to delete.
>>
>> Can you please help me, how to delete Versions and services.
>>
>> Regards,
>> Siddhesh Kadu
>
> --
> 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/89c2f99e-fa3d-4abc-96eb-f1c8d55d16e4n%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/CAK77F48rE%3D7chxeKsJX7k-Ry3R4pQP8iDGMKt7CqwfZn_DHpjg%40mail.gmail.com.


[google-appengine] Re: Not able to delete app engine

2022-06-15 Thread 'Osvaldo Lopez Acuña' via Google App Engine


Please share exactly what you have tried to delete your versions and 
service, what documentation you have checked, any error or log you have. If 
your environment is standard or flexible and also it might be helpful to 
share which language you are using. Finally, make sure you have the right 
credentials to do it.

If you’re using Cloud SDK this document [1] might be helpful. Consider that 
you cannot delete a version of a service that is currently receiving 
traffic.
[1]:https://cloud.google.com/sdk/gcloud/reference/app/versions/delete

On Tuesday, June 14, 2022 at 4:26:42 PM UTC-5 sidh@gmail.com wrote:

> Hi Team,
>
> I have created app engine for some testing, but now I'm not able to delete.
>
> Can you please help me, how to delete Versions and services.
>
> Regards,
> Siddhesh Kadu
>

-- 
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/89c2f99e-fa3d-4abc-96eb-f1c8d55d16e4n%40googlegroups.com.


[google-appengine] Creation of image from iso and use it for creation of working compute instance

2022-06-15 Thread new user
Hi GCP group,

Can anyone help in achieving this task.

1) iso to bootable image
2) bootable image to compute instance
3) and ssh and rdp should work without any issues for the created vm.

Initially we followed this steps in the following documentation.

https://cloud.google.com/compute/docs/images/creating-an-image-from-an-iso-file#local-iso-file

But the problem is we are able to create the image out of it. But the image 
created is not a bootable one. Hence the compute engine instance created 
out of it will not have a bootable os on it and we cant rdp and ssh on 
respective windows and linux  vm's.

Can anyone find a alternative solution or fix for this issue?

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/721ff579-e877-4d1c-874e-390fdf5224bfn%40googlegroups.com.


[google-appengine] appengine cron jobs

2022-06-15 Thread 'Rajesh G' via Google App Engine
Hello,
How do I stop 'appengine-cron-jobs' from a console?
I am referring to the following screen in the console

[image: image.png]


--
Support 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/CA%2BS7ijb3pqCFsmAX5bcVgGk15cwN30amyaSpjndUhUz0eO%3D7zg%40mail.gmail.com.


[google-appengine] Not able to delete app engine

2022-06-14 Thread sidh kadu
Hi Team,

I have created app engine for some testing, but now I'm not able to delete.

Can you please help me, how to delete Versions and services.

Regards,
Siddhesh Kadu

-- 
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/8c3f801c-e7ff-40ad-a788-470641266931n%40googlegroups.com.


[google-appengine] Compute engine - Not able to run startup script

2022-06-14 Thread Rohith Kodiyath
I am not able to run startup script . Getting the following error

`
systemd[1]: google-startup-scripts.service: Main process exited, 
code=exited, status=1/FAILURE
systemd[1]: google-startup-scripts.service: Failed with result 'exit-code'
systemd[1]: Failed to start Google Compute Engine Startup Scripts.

`
and my startup script

`
#! /bin/bash 
apt-get remove --auto-remove sshguard 
apt-get purge --auto-remove sshguard

`
Instance Image : ubuntu-1804-bionic-v20190722a
Am I doing something wrong ?. Added the startup script in the metadata and 
restarted the instance.
Note: I am not able to run browser SSH due to some issue. To debug the 
issue I am trying to disable the 'sshguard' service in the instance

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/5dd4f5bf-215b-4cc0-a15d-be481c350f8bn%40googlegroups.com.


[google-appengine] Re: App Engine & Cloud Run in VPC

2022-06-06 Thread 'Ernesto Contreras Pinon' via Google App Engine


The VPC serverless connectors would work well for this purpose, since they 
are used to connect your serverless services to a VPC with internal IP 
addresses. This ensures that the connection between the front and back ends 
goes through the VPC and not the internet.

This documentation  
should 
be a starting point to know more about VPC serverless access.
On Monday, June 6, 2022 at 9:55:29 AM UTC-5 kryt...@googlemail.com wrote:

> Hi
> I am setting up a front-end in App Engine which speaks to a back-end in 
> Cloud Run and I'd like all the traffic to be private (internal only). 
>
> Is it necessary to use a serverless VPC Connector for this?
>
> I had pictured just adding these resources to the VPC subnet for the 
> relevant region. Any pointers would be very welcome!
>
> 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/c323f3c6-c787-4e7f-933c-36b860188a7cn%40googlegroups.com.


[google-appengine] Re: Using pubsub to trigger subsequent cloud build with filtering

2022-06-06 Thread 'Jose Perez Sanchez' via Google App Engine


According to the error message, certain variables aren't sufficiently 
defined. 

Could you please check your IAM allocated roles? You should be something 
close to an "admin." It appears to be a rights-related error.

Under Cloud Build, look at the Logging sections. Whether there isn't 
anything, you could try editing the trigger with the API 

 
to see if it also fails. It might provide further information about the 
real error.

Identity requirements To update Cloud Build triggers, you'll need the 
permission 
 
cloudbuild.build.create.

You can also try disabling and enabling the Cloud Build API in your project 
so a new service account is created, or adding the role “App Engine 
Deployer” to the cloud build service account, then try to deploy again.

On Friday, June 3, 2022 at 2:45:49 PM UTC-5 t...@terratrue.com wrote:

>
> To be 100% explicit, I am adding the following into the Filters section of 
> my Cloud Build Trigger, within the "Filter Editor" tab, as the first tab 
> doesn't let me select anything useful from the build pub/sub message. This 
> is right from the documentation.
>
> *filter: build.status == Build.Status.SUCCESS*
>
> And when I try to save my trigger, I receive this error at the bottom of 
> the page:
>
> *Failed to update trigger: generic::invalid_argument: ERROR: :1:7: 
> Syntax error: mismatched input ':' expecting  | filter: build.status 
> == Build.Status.SUCCESS | ..^*
>
> I also tried removing "*filter: *" as it seems redundant to have that, 
> but that also fails with an error:
>
> *Failed to update trigger: generic::invalid_argument: ERROR: :1:1: 
> undeclared reference to 'build' (in container '') | build.status == 
> Build.Status.SUCCESS | ^ ERROR: :1:17: undeclared reference to 
> 'Build' (in container '') | build.status == Build.Status.SUCCESS | 
> ^*
>
> Nothing I have tried seems to be valid in this and the documentation link 
> right there in the trigger editor UI is exactly the documentation giving 
> the examples.
> [image: cloud-build-trigger-filters-error.png]
>
> I've been working at this for a few days, and I'm out of ideas for making 
> this function as documented. Please, some assistance is needed.
>
> Thanks.
>
> On Thursday, June 2, 2022 at 5:52:19 PM UTC-7 Tom Harris wrote:
>
>>
>> I have one cloud build trigger in one of our projects that deploys an App 
>> Engine. I have also created a pubsub topic named 'cloud-builds' in this 
>> same project, and I see that build event messages are being sent to that 
>> topic during and at the end of builds.
>>
>> I am attempting to use this topic in another project with a pubsub cloud 
>> build trigger. This works, but has no filtering, and as described on this 
>> page, its firing the build way too often:
>>
>>
>> https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#risks_associated_with_an_unfiltered_trigger
>>
>> Now, all I need to determine how to do is add the filtering so only 
>> successful builds with the right trigger ID are used. The documentation (
>> https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#using_cel_to_filter_build_events)
>>  
>> says to add something like this to my cloud build trigger filter:
>>
>> filter: build.build_trigger_id == "redacted" && build.status == 
>> Build.Status.SUCCESS
>>
>> However, I am never able to save my trigger, as whatever I type into the 
>> filter fails syntax validation. All the examples given on that page fail. I 
>> have not been able to find any examples on the net, either. I have tried 
>> subsets of these, exactly as described in the documentation, and they all 
>> fail with syntax errors.
>>
>> How is this supposed to be entered into the cloud build trigger filter? 
>> We cannot have every one of the pubsub messages firing a build, as I saw at 
>> least 15 messages delivered when there was no filter, triggering 15 builds 
>> in quick succession, most of which failed due to app engine deployment 
>> concurrency.
>>
>> Please, need some assistance. Also, better documentation around this area 
>> would be good.
>>
>> Many thanks,
>> Tom Harris
>>
>>
>>

-- 
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/774004fd-e9c3-42b6-ae28-c58e03f52a8fn%40googlegroups.com.


[google-appengine] App Engine & Cloud Run in VPC

2022-06-06 Thread 'Stuart Henderson' via Google App Engine
Hi
I am setting up a front-end in App Engine which speaks to a back-end in 
Cloud Run and I'd like all the traffic to be private (internal only). 

Is it necessary to use a serverless VPC Connector for this?

I had pictured just adding these resources to the VPC subnet for the 
relevant region. Any pointers would be very welcome!

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/77a92131-80e2-4c2b-b9fc-cbc47095d94cn%40googlegroups.com.


[google-appengine] Re: Using pubsub to trigger subsequent cloud build with filtering

2022-06-03 Thread Tom Harris

To be 100% explicit, I am adding the following into the Filters section of 
my Cloud Build Trigger, within the "Filter Editor" tab, as the first tab 
doesn't let me select anything useful from the build pub/sub message. This 
is right from the documentation.

*filter: build.status == Build.Status.SUCCESS*

And when I try to save my trigger, I receive this error at the bottom of 
the page:

*Failed to update trigger: generic::invalid_argument: ERROR: :1:7: 
Syntax error: mismatched input ':' expecting  | filter: build.status 
== Build.Status.SUCCESS | ..^*

I also tried removing "*filter: *" as it seems redundant to have that, but 
that also fails with an error:

*Failed to update trigger: generic::invalid_argument: ERROR: :1:1: 
undeclared reference to 'build' (in container '') | build.status == 
Build.Status.SUCCESS | ^ ERROR: :1:17: undeclared reference to 
'Build' (in container '') | build.status == Build.Status.SUCCESS | 
^*

Nothing I have tried seems to be valid in this and the documentation link 
right there in the trigger editor UI is exactly the documentation giving 
the examples.
[image: cloud-build-trigger-filters-error.png]

I've been working at this for a few days, and I'm out of ideas for making 
this function as documented. Please, some assistance is needed.

Thanks.

On Thursday, June 2, 2022 at 5:52:19 PM UTC-7 Tom Harris wrote:

>
> I have one cloud build trigger in one of our projects that deploys an App 
> Engine. I have also created a pubsub topic named 'cloud-builds' in this 
> same project, and I see that build event messages are being sent to that 
> topic during and at the end of builds.
>
> I am attempting to use this topic in another project with a pubsub cloud 
> build trigger. This works, but has no filtering, and as described on this 
> page, its firing the build way too often:
>
>
> https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#risks_associated_with_an_unfiltered_trigger
>
> Now, all I need to determine how to do is add the filtering so only 
> successful builds with the right trigger ID are used. The documentation (
> https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#using_cel_to_filter_build_events)
>  
> says to add something like this to my cloud build trigger filter:
>
> filter: build.build_trigger_id == "redacted" && build.status == 
> Build.Status.SUCCESS
>
> However, I am never able to save my trigger, as whatever I type into the 
> filter fails syntax validation. All the examples given on that page fail. I 
> have not been able to find any examples on the net, either. I have tried 
> subsets of these, exactly as described in the documentation, and they all 
> fail with syntax errors.
>
> How is this supposed to be entered into the cloud build trigger filter? We 
> cannot have every one of the pubsub messages firing a build, as I saw at 
> least 15 messages delivered when there was no filter, triggering 15 builds 
> in quick succession, most of which failed due to app engine deployment 
> concurrency.
>
> Please, need some assistance. Also, better documentation around this area 
> would be good.
>
> Many thanks,
> Tom Harris
>
>
>

-- 
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/e4e20d14-8b5a-4922-93a7-06025f370e30n%40googlegroups.com.


[google-appengine] Re: The API call datastore_v3.Put() enable

2022-06-03 Thread Ankit Dwivedi
Thanks, Its working with your suggestion.

On Tuesday, 31 May 2022 at 01:07:06 UTC+5:30 NoCommandLine wrote:

> Correction -  '*gcloud beta app deploy*' 
>
> On Monday, May 30, 2022 at 12:33:27 PM UTC-7 NoCommandLine wrote:
>
>> Try deploying your app with *'gcloud app beta deploy' *instead of the 
>> normal 'gcloud app deploy'
>>
>> When 'Bundled API for Python 3' was first released, it was only available 
>> in beta and required you to use 'gcloud app beta' commands. If you didn't, 
>> you would get the error about enabling 'app_engine_apis' even when you had 
>> it enabled. 
>>
>> The github sample/documentation 
>>  still 
>> has that instruction but the main documentation 
>>  
>> no longer has it.
>>
>>
>>  * .* NoCommandLine *..*
>>  https://nocommandline.com
>> *A GUI for Google App Engine*
>>
>> On Monday, May 30, 2022 at 10:24:50 AM UTC-7 ankit...@gmail.com wrote:
>>
>>> Can anyone help us into this please.
>>>
>>> On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:
>>>
 Hi All,

 We are facing a issue when trying to use memcache in one of our 
 application and getting below error.

 Traceback (most recent call last): File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
 line 2077, in wsgi_app response = self.full_dispatch_request() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
 line 1525, in full_dispatch_request rv = self.handle_user_exception(e) 
 File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
 line 1523, in full_dispatch_request rv = self.dispatch_request() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
 line 1509, in dispatch_request return 
 self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
 "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
 "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
 {}'.format(remote_addr, user_agent)).put() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
  
 line 3538, in _put return self._put_async(**ctx_options).get_result() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
  
 line 397, in get_result self.check_success() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
  
 line 394, in check_success six.reraise(self._exception.__class__, 
 self._exception, self._traceback) File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
 719, in reraise raise value File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
  
 line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
 File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
  
 line 850, in put key = yield self._put_batcher.add(entity, options) File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
  
 line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
 File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
  
 line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
 datastore_entities) File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
  
 line 527, in _on_rpc_completion result = rpc.get_result() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
  
 line 648, in get_result return self.__get_result_hook(self) File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
  
 line 1875, in __put_hook self.check_rpc_success(rpc) File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
  
 line 1365, in check_rpc_success rpc.check_success() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
  
 line 614, in check_success self.__rpc.CheckSuccess() File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
  
 line 149, in CheckSuccess raise self.exception File 
 "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
  
 line 276, in _CaptureTrace f(**kwargs) File 
 

[google-appengine] Using pubsub to trigger subsequent cloud build with filtering

2022-06-02 Thread Tom Harris

I have one cloud build trigger in one of our projects that deploys an App 
Engine. I have also created a pubsub topic named 'cloud-builds' in this 
same project, and I see that build event messages are being sent to that 
topic during and at the end of builds.

I am attempting to use this topic in another project with a pubsub cloud 
build trigger. This works, but has no filtering, and as described on this 
page, its firing the build way too often:

https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#risks_associated_with_an_unfiltered_trigger

Now, all I need to determine how to do is add the filtering so only 
successful builds with the right trigger ID are used. The documentation 
(https://cloud.google.com/build/docs/automating-builds/create-pubsub-triggers#using_cel_to_filter_build_events)
 
says to add something like this to my cloud build trigger filter:

filter: build.build_trigger_id == "redacted" && build.status == 
Build.Status.SUCCESS

However, I am never able to save my trigger, as whatever I type into the 
filter fails syntax validation. All the examples given on that page fail. I 
have not been able to find any examples on the net, either. I have tried 
subsets of these, exactly as described in the documentation, and they all 
fail with syntax errors.

How is this supposed to be entered into the cloud build trigger filter? We 
cannot have every one of the pubsub messages firing a build, as I saw at 
least 15 messages delivered when there was no filter, triggering 15 builds 
in quick succession, most of which failed due to app engine deployment 
concurrency.

Please, need some assistance. Also, better documentation around this area 
would be good.

Many thanks,
Tom Harris


-- 
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/3d4b74b4-30c4-437b-b1c9-f55de84ade7dn%40googlegroups.com.


[google-appengine] Re: Adding custom domain that does not support AAAA

2022-06-02 Thread 'Ernesto Contreras Pinon' via Google App Engine


Which domain name registrar are you using for your domain? Also, what is 
the incompatibility you are seeing with  records from your App Engine 
app? You can check the documentation 

 for 
additional information, which includes how to map A or  records from 
your App Engine app to your domain.
On Wednesday, June 1, 2022 at 5:22:00 PM UTC-5 rafael.es...@gmail.com wrote:

> We have added a custom domain in our AppEngine, but the DNS does not 
> resolve correctly. Invoking the domain causes an 
> ERR_SSL_VERSION_OR_CIPHER_MISMATCH error. From origin there is no 
> compatibility with . Is there a configuration alternative to  that 
> we can add to our AppEngine to resolve this issue?
>
>

-- 
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/9ac867f9-2812-4aa9-8918-ad1106e0aea5n%40googlegroups.com.


[google-appengine] Re: Problem Upgrading from 354.0.0

2022-06-02 Thread 'Andres Marquez Rodriguez' via Google App Engine
As a workaround, you can install Python 3 and set the CLOUDSDK_PYTHON env 
var to python3.

On Wednesday, June 1, 2022 at 5:37:55 PM UTC-5 ron...@gmail.com wrote:

> No, I'm still using version 354.0.0. This was the response from the 
> support team (I'm not sure they understand the issue is with their PHP 
> server dev_appserver.py).  Let me know if you find an answer.
>
> *Hi,*
>
> *Thanks for contacting Google Cloud Platform Support Team,*
>
> *I was reviewing this issue and as the error message says, the environment 
> must only contain strings.*
>
> *Note that, judging by this traceback as example 
> , 
> you are using Python 2.6(in this example case), so the linked code does not 
> in fact apply, because it comes from Python 3.3.0 beta2 
> . PyUnicode_Check 
> checks that the object is a unicode object, which makes sense in Python 3, 
> where strings are (internally implemented as) unicode objects. In Python 
> 2.6, however, the equivalent line 
>  is 
> using PyString_Check.*
>
> *One workaround is to downgrade 364.0.0 to 354.0.0 to resolve this issue.*
>
> *Finally you can take a look to these 2 Stackoverflow post which also 
> include valuable details about this topic:*
>
> *can-only-contain-strings* 
> 
>
> *contains-a-unicode-object* 
> 
>
> *Thanks and regards.*
>
> On Wednesday, June 1, 2022 at 3:21:57 PM UTC-7 djsc...@gmail.com wrote:
>
>> Did you manage to solve this? Suffering the same issue on Windows 11 
>> since updating components 'gcloud components update'
>>
>> On Friday, 19 November 2021 at 20:49:38 UTC ron...@gmail.com wrote:
>>
>>> When I have attempted to upgrade from version 354.0.0 to 364.0.0 or to 
>>> 365.0.00 on Windows 7 with python 2.7 installed the upgrade finishes 
>>> without error, but I have the issue below. If I revert my installation back 
>>> to 354.0.0 it works fine.
>>>
>>> I can execute dev_appserver.py app.yaml without issue,  But when I open 
>>> my browser and goto http://localhost:8080/ I receive the following 
>>> messages:
>>>
>>> C:\www\test>dev_appserver.py app.yaml
>>> INFO 2021-11-19 12:09:26,140 devappserver2.py:316] Skipping SDK 
>>> update check.
>>> INFO 2021-11-19 12:09:26,875 :383] Starting API server at: 
>>> http://localhost:63789
>>> INFO 2021-11-19 12:09:27,045 dispatcher.py:281] Starting module 
>>> "default" running at: http://localhost:8080
>>> INFO 2021-11-19 12:09:27,048 admin_server.py:150] Starting admin 
>>> server at: http://localhost:8000
>>> INFO 2021-11-19 12:09:32,921 instance.py:294] Instance PID: 6876
>>> ERROR:root:Failure to start PHP with: 
>>> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\g
>>> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
>>> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
>>> \\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
>>> 'C:\\www\\test', '-d', 'zend
>>> _extension="C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.
>>> 5-Win32-VC11-x86\\php_xdebug.dll"', '-d', 
>>> 'extension="php_gae_runtime_module.dll"', '-d', 
>>> 'extension_dir="C:\\Users\\Ron
>>> \\AppData\\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.5-Win32-VC11-x86"']
>>> Traceback (most recent call last):
>>> INFO 2021-11-19 12:09:33,921 module.py:883] default: "GET /_ah/start 
>>> HTTP/1.1" 500 754
>>>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
>>> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
>>> vappserver2\php\runtime\runtime.py", line 269, in __call__
>>> stdout=subprocess.PIPE)
>>>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
>>> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
>>> vappserver2\safe_subprocess.py", line 84, in start_process
>>> shell=shell)
>>>   File "C:\Python27\lib\subprocess.py", line 394, in __init__
>>> errread, errwrite)
>>>   File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
>>> startupinfo)
>>> TypeError: environment can only contain strings
>>> ERROR:root:Failure to start PHP with: 
>>> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\g
>>> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
>>> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
>>> \\Local\\Google\\Cloud 
>>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
>>> 'C:\\www\\test', '-d', 'zend
>>> 

[google-appengine] Re: Problem Upgrading from 354.0.0

2022-06-01 Thread ron...@gmail.com
No, I'm still using version 354.0.0. This was the response from the support 
team (I'm not sure they understand the issue is with their PHP server 
dev_appserver.py).  Let me know if you find an answer.

*Hi,*

*Thanks for contacting Google Cloud Platform Support Team,*

*I was reviewing this issue and as the error message says, the environment 
must only contain strings.*

*Note that, judging by this traceback as example 
, 
you are using Python 2.6(in this example case), so the linked code does not 
in fact apply, because it comes from Python 3.3.0 beta2 
. PyUnicode_Check 
checks that the object is a unicode object, which makes sense in Python 3, 
where strings are (internally implemented as) unicode objects. In Python 
2.6, however, the equivalent line 
 is 
using PyString_Check.*

*One workaround is to downgrade 364.0.0 to 354.0.0 to resolve this issue.*

*Finally you can take a look to these 2 Stackoverflow post which also 
include valuable details about this topic:*

*can-only-contain-strings* 


*contains-a-unicode-object* 


*Thanks and regards.*

On Wednesday, June 1, 2022 at 3:21:57 PM UTC-7 djsc...@gmail.com wrote:

> Did you manage to solve this? Suffering the same issue on Windows 11 since 
> updating components 'gcloud components update'
>
> On Friday, 19 November 2021 at 20:49:38 UTC ron...@gmail.com wrote:
>
>> When I have attempted to upgrade from version 354.0.0 to 364.0.0 or to 
>> 365.0.00 on Windows 7 with python 2.7 installed the upgrade finishes 
>> without error, but I have the issue below. If I revert my installation back 
>> to 354.0.0 it works fine.
>>
>> I can execute dev_appserver.py app.yaml without issue,  But when I open 
>> my browser and goto http://localhost:8080/ I receive the following 
>> messages:
>>
>> C:\www\test>dev_appserver.py app.yaml
>> INFO 2021-11-19 12:09:26,140 devappserver2.py:316] Skipping SDK 
>> update check.
>> INFO 2021-11-19 12:09:26,875 :383] Starting API server at: 
>> http://localhost:63789
>> INFO 2021-11-19 12:09:27,045 dispatcher.py:281] Starting module 
>> "default" running at: http://localhost:8080
>> INFO 2021-11-19 12:09:27,048 admin_server.py:150] Starting admin 
>> server at: http://localhost:8000
>> INFO 2021-11-19 12:09:32,921 instance.py:294] Instance PID: 6876
>> ERROR:root:Failure to start PHP with: 
>> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\g
>> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
>> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
>> \\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
>> 'C:\\www\\test', '-d', 'zend
>> _extension="C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.
>> 5-Win32-VC11-x86\\php_xdebug.dll"', '-d', 
>> 'extension="php_gae_runtime_module.dll"', '-d', 
>> 'extension_dir="C:\\Users\\Ron
>> \\AppData\\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.5-Win32-VC11-x86"']
>> Traceback (most recent call last):
>> INFO 2021-11-19 12:09:33,921 module.py:883] default: "GET /_ah/start 
>> HTTP/1.1" 500 754
>>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
>> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
>> vappserver2\php\runtime\runtime.py", line 269, in __call__
>> stdout=subprocess.PIPE)
>>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
>> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
>> vappserver2\safe_subprocess.py", line 84, in start_process
>> shell=shell)
>>   File "C:\Python27\lib\subprocess.py", line 394, in __init__
>> errread, errwrite)
>>   File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
>> startupinfo)
>> TypeError: environment can only contain strings
>> ERROR:root:Failure to start PHP with: 
>> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\g
>> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
>> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
>> \\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
>> 'C:\\www\\test', '-d', 'zend
>> _extension="C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
>> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.
>> 5-Win32-VC11-x86\\php_xdebug.dll"', '-d', 
>> 'extension="php_gae_runtime_module.dll"', '-d', 
>> 'extension_dir="C:\\Users\\Ron
>> \\AppData\\Local\\Google\\Cloud 
>> 

[google-appengine] Adding custom domain that does not support AAAA

2022-06-01 Thread Rafael Espí Botella
We have added a custom domain in our AppEngine, but the DNS does not 
resolve correctly. Invoking the domain causes an 
ERR_SSL_VERSION_OR_CIPHER_MISMATCH error. From origin there is no 
compatibility with . Is there a configuration alternative to  that 
we can add to our AppEngine to resolve this issue?

-- 
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/84d239b6-ca8e-47d1-a191-3830cd5d1f43n%40googlegroups.com.


[google-appengine] Re: Problem Upgrading from 354.0.0

2022-06-01 Thread Michael Fawcett
Did you manage to solve this? Suffering the same issue on Windows 11 since 
updating components 'gcloud components update'

On Friday, 19 November 2021 at 20:49:38 UTC ron...@gmail.com wrote:

> When I have attempted to upgrade from version 354.0.0 to 364.0.0 or to 
> 365.0.00 on Windows 7 with python 2.7 installed the upgrade finishes 
> without error, but I have the issue below. If I revert my installation back 
> to 354.0.0 it works fine.
>
> I can execute dev_appserver.py app.yaml without issue,  But when I open my 
> browser and goto http://localhost:8080/ I receive the following messages:
>
> C:\www\test>dev_appserver.py app.yaml
> INFO 2021-11-19 12:09:26,140 devappserver2.py:316] Skipping SDK update 
> check.
> INFO 2021-11-19 12:09:26,875 :383] Starting API server at: 
> http://localhost:63789
> INFO 2021-11-19 12:09:27,045 dispatcher.py:281] Starting module 
> "default" running at: http://localhost:8080
> INFO 2021-11-19 12:09:27,048 admin_server.py:150] Starting admin 
> server at: http://localhost:8000
> INFO 2021-11-19 12:09:32,921 instance.py:294] Instance PID: 6876
> ERROR:root:Failure to start PHP with: 
> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\g
> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
> \\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
> 'C:\\www\\test', '-d', 'zend
> _extension="C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.
> 5-Win32-VC11-x86\\php_xdebug.dll"', '-d', 
> 'extension="php_gae_runtime_module.dll"', '-d', 
> 'extension_dir="C:\\Users\\Ron
> \\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.5-Win32-VC11-x86"']
> Traceback (most recent call last):
> INFO 2021-11-19 12:09:33,921 module.py:883] default: "GET /_ah/start 
> HTTP/1.1" 500 754
>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
> vappserver2\php\runtime\runtime.py", line 269, in __call__
> stdout=subprocess.PIPE)
>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
> vappserver2\safe_subprocess.py", line 84, in start_process
> shell=shell)
>   File "C:\Python27\lib\subprocess.py", line 394, in __init__
> errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
> startupinfo)
> TypeError: environment can only contain strings
> ERROR:root:Failure to start PHP with: 
> ['C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\g
> oogle_appengine\\php\\php-5.5-Win32-VC11-x86\\php-cgi.exe', '-d', 
> 'include_path=".;C:\\www\\test;C:\\Users\\Ron\\AppData
> \\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\sdk"', '-c', 
> 'C:\\www\\test', '-d', 'zend
> _extension="C:\\Users\\Ron\\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.
> 5-Win32-VC11-x86\\php_xdebug.dll"', '-d', 
> 'extension="php_gae_runtime_module.dll"', '-d', 
> 'extension_dir="C:\\Users\\Ron
> \\AppData\\Local\\Google\\Cloud 
> SDK\\google-cloud-sdk\\platform\\google_appengine\\php\\php-5.5-Win32-VC11-x86"']
> INFO 2021-11-19 12:09:33,940 module.py:883] default: "GET / HTTP/1.1" 
> 500 754
> Traceback (most recent call last):
>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
> vappserver2\php\runtime\runtime.py", line 269, in __call__
> stdout=subprocess.PIPE)
>   File "C:\Users\Ron\AppData\Local\Google\Cloud 
> SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\de
> vappserver2\safe_subprocess.py", line 84, in start_process
> shell=shell)
>   File "C:\Python27\lib\subprocess.py", line 394, in __init__
> errread, errwrite)
>   File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
> startupinfo)
> TypeError: environment can only contain strings
>
>

-- 
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/a6d4f401-b380-4fff-802a-d8fe4bb4e83bn%40googlegroups.com.


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

2022-05-30 Thread Vit Amin
"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.)"

where should I do it in case of Google App Engine Flexible? how to get this 
settings?


On Wednesday, May 18, 2022 at 11:59:16 PM UTC+3 concep...@google.com wrote:

> 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 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread NoCommandLine
Correction -  '*gcloud beta app deploy*' 

On Monday, May 30, 2022 at 12:33:27 PM UTC-7 NoCommandLine wrote:

> Try deploying your app with *'gcloud app beta deploy' *instead of the 
> normal 'gcloud app deploy'
>
> When 'Bundled API for Python 3' was first released, it was only available 
> in beta and required you to use 'gcloud app beta' commands. If you didn't, 
> you would get the error about enabling 'app_engine_apis' even when you had 
> it enabled. 
>
> The github sample/documentation 
>  still 
> has that instruction but the main documentation 
>  
> no longer has it.
>
>
>  * .* NoCommandLine *..*
>  https://nocommandline.com
> *A GUI for Google App Engine*
>
> On Monday, May 30, 2022 at 10:24:50 AM UTC-7 ankit...@gmail.com wrote:
>
>> Can anyone help us into this please.
>>
>> On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:
>>
>>> Hi All,
>>>
>>> We are facing a issue when trying to use memcache in one of our 
>>> application and getting below error.
>>>
>>> Traceback (most recent call last): File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 2077, in wsgi_app response = self.full_dispatch_request() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1509, in dispatch_request return 
>>> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
>>> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
>>> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
>>> {}'.format(remote_addr, user_agent)).put() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>>>  
>>> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 397, in get_result self.check_success() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 394, in check_success six.reraise(self._exception.__class__, 
>>> self._exception, self._traceback) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
>>> 719, in reraise raise value File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>>> File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>>  
>>> line 850, in put key = yield self._put_batcher.add(entity, options) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>>> File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>>  
>>> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
>>> datastore_entities) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 527, in _on_rpc_completion result = rpc.get_result() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>>  
>>> line 648, in get_result return self.__get_result_hook(self) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>>  
>>> line 1875, in __put_hook self.check_rpc_success(rpc) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>>  
>>> line 1365, in check_rpc_success rpc.check_success() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>>  
>>> line 614, in check_success self.__rpc.CheckSuccess() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>>>  
>>> line 149, in CheckSuccess raise self.exception File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>>  
>>> line 276, in _CaptureTrace f(**kwargs) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>>  
>>> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
>>> File 
>>> 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread NoCommandLine
Try deploying your app with *'gcloud app beta deploy' *instead of the 
normal 'gcloud app deploy'

When 'Bundled API for Python 3' was first released, it was only available 
in beta and required you to use 'gcloud app beta' commands. If you didn't, 
you would get the error about enabling 'app_engine_apis' even when you had 
it enabled. 

The github sample/documentation 
 still 
has that instruction but the main documentation 
 
no longer has it.


 * .* NoCommandLine *..*
 https://nocommandline.com
*A GUI for Google App Engine*

On Monday, May 30, 2022 at 10:24:50 AM UTC-7 ankit...@gmail.com wrote:

> Can anyone help us into this please.
>
> On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:
>
>> Hi All,
>>
>> We are facing a issue when trying to use memcache in one of our 
>> application and getting below error.
>>
>> Traceback (most recent call last): File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 2077, in wsgi_app response = self.full_dispatch_request() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1509, in dispatch_request return 
>> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
>> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
>> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
>> {}'.format(remote_addr, user_agent)).put() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>>  
>> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 397, in get_result self.check_success() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 394, in check_success six.reraise(self._exception.__class__, 
>> self._exception, self._traceback) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
>> 719, in reraise raise value File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>  
>> line 850, in put key = yield self._put_batcher.add(entity, options) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>  
>> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
>> datastore_entities) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 527, in _on_rpc_completion result = rpc.get_result() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>  
>> line 648, in get_result return self.__get_result_hook(self) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>  
>> line 1875, in __put_hook self.check_rpc_success(rpc) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>  
>> line 1365, in check_rpc_success rpc.check_success() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>  
>> line 614, in check_success self.__rpc.CheckSuccess() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>>  
>> line 149, in CheckSuccess raise self.exception File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 276, in _CaptureTrace f(**kwargs) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 135, in _TranslateToError raise self._ErrorException(exception_type, 
>> msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread Ankit Dwivedi
Can anyone help us into this please.

On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:

> Hi All,
>
> We are facing a issue when trying to use memcache in one of our 
> application and getting below error.
>
> Traceback (most recent call last): File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 2077, in wsgi_app response = self.full_dispatch_request() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1509, in dispatch_request return 
> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
> {}'.format(remote_addr, user_agent)).put() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>  
> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 397, in get_result self.check_success() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 394, in check_success six.reraise(self._exception.__class__, 
> self._exception, self._traceback) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
> 719, in reraise raise value File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>  
> line 850, in put key = yield self._put_batcher.add(entity, options) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>  
> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
> datastore_entities) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 527, in _on_rpc_completion result = rpc.get_result() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>  
> line 648, in get_result return self.__get_result_hook(self) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>  
> line 1875, in __put_hook self.check_rpc_success(rpc) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>  
> line 1365, in check_rpc_success rpc.check_success() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>  
> line 614, in check_success self.__rpc.CheckSuccess() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>  
> line 149, in CheckSuccess raise self.exception File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 276, in _CaptureTrace f(**kwargs) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 135, in _TranslateToError raise self._ErrorException(exception_type, 
> msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 
> API call datastore_v3.Put() is currently not enabled. -- Additional details 
> from server: App Engine APIs are not enabled, please add app_engine_apis: 
> true to your app.yaml to enable.
>
> We have already given app_engine_apis: true in our app.yaml file but still 
> getting same error.
>
> app.yam file -:
> runtime: python39
> app_engine_apis: true
>
> GCP Sample code for testing we are using - 
>
> https://github.com/googlecodelabs/migrate-python2-appengine/tree/master/mod12b-memcache
>
> Can you please help us to resolve this issue.
>
> Regards,
> Rohit Chauhan
>

-- 
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] The API call datastore_v3.Put() enable

2022-05-30 Thread Ankit Dwivedi
Hi All,

We are facing a issue when trying to use memcache in one of our application 
and getting below error.

Traceback (most recent call last): File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 2077, in wsgi_app response = self.full_dispatch_request() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1523, in full_dispatch_request rv = self.dispatch_request() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1509, in dispatch_request return 
self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
"/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
"/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
{}'.format(remote_addr, user_agent)).put() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
 
line 3538, in _put return self._put_async(**ctx_options).get_result() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 397, in get_result self.check_success() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 394, in check_success six.reraise(self._exception.__class__, 
self._exception, self._traceback) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
719, in reraise raise value File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
 
line 850, in put key = yield self._put_batcher.add(entity, options) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
 
line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
datastore_entities) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 527, in _on_rpc_completion result = rpc.get_result() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
 
line 648, in get_result return self.__get_result_hook(self) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
 
line 1875, in __put_hook self.check_rpc_success(rpc) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
 
line 1365, in check_rpc_success rpc.check_success() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
 
line 614, in check_success self.__rpc.CheckSuccess() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
 
line 149, in CheckSuccess raise self.exception File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 276, in _CaptureTrace f(**kwargs) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 135, in _TranslateToError raise self._ErrorException(exception_type, 
msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 
API call datastore_v3.Put() is currently not enabled. -- Additional details 
from server: App Engine APIs are not enabled, please add app_engine_apis: 
true to your app.yaml to enable.

We have already given app_engine_apis: true in our app.yaml file but still 
getting same error.

app.yam file -:
runtime: python39
app_engine_apis: true

GCP Sample code for testing we are using - 
https://github.com/googlecodelabs/migrate-python2-appengine/tree/master/mod12b-memcache

Can you please help us to resolve this issue.

Regards,
Rohit Chauhan

-- 
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/bb1744bf-e3b3-4449-9445-4736b5864a3en%40googlegroups.com.


[google-appengine] Re: GAE deployment throwing Error Response: [13] The system encountered a fatal error

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


The solution from the IssueTracker URL you were not able to access is also 
published in this  Stackoverflow 
thread. You can try to check if it helps, but from the new error that you 
have received, it seems this is more of an issue related to the process of 
building your custom runtime on App Engine Flex.

How long is the build process taking? In case it’s more than the default of 
10 minutes, you’d have to set a larger timeout 
,
 
which can be done alternatively with this command: “gcloud config set 
app/cloud_build_timeout ”. Otherwise, doing a fresh build 
without using cached layers, could also help. You can use the “--no-cache” 
flag when running gcloud app deploy 
 to test this 
out. Moreover, have you also seen any difference when allocating additional 
memory and CPU to your App Engine instance?
On Friday, May 27, 2022 at 10:06:55 AM UTC-5 adrian...@gmail.com wrote:

> Hi Ernesto,
>
> Thanks a lot for the response. 
>
> We have already tried the solutions we found online ie. validated billing 
> account is okay, and adding permissions. etc. Specifics are below:
>
>1. Verified almost all other threads
>2. App.yaml has not defined min or max instance...just instances count 
>is defined as 1
>3. Not a transient network errors as we have tried it almost 15-20 
>times  with no network issues
>4. Reg the code changeseven after reverting the code back to what 
>we had in the successful build it's failing
>5. Quotas are still under the limit
>
> *app.yaml:*
> runtime: custom
> env: flex
> resources:
>   cpu: 1
>   memory_gb: 2
>   disk_size_gb: 15
> manual_scaling:
>   instances: 1
> I will send the full logs as well.
>
> One thing we haven't tried is re-associating the App Engine account to the 
> app. However, we can't access this link in your comment. 
> https://issuetracker.google.com/issues/201556420 Would you be able to 
> give me access to view it or screenshots of the resolution if the access is 
> not possible?
>
> Many thanks!
> On Friday, May 27, 2022 at 5:07:30 AM UTC+8 Ernesto Contreras Pinon wrote:
>
>> This error is rather generic and can be caused by multiple factors. Have 
>> you read past issues like this that have possible solutions? In this 
>> sample , the issue was 
>> solved through re-associating the App Engine service account with the app, 
>> for example. On a different occasion, it appears to be caused by transient 
>> network errors , are 
>> you still unable to deploy the version and are seeing the same error?
>>
>> Otherwise, can you give more details about the changes that you added in 
>> the last deployment which failed? Confirming whether all your App Engine 
>> Flex quotas  are under 
>> the limit would also be useful, which you can confirm by searching on 
>> the Cloud Audit logs 
>>  for any 
>> quota exceeded errors.
>> On Thursday, May 26, 2022 at 10:51:53 AM UTC-5 adrian...@gmail.com wrote:
>>
>>> Wondering if anybody here encountered this error when deploying to app 
>>> engine? There are no changes with the app.yml file config and this was 
>>> working before.
>>>
>>> command used: gcloud app deploy --quiet --no-promote 
>>> --no-stop-previous-version --version={VERSION_NUMBER}
>>>
>>> I have submitted an issue here: 
>>> https://issuetracker.google.com/issues/233865148
>>>
>>

-- 
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/6e849165-e23a-4b94-b0c0-856d4a235926n%40googlegroups.com.


[google-appengine] Re: GAE deployment throwing Error Response: [13] The system encountered a fatal error

2022-05-27 Thread Adriana Capua
Hi Ernesto,

Thanks a lot for the response. 

We have already tried the solutions we found online ie. validated billing 
account is okay, and adding permissions. etc. Specifics are below:

   1. Verified almost all other threads
   2. App.yaml has not defined min or max instance...just instances count 
   is defined as 1
   3. Not a transient network errors as we have tried it almost 15-20 
   times  with no network issues
   4. Reg the code changeseven after reverting the code back to what we 
   had in the successful build it's failing
   5. Quotas are still under the limit

*app.yaml:*
runtime: custom
env: flex
resources:
  cpu: 1
  memory_gb: 2
  disk_size_gb: 15
manual_scaling:
  instances: 1
I will send the full logs as well.

One thing we haven't tried is re-associating the App Engine account to the 
app. However, we can't access this link in your comment. 
https://issuetracker.google.com/issues/201556420 Would you be able to give 
me access to view it or screenshots of the resolution if the access is not 
possible?

Many thanks!
On Friday, May 27, 2022 at 5:07:30 AM UTC+8 Ernesto Contreras Pinon wrote:

> This error is rather generic and can be caused by multiple factors. Have 
> you read past issues like this that have possible solutions? In this 
> sample , the issue was 
> solved through re-associating the App Engine service account with the app, 
> for example. On a different occasion, it appears to be caused by transient 
> network errors , are you 
> still unable to deploy the version and are seeing the same error?
>
> Otherwise, can you give more details about the changes that you added in 
> the last deployment which failed? Confirming whether all your App Engine 
> Flex quotas  are under 
> the limit would also be useful, which you can confirm by searching on the 
> Cloud Audit logs 
>  for any 
> quota exceeded errors.
> On Thursday, May 26, 2022 at 10:51:53 AM UTC-5 adrian...@gmail.com wrote:
>
>> Wondering if anybody here encountered this error when deploying to app 
>> engine? There are no changes with the app.yml file config and this was 
>> working before.
>>
>> command used: gcloud app deploy --quiet --no-promote 
>> --no-stop-previous-version --version={VERSION_NUMBER}
>>
>> I have submitted an issue here: 
>> https://issuetracker.google.com/issues/233865148
>>
>

-- 
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/c681576f-4c31-46f3-9152-97d30ebc400bn%40googlegroups.com.


[google-appengine] Re: Error Response: [13] The system encountered a fatal error

2022-05-27 Thread Adriana Capua
Hi, we are currently experiencing this same issue. May I know how this got 
fixed? Would really appreciate a response. Thank you!

btw- we have already submitted a ticket to Google for this but they haven't 
responded back yet.

On Wednesday, January 26, 2022 at 12:37:12 AM UTC+8 babdelrahman wrote:

> Hello, 
>
> Is this is a Flex deployment? 
> Were there any Org policy changes ?
>
> Document [1] : 
>
> You cannot use the App Engine flexible environment if the organization 
> policy 
>  
> on 
> your project restricts access to external IPs 
> ,
>  
> for example:
>
>- The effective policy for constraints/compute.vmExternalIpAccess is 
>set to DENY_ALL.
>- The effective policy for constraints/compute.vmExternalIpAccess is 
>set to allow only specific VM instances.
>
> Please check the Organization policy for your project, following steps in 
> [1].
>
> [1] https://cloud.google.com/appengine/docs/flexible/known-issues
> [2] 
> https://cloud.google.com/resource-manager/docs/organization-policy/using-constraints#override_boolean_policy
> On Tuesday, January 25, 2022 at 10:05:15 AM UTC-5 jose...@gmail.com wrote:
>
>> Hi App Engine Team,
>>
>>
>> We have been using App Engine normally and just this weekend start to 
>> fail the update. 
>>
>> We update from a Docker container, so there is no cloud build and the 
>> app.yaml file has not changed.
>>
>> After reviewing some suggestions online, we have tried:
>>
>>- Updating the gcloud SDK
>>- Removing old versions in the App Engine console
>>- Validating the docker container into a VM in GCloud
>>- Run this quickstart 
>> 
>>in the same project
>>
>> The problem is that the error is very generic. Do you have any 
>> suggestions?
>>
>>
>> Updating service [default] (this may take several minutes)...-DEBUG: 
>> Operation [apps/-/operations/7162ec80-93f3-4f4e-b555-2ad82e76e90a] not 
>> complete. Waiting to retry.
>> Updating service [default] (this may take several minutes)...|DEBUG: 
>> Operation [apps/-/operations/7162ec80-93f3-4f4e-b555-2ad82e76e90a] 
>> complete. Result: 
>> {
>> "done": true,
>> "error": {
>> "code": 13,
>> "message": "The system encountered a fatal error"
>> },
>> "metadata": {
>> "@type": "
>> type.googleapis.com/google.appengine.v1.OperationMetadataV1",
>> "endTime": "2022-01-25T13:24:24.274Z",
>> "insertTime": "2022-01-25T12:58:17.876Z",
>> "method": "google.appengine.v1.Versions.CreateVersion",
>> "target": "apps/-/services/default/versions/20220125t135813",
>> "user": "@gmail.com"
>> },
>> "name": "apps/-/operations/7162ec80-93f3-4f4e-b555-2ad82e76e90a"
>> }
>> Updating service [default] (this may take several minutes)...failed.
>> DEBUG: (gcloud.app.deploy) Error Response: [13] The system encountered a 
>> fatal error
>> Traceback (most recent call last):
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 987, in 
>> Execute
>> resources = calliope_command.Run(cli=self, args=args)
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 809, in 
>> Run
>> resources = command_instance.Run(args)
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\surface\app\deploy.py", line 123, in Run
>> return deploy_util.RunDeploy(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\app\deploy_util.py", 
>> line 680, in RunDeploy
>> deployer.Deploy(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\app\deploy_util.py", 
>> line 461, in Deploy
>> self.api_client.DeployService(new_version.service, new_version.id,
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\app\appengine_api_client.py",
>>  
>> line 216, in DeployService
>> return operations_util.WaitForOperation(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\app\operations_util.py", 
>> line 307, in WaitForOperation
>> completed_operation = waiter.WaitFor(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\util\waiter.py", line 261, 
>> in WaitFor
>> operation = PollUntilDone(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\util\waiter.py", line 322, 
>> in PollUntilDone
>> operation = retryer.RetryOnResult(
>>   File "D:\Program Files (x86)\Google\Cloud 
>> SDK\google-cloud-sdk\lib\googlecloudsdk\core\util\retry.py", 

[google-appengine] Re: GAE deployment throwing Error Response: [13] The system encountered a fatal error

2022-05-27 Thread Adriana Capua
Here's the part of the logs. Also, the weird thing is we are getting 
different error messages. Last time we were getting the error "[13] The 
system encountered a fatal error" and sometimes "[14] Cloud Container build 
either failed or interrupted.". For this instance when I tried to do a 
deployment again, it's the error 14 again.
On Friday, May 27, 2022 at 5:07:30 AM UTC+8 Ernesto Contreras Pinon wrote:

> This error is rather generic and can be caused by multiple factors. Have 
> you read past issues like this that have possible solutions? In this 
> sample , the issue was 
> solved through re-associating the App Engine service account with the app, 
> for example. On a different occasion, it appears to be caused by transient 
> network errors , are you 
> still unable to deploy the version and are seeing the same error?
>
> Otherwise, can you give more details about the changes that you added in 
> the last deployment which failed? Confirming whether all your App Engine 
> Flex quotas  are under 
> the limit would also be useful, which you can confirm by searching on the 
> Cloud Audit logs 
>  for any 
> quota exceeded errors.
> On Thursday, May 26, 2022 at 10:51:53 AM UTC-5 adrian...@gmail.com wrote:
>
>> Wondering if anybody here encountered this error when deploying to app 
>> engine? There are no changes with the app.yml file config and this was 
>> working before.
>>
>> command used: gcloud app deploy --quiet --no-promote 
>> --no-stop-previous-version --version={VERSION_NUMBER}
>>
>> I have submitted an issue here: 
>> https://issuetracker.google.com/issues/233865148
>>
>

-- 
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/91a45347-5d36-4505-8b7f-79875d937810n%40googlegroups.com.
Step #1: ?  (Server)  server-side renders at runtime (uses getInitialProps or 
getServerSideProps)
Step #1: ?  (Static)  automatically rendered as static HTML (uses no initial 
props)
Step #1: ?  (SSG) automatically generated as static HTML + JSON (uses 
getStaticProps)
Step #1:(ISR) incremental static regeneration (uses revalidate in 
getStaticProps)
Step #1:
Step #1: Done in 1474.55s.
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 416 168
DEBUG: Reading GCS logfile: 416 (no new content; keep polling)
DEBUG: https://storage.googleapis.com:443 "GET 
/staging.{PROJECT_ID}.appspot.com/log-6a4fedba-d61a-4816-874e-98b24f8884a7.txt 
HTTP/1.1" 206 561
DEBUG: Reading GCS logfile: 206 (read 561 bytes)
Step #1: Removing intermediate container a54ced4dff06
Step #1:  ---> 5695c63c8a99
Step #1: Step 50/51 : EXPOSE 8080
Step #1:  ---> Running in f242da7d775b
Step #1: Removing intermediate container f242da7d775b
Step #1:  ---> 573718eac234
Step #1: Step 51/51 : CMD [ "yarn", "start:prod" ]
Step #1:  ---> 

[google-appengine] Re: GAE deployment throwing Error Response: [13] The system encountered a fatal error

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


This error is rather generic and can be caused by multiple factors. Have 
you read past issues like this that have possible solutions? In this sample 
, the issue was solved 
through re-associating the App Engine service account with the app, for 
example. On a different occasion, it appears to be caused by transient 
network errors , are you 
still unable to deploy the version and are seeing the same error?

Otherwise, can you give more details about the changes that you added in 
the last deployment which failed? Confirming whether all your App Engine 
Flex quotas  are under the 
limit would also be useful, which you can confirm by searching on the Cloud 
Audit logs  for 
any quota exceeded errors.
On Thursday, May 26, 2022 at 10:51:53 AM UTC-5 adrian...@gmail.com wrote:

> Wondering if anybody here encountered this error when deploying to app 
> engine? There are no changes with the app.yml file config and this was 
> working before.
>
> command used: gcloud app deploy --quiet --no-promote 
> --no-stop-previous-version --version={VERSION_NUMBER}
>
> I have submitted an issue here: 
> https://issuetracker.google.com/issues/233865148
>

-- 
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/8797bf1e-4d63-42a8-8733-eb7e322c9fcan%40googlegroups.com.


[google-appengine] GAE deployment throwing Error Response: [13] The system encountered a fatal error

2022-05-26 Thread Adriana Capua
Wondering if anybody here encountered this error when deploying to app 
engine? There are no changes with the app.yml file config and this was 
working before.

command used: gcloud app deploy --quiet --no-promote 
--no-stop-previous-version --version={VERSION_NUMBER}

I have submitted an issue 
here: https://issuetracker.google.com/issues/233865148

-- 
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/a2e4c4c6-8c6e-4c4a-9279-05b4a21aae1dn%40googlegroups.com.


[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.


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

2022-05-17 Thread Maha Farhat
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/caf4c988-eab0-4f0a-8d6b-f5f2657af943n%40googlegroups.com.


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

2022-05-17 Thread 'Nikhil Patil' via Google App Engine
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/f16c0809-a60f-4cd5-846b-9c4454260cf7n%40googlegroups.com.


[google-appengine] Re: Lost access to Google Cloud groups?

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


Hi,

Can you please clarify what the change that caused losing access to your 
previous Google Groups membership was?
On Thursday, May 12, 2022 at 8:47:02 PM UTC-5 Sam G wrote:

> *Could a Googler drop me a line 1:1?* We switched email services and I've 
> now lost access to my previous Google Groups :(
>
> I was in a few insiders programs and I owe some feedback, and am hoping to 
> get support especially with I/O 2022 coming to a close :). Congrats on all 
> the launches, as well!!
>

-- 
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/836c63ee-21c1-409b-82bc-680fd4cf5bacn%40googlegroups.com.


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

2022-05-16 Thread Vit Amin
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/a1805c31-cbcf-4511-8d4d-8058ea94a143n%40googlegroups.com.


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

2022-05-13 Thread 'Osvaldo Lopez Acuña' via Google App Engine


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/a268c12e-28bb-4c12-99fd-8f963bf0176an%40googlegroups.com.


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

2022-05-13 Thread 'Osvaldo Lopez Acuña' via Google App Engine


Were you able to change your Appengine settings the way Ernesto suggested?

The issue ended on May 6 as you can check it in the shared link and 
Appengine 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/d6d19a78-f2c4-4f9d-92cf-7d21ca9dfb59n%40googlegroups.com.


[google-appengine] Re: inconsistent daily "frontend instance" costs

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


Each time your instances are started, they accrue instance hours 

 up 
to 15 minutes after the last request or 15 minutes after the instance is 
shut down. This behavior can explain instance hours accumulating 
 depending on how the 
requests are received by App Engine. Which type of scaling is set up for 
your application? Also which environment are you using (Flex/Standard)?
On Friday, May 13, 2022 at 4:23:03 AM UTC-5 zvi...@gmail.com wrote:

> I have a very similar situation: 
> - Limited to one F1 instance per project
> - Looking at App Engine -> Instances -> Billed instances shows under 1 
> instance at each moment, except for brief moments with two instances
> - Yet Billing consistently charges me for several hours of frontend 
> instances.
>
> Tried resolving this via Google's support chat and they were unable to 
> explain the discrepancy, their only suggestion was to purchase a "technical 
> support package" which I doubt will help either.
>
> Also tried deleting old versions (even though they were not running any 
> instances).. did this a week ago, still getting charged.
>
> This is quite annoying! Anyone have a suggestion?
>
> On Monday, December 28, 2020 at 2:00:12 AM UTC+2 Ehsan Kia wrote:
>
>> Finally managed to make it go back to zero. Not sure which of the things 
>> I did helped, but I did a bunch of stuff. For one, I did listen to your 
>> advice and deleted all older versions even though they all had zero 
>> instances.
>> I also optimized my app more and changed max_concurrent_requests 
>> / target_throughput_utilization, and a bunch more small things. Either one 
>> of those did it, or Google fixed the issue on their end. Either way thank 
>> you for the help.
>>
>> On Friday, December 18, 2020 at 3:42:23 AM UTC-5 vladoi wrote:
>>
>>> If you believe that you are being overcharged, I will recommend to 
>>> create a support case with Google Cloud [1] for a deeper investigation. 
>>> Please include all the details mentioned on this thread in the case and our 
>>> Google Cloud Billing Team will provide you an answer regarding your 
>>> concerns. 
>>>
>>> [1]. https://cloud.google.com/support/docs/procedures
>>>
>>> On Thursday, December 17, 2020 at 9:53:50 AM UTC+1 ph0...@gmail.com 
>>> wrote:
>>>
 it still is strange because the only place that does show my instance 
 usage (the daily dashboard) is always well below 28h. While it does say:
 > Due to the way estimates are calculated, the sum of individual 
 resource costs may not match the displayed total exactly.
 still, every day i'm being charged ~$0.50, which means 10 extra hours. 
 That's almost 50% more than what's displayed.
 Also this issue only started very recently, I haven't had any issues 
 with this for the past 3-4 months.
 On Wednesday, December 16, 2020 at 3:07:03 AM UTC-5 vladoi wrote:

> According to the official documentatio:
> "Setting the maximum to 1 instance **usually** keeps your instance 
> hour usage within the free tier."
> However, please consider the important note:
> "*Important:* App Engine applies the max_instances setting on a best 
> effort basis. *In some circumstances, App Engine may briefly exceed 
> the limit you specify.*"
>
> [1]. https://cloud.google.com/appengine/docs/managing-costs
>
> On Tuesday, December 15, 2020 at 3:35:55 PM UTC+1 ph0...@gmail.com 
> wrote:
>
>> None of the older versions are running, and I have an instance limit, 
>> but I still went ahead and deleted all the older versions. It's still 
>> happening.
>>
>> I'm pretty convinced AppEngine is miscalculating my usage...
>> On Monday, December 14, 2020 at 4:07:10 AM UTC-5 vladoi wrote:
>>
>>> Hello, 
>>>
>>> Did  you stop serving the previously deployed versions of your GAE 
>>> Application ?  If you no longer require these versions you can delete 
>>> the 
>>> version by following our public official documentation [1] [2]: 
>>>
>>>  
>>>
>>> [1]. 
>>> https://cloud.google.com/nodejs/getting-started/delete-tutorial-resources#deleting_app_versions
>>>  
>>> [2]. 
>>> https://cloud.google.com/sdk/gcloud/reference/app/versions/delete.
>>>
>>> On Friday, December 11, 2020 at 8:57:20 PM UTC+1 ph0...@gmail.com 
>>> wrote:
>>>
 I don't think so, since again, the billing section on the AppEngine 
 Dashboard  generally 
 takes that into account, in my experience. But yes I've also verified 
 that 
 it is F1.
 Again last night, when I wrote this email at 3am, the counter was 
 at 24.5h right before the reset, but today I see a charge of $0.55.

  1   2   3   4   5   6   7   8   9   10   >