[google-appengine] Re: How to structure multiple services?

2017-09-06 Thread Robie Ie
Sorry if I confused you, I am aware of how to deploy multiple yaml files.

Problem is that the gcloud deploy only deploys the files in that service.

I have common code sitting in a top level folder, that the services 
reference.

Thus when it is deployed, only the code residing in the same folder as the 
app.yaml is deployed.

Any ideas?

On Wednesday, September 6, 2017 at 4:52:21 PM UTC-4, Robie Ie wrote:
>
> I have a project setup as follows:
>
> /root-folder --
>   /common-code
>   /service-1 --
> /code
> /app.yaml
>   /service-2 --
> /code
> /app.yaml
>   /service-3 --
> /code
> /app.yaml
>
> Problem is I can't reference /common-code since all the app.yamls 
> reference the current folder...
>
> How do I achieve such a structure?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e38784b5-3bdc-4573-a30e-f9dd645a01d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Help! I can't add my email account to Email API authorized senders.

2017-09-06 Thread Kai Zhou
But isn't that too limited? That way I can only send email with one address.

在 2017年9月7日星期四 UTC+8上午4:38:49,Shivam(Google Cloud Support)写道:
>
> If you hover over the question mark besides 'Email API authorized 
> senders', it says 'In most cases, users can only add themselves to this 
> list'. Try to login as that account and add the account. 
>
> On Wednesday, September 6, 2017 at 9:48:04 AM UTC-4, Kai Zhou wrote:
>>
>> I am trying to set up the email sending feature in google app engine. I 
>> want to send emails through the address associates with my domain 
>> admin@[mydomain].com. I try to edit the setting in the follow page:
>>
>>
>> 
>> But when I click "save", nothing happens. And when I refresh the page, 
>> the email I add just disappears. Does anyone have the same issue? Does 
>> anybody know what is going on?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/177fdb3d-8392-430f-aa34-7a61e666ba19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to structure multiple services?

2017-09-06 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine
Based on your structure, you can deploy multiple services from /root-folder 
using:

gcloud app deploy common-code/service-1/app.yaml 
common-code/service-2/app.yaml common-code/service-3/app.yaml

You can find more discussions about microservices on this thread 

 and 
a sample GitHub project on this link 

.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/613dfd85-d4cd-480d-b81a-a6922fd22f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Sydney Data Center and migration of app engine application

2017-09-06 Thread Paul Ceccato
well, I managed to migrate my app to the australian zone... it's a very
manual process involving recreating the app in the new zone and restoring
the datastore from a backup. However, it didn't quite work 100%

When I remapped my custom domain to my new app, without warning somehow my
ssl certificate vanished from the appengine console.

Now, when I try to upload the same certificate to my new app it fails with
an extremely unhelpful error message (see below)

hopefully it will starting working eventually... I have been getting that
error for the last 12hours

in the meantime my application configuration has been changed to only allow
insecure connections...


Error

Sorry, there’s a problem. If you entered information, check it and try
again. Otherwise, the problem might clear up on its own, so check back
later.

Tracking Number: 460337055749622297


On Tue, Sep 5, 2017 at 10:00 AM, Paul Ceccato  wrote:

> So it is. I managed to recreate my app in the sydney region and migrate
> the data from a datastore backup.
>
> I don't know if its my imagination, but the app seems snappier with the
> reduced latency
>
> Paul
>
> On Monday, September 4, 2017 at 11:19:23 PM UTC+10, Yannick (Cloud
> Platform Support) wrote:
>>
>> App Engine is currently available in Sydney. You can check product
>> availability for yourself using this chart
>> .
>>
>> On Monday, September 4, 2017 at 2:00:12 AM UTC-4, Paul Ceccato wrote:
>>>
>>> That article says that Google App Engine is not available in the Sydney
>>> region and will come later...
>>>
>>> On Tuesday, August 29, 2017 at 6:35:15 PM UTC+10, Mark Hetherington
>>> wrote:

 Hi,

 With the commissioning of the Sydney data centre, there are no doubt
 many Australia based customers wanting to migrate to the new data centre. I
 imagine the same was true when other locations opened up worldwide.

 We have existing app engine, cloud sql, cloud storage and data store
 assets we would like to migrate. Has anyone undertaken this process? Our
 understanding is that we can create a new application in the new zone, and
 do a backup and restore. However there are a few hurdles. Some of the
 issues we see are:

- The application name currently in use won't be available for use
in the new zone, thus requiring a rename of the application
- The process of cutting over between zones may require us to
update a number of DNS A records managed by third parties.
- The CNAME to ghs.googlehosted.com must cut over to the new
application at some point, but I'm not sure how this is managed. 
 Presumably
when verifying the domain into the new application google starts 
 serving a
