google-app-engine

Should I use sessions in Google App Engine?

感情迁移 提交于 2021-02-18 18:47:16
问题 I have just learned from this questions that Google app Engine now supports session. I would like to be able to use them but am not sure whether I should just because I can. Thanks to scalability issues. My questions are really, Where would I store the session information? In the data store or would this take to long? And surely far to costly? What about the mem cache? I have only known of GAE for a few days and am still reading. Is the Mem cache considered to be fast/scalable and does it

How to upload folder on Google Cloud Storage using Python API

痞子三分冷 提交于 2021-02-18 11:20:11
问题 I have successfully uploaded single text file on Google Cloud Storage . But when i try to upload whole folder , It gives permission denied error. filename = "d:/foldername" #here test1 is the folder. Error: Traceback (most recent call last): File "test1.py", line 142, in <module> upload() File "test1.py", line 106, in upload media = MediaFileUpload(filename, chunksize=CHUNKSIZE, resumable=True) File "D:\jatin\Project\GAE_django\GCS_test\oauth2client\util.py", line 132, in positional_wrapper

GAE don't see gunicorn, but it is already installed

拈花ヽ惹草 提交于 2021-02-18 10:23:09
问题 I am trying to deploy Django app with Google App Engine. My app.yaml file: # [START runtime] runtime: python api_version: 1 threadsafe: true env: flex entrypoint: gunicorn -b :$PORT wsgi runtime_config: python_version: 3.4 env_variables: CLOUDSQL_CONNECTION_NAME: ugram-mysql CLOUDSQL_USER: root handlers: - url: / script: wsgi.application # [END runtime] But when I run gcloud app deploy , app deploy is running (5 minutes), but I get an error: Updating service [default]...failed. ERROR: (gcloud

How to deploy one app from a large monorepo with dependencies to packages in the same repo to google app engine?

邮差的信 提交于 2021-02-18 04:56:29
问题 I have a large node.js monorepo with several applications and packages and inter dependencies. It is all managed with yarn workspaces and a little bit of lerna. Everything works great for me, however I am having trouble trying to deploy one of the applications in this monorepo to google app engine. The main issue is that the app engine wants to install packages that are located only locally and are not on npm, and it throws an error. I've scoured the google cloud documentations but did not

How to restart Google App Engine Standard Service

给你一囗甜甜゛ 提交于 2021-02-17 03:53:51
问题 Context: I have an app that serves interactive graphs and data analysis. In order to calculate plots and data summaries, it uses a dataset that is loaded upon App initialization by querying google BigQuery. The data is then kept as a global variable (in memory) and is used in all data calculations and plots that might be run by different users (each user saves in their session their own filters/mask). This dataset changes in BigQuery once per day during the night (I know the exact datetime of

Prevent double submits

别说谁变了你拦得住时间么 提交于 2021-02-11 15:54:02
问题 I am using GAE for an app that has various submit href buttons, and use javascript to submit. I am having a real tough time trying to figure out how to prevent multiple submits or doubl-clicking. I have tried various methods to disable or remove the href with javascript. But I am thinking if there is maybe a method to prevent this in the backend. What methods would you recommend I use? 回答1: Preventing it on the server side is not trivial - a second call may hit a different instance. So you

Google cloud build permission error while deploying rasa to App engine

五迷三道 提交于 2021-02-11 14:55:12
问题 I am trying to deploy a rasa project described like here to google app engine, But the build failed due to some permission issues The scripts try to create a folder inside container, FROM rasa/rasa ENV BOT_ENV=production COPY . /var/www WORKDIR /var/www RUN rasa train ENTRYPOINT [ "rasa", "run", "-p", "8080"] I have added following permissions to google cloud build. Error log frome cloud build. Epochs: 100%|██████████| 100/100 [00:16<00:00, 6.04it/s, t_loss=1.485, i_loss=0.104, i_acc=1.000]

Multiple custom domains to specific version of Google App Engine app

浪尽此生 提交于 2021-02-11 14:49:10
问题 Let's say I have myapp.appspot.com and two custom domains respectively called foo.com and bar.com . How do I configure Google App Engine (GAE) such that: (www.)foo.com -> foo .myapp.appspot.com (www.)bar.com -> bar .myapp.appspot.com (www.)foo.com -> myapp.appspot.com (default version) I'm reading https://developers.google.com/appengine/docs/domain but I still don't understand how to configure it. I get the impression that GAE only supports wildcard for one custom domain e.g. **.foo.com . 回答1

GCP kms encrypt env var and passing encrypted key through cloudbuild.yaml to google app engine

我们两清 提交于 2021-02-11 14:46:23
问题 I'm trying to encrypt env vars for database in Cloud SQL in my RoR app deploying to Google App Engine. Following this doc https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-secrets-credentials However, I have an error when running both gcloud builds submit and gcloud app deploy . Both are error out with: Failure status: UNKNOWN: Error Response: [4] DEADLINE_EXCEEDED / build step 0 "gcr.io/cloud-builders/gcloud" failed: exit status 1. I then check the gcloud builds

Google Cloud Console Quotas You don't have permissions to perform the action on the selected resource

余生颓废 提交于 2021-02-11 14:01:40
问题 I am the admin of my organization and I visit https://console.cloud.google.com/ IAM & Admin and click on Quotas I get You don't have permissions to perform the action on the selected resource. . Why am I getting this. If I am the org admin and getting this error then who is able to view Quotas? I am logged in using incognito window. 回答1: You are not "owner" even you are "organization administrators". Please assign yourself either primitive role like "owner" or "editor" Or predefined role