[google-appengine] Re: Some questions about instances

2013-06-03 Thread timh
Which is better is subjective.  I prefer python, others java.  Things to 
consider how much existing code from other sources for python or java that 
already run on appengine are you likely to use. That would feature highly 
in your decision making process.  Performance with java seems to depend on 
startup times and how big/heavy your stack is.  Big heavy python stacks 
that do a lot at startup on appengine can have startup time problems too.  

On Tuesday, June 4, 2013 12:10:49 AM UTC+8, Sebastián Benítez wrote:
>
> Hi there. I'm looking to create an Android/iOS (perhaps web too) social 
> application and I'm considering GAE as backend.
>
> For what I could gather, a single frontend instance is launched when a 
> request arrives. Is that instance also used (as in multiple threads) to 
> serve other incoming concurrent requests or other instances are launched?
>
> What are the benefits of using Java/Python. I'm thinking the case of the 
> app being eventually successfull and needing to handle 1M/10M users. I 
> would asume Java is a better fit, but considering what I've read lately 
> about launch performance, I'm not so sure now.
>
> 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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: OpenID login redirect (/_ah/login_redir?) fails with 500 server errors!

2013-06-03 Thread Akitoshi Abe
Hello,

It seems happening again.
Sometimes I saw this error recently.

Akitoshi Abe


2013/6/4 James Foster 

> Is this currently happening again?
>
>
> On Friday, May 25, 2012 12:00:58 AM UTC+10, Vinay wrote:
>>
>> for what it's worth, my suggestion did not fully resolve the
>> problem...just a fluke I guess.
>>
>> On Wednesday, May 23, 2012 11:54:37 AM UTC-4, Vinay wrote:
>>>
>>> We are using the  Federated Login feature of GAE and also experiencing
>>> this issue. I logged into the GAE control panel > Application Settings. I
>>> toggled both of "Cookie Settings" and "Authentication Options" to a
>>> different value, hit save, waited a minute, and toggled them back. Some of
>>> our users are reporting the ability to log in again. We need more data
>>> points, but we thought we'd put it out there for the rest of you in the
>>> meanwhile.
>>>
>>> Vinay, Dito
>>>
>>> On Tuesday, May 22, 2012 5:03:52 AM UTC-4, Jan Zawadzki / Hapara wrote:

 We're seeing consistent OpenID redirect 500 server failures for
 specific Google Apps domains.

 OpenID works for other domains just fine, but we're seeing an
 increasing number of domains where the redirect just dies.

 Fix ETA please?

 Jan
>>>
>>>
>>> On Tuesday, May 22, 2012 5:03:52 AM UTC-4, Jan Zawadzki / Hapara wrote:

 We're seeing consistent OpenID redirect 500 server failures for
 specific Google Apps domains.

 OpenID works for other domains just fine, but we're seeing an
 increasing number of domains where the redirect just dies.

 Fix ETA please?

 Jan
>>>
>>>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: How to set deadline for a PHP URL fetch?

2013-06-03 Thread 1moretime
Thanks, Dan

I read that doc but PHP version not found.
would you pls give some php code?


On Jun 4, 4:16 am, Dan Holevoet  wrote:
> This is a great question for the App Engine Stack Overflow
> tag,
> which also conveniently happens to have an
> answerfor
> you!
>
> Thanks,
> Dan
>
>
>
>
>
>
>
>
>
> On Mon, Jun 3, 2013 at 8:20 AM, 1moretime  wrote:
> > URL Fetch overview says:
>
> > You can set a deadline for a request, the most amount of time the
> > service will wait for a response. By default, the deadline for a fetch
> > is 5 seconds. The maximum deadline is 60 seconds for HTTP requests and
> > 10 minutes for task queue and cron job requests.
>
> > Now, how can i set deadline to 60-sec ?
>
> > --
> > 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 athttp://groups.google.com/group/google-appengine?hl=en.
> > For more options, visithttps://groups.google.com/groups/opt_out.
>
> --
> Dan Holevoet
> Google Developer Relations

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: OpenID login redirect (/_ah/login_redir?) fails with 500 server errors!

2013-06-03 Thread James Foster
Is this currently happening again?


