Category : google-app-engine

I am using this Dockerfile to deploy to App Engine Flexible environment. RUN apt-get -y update && apt-get -y upgrade && apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntugis/ppa && add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y update && apt-get -y upgrade && apt-get -y install python3.8 python3.8-distutils python3.8-venv gdal-bin libgdal-dev python3-gdal && apt-get autoremove -y ..

Read more

I am trying to maintain some cross transactional-ity between different services. Basically I have a ndb model which would be processed. There is a chance that the transaction might fail after we have saved an object. How would I rollback in such a scenario? Example class PersonTable(ndb.Model): personId = ndb.StringProperty() personName = ndb.StringProperty() personAddress = ..

Read more

We have an application in Google App engine and are migrating from Python 2.7 to Python 3. One particular client in Python2.7 versoin that we need to change is the task_queue. The code in Python2.7 is as follows – task = taskqueue.add( url=’/backendtask’, target=’worker’, method = "POST", queue_name = ‘backend-task’, params={ "task_data" : task_data }) ..

Read more

I have a Python Flask application deployed on Google App Engine. One Flask view makes a request to another Flask view from Google App Engine, but the second request ‘hangs’ causing a ten-minute timeout with none of the code contained within the second Flask view to execute and does not produce an error. It’s quite ..

Read more

Running "python3 -m pip install –requirement requirements.txt –upgrade –upgrade-strategy only-if-needed –no-warn-script-location –no-warn-conflicts –force-reinstall –no-compile (PIP_CACHE_DIR=/layers/google.python.pip/pipcache PIP_DISABLE_PIP_VERSION_CHECK=1)" Step #2 – "build": /layers/google.python.pip/pip/bin/python3: Error while finding module specification for ‘pip’ (AttributeError: module ‘__main__’ has no attribute ‘__file__’) Step #2 – "build": Done "python3 -m pip install –requirement requirements.txt –upgr…" (34.49892ms) Step #2 – "build": Failure: (ID: 0ea8a540) ..

Read more

I’m working on a Django application and using Fabric for deployment. When I deployed the apps to staging in Google App Engine using fab testing, I got this error: Updating service [staging] (this may take several minutes)…failed. ERROR: (gcloud.app.deploy) Error Response: [9] An internal error occurred while processing task /app-engine-flex/flex_await_healthy/flex_await_healthy>2022-01-01T09:48:30.226Z15496.fj.0: Traceback (most recent call last): ..

Read more