new result when ghs.googlehosted.com is queried?

 Are there any migration tools available? Does google offer any
 assistance in this regard? According to a news article at
 https://www.crn.com.au/news/google-cloud-finally-comes-
 to-sydney-today-465735, "
 Google Cloud platform managing director APJ Rick Harshman told CRN that
 customers wanting to migrate to local availability zones can contact one of
 its partners, or Google's customer engineering team to help with the
 migration.", but I'm not sure how to get in touch with the "customer
 engineering team".

 Cheers,
 Mark


 --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/mdsYsfNk50o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/e4b6c960-15b1-46e3-8204-
> 15d18d2afe15%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAGW%2BFWg%2Be%2BLXq-EfUE4--W_ERYa%3Da0TBJXVCLGUQ8knoT8_-7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to structure multiple services?

2017-09-06 Thread Robie Ie
I have the following folder structure:

/root-folder --
  /common-code --
  /service-1
/code
/app.yaml
  /service-2
/code
/app.yaml
  /service-3
/code
/app.yaml

Problem is I can't reference common code folder since gcloud app deploy 
service-3/app.yaml will only deploy code inside that folder.

How can I achieve this structure while referencing common code?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d2f8f96b-9366-46bb-b90c-2c172d2a4c89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to structure multiple services?

2017-09-06 Thread Robie Ie
I have a project setup as follows:

/root-folder --
  /common-code
  /service-1 --
/code
/app.yaml
  /service-2 --
/code
/app.yaml
  /service-3 --
/code
/app.yaml

Problem is I can't reference /common-code since all the app.yamls reference 
the current folder...

How do I achieve such a structure?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f0234567-ff35-4839-8b9c-e5baa0d4fc20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Help! I can't add my email account to Email API authorized senders.

2017-09-06 Thread 'Shivam(Google Cloud Support)' via Google App Engine
If you hover over the question mark besides 'Email API authorized senders', 
it says ' In most cases, users can only add themselves to this list'. Try 
to login as that account and add the account. 

On Wednesday, September 6, 2017 at 9:48:04 AM UTC-4, Kai Zhou wrote:
>
> I am trying to set up the email sending feature in google app engine. I 
> want to send emails through the address associates with my domain 
> admin@[mydomain].com. I try to edit the setting in the follow page:
>
>
> 
> But when I click "save", nothing happens. And when I refresh the page, the 
> email I add just disappears. Does anyone have the same issue? Does anybody 
> know what is going on?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/444bbe10-7c0b-42d4-af41-fc623fcaa73e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deferred task execution failure because of a failing import

2017-09-06 Thread 'Shivam(Google Cloud Support)' via Google App Engine
Are you aware that you can view the error in the Stackdriver error reporting 
.
 
You would have to try-catch the import error similar to as show in the 
example here 

.

On Wednesday, September 6, 2017 at 8:52:41 AM UTC-4, Ivo Bellin Salarin 
wrote:
>
> Hi all,
>
> How can we diagnose a python ImportError on GAE standard? The `import` 
> builtin is being replaced by a GAE stub. I would like to enable detailed 
> logging of the modules being loaded, from which path, and which was the 
> sys.path at the moment of the error. Do I have any option other than adding 
> those instructions before the failing imports?
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/714463d1-ca4b-437c-ac6b-f760bd0abc98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Requests not showing in the logs

2017-09-06 Thread 'Shivam(Google Cloud Support)' via Google App Engine
I am glad that the issue is resolved. There was no ongoing issue during 
those days. Issues such as these most of the times tend to be 
project/application specific. I would recommend to post on public issue 
tracker  if you face 
similar issue in the future.


On Tuesday, September 5, 2017 at 5:49:53 AM UTC-4, Richard Cheesmar wrote:
>
> The logs seem fine now. This seems to happen out of the blue, but not very 
> frequently at all. I had a similar problem a few months back. 
>
> All the logs not showing vary from standard get, post requests to task 
> post requests.
>
>
> On Friday, September 1, 2017 at 6:41:27 PM UTC+3, Richard Cheesmar wrote:
>>
>> Some Requests are not showing in the cloud console - logs, but they seem 
>> to be processing ok, just not appearing in the logs
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b68b8d1a-1df1-457e-9b5e-8b5a7fe21084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Doubt about "Frontend Instance hours"

2017-09-06 Thread Ryan B
On Wednesday, September 6, 2017 at 6:08:33 AM UTC-7, Diego Barreiro wrote:
>
>
> I have my application, with only one service ("default") and only one 
> version reciving all traffic ("2-0-0"). If two users use my app for an 
> hour, that quota increases by two hours or only one hour?
>

only one hour. instance hours are unrelated to number of users.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dbc7a279-e295-4c18-8282-c0d464bda96d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Help me, GAE/PHP Inexplicable behavior google cloud storage' s response

2017-09-06 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Satoshi, 

You must start uploading to this URL within 10 minutes of its creation. 
Have you followed the relevant documentation page 

 
at "Allowing Users to Upload Files" with all the steps indicated there? How 
did you get the 500 error, exactly? 