On Friday, May 25, 2012 12:00:58 AM UTC+10, Vinay wrote:
>
> for what it's worth, my suggestion did not fully resolve the 
> problem...just a fluke I guess.
>
> On Wednesday, May 23, 2012 11:54:37 AM UTC-4, Vinay wrote:
>>
>> We are using the  Federated Login feature of GAE and also experiencing 
>> this issue. I logged into the GAE control panel > Application Settings. I 
>> toggled both of "Cookie Settings" and "Authentication Options" to a 
>> different value, hit save, waited a minute, and toggled them back. Some of 
>> our users are reporting the ability to log in again. We need more data 
>> points, but we thought we'd put it out there for the rest of you in the 
>> meanwhile.
>>
>> Vinay, Dito 
>>
>> On Tuesday, May 22, 2012 5:03:52 AM UTC-4, Jan Zawadzki / Hapara wrote:
>>>
>>> We're seeing consistent OpenID redirect 500 server failures for 
>>> specific Google Apps domains. 
>>>
>>> OpenID works for other domains just fine, but we're seeing an 
>>> increasing number of domains where the redirect just dies. 
>>>
>>> Fix ETA please? 
>>>
>>> Jan
>>
>>
>> On Tuesday, May 22, 2012 5:03:52 AM UTC-4, Jan Zawadzki / Hapara wrote:
>>>
>>> We're seeing consistent OpenID redirect 500 server failures for 
>>> specific Google Apps domains. 
>>>
>>> OpenID works for other domains just fine, but we're seeing an 
>>> increasing number of domains where the redirect just dies. 
>>>
>>> Fix ETA please? 
>>>
>>> Jan
>>
>>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] want to migrate to python 2.7 from 2.5,but after making changes website doesn't work

2013-06-03 Thread Thiago Catoto
FYI

https://developers.google.com/appengine/docs/python/python25/migrate27?hl=pt-br

-- Catoto


On Mon, Jun 3, 2013 at 6:09 PM, Thiago Catoto  wrote:

> on 2.7
> main.py:
> no more 'def main()' application must be global
>
> in app.yaml:
> script: main.application
>
> cheers
> -- Catoto
> On Jun 3, 2013 5:50 PM, "Sam Mak"  wrote:
>
>> I am trying to migrate from python to 2.7 to 2.5 but after making the
>> required changes to main.py and app.yaml file, my site does not work
>>
>> please help... what changes should i make to these to get it to work
>>
>> main.py
>>
>> import os
>> from google.appengine.ext import webapp
>> from google.appengine.ext.webapp import util
>> from google.appengine.ext.webapp import template
>>
>> class MainHandler(webapp.**RequestHandler):
>>   def get (self, q):
>> if q is None:
>>   q = 'index.html'
>>
>> path = os.path.join (os.path.dirname (__file__), q)
>> self.response.headers ['Content-Type'] = 'text/html'
>> self.response.out.write (template.render (path, {}))
>>
>> def main ():
>>   application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)],
>> debug=True)
>>   util.run_wsgi_app (application)
>>
>> if __name__ == '__main__':
>>   main ()
>>
>>
>>
>> app.yaml
>>
>> application: cool-gadgets
>> version: 1
>> runtime: python
>> api_version: 1
>>
>>
>>
>> handlers:
>> - url: /robots.txt
>>   static_files: static/robots.txt
>>   upload: static/robots.txt
>>
>> - url: /favicon.ico
>>   static_files: static/favicon.ico
>>   upload: static/favicon.ico
>>
>> - url: /gadgets/disney.xml
>>   static_files: gadgets/disney.xml
>>   upload: gadgets/disney.xml
>>
>> - url: /gadgets/wwe.xml
>>   static_files: gadgets/wwe.xml
>>   upload: gadgets/wwe.xml
>>
>> - url: .*
>>   script: main.py
>>
>>  --
>> 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 http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] want to migrate to python 2.7 from 2.5,but after making changes website doesn't work

2013-06-03 Thread Thiago Catoto
on 2.7
main.py:
no more 'def main()' application must be global

in app.yaml:
script: main.application

cheers
-- Catoto
On Jun 3, 2013 5:50 PM, "Sam Mak"  wrote:

> I am trying to migrate from python to 2.7 to 2.5 but after making the
> required changes to main.py and app.yaml file, my site does not work
>
> please help... what changes should i make to these to get it to work
>
> main.py
>
> import os
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp import util
> from google.appengine.ext.webapp import template
>
> class MainHandler(webapp.**RequestHandler):
>   def get (self, q):
> if q is None:
>   q = 'index.html'
>
> path = os.path.join (os.path.dirname (__file__), q)
> self.response.headers ['Content-Type'] = 'text/html'
> self.response.out.write (template.render (path, {}))
>
> def main ():
>   application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)],
> debug=True)
>   util.run_wsgi_app (application)
>
> if __name__ == '__main__':
>   main ()
>
>
>
> app.yaml
>
> application: cool-gadgets
> version: 1
> runtime: python
> api_version: 1
>
>
>
> handlers:
> - url: /robots.txt
>   static_files: static/robots.txt
>   upload: static/robots.txt
>
> - url: /favicon.ico
>   static_files: static/favicon.ico
>   upload: static/favicon.ico
>
> - url: /gadgets/disney.xml
>   static_files: gadgets/disney.xml
>   upload: gadgets/disney.xml
>
> - url: /gadgets/wwe.xml
>   static_files: gadgets/wwe.xml
>   upload: gadgets/wwe.xml
>
> - url: .*
>   script: main.py
>
>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] want to migrate to python 2.7 from 2.5,but after making changes website doesn't work

2013-06-03 Thread Dan Holevoet
Hi Sam,

It looks like you've already asked this identical question, and haven't
provided any additional information in this second thread. Given the
technical question and answer format of your post, I'd suggest asking the
same on Stack Overflow. Make sure to provide additional details such as the
exact error message you are receiving on your site.

Thanks,
Dan


On Mon, Jun 3, 2013 at 1:50 PM, Sam Mak  wrote:

> I am trying to migrate from python to 2.7 to 2.5 but after making the
> required changes to main.py and app.yaml file, my site does not work
>
> please help... what changes should i make to these to get it to work
>
> main.py
>
> import os
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp import util
> from google.appengine.ext.webapp import template
>
> class MainHandler(webapp.**RequestHandler):
>   def get (self, q):
> if q is None:
>   q = 'index.html'
>
> path = os.path.join (os.path.dirname (__file__), q)
> self.response.headers ['Content-Type'] = 'text/html'
> self.response.out.write (template.render (path, {}))
>
> def main ():
>   application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)],
> debug=True)
>   util.run_wsgi_app (application)
>
> if __name__ == '__main__':
>   main ()
>
>
>
> app.yaml
>
> application: cool-gadgets
> version: 1
> runtime: python
> api_version: 1
>
>
>
> handlers:
> - url: /robots.txt
>   static_files: static/robots.txt
>   upload: static/robots.txt
>
> - url: /favicon.ico
>   static_files: static/favicon.ico
>   upload: static/favicon.ico
>
> - url: /gadgets/disney.xml
>   static_files: gadgets/disney.xml
>   upload: gadgets/disney.xml
>
> - url: /gadgets/wwe.xml
>   static_files: gadgets/wwe.xml
>   upload: gadgets/wwe.xml
>
> - url: .*
>   script: main.py
>
>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Dan Holevoet
Google Developer Relations

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] want to migrate to python 2.7 from 2.5,but after making changes website doesn't work

2013-06-03 Thread Sam Mak
I am trying to migrate from python to 2.7 to 2.5 but after making the 
required changes to main.py and app.yaml file, my site does not work

please help... what changes should i make to these to get it to work

main.py

import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template

class MainHandler(webapp.RequestHandler):
  def get (self, q):
if q is None:
  q = 'index.html'

path = os.path.join (os.path.dirname (__file__), q)
self.response.headers ['Content-Type'] = 'text/html'
self.response.out.write (template.render (path, {}))

def main ():
  application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)], 
debug=True)
  util.run_wsgi_app (application)

if __name__ == '__main__':
  main ()



app.yaml

application: cool-gadgets
version: 1
runtime: python
api_version: 1



handlers:
- url: /robots.txt
  static_files: static/robots.txt
  upload: static/robots.txt

- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico

- url: /gadgets/disney.xml
  static_files: gadgets/disney.xml
  upload: gadgets/disney.xml

- url: /gadgets/wwe.xml
  static_files: gadgets/wwe.xml
  upload: gadgets/wwe.xml

