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

2017-09-07 Thread Paul Ceccato
no, the certificate seemed to remove itself when I remapped the custom domain. 
I tested the app was working at the time but the next morning it wasn’t serving 
as the app was set to secure: always

Then I had a problem uploading the new certificate, because I accidentally used 
the wrong private key file, however, the error message that is returned is very 
vague and not particularly useful.

Anyway, its all resolved now, thanks!

Paul


> On 8 Sep 2017, at 12:48 am, 'Yannick (Cloud Platform Support)' via Google App 
> Engine  wrote:
> 
> Hello Paul, I understand you're not able to remove the certificate from your 
> old application? If this is still a problem for you please create a new 
> private issue on the Issue Tracker using this link 
>  
> with all relevant details as well as the affected project IDs and a HAR 
> Capture  of the 
> interactions leading to this error message.
> 
> On Wednesday, September 6, 2017 at 6:46:46 PM UTC-4, Paul Ceccato wrote:
> 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 
> 

[google-appengine] Re: Patternless 500 crash that logs 204

2017-09-07 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine
A thread like this is off-topic for Google Groups, and you were right in 
opening a Public Issue Tracker  
for this case. This forum isn't meant for specific 1-on-1 technical issues, 
but for general discussion of the platform and its services. As such, I 
recommend users having the same concerns to provide their feedback on the issue 
tracker  so that proper attention 
will be given to it.

-- 
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/3bc97969-7d48-4311-b93f-be84aa3ed9fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Patternless 500 crash that logs 204

2017-09-07 Thread Alberto Cantú Gómez


As Steve Jobs said in this video


https://www.youtube.com/watch?v=dxNQebY-Qdw


"Don't be afraid to ask for help".


Hello dev community, our team have been developing this RESTful API with 
Slim PHP as router and Propel ORM with MySQL, deploying it as a service in 
Google App Engine with this app.yaml config


service: api
runtime: php55
api_version: 1
threadsafe: yes

instance_class: F1
automatic_scaling:
  min_idle_instances: automatic
  max_idle_instances: automatic
  min_pending_latency: automatic
  max_pending_latency: automatic

skip_files:- ^vendor/(.*/)+[Tt]ests/.*$- ^\.(.*)

handlers:- url: .*
script: app.php

to be consumed by an Ember.js web app, through all the development we've 
been receiving strange patternless server crashes 500s, more precisely:

500 Server Error Error: Server Error The server encountered an error and 
could not complete your request. Please try again in 30 seconds.

with App Engine Log.

A problem was encountered with the process that handled this request, 
causing it to exit. This is likely to cause a new process to be used for 
the next request to your application. (Error code 204)

in random endpoints, that otherwise works fine 99% of the time, we, of 
course, don't feel like going into production with these random crashes.

What we have tried:

   1. Checking whether the MySQL max_connections is being reached because 
   we open and close a connection every request.
   2. Upgrading our instances from F1 for the sake of testing to F4_1G to 
   tackle the possibility that we might be running out of memory.
   3. Stress tests in localhost with dev_appserver.py, (we don't get any 
   crashes here)
   4. Try catch the whole Slim App for debugging (which it actually never 
   catches the exception so it leads us to think it has really something to do 
   with Google App Engine)
   
Sincerely, thanks in advance.

-- 
Aviso de confidencialidad y exención - Confidential notice and legal advice 
disclaimer -  
www.udem.edu.mx/disclaimer

-- 
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/ed3be904-ea34-4c34-b104-3ab4c597a7da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-09-07 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine
One of the concepts of using multiple services is code isolation 
.
 
The deployed code is completely independent between services and versions. 
I recommend reading the article about Organizing Configuration Files 
 
which discusses the directory structure  
of 
multi-services. 

-- 
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/25dc1c29-d13b-40f0-846e-01ba2838e20d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Enabling CORS on Google App Engine Flexible environment for a Django Application

2017-09-07 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi Swapnil, 

Do you need any more help from us on this issue? You seem to have solved 
it, as one can read in your twin posting in stackoverflow. 

-- 
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/638879c4-2156-43ec-a1f6-c2896046b817%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Active account in Google Cloud platform

