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 default[20220825t175