- url: .*
  script: main.py

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: 500 server error for all app engine application

2013-06-03 Thread Jason Collins
We are getting increased reports of this as well. Very frustrating and 
almost no visibility into the extent of the issue...
j


On Saturday, 1 June 2013 16:53:03 UTC-6, Nick Wong wrote:
>
>
> Like loads of other people, I have been having a 500 server error for all 
> app engine application of my company's newly created account from the 
> start(since created) and the error logs are the same.
>
> 
> 
> 500 Server Error
> 
> 
> Error: Server Error
> The server encountered an error and could not complete your request.
> If the problem persists, please http://code.google.com/appengine/community.html";>report your problem 
> and mention this error message and the query that caused it.
> 
> 
> --- end server output ---
> Application: http://ftdbstorage.appspot.com/, 
> http://cdn-firetext.appspot.com/, http://codexa-firetext.appspot.com/
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] How to set deadline for a PHP URL fetch?

2013-06-03 Thread Dan Holevoet
This is a great question for the App Engine Stack Overflow
tag,
which also conveniently happens to have an
answerfor
you!

Thanks,
Dan


On Mon, Jun 3, 2013 at 8:20 AM, 1moretime  wrote:

> URL Fetch overview says:
>
> You can set a deadline for a request, the most amount of time the
> service will wait for a response. By default, the deadline for a fetch
> is 5 seconds. The maximum deadline is 60 seconds for HTTP requests and
> 10 minutes for task queue and cron job requests.
>
> Now, how can i set deadline to 60-sec ?
>
> --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Dan Holevoet
Google Developer Relations

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Wordpress + AppEngine = PressEngine

2013-06-03 Thread Kaan Soral
I just saw the PHP Feature, can't believe I didn't see any hype before your 
post

imo, web is full of php-based junk, now their job will be much easier, not 
good news for me :)

On Monday, June 3, 2013 9:08:56 PM UTC+3, @Mlaynes wrote:
>
>
> nice news about this theme:
> launch of the PHP runtime for App Engine = ease of use of open source 
> projects like Wordpress and more.. so, apart of Quercus library to use 
> PHP projects, now we have the option to implement those projects on Google 
> Cloud Platform directly..
>
> more details here:
> https://developers.google.com/appengine/docs/php/gettingstarted/
>
> sample of wordpress running on GAE platform:
> https://gaeforphp-blog.appspot.com/
>
> register an app (you'll need a GAE account)
> https://gaeforphp.appspot.com/
>
> best to all !
> @Mlaynes
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] UnicodeEncodeError but still saves to the Datastore

2013-06-03 Thread Takashi Matsuo
On Sun, Jun 2, 2013 at 4:18 PM, NP  wrote:

> Hello all,
>
> My datastore model has an attribute of class string. According to the
> documentation, the String class should be of type str or unicode.
>
> The data I'm trying to save is unicode (I confirmed this by printing out
> the type and the original page was encoded in utf-8).
>
> My data is successfully saved to the datastore but it still raises the
> following exception 'ascii' codec can't encode character u'\u2019' in
> position 6: ordinal not in range(128)
>

When does this exception happen? From the error message, you're trying to
encode u'\u2019' (RIGHT SINGLE QUOTATION MARK) with the 'ascii' codec. Here
is an example:

>>> u = u'\u2019'
>>> u.encode('ascii')
Traceback (most recent call last):
  File "", line 1, in 
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
position 0: ordinal not in range(128)
>>> u.encode('utf-8') # you can get an utf-8 encoded binary string
'\xe2\x80\x99'


>
> I'm curious as to why an exception is being raised even though the data is
> unicode and why even with the exception, the data is still saved
> successfully.
>
> Apart from specifically trapping this error using something like
> {exception UnicodeEncodeError: pass}, is there a way to prevent this error?
>

I don't recommend doing that. I recommend you check where the exception
occurs and fix it.

-- Takashi


>
>
>
> --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Takashi Matsuo | Developers Programs Engineer | tmat...@google.com

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Wordpress + AppEngine = PressEngine

2013-06-03 Thread @Mlaynes

nice news about this theme:
launch of the PHP runtime for App Engine = ease of use of open source 
projects like Wordpress and more.. so, apart of Quercus library to use PHP 
projects, now we have the option to implement those projects on Google 
Cloud Platform directly..