2017-09-07 Thread 'Shivam(Google Cloud Support)' via Google App Engine
We've a dedicated Billing team to provide assistance on such issues. I 
would recommend to open a ticket 
 with them.


On Thursday, September 7, 2017 at 9:11:51 AM UTC-4, Developer Coder wrote:
>
>
> Hi
> I want to open account in Google Cloud Platform so i have read the 
> documentation. When i open this 
> https://console.cloud.google.com/freetrial?page=0 and add the basic 
> detail.
> After that when i add detail in Payment Method and click on *Start my 
> free trial* button then it said *Invalid card detail try with another 
> card* and account is not activate. I have tried with *VISA* card and *Master 
> Card*. So kindly please do some help that how to solve this issue? 
>
> I just want to know that credit card is required to open account in Google 
> Cloud Platform Or we can use Bank account number also to open account on it?
>

-- 
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/f3dfe171-c067-4518-b892-a34ae5f9d809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: I would like to learn how to design an infra-structure based on Google Cloud?

2017-09-07 Thread 'Shivam(Google Cloud Support)' via Google App Engine
Welcome to Google Cloud Platform. I am addressing the questions in the 
order asked:

1. With App Engine , you don’t 
have to worry about servers. Google handles most of the management of the 
resources for you. For example, if your application requires more computing 
resources because traffic to your website increases, Google automatically 
scales the system to provide those resources. If the system software needs 
a security update, that's handled for you too. 

2. You can currently run your app from the Central US or Western Europe 
regions.

3. App Engine will scale/spin up more instances based on the incoming 
traffic patterns to make sure that all the requests are served. App Engine 
is regional  which means 
the infrastructure that runs your apps is located in a specific region and 
is managed by Google to be redundantly available across all the zones 
within that region .

4. You can choose storage size  based 
on the requirements to start with and can later increase the size as the 
database will grow. You can also enable ‘Automatic storage increase 
’,
 
which will check the available storage every 30 seconds and if available 
storage falls below a threshold size, additional storage capacity is 
automatically added to your instance.
 
5. All data is replicated in multiple locations for great availability and 
durability. Data is stored in datacenters 
 in the EU or 
the US. You have the ability to replicate 
 a master instance to 
one or more read replicas. A read replica is a copy of the master that 
reflects changes to the master instance in almost real time.

I hope this helps.


