[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] 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: 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] Re: App Engine doesn't send response leads to timeout at client

2022-05-06 Thread 'Rogelio Monter Rodriguez' via Google App Engine


Have you tried debugging your app locally using the local development server 

 
or using the local development server 

?
On Friday, May 6, 2022 at 2:06:58 AM UTC-5 nikhilhem...@rakuten.com wrote:

> To Explain my overall situation, My app response is lost though the API 
> program executes as expected. This happens randomly.
>
> here is my app.yaml
>
> #
> # Copyright 2021 Google LLC
> #
> # Licensed under the Apache License, Version 2.0 (the "License");
> # you may not use this file except in compliance with the License.
> # You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> #
>
> # [START django_app]
> # [START gaestd_py_django_app_yaml]
>
> ## std + dev-apc
> #runtime: python39
> #service: dev-apc
> #instance_class: F1
>
>
> handlers:
> # This configures Google App Engine to serve the files in the app's static
> # directory.
> - url: /static
> static_dir: staticfiles/
>
> # This handler routes all requests not caught above to your main app. It is
> # required when static routes are defined, but can be omitted (along with
> # the entire handlers section) when there are no static files defined.
> - url: /.*
> script: auto
> # [END gaestd_py_django_app_yaml]
> # [END django_app]
>
> On Friday, April 22, 2022 at 8:11:55 AM UTC+9 Horace (Cloud Platform 
> Support) wrote:
>
>> Hello
>>
>> Since we don't have visibility on your project to check your App Engine 
>> settings including your yaml file and further use our internal tools to 
>> find out what is happening, kindly take a look at your configuration such 
>> as your max instances, idle time out, and scaling. From your log, the 
>> ‘Quitting on terminated signal’ indicates there is a shutdown of an 
>> instance [1], it could be that there are no requests hence the instance was 
>> shutdown and there could be a spike in subsequent requests that the 
>> instance was not ready to respond since there are no instances available.
>>
>> Lastly, kindly take a look at your scaling, do note that there is no 
>> guaranteed uptime for basic and manual scaling [3]. Due to this behavior, 
>> if you want a higher Monthly Uptime Percentage, try to configure your 
>> instance with automatic scaling. You can set the max_instances and 
>> max_idle_instances to values that better achieve your architecture in the 
>> app.yaml file [4]
>>
>> [1] 
>> https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#shutdown
>>
>> [2] 
>> https://cloud.google.com/appengine/docs/standard/python3/configuring-warmup-requests
>>
>> [3] 
>> https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_uptime
>>
>> [4] 
>> https://cloud.google.com/appengine/docs/standard/go/config/appref#scaling_elements
>>
>>
>> On Thursday, April 21, 2022 at 10:30:00 AM UTC-4 nikhilhem...@rakuten.com 
>> wrote:
>>
>>> I think no issue on application side. I have logged upto last line of my 
>>> post method and after that is return response. 
>>> *Code:*
>>>
>>> class myView(generics.ListCreateAPIView):
>>> permission_classes = (IsAuthenticated,)
>>> http_method_names = ['get', 'post']
>>> search_fields = ['some', 'thing', 'here'']
>>> filter_backends = (DynamicSearchFilter,)
>>> pagination_class = PageNumberPagination
>>> serializer_class = mySerializer
>>> queryset = mymodel.objects.all().order_by("-update_date")
>>>
>>> def __init__(self, **kwargs):
>>> .
>>> .
>>> .
>>>
>>>
>>> def create(self, request, *args, **kwargs):
>>> .
>>> .
>>> .
>>> logger.info(f"Returning response of size {len(response_data)}")
>>>
>>> return Response(response_data, content_type='application/json')
>>>
>>>
>>>
>>>
>>>
>>> *here are my logs.*[
>>>   {
>>> "textPayload": "2022-04-14 03:05:21,344 INFO app.myview  create 
>>>  Returning response of size 11",
>>> "insertId": "62578f71000541533a99d6a0",
>>> "resource": {
>>>   "type": "gae_app",
>>>   "labels": {
>>> "project_id": "my-prj",
>>> "module_id": "myapp",
>>> "zone": "asia-northeast1-1",
>>> "version_id": "20220406t140722"
>>>   }
>>> },
>>> "timestamp": "2022-04-14T03:05:21.344403Z",
>>> "labels": {
>>>   "clone_id": 
>>> "00c61b117cd9f4551488432b6f7441914e77d3c1dae0ed84f783550c94129238df03e3311f8837126c38d73af6577b91baa8a9c0ed6b68487259cdaad779413ebb5f1bf9d9ef33fa5de9b7b2f6d7a5"
>>> },
>>> "logName": "projects/my-prj/logs/stderr",
>>> "receiveTimestamp": "2022-04-14T03:05:21.478498355Z"

Re: [google-appengine] Re: hot reload: mvn google cloud sdk

2022-04-21 Thread 'Rogelio Monter Rodriguez' via Google App Engine


This gist on GitHub 
 provides 
a summary on how to run Eclipse on WSL2.

For Netbeans, as shown on this StackOverflow answer 
, there’s only a workaround.


Also, this tutorial 

 
could be useful for Using WSL 2 to develop Java applications on Windows.

On Thursday, April 21, 2022 at 10:14:03 AM UTC-5 ludovic.c...@gmail.com 
wrote:

> Hi,
>
> You can install InteliJ on wsl2 according to 
> https://nirisarri.github.io/2020-11-03-how-to-install-and-run-intellij-idea-for-linux-in-wsl2/
>
> similar steps should work for NetBeans or Eclipse I guess.
>
> Ludp
> On 4/21/22 2:55 AM, 'Rajesh G' via Google App Engine wrote:
>
> If you dont' use IDE  like eclipse or netbeans (it is not available on 
> windows 11 wsl2 env) 
> Use mvn compile.
> It is working for me now on windows 11.  I will try on wsl2 later.
>
> On Sat, Apr 16, 2022 at 10:20 PM Ludovic Champenois <
> ludovic.c...@gmail.com> wrote:
>
>> Hi, 
>> Almost there,  I think you are missing this critical line in your pom.xml:
>> 
>> 
>> target/${project.artifactId}-${project.version}/WEB-INF/classes
>> 
>> ...
>>
>> This way, the compile on save is put the changed class in the correct web 
>> app location.
>> At least, I tested it in NetBeans and it works great as NetBeans can do 
>> compile automatically when you save a java file, even in the Maven project.
>> Ludo
>>
>>
>> On Saturday, April 16, 2022 at 4:50:43 AM UTC-7 
>> rajesh...@veersoftsolutions.com wrote:
>>
>>> Hello, 
>>> I have created a simple java appengine using maven archetypes.
>>> I am not using eclipse (because I don't have eclipse in windows wsl2.)
>>>
>>> I run the server using
>>> mvn appengine:run
>>>
>>> Then I do simple changes to a servlet. Then another window, I run 
>>> mvn:compile.  It compiles into the target/snapshot folder
>>>
>>> However, I am not seeing the changes on the server.  The latest servlet 
>>> changes is not reflected 
>>>
>>> I tried the following settings also in the pom.xml file.  The server is 
>>> not restarted
>>>
>>> 
>>>   true
>>> 
>>>
>>>
>>> --
>>> 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/02a10f06-ff90-4e1b-80ae-457c49a56bf9n%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 a topic in the 
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/5XT9ASv7iM4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to 
> google-appengi...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijY2QAOGaP%2B38XD4To%3DUiqyDWNx44_S6PvVcLdU%2BU3yWtg%40mail.gmail.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c1291b88-fa45-45ff-ac94-d94c0238711bn%40googlegroups.com.


Re: [google-appengine] Re: hot reload: mvn google cloud sdk

2022-04-20 Thread 'Rogelio Monter Rodriguez' via Google App Engine


As stated in the app-maven-plugin User guide 

:

To enable automatic reload of an application, you must tell the Dev App 
Server to scan for changes :



  true



While your app is running, just run mvn war:exploded to reflect your 
changes into the running application.

On Wednesday, April 20, 2022 at 4:51:47 AM UTC-5 ludovic.c...@gmail.com 
wrote:

> Hi,
> Try to follow the doc at:
>
> https://cloud.google.com/appengine/docs/standard/java/maven-reference#appenginerun
> Especially the config for the Pom.xml file to put the classes in the 
> correct folder.
>
> Thanks
>
>
> On Tue, Apr 19, 2022 at 8:43 PM 'Rajesh G' via Google App Engine <
> google-a...@googlegroups.com> wrote:
>
>> Hi, any ideas on how to make the hot reload work 
>>
>> Thanks
>>
>> On Sat, Apr 16, 2022 at 5:20 PM Rajesh G  
>> wrote:
>>
>>> Hello,
>>> I have created a simple java appengine using maven archetypes.
>>> I am not using eclipse (because I don't have eclipse in windows wsl2.)
>>>
>>> I run the server using
>>> mvn appengine:run
>>>
>>> Then I do simple changes to a servlet. Then another window, I run 
>>> mvn:compile.  It compiles into the target/snapshot folder
>>>
>>> However, I am not seeing the changes on the server.  The latest servlet 
>>> changes is not reflected 
>>>
>>> I tried the following settings also in the pom.xml file.  The server is 
>>> not restarted
>>>
>>> 
>>>   true
>>> 
>>>
>>>
>>> --
>>> Support Team
>>> www.servicefolder.com
>>> *Field Service Software on Google Cloud Platform and Mobile*
>>>
>>>
>>>
>>
>> -- 
>> Support Team
>> www.servicefolder.com
>> *Field Service Software on Google Cloud Platform and Mobile*
>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/5XT9ASv7iM4/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengi...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijaEYSV83h6rvK-NDF8bpTw%3Dx31cSrtzmZExufXu%3DP%3DqzQ%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4855b59-c9d5-4eab-9678-ac19094529afn%40googlegroups.com.


[google-appengine] Re: Sporadic server error since March 1 (Python)

2022-03-03 Thread 'Rogelio Monter Rodriguez' via Google App Engine


The error you’re sharing could be caused by many different reasons. Please 
check Logs Viewer in Google Cloud, as shown in this Using Logs Viewer 

 
documentation, and share what you see for further troubleshooting. You 
could also troubleshoot the latencies from Cloud Trace 

.
On Thursday, March 3, 2022 at 9:57:03 AM UTC-6 Viktor Bresan wrote:

> Since two days ago I have started to experience sporadic server errors. 
> I.e. for a period of time, everything is working OK, and then for a period 
> of time all calls to my python scripts are failing. 
>
> The following message is displayed in browser:
>
>  Error: Server Error 
>  The server encountered an error and could not complete your request.
>
>  Please try again in 30 seconds.
>
> Log files are showing latency of 10 seconds on failed calls.
>
> This started happening after March 1, and code or configuration weren't 
> modified weeks before that.
>
> Any ideas? 
>
> Thanks in advance for your 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/edf66fe2-6060-4e18-ad25-5499f378a49fn%40googlegroups.com.