more details here:
https://developers.google.com/appengine/docs/php/gettingstarted/

sample of wordpress running on GAE platform:
https://gaeforphp-blog.appspot.com/

register an app (you'll need a GAE account)
https://gaeforphp.appspot.com/

best to all !
@Mlaynes


-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Some questions about instances

2013-06-03 Thread Sebastián Benítez
Hi there. I'm looking to create an Android/iOS (perhaps web too) social 
application and I'm considering GAE as backend.

For what I could gather, a single frontend instance is launched when a 
request arrives. Is that instance also used (as in multiple threads) to 
serve other incoming concurrent requests or other instances are launched?

What are the benefits of using Java/Python. I'm thinking the case of the 
app being eventually successfull and needing to handle 1M/10M users. I 
would asume Java is a better fit, but considering what I've read lately 
about launch performance, I'm not so sure now.

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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: SDK 1.7.7 still has sqlite3 import error

2013-06-03 Thread Tom Piercy
Yup. I'm having this issue too. Does anyone know of a way to fix it or a 
good path to start down to solving this?

On Wednesday, April 10, 2013 8:37:16 AM UTC+1, Mahron wrote:
>
> Stops when threadsafe is set to "no". Must have something to do with 
> threading I suppose. 
>
>
>
> File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \ext\db\__init__.py", line 2326, in next 
> return self.__model_class.from_entity(self.__iterator.next()) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \datastore\datastore_query.py", line 2892, in next 
> next_batch = self.__batcher.next() 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \datastore\datastore_query.py", line 2754, in next 
> return self.next_batch(self.AT_LEAST_ONE) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \datastore\datastore_query.py", line 2791, in next_batch 
> batch = self.__next_batch.get_result() 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \api\apiproxy_stub_map.py", line 604, in get_result 
> return self.__get_result_hook(self) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \datastore\datastore_query.py", line 2528, in __query_result_hook 
> self._batch_shared.conn.check_rpc_success(rpc) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \datastore\datastore_rpc.py", line 1222, in check_rpc_success 
> rpc.check_success() 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \api\apiproxy_stub_map.py", line 570, in check_success 
> self.__rpc.CheckSuccess() 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \api\apiproxy_rpc.py", line 156, in _WaitImpl 
> self.request, self.response) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \ext\remote_api\remote_api_stub.py", line 200, in MakeSyncCall 
> self._MakeRealSyncCall(service, call, request, response) 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \ext\remote_api\remote_api_stub.py", line 234, in _MakeRealSyncCall 
> raise pickle.loads(response_pb.exception()) 
>   File "C:\Python27\lib\pickle.py", line 1382, in loads 
> return Unpickler(file).load() 
>   File "C:\Python27\lib\pickle.py", line 858, in load 
> dispatch[key](self) 
>   File "C:\Python27\lib\pickle.py", line 1090, in load_global 
> klass = self.find_class(module, name) 
>   File "C:\Python27\lib\pickle.py", line 1124, in find_class 
> __import__(module) 
>   File "C:\Python27\lib\sqlite3\__init__.py", line 24, in  
> from dbapi2 import * 
>   File "C:\Python27\lib\sqlite3\dbapi2.py", line 27, in  
> from _sqlite3 import * 
>   File "C:\Program Files (x86)\Google\google_appengine\google\appengine 
> \tools\devappserver2\python\sandbox.py", line 856, in load_module 
> raise ImportError('No module named %s' % fullname) 
> ImportError: No module named _sqlite3 
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Unable to deploy

2013-06-03 Thread stalbaum
Was an answer ever forthcoming? I am having the same problem.