On Thursday, September 7, 2017 at 9:11:51 AM UTC-4, Mikolaj Ruczynski wrote:
>
> I will have users around the world. The database has about 50 
> GB. Pageviews about 20 million per month. I have invented such services:
>
>- GOOGLE APP ENGINE - Build scalable web and mobile backends in any 
>language on Google’s infrastructure 
>- CLOUD SQL (database) 
>- CLOUD CDN (Low-latency, low-cost content delivery using Google's 
>global network 
>
> I have the following questions:
> 1. How much does it need application servers?
> 2. In what locations do they have to be application servers?
> 3. Is there a concept of replication for application servers?
> 4. How much does it need SQL Servers and in what locations?
> 5. Is there a concept of rep for SQL Servers?
>
> Thank you for your help
>

-- 
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/5550f08e-8add-4755-93b3-f1c2c06ebd27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cron job runs successfully on local development server but fails after deployed

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

None of your two projects seem to have a task queue; no queue is visible in 
the Developers' Console.  Without a queue, you get the "UnknownQueueError" 
error message. 

You may try deploying the queue config explicitly 
.
 
Otherwise you can use the gcould app deploy  
command. 

-- 
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/e872b71e-92b2-4859-a851-87f051ad3d18%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-07 Thread 'Shivam(Google Cloud Support)' via Google App Engine
This is related to the addition of the email addresses under ‘Email API 
authorized senders’ and not application sending emails. Once an email 
address is added, the application can send email on behalf of the users 
listed. 


On Wednesday, September 6, 2017 at 10:53:50 PM UTC-4, Kai Zhou wrote:
>
> 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/8e1b1348-d2a1-46b3-a284-498227fe91d7%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-07 Thread 'Yannick (Cloud Platform Support)' via Google App Engine
Hello Paul, I understand you're not able to remove the certificate from 
your old application? If this is still a problem for you please create a 
new private issue on the Issue Tracker using this link 
 
with 
all relevant details as well as the affected project IDs and a HAR Capture 
 of the interactions 
leading to this error message. 

On Wednesday, September 6, 2017 at 6:46:46 PM UTC-4, Paul Ceccato wrote:
>
> 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
>>  
>> 

[google-appengine] I would like to learn how to design an infra-structure based on Google Cloud?

2017-09-07 Thread Mikolaj Ruczynski
I will have users around the world. The database has about 50 GB. Pageviews 
about 20 million per month. I have invented such services:

   - GOOGLE APP ENGINE - Build scalable web and mobile backends in any 
   language on Google’s infrastructure 
   - CLOUD SQL (database) 
   - CLOUD CDN (Low-latency, low-cost content delivery using Google's 
   global network 

I have the following questions:
1. How much does it need application servers?
2. In what locations do they have to be application servers?
3. Is there a concept of replication for application servers?
4. How much does it need SQL Servers and in what locations?
5. Is there a concept of rep for SQL Servers?

Thank you for your help

-- 
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/d405f010-22b2-464f-afc6-20bd03c47089%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Not able to register for Google Cloud Platform Free Trial

2017-09-07 Thread Developer Coder
Hi
I want to open account in Google Cloud Platform so i have read the 
documentation. When i open this 
https://console.cloud.google.com/freetrial?page=0 and add the basic detail.
After that when i add detail in Payment Method and click on *Start my free 
trial* button then it said *Invalid card detail try with another card* and 
account is not activate. I have tried with *VISA* card and *Master Card*. 
So kindly please do some help that how to solve this issue? 
I just want to know that credit card is required to open account in Google 
Cloud Platform Or we can use Bank account number also to open account on it?

On Friday, April 7, 2017 at 6:49:54 PM UTC+5:30, Sarmistha Guha Thakurta 
wrote:
>
> I was trying to register for the Free Trial of Google Cloud Platform. 
> However, after I filled up my data and credit card details, though My VISA 
> credit card was debited with $1 but I was shown an error "Transaction was 
> declined due to an Invalid Payment". I tried with AMEX card as well but 
> still the same error?
> #GoogleCloudPlatform #FreeTrial #GCP
>

-- 
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/a4cf0ac1-7750-4445-a14e-82c2a51319b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Active account in Google Cloud platform

2017-09-07 Thread Developer Coder

Hi
I want to open account in Google Cloud Platform so i have read the 
documentation. When i open this 
https://console.cloud.google.com/freetrial?page=0 and add the basic detail.
After that when i add detail in Payment Method and click on *Start my free 
trial* button then it said *Invalid card detail try with another card* and 
account is not activate. I have tried with *VISA* card and *Master Card*. 
So kindly please do some help that how to solve this issue? 

I just want to know that credit card is required to open account in Google 
Cloud Platform Or we can use Bank account number also to open account on it?

-- 
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/f3c66616-04ff-42ec-b7c3-a0d6d5e80875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-09-07 Thread Diego Barreiro
Okey, thank you!

-- 
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/8380a6fc-9346-4bde-abbe-f93e9dab582a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Cron job runs successfully on local development server but fails after deployed

2017-09-07 Thread Kai Zhou
I include a cron job in my app. The following is the cron.yaml:
cron:
- description: monitor the spot every 60 seconds
  url: /task/cron
  schedule: every 1 minutes

And here is the handler for "/task/cron":
class CronHandler(webapp2.RequestHandler):
def get(self):
courses = Course.query().fetch()
for c in courses:
sub, num, sec=c.key.id().split(",")
task = taskqueue.add(url = '/task/monitor', 
queue_name='monitor-queue', params = {'sub':sub, 'num':num, 'sec':sec})

In the handler, a queue named "monitor-queue" is called. Here is my 
queue.yaml file:
queue:
- name: monitor-queue
  rate: 5/s
  bucket_size: 10

- name: notify-queue
  rate: 5/s
  bucket_size: 10

I ran my code in local development server successfully. But when I deploy 
my app, I get UnknownQueueError every time the cron job is executed. Here 
is a screenshot of the log:


Can anyone help me with this issue? Thanks!

-- 
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/7b605d27-fa7e-4d59-873d-19c24cabc35b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.