gcloud

Google cloud sql export csv fails when contains nulls

萝らか妹 提交于 2019-12-11 04:52:43
问题 I'm exporting a table from my Mysql database in Cloud Sql with the command, gcloud sql export csv INSTANCE URI --query = QUERY I have the file in my bucket, but when I try to import into Bigquery it fails, I noticed that all nulls are replaced by "n, not even close the quote. I found that this is a known bug, https://cloud.google.com/sql/docs/mysql/known-issues Someone has a temporary solution? thanks a lot. 回答1: The fix for this issue is still currently being addressed by the Cloud SQL Team.

How to run C++ files on the Google Cloud Functions?

十年热恋 提交于 2019-12-11 04:37:49
问题 From what I am aware, Google Cloud Functions only allows you to deploy NodeJs or Python scripts. Question: How would I be able to deploy a simple Hello_World.cpp on Google Cloud Functions ? For example, writing a hello world HTTP function. What are alternate methods to do this? I want to use serverless approach, since it's cheapest method. Therefore, that is why I'm going with Google Cloud Functions. Would I have to use docker in order to run C++ files? I've been stuck on this for a while and

Is it a Billable Op Changing Storage Class of Existing Objects?

北战南征 提交于 2019-12-11 03:27:51
问题 I was trying to change storage class of a set of existing objects (over 300 GBs) as advised in this post: I tried it on one file first: fyn@pod-arch:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3 gs://some-bucket/sub-dir/audioArch.mp3: Creation time: Fri, 29 Jul 2016 00:52:51 GMT Update time: Fri, 05 Aug 2016 15:40:51 GMT Storage class: DURABLE_REDUCED_AVAILABILITY Content-Language: en Content-Length: 43033404 Content-Type: audio/mpeg ... ... fyn@pod-arch:~$ gsutil -m rewrite -s

Activate Service Account from GCloud

不想你离开。 提交于 2019-12-11 02:59:11
问题 I'm trying to configure a notification for a Google Cloud Storage bucket object change however I'm stuck when trying to make gsutil use a service account with this command. gcloud auth activate-service-account service-account-email --key-file path/to/key.p12 The error I get in the command line is: ERROR: (gcloud.auth.activate-service-account) PyOpenSSL is not available. If you have already installed PyOpenSSL, you will need to enable site packages by setting the environment variable CLOUDSDK

NotFoundError: Expect status [200] from Google Storage. But got status 404 while reading a file

白昼怎懂夜的黑 提交于 2019-12-11 02:27:39
问题 I have created a bucket in google storage and uploaded a sample text file and gave owner permissions. Using the code in google docs, I am trying to read the uploaded text file (test.txt) and create a sample text file. I couldn't do both read/create operations. Connecting to cloud storage: bucket_name = os.environ.get( 'BUCKET_NAME', 'bucket-name-12345.appspot.com') Error - "NotFoundError: Expect status [200] from Google Storage. But got status 404. Path: '/bucket-name-12345.appspot.com/test'

GCloud Functions debugging deployment failure

风流意气都作罢 提交于 2019-12-11 01:48:43
问题 Just started using GCloud Functions today, and I am having a problem. I've updated one of my projects to be function-ready and used google's local-emulator (@google-cloud/functions-emulator) to debug and test my new function. Everything went well and emulator deployment went just fine. ``` $ functions deploy doThing --trigger-http --timeout=540s Copying file:///var/folders/nw/.../T/us-central1-doThing-....zip... Waiting for operation to finish...done. Deploying function.......done. Function

Getting error while taking screenshots with Firebase in GCloud

纵然是瞬间 提交于 2019-12-11 01:09:51
问题 I am facing a lot of trouble trying to integrate screenshotter library from here, into my very simple Android project. I followed the steps outlined in the tutorial pretty meticulously. When I look at logs from gcloud I see the following error 01-07 19:41:06.724: E/cloud_screenshotter(5752): Exception taking screenshot: java.io.FileNotFoundException: /sdcard/screenshots/com.computemachines.android.workplay.ClockingActivityScreenshotTest-takeScreenshot-main_screen_3-1.jpg: open failed: ENOENT

How can I check if a Google VM instance has already credentials for gcloud

孤街浪徒 提交于 2019-12-11 00:59:08
问题 In order not to call every time: gcloud auth login which would interrupt a script for user input I would like to see if a user is already authenticated (any user) and only if no user, then to call gcloud auth login . I would love a more elegant/reliable solution than scraping the output of gcloud auth list . Something like a ping that fails or succeeds if there is an account already AND the account has the right to do the thing. Maybe a --dry-run option? 回答1: Being logged in means having

Google cloud dev_appserver.py unable to host laravel project locally

余生颓废 提交于 2019-12-11 00:59:08
问题 I'm running Laravel 5.4 project, and hosted under google cloud project. In order to test the same I have used dev_appserver.py app.yaml --runtime=php55 it initiates the program but it throws the error displayed Warning: require(/Users/Avi/Documents/.../website/PLACEHOLDER): failed to open stream: No such file or directory in /Users/Avi/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 147 Fatal error: require(): Failed opening

gcloud deploy app cannot find import packages - golang

你说的曾经没有我的故事 提交于 2019-12-11 00:16:47
问题 I have already deployed a version of my app to GAE, but now I have trouble deploying a newer version. When I try gcloud app deploy --version=VERSION , I get a bunch of errors showing that remote build cannot find my import packages: Beginning deployment of service [default]... Building and pushing image for service [default] Some files were skipped. Pass `--verbosity=info` to see which ones. You may also view the gcloud log file, found at [/home/****/.config/gcloud/logs/2018.04.08/***.log].