On Monday, February 18, 2013 3:07:38 PM UTC-8, John Conti wrote:
>
> I am unable to upload my app:
>
> bash-3.2$ /usr/local/lib/appengine-java-sdk-1.7.5/bin/appcfg.sh update war
> Reading application configuration data...
> Feb 18, 2013 4:00:52 PM 
> com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
> INFO: Successfully processed war/WEB-INF/appengine-web.xml
> Feb 18, 2013 4:00:52 PM 
> com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
> INFO: Successfully processed war/WEB-INF/web.xml
> Beginning server interaction for john-conti...
> 0% Created staging directory at: 
> '/var/folders/_f/5xjr_n1n00d9n9z9ffwylp5mgn/T/appcfg344253979033234870.tmp'
> 5% Using java7 runtime: false
> 8% Scanning for jsp files.
> 20% Scanning files on local disk.
> 25% Initiating update.
>
> com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
> https://appengine.google.com/api/appversion/create?app_id=john-conti&version=1&;
> 404 Not Found
> This application does not exist (app_id=u'john-conti').
>
> Unable to update app: Error posting to URL: 
> https://appengine.google.com/api/appversion/create?app_id=john-conti&version=1&;
> 404 Not Found
> This application does not exist (app_id=u'john-conti').
>
> Please see the logs 
> [/var/folders/_f/5xjr_n1n00d9n9z9ffwylp5mgn/T/appcfg6215812047732459518.log]
>  
> for further information.
> bash-3.2$ 
>
>
> The logs claim my app id doesn't exist.  However it is the same I have 
> been using all along, and my Dashboard confirms its existence and that it 
> is running properly:
>
> Unable to update:
> com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
> https://appengine.google.com/api/appversion/create?app_id=john-conti&version=1&;
> 404 Not Found
> This application does not exist (app_id=u'john-conti').
>
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:124)
> at 
> com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:371)
> at 
> com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
> at 
> com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1163)
> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:232)
> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:109)
> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:105)
> com.google.appengine.tools.admin.AdminException: Unable to update app: 
> Error posting to URL: 
> https://appengine.google.com/api/appversion/create?app_id=john-conti&version=1&;
> 404 Not Found
> This application does not exist (app_id=u'john-conti').
>
> at 
> com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:376)
> at 
> com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
> at 
> com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1163)
> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:232)
> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:109)
> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:105)
> Caused by: com.google.appengine.tools.admin.HttpIoException: Error posting 
> to URL: 
> https://appengine.google.com/api/appversion/create?app_id=john-conti&version=1&;
> 404 Not Found
> This application does not exist (app_id=u'john-conti').
>
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
> at 
> com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:644)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:449)
> at 
> com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:124)
> at 
> com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:371)
> ... 5 more
>
>
> Any ideas? 
>
>  
>
>

-- 
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 http://g

[google-appengine] How can I delete my "Entity and Indexes" in my app engine home page?

2013-06-03 Thread 武萌
I mean app engine homepage --> Datastore Indexes --> Entity and Indexes.

I have deployed some useless "Entity and Indexes" for testing.
Now I want to delete them.
How can I do that?

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: JSP compile error with 1.7.4 at deploy time

2013-06-03 Thread Muhammad Aamir
bellow solution worked for me. [ Reference site: 
*link
* ]
add the bold lines to  *EclipseHome/eclipse.ini*

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
*-vm
C:\Program Files\Java\jdk1.6.0_38\bin\javaw.exe*
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Importing data to datastore with bulkloader : error and long back off, but import finish ok

2013-06-03 Thread Vincent Lee
brian,

Can I borrow your local tools?

On Tuesday, November 6, 2012 2:51:49 PM UTC-5, Brian wrote:
>
> Yes, I ran into the same problem a couple of years ago with the local SDK, 
> and again recently when I first deployed my app to appspot.com. The 
> solution that worked for me was to batch upload my data with no more that 
> 60 records in each batch. (Had to write some local tools just to work 
> around this problem!) Otherwise the delays kept expanding exponentially 
> until hours became days and days became weeks -- it would never finish the 
> upload. Hope this helps!
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Want to migrate my site hosted on appengine to python 2.7 from 2.5

2013-06-03 Thread Sam Mak
I am trying to migrate from python to 2.7 to 2.5 but after making the 
required changes to main.py and app.yaml file, my site does not work

please help... what changes should i make to these to get it to work

main.py

import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template

class MainHandler(webapp.RequestHandler):
  def get (self, q):
if q is None:
  q = 'index.html'

path = os.path.join (os.path.dirname (__file__), q)
self.response.headers ['Content-Type'] = 'text/html'
self.response.out.write (template.render (path, {}))

def main ():
  application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)], 
debug=True)
  util.run_wsgi_app (application)

if __name__ == '__main__':
  main ()



app.yaml

