google-app-engine

updating a deployment - uploaded images gets deleted after redeployment to google cloud

社会主义新天地 提交于 2021-01-29 11:42:06
问题 So I have a node js web app, this web app has a folder to store images uploaded by users from a mobile app. How I upload the image to the folder is by using the image's base64 string, and using fs.writeFile to save the image to the folder, like this: fs.writeFile(__dirname + '/../images/complaintImg/complaintcase_' + data.cID + '.jpg', Buffer.from(data.complaintImage, 'base64'), function (err) { if (err) { console.log(err); } else { console.log("success"); } }); The problem is, whenever the

How can an IoT device upload a file to the cloud?

怎甘沉沦 提交于 2021-01-29 10:42:48
问题 Is it possible for an IoT device on Google Cloud Platform to upload a file to the cloud somehow? In this case it's not exactly a telemetry data publishing. A direct access to the bucket could be useful. Either that or access to my AppEngine-based application, but if I upload it to my app (that will in the next step put the file into a bucket), how can I possibly authenticate the device to make sure that the device that sends it to me is actually the device it claims to be? 回答1: How big of a

How to access Laravel Folder in Google Cloud

与世无争的帅哥 提交于 2021-01-29 10:28:37
问题 I received an error on my Laravel App /app/storage/logs/laravel-2020-02-20.log" could not be opened: failed to open stream: Permission denied So I google the error, and I discovered it a permission error. chmod -R 775 storage chmod -R 775 bootstrap/cache Apparently, this fixes the error, but anytime I tried to run the command in the cloud console. It keeps saying No directory found. Can someone advice me on how to access storage directory. 回答1: From the tags, I can tell it is GAE flex on GCP.

Deploying an app on Google App Engine - Error from requirements.txt

三世轮回 提交于 2021-01-29 10:13:32
问题 I can't deploy an app on Google App Engine. The problem seems to come from my requirements.txt file: When I deploy the example building-an-app-1, it works well. When I replace the original requirements.txt file with mine, it doesn't work*. Here is my requirements.txt : Flask==1.1.1 flask-wtf==0.14.2 unidecode numpy openfoodfacts os When I remove the last 2 packages, it works. What is the problem? * gcloud deploy app returns: File upload done. Updating service [default]...failed. ERROR:

could not find module workspace/server.js

拥有回忆 提交于 2021-01-29 09:46:30
问题 I am trying to launch a gcloud app engine using an example in fast-ai with a model that i developped https://github.com/imiled/google-app-engine and followed the instructions in the fastai web page https://course.fast.ai/deployment_google_app_engine.html but it does not seem to work it raises the following error when i go to the page: Error: Server Error The server encountered an error and could not complete your request. Please try again in 30 seconds. here is the log that i got from the

502 Bad Gateway while deploying in GAE

笑着哭i 提交于 2021-01-29 09:23:21
问题 I am trying to deploy my nodejs application in Google App Engine. But I keep on getting 502 Bad Gateway when I run $ gcloud app browse This is my file structure ->project |___node_modules |___models |___routes |___index.js |___app.yaml |___package.json |___package.lock.json |___public |___index.html |___js This is my app.yaml file env: flex runtime: nodejs threadsafe: true manual_scaling: instances: 1 # Handle the main page by serving the index page. handlers: - url: / static_files: public

google app engine project not running in debug mode

别等时光非礼了梦想. 提交于 2021-01-29 08:40:37
问题 I am developing a project with Google App Engine in Eclipse. Three days ago, everything worked fine. But I do not what I do but now I cant to run project in debug mode in local host. When I run it I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.appengine.tools.development.StreamHandlerFactory (file:/Users/gallavie/Library/Application%20Support/google-cloud-tools-java/managed-cloud-sdk/LATEST/google-cloud

Django gives “502 Bad Gateway” error on Google App Engine

可紊 提交于 2021-01-29 08:20:54
问题 I'm trying to deploy a Django application on Google App Engine in the Standard Python3.8 environment. I followed all the steps in this document. App runs fine on my local with google cloud database. However I receive 502 Bad Gateway error visiting Web Url. I found a lot of different questions but technology is changing a lot, and none of them helped so far. Lastly, I came across with this solution today, but it says create a gcloud.py file that I never seen in google documents that's why I

Why am I getting session_start(): Cannot find save handler 'memcached' - session startup failed on google app engine?

删除回忆录丶 提交于 2021-01-29 07:44:37
问题 I configured php.ini using this following code: session.save_handler = memcached session.save_path = "127.0.0.1:11211" Can anyone please tell why am I still getting this error? 回答1: I think the issue is your save_path variable. Try this : session.save_handler = memcached session.save_path = "127.0.0.1:11211" Also check this : $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ("Could not connect"); are you able to connect or not? Hope it helps!! ref: https://www.dotdeb

Dynamic HTML Page not found in App Engine. Returns Cannot Get /index

笑着哭i 提交于 2021-01-29 07:39:56
问题 I am trying to host my HTML page in App Engine. When I am trying to access the webpage with url/index it returns Cannot GET /index I have followed the steps mentioned in https://cloud.google.com/appengine/docs/standard/python/getting-started/hosting-a-static-website having same file structure as it expects according to the link above. - my_project |- app.js |- app.yaml |- www |- index.html The below is my app.yaml file # [START app_yaml] runtime: nodejs env: flex service: service_name #