More detail on your code and the exact steps you undertook is needed to 
properly organize an investigation. Whatever information you deem relevant 
is likely to help as well.  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/393b8822-dbf2-444c-b026-8308fb6a81fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help me

2017-09-06 Thread 'Yannick (Cloud Platform Support)' via Google App Engine
Hello Satoshi, unfortunately community support is only available in English 
so I am not able to provide you with adequate help. It sounds like you 
either need code troubleshooting help or want to report a bug.

If you require code troubleshooting help we recommend you post your 
question on Stack Overflow 
 with as many details 
as possible, such as the relevant code. There is also a Japanese version of 
Stack Overflow but our community technical support team does not monitor it.

If you want to report a bug you can do so using the Issue Tracker 
 which also operates 
in English.

On Wednesday, September 6, 2017 at 9:08:33 AM UTC-4, satoshi tagomori wrote:
>
> GAE/PHP standard/us にて利用しています
> CloudStorageはasia region です
>
> $upload_url = CloudStorageTools::createUploadUrl('/api/upload/upload', 
> $options);
>
> にて生成したURLにmultipart/form-dataにて複数の画像とパラメーターをアップロードするような仕様です。
>
> upload.php (アップロードリクエストを処理する)にて画像を受取、ブロブキーなどをDBに追加してレスポンスをjsonにて返却しています
>
> 処理自体は正常に終了し(response code 200)ているのですが、クライアントでのレスポンスが500になってしまいます。
> GAEのコンソールログを確認しても、api/upload/uploadは正常に200を返しているのが確認できるのですが、クライアントには 
> エラーが返ってきてしまいます。
>
> 以前は同様の現象はなかったと思いますが昨日始めて確認しました。
>
>
> アップロードは正常に行われているのに、レスポンスが500なのでクライアントが勘違いして大量の画像をアップロードしてきており、早急に対応したいのですがどなたかお知恵を貸してください
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5af26421-3c90-4525-bb55-becafaa1142c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Help! I can't add my email account to Email API authorized senders.

2017-09-06 Thread Kai Zhou


I am trying to set up the email sending feature in google app engine. I 
want to send emails through the address associates with my domain 
admin@[mydomain].com. I try to edit the setting in the follow page:


But when I click "save", nothing happens. And when I refresh the page, the 
email I add just disappears. Does anyone have the same issue? Does anybody 
know what is going on?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/94c9e246-47a8-47ee-821a-69b5af35b9b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] help me

2017-09-06 Thread satoshi tagomori
GAE/PHP standard/us にて利用しています
CloudStorageはasia region です

$upload_url = CloudStorageTools::createUploadUrl('/api/upload/upload', 
$options);

にて生成したURLにmultipart/form-dataにて複数の画像とパラメーターをアップロードするような仕様です。

upload.php (アップロードリクエストを処理する)にて画像を受取、ブロブキーなどをDBに追加してレスポンスをjsonにて返却しています

処理自体は正常に終了し(response code 200)ているのですが、クライアントでのレスポンスが500になってしまいます。
GAEのコンソールログを確認しても、api/upload/uploadは正常に200を返しているのが確認できるのですが、クライアントには 
エラーが返ってきてしまいます。

以前は同様の現象はなかったと思いますが昨日始めて確認しました。

アップロードは正常に行われているのに、レスポンスが500なのでクライアントが勘違いして大量の画像をアップロードしてきており、早急に対応したいのですがどなたかお知恵を貸してください

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9564c672-d02e-4ef4-ba24-759d89ff3f37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Help me, GAE/PHP Inexplicable behavior google cloud storage' s response

2017-09-06 Thread satoshi tagomori

upload image response returned status code 200 in code and log 
but client recived 500 error

help me.


createuploadurl.php

$upload_url = CloudStorageTools::createUploadUrl('/api/upload/upload', 
$options);


upload.php


header('Content-Type: application/json; charset=utf-8');
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
syslog(LOG_DEBUG,"success.");


log is success

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ba181782-722a-4dab-b829-cae9f72213a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Doubt about "Frontend Instance hours"

2017-09-06 Thread Diego Barreiro
I have a small doubt about how the quota "Frontend Instance Hours" works

I have my application, with only one service ("default") and only one 
version reciving all traffic ("2-0-0"). If two users use my app for an 
hour, that quota increases by two hours or only one hour?

I hope I've explained myself

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4f8d6234-0a8c-43d2-9bac-ba75668c6bb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deferred task execution failure because of a failing import

2017-09-06 Thread Ivo Bellin Salarin
Hi all,

How can we diagnose a python ImportError on GAE standard? The `import`
builtin is being replaced by a GAE stub. I would like to enable detailed
logging of the modules being loaded, from which path, and which was the
sys.path at the moment of the error. Do I have any option other than adding
those instructions before the failing imports?
​

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAPc4eF9r4-ULUinxJiswSg0RUbTGNcadUconw_MgsYsk6rZ8hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.