application: cool-gadgets
version: 1
runtime: python
api_version: 1



handlers:
- url: /robots.txt
  static_files: static/robots.txt
  upload: static/robots.txt

- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico

- url: /gadgets/disney.xml
  static_files: gadgets/disney.xml
  upload: gadgets/disney.xml

- url: /gadgets/wwe.xml
  static_files: gadgets/wwe.xml
  upload: gadgets/wwe.xml

- url: .*
  script: main.py

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] 500 server error for all app engine application

2013-06-03 Thread Nick Wong

Like loads of other people, I have been having a 500 server error for all 
app engine application of my company's newly created account from the 
start(since created) and the error logs are the same.



500 Server Error


Error: Server Error
The server encountered an error and could not complete your request.If 
the problem persists, please http://code.google.com/appengine/community.html";>report your problem 
and mention this error message and the query that caused it.


--- end server output ---
Application: http://ftdbstorage.appspot.com/, 
http://cdn-firetext.appspot.com/, http://codexa-firetext.appspot.com/

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] deploying webservices using java in Google App engine

2013-06-03 Thread sahar . abduljalil
I am following this tutorial to deploy a web service in Google App engine, 
but I stopped in the 4th step where i have to generate the files from the 
wesgen,, I am using windows OS ...Do you have an idea about this please , 
or if you can have a look at it please Thank you

https://developers.google.com/appengine/articles/soap

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Migrating to Python 2.7 - anything to watch out for?

2013-06-03 Thread Thiago Catoto
FYI

for me the bigest change was about Django forms... :p


-- Catoto
On Jun 2, 2013 8:10 PM, "NP"  wrote:

> Thanks to both Julie and Vinny P
>
> On Saturday, May 4, 2013 5:24:04 PM UTC-7, NP wrote:
>>
>> My app is currently deployed on GAE using python 2.5.
>>
>> I have made changes to the code and it is now running on python 2.7 and
>> lxml. Before deploying the 2.7 code, I wanted to find out if there are any
>> specific things I should watch out for/check for.
>>
>> Secondly, since we can deploy different versions of our code, is it
>> possible for me to have both the 2.5 and 2.7 codes (as different versions)
>> or is there a requirement that all versions of your app must use the same
>> python version? I was thinking of deploying the 2.7 as a different version
>> and watching how it performed before deleting the 2.5 version.
>>
>> Finally, the Key IDs for my datastore entities are automatically
>> generated. I noticed that for python 2.7, these IDs are very long (they are
>> 16 digits long on my development server) whereas they are shorter on python
>> 2.5 (6 digits long). Is there something I can do to reduce the length in
>> 2.7 or is this the expected behavior in 2.7?
>>
>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] How to set deadline for a PHP URL fetch?

2013-06-03 Thread 1moretime
URL Fetch overview says:

You can set a deadline for a request, the most amount of time the
service will wait for a response. By default, the deadline for a fetch
is 5 seconds. The maximum deadline is 60 seconds for HTTP requests and
10 minutes for task queue and cron job requests.

Now, how can i set deadline to 60-sec ?

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Python: Admin site doesn't work with old_dev_appserver engine

2013-06-03 Thread Robert Schuppenies
On Fri, May 31, 2013 at 7:56 AM, Uri London  wrote:

> Running the old_dev_appserver (the only way I can have debug working - a
> different story).
> go to http://localhost:8080/_ah/admin
> get an exception (oh no).
>

What kind of an exception?

FWIW, I tried with both 1.8.0 and 1.7.7 and it works for me.


>
> Of all places, in google/appengine/_internal/django/__init__ file (first
> line).
> Why is django even being imported for the admin page?
>

Because it uses the old webapp which is just a wrapper around Django:
https://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/ext/webapp/__init__.py#75


> - appengine/ext/admin/__init__ loads webapp/_template
> - _template loads _internal/django/template (which will load the
> _internal/django/__init__ first).
>
> This is in 1.7.7, and as far as I can tell, its a regression from previous
> versions.
>

Since I couldn't reproduce it myself, please include steps to reproduce.
Does this also happen when you use the the guestbook app?

Can you file a bug (it makes tracking easier)?

cheers,
robert


>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Memcache expiration

2013-06-03 Thread Pertti Kellomäki
Thanks. In my case the memcache entry reflects what would be the result of
a particular datastore query, so if the entry is purged the datastore query
can always be run.

Pertti


On Mon, Jun 3, 2013 at 4:48 PM, timh  wrote:

> The main thing to remember is memcache on appengine is not reliable,
> Despite any deadline you set, items in memcache can be purged/removed by
> google infrastructure at any point and you have no control over that.
>  Having said that relatively short periods 30 minutes for expiration tend
> to be ok. Though some times apps have at times very short life spans for
> data in memcache
>
> T
>
>
> On Monday, June 3, 2013 9:08:01 PM UTC+8, Pertti Kellomäki wrote:
>>
>> Hi all,
>>
>> I have never used the app engine memcache before, so I would like to
>> double check that I understand how expiration works.
>>
>> I maintain a bit of state in memcache for each client, and I want the
>> state to hang around as long as the client is alive, but go away after
>> that. Reading the docs suggests that expiration is solely determined by
>> insertion/update operations, so my client does a periodic .cas() on the
>> state to move the expiration deadline forward.
>>
>> Is this a sensible implementation on app engine? My app is in Python if
>> that makes a difference.
>>
>> The background is that clients poll for new events posted on the server.
>> New events are inserted in event queues in memcache for each client, with a
>> fallback of reading the events from datastore.
>> --
>> Pertti
>>
>>  --
> 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 http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Memcache expiration

2013-06-03 Thread timh
The main thing to remember is memcache on appengine is not reliable, 
Despite any deadline you set, items in memcache can be purged/removed by 
google infrastructure at any point and you have no control over that. 
 Having said that relatively short periods 30 minutes for expiration tend 
to be ok. Though some times apps have at times very short life spans for 
data in memcache

T

On Monday, June 3, 2013 9:08:01 PM UTC+8, Pertti Kellomäki wrote:
>
> Hi all,
>
> I have never used the app engine memcache before, so I would like to 
> double check that I understand how expiration works.
>
> I maintain a bit of state in memcache for each client, and I want the 
> state to hang around as long as the client is alive, but go away after 
> that. Reading the docs suggests that expiration is solely determined by 
> insertion/update operations, so my client does a periodic .cas() on the 
> state to move the expiration deadline forward. 
>
> Is this a sensible implementation on app engine? My app is in Python if 
> that makes a difference.
>
> The background is that clients poll for new events posted on the server. 
> New events are inserted in event queues in memcache for each client, with a 
> fallback of reading the events from datastore.
> -- 
> Pertti
>
>

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Memcache expiration

2013-06-03 Thread Pertti Kellomäki
Hi all,

I have never used the app engine memcache before, so I would like to double
check that I understand how expiration works.

I maintain a bit of state in memcache for each client, and I want the state
to hang around as long as the client is alive, but go away after
that. Reading the docs suggests that expiration is solely determined by
insertion/update operations, so my client does a periodic .cas() on the
state to move the expiration deadline forward.

Is this a sensible implementation on app engine? My app is in Python if
that makes a difference.

The background is that clients poll for new events posted on the server.
New events are inserted in event queues in memcache for each client, with a
fallback of reading the events from datastore.
-- 
Pertti

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Error code 202

2013-06-03 Thread Ian Marshall
People might also want to star Issue 7972 (Error code 202: change
logging level from Warning to Error) at:

https://code.google.com/p/googleappengine/issues/detail?id=7972&q=Error%20202&sort=priority&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

This feature request requests that the severity of this type of log
entry be changed from
warning to error; it's not just a warning since a user has been unable
to access the web site and got the GAE error 500 page instead.


On 31 May, 10:15, Manish Raje  wrote:
> There is an issue logged for this 
> problem:https://code.google.com/p/googleappengine/issues/detail?id=8560
>
> Request everyone seeing this issue to vote for the issue.
>
> Thanks,
> Manish.
>
>
>
>
>
>
>
> On Wednesday, March 7, 2012 2:49:15 PM UTC+5:30, tarun2000 wrote:
>
> > I keep getting:  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 202)
>
> > It seems like the issue happens right after uploading a new version or on
> > cold start.  It seems to disappear after a while.  The rpcs that fail may
> > be returning a lot of data.  Any idea what's wrong?

-- 
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 http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.