[google-appengine] Re: dev_appserver.py throws SystemError: frexp() result out of range and subsequenty ValueError: bad marshal data

2009-06-26 Thread rraj
Thanks Nick.

I had to reinstall my OS due to a rootkit virus/malware, masquerading as
Google update / installer..
http://www.google.com/support/forum/p/Chrome/thread?tid=39a9c985ba746ec6hl=en

(as was the suggested approach mentioned in many forums, that one cannot be
very sure of cleaning up such rootkit malwares without leaving open any
backdoors)

Not sure if the malware replaced any of the binary files which appengine was
using during startup (say, for example to check if there is an update
available for app-engine, or other operations).

Just wanted to share the possible reasons, back on this thread.

I have a new setup now and back into development, of course without that old
datastore (which had just sample/test data, so no issues).

Regards,
R.Rajkumar

On Wed, Jun 24, 2009 at 4:51 PM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi rraj,

 It's possible you're still pointing to a corrupted datastore. Please try
 backing up your datastore (if necessary), then running with
 --clear_datastore and see if that works.

 -Nick Johnson


 On Tue, Jun 23, 2009 at 5:43 PM, rraj r.rajku...@gmail.com wrote:

 No, but I gave a different datastore location (using datastore_path and
 history_path, as shown in the trace snippet) which I thought was equivalent
 enough - is it not ?!
 Regards,
 R.Rajkumar

 On Tue, Jun 23, 2009 at 4:17 PM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi rraj,

 Have you tried clearing your datastore?

 -Nick Johnson


 On Tue, Jun 23, 2009 at 3:07 AM, rraj r.rajku...@gmail.com wrote:

 Hi,
 Had anybody encountered the following error and can guide me on how you
 fixed it ?

 When running the development app server, initial run throws
 SystemError: frexp() result out of range...

 C:\Program Files\Google\google_appenginedev_appserver.py
 --datastore_path=C:\gae_data --history_path=C:\gae_data demos\guestbook
 Traceback (most recent call last):
   File C:\Program Files\Google\google_appengine\dev_appserver.py, line
 60, in module
 run_file(__file__, globals())
   File C:\Program Files\Google\google_appengine\dev_appserver.py, line
 57, in run_file
 execfile(script_path, globals_)
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 483, in module
 sys.exit(main(sys.argv))
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 400, in main
 SetGlobals()
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 86, in SetGlobals
 from google.appengine.tools import dev_appserver
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, 
 line
 86, in module
 from google.appengine.api import datastore_file_stub
   File C:\Program
 Files\Google\google_appengine\google\appengine\api\datastore_file_stub.py,
 line 38, in module
 import datetime
 SystemError: frexp() result out of range



 Subsequent attempts to run applications, throws ValueError: bad
 marshal data...


 C:\Program Files\Google\google_appenginedev_appserver.py
 --datastore_path=C:\gae_data --history_path=C:\gae_data demos\guestbook
 Traceback (most recent call last):
   File C:\Program Files\Google\google_appengine\dev_appserver.py, line
 60, in module
 run_file(__file__, globals())
   File C:\Program Files\Google\google_appengine\dev_appserver.py, line
 57, in run_file
 execfile(script_path, globals_)
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 483, in module
 sys.exit(main(sys.argv))
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 400, in main
 SetGlobals()
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py,
 line 86, in SetGlobals
 from google.appengine.tools import dev_appserver
   File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, 
 line
 86, in module
 from google.appengine.api import datastore_file_stub
 ValueError: bad marshal data



 Python Version :: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45)
 [MSC v.1310 32 bit Intel)] on win32

 GAE Version : 1.2.3 (GoogleAppEngine_1.2.3.msi)

 Was running the application with an earlier version of GAE
 (1.2.2/1.2.1), when I encountered the bad marshal data problem during a
 restart of my application. Tried moving to the latest version to see if 
 this
 has been handled.

 Removing the datastore_file_stub.pyc and running again reproduces
 the problem in the same sequence : frexp() result out of range followed 
 by
 bad marshal data.

 Tried moving to Python 2.6.2 - did not help.

 Tried repairing GAE 1.2.3 - did not help.

 Uninstalled Python 2.6.2, Python 2.5.2  GAE and then installed Python
 2.5.2 and GAE 1.2.3 again and tested with demo application and new
 data-store path, when I got the above traces.


 Not able to run any GAE apps 

[google-appengine] Re: : full-text search for app-engine-patch/Django

2009-06-26 Thread kugutsumen

One happy customer here (probably one of the first :) )

Impressive work from Waldemar and Thomas! I'm going to play
with gae-search over the weekend. I might use it to let people
search version banners my nkill gae project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Too Many Versions (403)

2009-06-26 Thread dannyr


I'm getting the following error. I only have 1 version of the app.
According to Quota Details, my Deployments are only 28 of 250 (11%).
My application name is 'launchset'.

Deploying new version.
2009-06-25 23:50:52,071 ERROR appcfg.py:1241 An unexpected error
occurred. Abort
ing.
Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y, line 1234, in DoUpload
self.Commit()
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y, line 1106, in Commit
self.Deploy()
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y, line 1134, in Deploy
version=self.version)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py, line 344, in Send
f = self.opener.open(req)
  File C:\Python25\lib\urllib2.py, line 387, in open
response = meth(req, response)
  File C:\Python25\lib\urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
  File C:\Python25\lib\urllib2.py, line 425, in error
return self._call_chain(*args)
  File C:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File C:\Python25\lib\urllib2.py, line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Rolling back the update.
Error 403: --- begin server output ---

Too Many Versions (403)
The application already has the maximum number of versions.
--- end server output ---
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Bucket Size example ?

2009-06-26 Thread Sylvain

Thank you for this explanation !

Another point, if I've only 1 task in the queue and my bucket_size =
10.
This task may be never be triggered if there is no new task ?
The system is waiting for 9 new tasks ?

Regards.



On 26 juin, 01:15, Jeff S (Google) j...@google.com wrote:
 Hi Sylvain,

 Great question! The bucket sized is intended to allow you to regulate bursts
 of incoming task executions. For example, if you set the bucket size to 1,
 only one task in the queue can be started at a time. If the task queues
 quota bucket is empty, no new tasks for the queue will be started.

 This differs slightly from rate (as noted in the docs):

 http://code.google.com/appengine/docs/python/config/queue.html#Queue_...

 A high rate with a small bucket size means that new tasks will be executed
 quickly when the queue is empty, but only a small number of tasks will be
 started at once. So you could intentionally cause the queue to grow longer
 when lots of new tasks are being added to spread out your task execution
 more evenly.

 Cheers,

 Jeff

 Sylvain sylvain.viv...@gmail.com wrote:

  Hi,

  I don't really understand the bucket_size parameter in the task config
  yaml.

  Is it possible de have an example ?

  For example, I've 100 tasks in the queue. (rate 1/s)
  What does it change if my bucket_size = 1 or 10 ?

  and if I have only 5 tasks ? (rate 1/s)
  What does it change if my bucket_size = 1 or 10 ?

  Thank you

  Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: moving data from google app engine

2009-06-26 Thread Barry Hunter

http://code.google.com/appengine/articles/remote_api.html

Or even
http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Creating_Exporter_Classes


On 25/06/2009, Ilya Biryukov mobiled...@gmail.com wrote:

  Hi. I am developing a new application and thinking about using google
  app engine.
  My question is that if my app becomes too popular and I grow outside
  the available (billable) resources, is there any way to move my data
  off google engine? Can I just export everything to mysql, for example.
  Or any other convertible format?

  Thank you.

  



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: What is the limit on the size of data that can be stored in memcache?

2009-06-26 Thread Barry Hunter

On 26/06/2009, Khai khaitd...@gmail.com wrote:

  With traditional memache, we can cache data upto 1M in size.  Is this
  the same for GAE?

Yes.

(Most GAE API's have a 1Mb limit)


  Thanks!


  Khai
  



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get entities with empty list property

2009-06-26 Thread Nick Johnson (Google)

Hi Khai,

Due to the way entities are indexed, there's no way to query directly
for entities with empty lists. Your best option is to add a
BooleanProperty that you set to True whenever the ListProperty is
empty, and query on that.

-Nick Johnson

On Thu, Jun 25, 2009 at 11:44 PM, Khaikhaitd...@gmail.com wrote:

 I have a model:

 class BlogEntry(db.Model):
content = db.TextProperty()
tags = db.StringListProperty()

 To fetch entries that had been tagged with 'Math', I would write a
 GQL:

 BlogEntry.gql(WHERE tags = :tag, tag = Math)

 How can I fetch entries that had not been tagged?
 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bugs in index?

2009-06-26 Thread Nick Johnson (Google)

Hi buger,

Is this in production, or on the dev_appserver? In production, your
app does not appear to have the necessary indexes to execute the
second query.

-Nick Johnson

On Thu, Jun 25, 2009 at 11:38 PM, bugerleons...@gmail.com wrote:

 SELECT * FROM Video WHERE artist = Key
 ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
 status = 2
 This query gives me 4 results

 But this gives only 1 result!, i'm just added order
 SELECT * FROM Video WHERE artist = Key
 ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
 status = 2 ORDER BY created_at desc

 created_at is DateTime property, and all this objects have it
 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Time zone in admin console

2009-06-26 Thread dburns

Thanks Nick.  I went looking and discovered the issue tracking system,
and I believe this is already logged:

http://code.google.com/p/googleappengine/issues/detail?id=822

So I guess I'll wait :)  Thanks for your reply.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Testing GAE application best practices

2009-06-26 Thread Waldemar Kornewald

On Jun 25, 11:19 pm, Michelschr michels...@gmail.com wrote:
 On my side, following your suggestion, I tried nose-gae. It seems to
 work with webapp...

 Then I tried it with:http://code.google.com/p/rietveld/which is a
 sample application using django maintained by Guido van Rossum.
 Unfortunately, the unit tests are still on the TODO list, and alone, I
 was not able to make it work! (problems with 'application' and imports
 like 'use_library' to choose the new django version...) Even with an
 older version of Rietveld (to by pass the django version problem) I
 add problems.

If you already mention Django, you should also mention app-engine-
patch which provides full unit test support:
http://code.google.com/p/app-engine-patch/

AFAIK, someone also got nose working on it, though I haven't had time
to test it, yet.

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Time zone in admin console

2009-06-26 Thread Alexander Trakhimenok

Would be nice if we can select a timezone to display from a drop-down.

Am also tired to do -8 all the time.
-
Alex

On Jun 26, 12:00 pm, dburns drrnb...@gmail.com wrote:
 Thanks Nick.  I went looking and discovered the issue tracking system,
 and I believe this is already logged:

 http://code.google.com/p/googleappengine/issues/detail?id=822

 So I guess I'll wait :)  Thanks for your reply.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Bucket Size example ?

2009-06-26 Thread Wooble



On Jun 26, 4:13 am, Sylvain sylvain.viv...@gmail.com wrote:
 Thank you for this explanation !

 Another point, if I've only 1 task in the queue and my bucket_size =
 10.
 This task may be never be triggered if there is no new task ?
 The system is waiting for 9 new tasks ?

The bucket size is the maximum number of tasks that will be started at
once, not the minimum.  If the number of tasks is less than the bucket
size, you should expect the tasks to all get run when your rate calls
for them to run.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: moving data from google app engine

2009-06-26 Thread Philip

Not easily, Google's BigTable is not a relational database like mysql
and most popular databases.  If it becomes that popular you would have
to completely rewrite the application.

However if you optimize your app and it's not terribly inefficient
you'll probably be happy with Google's pricing.  Google estimates a
well coded website can handle 5 million page views a month within the
free quota limits.

On Jun 25, 12:31 pm, Ilya Biryukov mobiled...@gmail.com wrote:
 Hi. I am developing a new application and thinking about using google
 app engine.
 My question is that if my app becomes too popular and I grow outside
 the available (billable) resources, is there any way to move my data
 off google engine? Can I just export everything to mysql, for example.
 Or any other convertible format?

 Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Transactionally updating multiple entities over 1MB

2009-06-26 Thread tav

Hey guys and girls,

I've got a situation where I'd have to transactionally update
multiple entities which would cumulatively be greater than the 1MB
datastore API limit... is there a decent solution for this?

For example, let's say that I start off with entities E1, E2, E3 which
are all about 400kb each. All the entities are specific to a given
User. I grab them all on a remote node and do some calculations on
them to yield new computed entities E1', E2', and E3'.

Any failure of the remote node or the datastore is recoverable except
when the remote node tries to *update* the datastore... in that
situation, it'd have to batch the update into 2 separate .put() calls
to overcome the 1MB limit. And should the remote node die after the
first put(), we have a messy situation =)

My solution at the moment is to:

1. Create a UserRecord entity which has a 'version' attribute
corresponding to the latest versions of the related entities for any
given User.

2. Add a 'version' attribute to all the entities.

3. Whenever the remote node creates the computed new set of
entities, it creates them all with a new version number -- applying
the same version for all the entities in the same transaction.

4. These new entities are actually .put() as totally separate and new
entities, i.e. they do not overwrite the old entities.

5. Once a remote node successfully writes new versions of all the
entities relating to a User, it updates the UserRecord with the latest
version number.

6. From the remote node, delete all Entities related to a User which
don't have the latest version number.

7. Have a background thread check and do deletions of invalid versions
in case a remote node had died whilst doing step 4, 5 or 6...

I've skipped out the complications caused by multiple remote nodes
working on data relating to the same User -- but, overall, the
approach is pretty much the same.

Now, the advantage of this approach (as far as I can see) is that data
relating to a User is never *lost*. That is, data is never lost before
there is valid data to replace it.

However, the disadvantage is that for (unknown) periods of time, there
would be duplicate data sets for a given User... All of which is
caused by the fact that the datastore calls cannot exceed 1MB. =(

So queries will yield duplicate data -- gah!!

Is there a better approach to try at all? Thanks!

-- 
love, tav

plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
http://tav.espians.com | http://twitter.com/tav | skype:tavespian

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] HELP,I can't upload files

2009-06-26 Thread Bill Hsu

why I can't upload files?


Scanning files on local disk.
Initiating update.
2009-06-26 18:13:36,546 ERROR appcfg.py:1334 An unexpected error
occurred. Abort
ing.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'simple-ajax-
chat').
--- end server output ---

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Are datastore queries secure?

2009-06-26 Thread Diego G.

Can the queries of my google app to the datastore be sniffed by
anybody?
Or is the transfer encrypted?
Please confirm whether both the request and the response are safe from
being read by anybody (except for google employees, of course).

Another question related to security:
The FAQ says
Google App Engine allows you to serve SSL (HTTPS) traffic through
your appspot.com domain.
Does this imply that I cannot use SSL if I map my google app to a
different domain?

Thanks
Diego

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Error 500 on first upload

2009-06-26 Thread langabe

Hi,

I have been happily developing with the SDK, and on my first upload I
hit this error (appId is twitsup):

Scanning files on local disk.
Initiating update.
Cloning 1 static file.
Cloning 20 application files.
Deploying new version.
2009-06-26 15:14:10,523 ERROR appcfg.py:1272 An unexpected error
occurred. Aborting.
Traceback (most recent call last):
  File /home/alex/projects/google_appengine/google/appengine/tools/
appcfg.py, line 1265, in DoUpload
self.Commit()
  File /home/alex/projects/google_appengine/google/appengine/tools/
appcfg.py, line 1137, in Commit
self.Deploy()
  File /home/alex/projects/google_appengine/google/appengine/tools/
appcfg.py, line 1165, in Deploy
version=self.version)
  File /home/alex/projects/google_appengine/google/appengine/tools/
appengine_rpc.py, line 344, in Send
f = self.opener.open(req)
  File /usr/lib/python2.5/urllib2.py, line 387, in open
response = meth(req, response)
  File /usr/lib/python2.5/urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
  File /usr/lib/python2.5/urllib2.py, line 425, in error
return self._call_chain(*args)
  File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
result = func(*args)
  File /usr/lib/python2.5/urllib2.py, line 506, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
Rolling back the update.
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output ---

Any idea?

Thanks,
Alex

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Deserialization Cost of ListProperty

2009-06-26 Thread MajorProgamming

I was recently watching a Google I/O video (I believe it was by Brett
Slatkin), and I noticed that he was trying to avert the
Deserialization Cost of ListProperties. I was wondering how bad that
cost is, and how big the list has to be in order to see that cost?
(e.g. let's say I know the list will contain a maximum of 75. Would
that be something to worry about?)

Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Transactionally updating multiple entities over 1MB

2009-06-26 Thread Nick Johnson (Google)

Hi tav,

Batch puts aren't transactional unless all the entities are in the
same entity group. Transactions, however, _are_ transactional, and the
1MB limit applies only to single API calls, so you can make multiple
puts to the same entity group in a transaction.

-Nick Johnson

On Fri, Jun 26, 2009 at 8:53 AM, tavt...@espians.com wrote:

 Hey guys and girls,

 I've got a situation where I'd have to transactionally update
 multiple entities which would cumulatively be greater than the 1MB
 datastore API limit... is there a decent solution for this?

 For example, let's say that I start off with entities E1, E2, E3 which
 are all about 400kb each. All the entities are specific to a given
 User. I grab them all on a remote node and do some calculations on
 them to yield new computed entities E1', E2', and E3'.

 Any failure of the remote node or the datastore is recoverable except
 when the remote node tries to *update* the datastore... in that
 situation, it'd have to batch the update into 2 separate .put() calls
 to overcome the 1MB limit. And should the remote node die after the
 first put(), we have a messy situation =)

 My solution at the moment is to:

 1. Create a UserRecord entity which has a 'version' attribute
 corresponding to the latest versions of the related entities for any
 given User.

 2. Add a 'version' attribute to all the entities.

 3. Whenever the remote node creates the computed new set of
 entities, it creates them all with a new version number -- applying
 the same version for all the entities in the same transaction.

 4. These new entities are actually .put() as totally separate and new
 entities, i.e. they do not overwrite the old entities.

 5. Once a remote node successfully writes new versions of all the
 entities relating to a User, it updates the UserRecord with the latest
 version number.

 6. From the remote node, delete all Entities related to a User which
 don't have the latest version number.

 7. Have a background thread check and do deletions of invalid versions
 in case a remote node had died whilst doing step 4, 5 or 6...

 I've skipped out the complications caused by multiple remote nodes
 working on data relating to the same User -- but, overall, the
 approach is pretty much the same.

 Now, the advantage of this approach (as far as I can see) is that data
 relating to a User is never *lost*. That is, data is never lost before
 there is valid data to replace it.

 However, the disadvantage is that for (unknown) periods of time, there
 would be duplicate data sets for a given User... All of which is
 caused by the fact that the datastore calls cannot exceed 1MB. =(

 So queries will yield duplicate data -- gah!!

 Is there a better approach to try at all? Thanks!

 --
 love, tav

 plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
 http://tav.espians.com | http://twitter.com/tav | skype:tavespian

 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Testing GAE application best practices

2009-06-26 Thread Michelschr

Still testing the test tools...
[My tests with the 'older' version of Rietveld was not significant,
this version was unfortunately based on django 1.1...]

GaeUnit seems to work for simple test on Rietveld... More later...

To make justice to App Engine Patch, I should say that I was able to
have access to the Django test framework with AEP, including the
Django test client and test coverage reports (you can see other post
about this subject...)

In the GaeUnit doc, I read: GAEUnit for Django is an Django app. So
it can be installed like other app into any Django framework based on
Google App Engine, such as app-engine-patch and Google App Engine
Helper.

Well, if I use AEP, I don't need so much GaeUnit... So I will test now
the integration in Rietveld...

On Jun 26, 1:44 pm, Waldemar Kornewald wkornew...@gmail.com wrote:

 If you already mention Django, you should also mention app-engine-
 patch which provides full unit test 
 support:http://code.google.com/p/app-engine-patch/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: moving data from google app engine

2009-06-26 Thread Nick Johnson (Google)

Hi Ilya,

You can extract your data using remote_api, the bulk downloader, or
your own code. As far as hosting it off App Engine goes, changing your
app to use a relational database like MySQL will probably require some
work. There are alternative App Engine datastores, however, like
BDBDatastore (my own project):
http://arachnid.github.com/bdbdatastore/

-Nick Johnson

On Thu, Jun 25, 2009 at 6:31 PM, Ilya Biryukovmobiled...@gmail.com wrote:

 Hi. I am developing a new application and thinking about using google
 app engine.
 My question is that if my app becomes too popular and I grow outside
 the available (billable) resources, is there any way to move my data
 off google engine? Can I just export everything to mysql, for example.
 Or any other convertible format?

 Thank you.

 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Are datastore queries secure?

2009-06-26 Thread Nick Johnson (Google)

Hi Diego,

On Fri, Jun 26, 2009 at 11:39 AM, Diego G.diegogr...@ymail.com wrote:

 Can the queries of my google app to the datastore be sniffed by
 anybody?
 Or is the transfer encrypted?
 Please confirm whether both the request and the response are safe from
 being read by anybody (except for google employees, of course).

The queries between your app and the datastore only travel over
Google's internal network; there's no opportunity for anyone else to
get hold of them. The queries between you and your app, however,
travel in the clear unless you're using SSL. If you're using
remote_api, which uses HTTP, queries travel in the clear by default,
but you can instruct it to use HTTPS.


 Another question related to security:
 The FAQ says
 Google App Engine allows you to serve SSL (HTTPS) traffic through
 your appspot.com domain.
 Does this imply that I cannot use SSL if I map my google app to a
 different domain?

Correct. Due to the way SSL works, it's not practical to enable SSL on
mapped domains.

-Nick Johnson


 Thanks
 Diego

 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Deserialization Cost of ListProperty

2009-06-26 Thread Nick Johnson (Google)

Hi MajorProgramming,

Deserializing ListProperties can be expensive - nearly equivalent to
the cost of deserializing an equivalent number of non-list properties.
For exact performance details, I would recommend benchmarking it. A
list of size 75 may or may not be problematic, depending on your
application.

Also bear in mind that every entry in a ListProperty corresponds to an
index entry (unless you marked it as indexed=False), which increases
overhead when doing a put().

-Nick Johnson

On Fri, Jun 26, 2009 at 3:27 PM, MajorProgammingsefira...@gmail.com wrote:

 I was recently watching a Google I/O video (I believe it was by Brett
 Slatkin), and I noticed that he was trying to avert the
 Deserialization Cost of ListProperties. I was wondering how bad that
 cost is, and how big the list has to be in order to see that cost?
 (e.g. let's say I know the list will contain a maximum of 75. Would
 that be something to worry about?)

 Thanks,
 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: HELP,I can't upload files

2009-06-26 Thread Nick Johnson (Google)

The user you're authenticating as does not have permission to update
the app simple-ajax-chat. Make sure the user you're authenticating as
is an admin of the app, and that you're entering the password
correctly.

-Nick Johnson

On Fri, Jun 26, 2009 at 11:15 AM, Bill Hsubill...@126.com wrote:

 why I can't upload files?


 Scanning files on local disk.
 Initiating update.
 2009-06-26 18:13:36,546 ERROR appcfg.py:1334 An unexpected error
 occurred. Abort
 ing.
 Error 403: --- begin server output ---
 You do not have permission to modify this app (app_id=u'simple-ajax-
 chat').
 --- end server output ---

 




-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: HELP,I can't upload files

2009-06-26 Thread GenghisOne

Hi Bill

Did you update the app.yaml file so its pointed to an app-space you
control?

On Jun 26, 8:34 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 The user you're authenticating as does not have permission to update
 the app simple-ajax-chat. Make sure the user you're authenticating as
 is an admin of the app, and that you're entering the password
 correctly.

 -Nick Johnson



 On Fri, Jun 26, 2009 at 11:15 AM, Bill Hsubill...@126.com wrote:

  why I can't upload files?

  Scanning files on local disk.
  Initiating update.
  2009-06-26 18:13:36,546 ERROR appcfg.py:1334 An unexpected error
  occurred. Abort
  ing.
  Error 403: --- begin server output ---
  You do not have permission to modify this app (app_id=u'simple-ajax-
  chat').
  --- end server output ---

 --
 Nick Johnson, App Engine Developer Programs Engineer
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Transactionally updating multiple entities over 1MB

2009-06-26 Thread Andy Freeman

  the 1MB limit applies only to single API calls

Does that mean that db.put((e1, e2, e3,)) where all of the entities
are 500kb will fail?

Where are limits on the total size per call documented?
http://code.google.com/appengine/docs/python/datastore/overview.html#Quotas_and_Limits
only mentions a limit on the size of individual entities and the total
number of entities for batch methods.  The batch method documentation
(http://code.google.com/appengine/docs/python/datastore/functions.html
and http://code.google.com/appengine/docs/python/memcache/functions.html)
does not mention any limits.

Is there a documented limit on the number of entities per memcache
call?

BTW - There is a typo in 
http://code.google.com/appengine/docs/python/memcache/overview.html#Quotas_and_Limits.
It says In addition to quotas, the following limits apply to the use
of the Mail service: instead of Memcache service

On Jun 26, 7:28 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi tav,

 Batch puts aren't transactional unless all the entities are in the
 same entity group. Transactions, however, _are_ transactional, and the
 1MB limit applies only to single API calls, so you can make multiple
 puts to the same entity group in a transaction.

 -Nick Johnson





 On Fri, Jun 26, 2009 at 8:53 AM, tavt...@espians.com wrote:

  Hey guys and girls,

  I've got a situation where I'd have to transactionally update
  multiple entities which would cumulatively be greater than the 1MB
  datastore API limit... is there a decent solution for this?

  For example, let's say that I start off with entities E1, E2, E3 which
  are all about 400kb each. All the entities are specific to a given
  User. I grab them all on a remote node and do some calculations on
  them to yield new computed entities E1', E2', and E3'.

  Any failure of the remote node or the datastore is recoverable except
  when the remote node tries to *update* the datastore... in that
  situation, it'd have to batch the update into 2 separate .put() calls
  to overcome the 1MB limit. And should the remote node die after the
  first put(), we have a messy situation =)

  My solution at the moment is to:

  1. Create a UserRecord entity which has a 'version' attribute
  corresponding to the latest versions of the related entities for any
  given User.

  2. Add a 'version' attribute to all the entities.

  3. Whenever the remote node creates the computed new set of
  entities, it creates them all with a new version number -- applying
  the same version for all the entities in the same transaction.

  4. These new entities are actually .put() as totally separate and new
  entities, i.e. they do not overwrite the old entities.

  5. Once a remote node successfully writes new versions of all the
  entities relating to a User, it updates the UserRecord with the latest
  version number.

  6. From the remote node, delete all Entities related to a User which
  don't have the latest version number.

  7. Have a background thread check and do deletions of invalid versions
  in case a remote node had died whilst doing step 4, 5 or 6...

  I've skipped out the complications caused by multiple remote nodes
  working on data relating to the same User -- but, overall, the
  approach is pretty much the same.

  Now, the advantage of this approach (as far as I can see) is that data
  relating to a User is never *lost*. That is, data is never lost before
  there is valid data to replace it.

  However, the disadvantage is that for (unknown) periods of time, there
  would be duplicate data sets for a given User... All of which is
  caused by the fact that the datastore calls cannot exceed 1MB. =(

  So queries will yield duplicate data -- gah!!

  Is there a better approach to try at all? Thanks!

  --
  love, tav

  plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
 http://tav.espians.com|http://twitter.com/tav| skype:tavespian

 --
 Nick Johnson, App Engine Developer Programs Engineer
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Transactionally updating multiple entities over 1MB

2009-06-26 Thread Nick Johnson (Google)
On Fri, Jun 26, 2009 at 4:42 PM, Andy Freeman ana...@earthlink.net wrote:


   the 1MB limit applies only to single API calls

 Does that mean that db.put((e1, e2, e3,)) where all of the entities
 are 500kb will fail?


Yes.




 Where are limits on the total size per call documented?

 http://code.google.com/appengine/docs/python/datastore/overview.html#Quotas_and_Limits
 only mentions a limit on the size of individual entities and the total
 number of entities for batch methods.  The batch method documentation
 (http://code.google.com/appengine/docs/python/datastore/functions.html
 and http://code.google.com/appengine/docs/python/memcache/functions.html)
 does not mention any limits.


You're right - we need to improve our documentation in that area. The 1MB
limit applies to _all_ API calls.



 Is there a documented limit on the number of entities per memcache
 call?


No.




 BTW - There is a typo in
 http://code.google.com/appengine/docs/python/memcache/overview.html#Quotas_and_Limits
 .
 It says In addition to quotas, the following limits apply to the use
 of the Mail service: instead of Memcache service


Thanks for the heads-up.

-Nick Johnson




 On Jun 26, 7:28 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi tav,
 
  Batch puts aren't transactional unless all the entities are in the
  same entity group. Transactions, however, _are_ transactional, and the
  1MB limit applies only to single API calls, so you can make multiple
  puts to the same entity group in a transaction.
 
  -Nick Johnson
 
 
 
 
 
  On Fri, Jun 26, 2009 at 8:53 AM, tavt...@espians.com wrote:
 
   Hey guys and girls,
 
   I've got a situation where I'd have to transactionally update
   multiple entities which would cumulatively be greater than the 1MB
   datastore API limit... is there a decent solution for this?
 
   For example, let's say that I start off with entities E1, E2, E3 which
   are all about 400kb each. All the entities are specific to a given
   User. I grab them all on a remote node and do some calculations on
   them to yield new computed entities E1', E2', and E3'.
 
   Any failure of the remote node or the datastore is recoverable except
   when the remote node tries to *update* the datastore... in that
   situation, it'd have to batch the update into 2 separate .put() calls
   to overcome the 1MB limit. And should the remote node die after the
   first put(), we have a messy situation =)
 
   My solution at the moment is to:
 
   1. Create a UserRecord entity which has a 'version' attribute
   corresponding to the latest versions of the related entities for any
   given User.
 
   2. Add a 'version' attribute to all the entities.
 
   3. Whenever the remote node creates the computed new set of
   entities, it creates them all with a new version number -- applying
   the same version for all the entities in the same transaction.
 
   4. These new entities are actually .put() as totally separate and new
   entities, i.e. they do not overwrite the old entities.
 
   5. Once a remote node successfully writes new versions of all the
   entities relating to a User, it updates the UserRecord with the latest
   version number.
 
   6. From the remote node, delete all Entities related to a User which
   don't have the latest version number.
 
   7. Have a background thread check and do deletions of invalid versions
   in case a remote node had died whilst doing step 4, 5 or 6...
 
   I've skipped out the complications caused by multiple remote nodes
   working on data relating to the same User -- but, overall, the
   approach is pretty much the same.
 
   Now, the advantage of this approach (as far as I can see) is that data
   relating to a User is never *lost*. That is, data is never lost before
   there is valid data to replace it.
 
   However, the disadvantage is that for (unknown) periods of time, there
   would be duplicate data sets for a given User... All of which is
   caused by the fact that the datastore calls cannot exceed 1MB. =(
 
   So queries will yield duplicate data -- gah!!
 
   Is there a better approach to try at all? Thanks!
 
   --
   love, tav
 
   plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
  http://tav.espians.com|http://twitter.com/tav|http://twitter.com/tav%7Cskype:tavespian
 
  --
  Nick Johnson, App Engine Developer Programs Engineer
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
  Number: 368047- Hide quoted text -
 
  - Show quoted text -
 



-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 

[google-appengine] Re: Task Queue Back-off Times

2009-06-26 Thread Jeff S (Google)
Hi Tony,

At the moment, the back off on a failure is starts at 100ms and from there
subsequent failures incur an exponential backoff with a maximum upper
bounds. The retry time calculation is one part of the task queue system
which we expect to change quite a bit, so please don't rely on this in your
design. There is also a congestion control factor which can complicate
predictions of when a failed task will be tried again. I'm glad that you
asked about this, and we will make sure to better document this in the
future.

Thank you,

Jeff

On Tue, Jun 23, 2009 at 4:36 PM, Tony fatd...@gmail.com wrote:


 I've looked through the source in the SDK but I can't find any code
 relating to the back-off times when tasks fail (I think because the
 SDK doesn't actually process queues automatically?).

 Does anyone know what the back-off/retry times are for failed
 attempts?  The documentation says at worst, once a day but I was
 hoping for something a little more specific.  Thanks!
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] custom template loader

2009-06-26 Thread BmB

Hi. I'm trying add custom templateloader to my google-app .

main.py start with

import os
import random
import string
import sys
import wsgiref.handlers
import datetime
import simplejson
import re
from django.conf import settings
settings.configure(
TEMPLATE_LOADERS=(
'django.template.loaders.filesystem.load_template_source',
'templateloader.load_template_source',
),
)
...

where templateloader.py:

from django.template import TemplateDoesNotExist
def load_template_source(template_name, template_dirs=None):
...
return xxx# e.g. let
xxx===template_name
load_template_source.is_usable = True


Unfortunally it doesn't work. If file-template isn't exists then {%
include xxx%} area remain empty.
But code
self.response.out.write(settings.TEMPLATE_LOADERS)
take: (
'django.template.loaders.filesystem.load_template_source',
'templateloader.load_template_source',
)
Where I'm wrong? I fill my mistake is in using settings.configure().
Can anybody help me?

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Too Many Versions (403)

2009-06-26 Thread Tom Wu
appcfg.py rollback


2009/6/26 dannyr danny...@gmail.com



 I'm getting the following error. I only have 1 version of the app.
 According to Quota Details, my Deployments are only 28 of 250 (11%).
 My application name is 'launchset'.

 Deploying new version.
 2009-06-25 23:50:52,071 ERROR appcfg.py:1241 An unexpected error
 occurred. Abort
 ing.
 Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.p
 y, line 1234, in DoUpload
self.Commit()
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.p
 y, line 1106, in Commit
self.Deploy()
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.p
 y, line 1134, in Deploy
version=self.version)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appengin
 e_rpc.py, line 344, in Send
f = self.opener.open(req)
  File C:\Python25\lib\urllib2.py, line 387, in open
response = meth(req, response)
  File C:\Python25\lib\urllib2.py, line 498, in http_response
'http', request, response, code, msg, hdrs)
  File C:\Python25\lib\urllib2.py, line 425, in error
return self._call_chain(*args)
  File C:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File C:\Python25\lib\urllib2.py, line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 403: Forbidden
 Rolling back the update.
 Error 403: --- begin server output ---

 Too Many Versions (403)
 The application already has the maximum number of versions.
 --- end server output ---
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Bucket Size example ?

2009-06-26 Thread Sylvain

Thank you.

Now, everything is ok.

Regards.

On 26 juin, 16:11, Wooble geoffsp...@gmail.com wrote:
 On Jun 26, 4:13 am, Sylvain sylvain.viv...@gmail.com wrote:

  Thank you for this explanation !

  Another point, if I've only 1 task in the queue and my bucket_size =
  10.
  This task may be never be triggered if there is no new task ?
  The system is waiting for 9 new tasks ?

 The bucket size is the maximum number of tasks that will be started at
 once, not the minimum.  If the number of tasks is less than the bucket
 size, you should expect the tasks to all get run when your rate calls
 for them to run.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: moving data from google app engine

2009-06-26 Thread Peter Recore

I like your optimism!

On Jun 25, 1:31 pm, Ilya Biryukov mobiled...@gmail.com wrote:
 Hi. I am developing a new application and thinking about using google
 app engine.
 My question is that if my app becomes too popular and I grow outside
 the available (billable) resources, is there any way to move my data
 off google engine? Can I just export everything to mysql, for example.
 Or any other convertible format?

 Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bugs in index?

2009-06-26 Thread buger

It all was in production. And I have right indexes at that moment
(actually had :), when i've done smth wrong with indexes when tried to
fix it, now they marked as error. I tried to vacuum indexed by
instruction, but they marked as error near 20 hours :( )

On Jun 26, 2:26 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi buger,

 Is this in production, or on the dev_appserver? In production, your
 app does not appear to have the necessary indexes to execute the
 second query.

 -Nick Johnson

 On Thu, Jun 25, 2009 at 11:38 PM, bugerleons...@gmail.com wrote:

  SELECT * FROM Video WHERE artist = Key
  ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
  status = 2
  This query gives me 4 results

  But this gives only 1 result!, i'm just added order
  SELECT * FROM Video WHERE artist = Key
  ('ag9tdXNpY3ZpZGVvYnVnZXJyFwsSBkFydGlzdCILYXNpZ3VyIHLDs3MM') AND
  status = 2 ORDER BY created_at desc

  created_at is DateTime property, and all this objects have it

 --
 Nick Johnson, App Engine Developer Programs Engineer
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Testing GAE application best practices

2009-06-26 Thread Michelschr

I had GaeUnit working on Rietveld (à la Guido...), the test:

import unittest
from django.test.client import Client

class Test(unittest.TestCase):

def testDjango(self):
c = Client()
response = c.get('/code')
self.failUnlessEqual(response.status_code, 200)
self.failIf(not ('SERVER' in response.content))

passed, not possible (for me) to 'from django.test import TestCase'
only from unittest.

But it is not out of the box! You should search a lot by yourself...

I will continue to investigate...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Admin Console functionality for Task Queue API

2009-06-26 Thread hawkett

Hi,

Just a quick note that I have raised the following feature requests
for admin console functionality relating to the Task Queue API -

http://code.google.com/p/googleappengine/issues/detail?id=1770 - Task
Details
http://code.google.com/p/googleappengine/issues/detail?id=1771 - Task
Functions
http://code.google.com/p/googleappengine/issues/detail?id=1772 -
Editing Tasks in the queue
http://code.google.com/p/googleappengine/issues/detail?id=1773 - Queue
Functions
http://code.google.com/p/googleappengine/issues/detail?id=1774 -
Tombstone Functions

I figure a lot of this stuff is probably on your agenda anyway, but
doesn't hurt.

Probably the highest priority from my perspective would be

- Clearing a queue and its tombstones
- Deleting a task
- Deleting a tombstone

Cheers,

Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Too many versions!?!?

2009-06-26 Thread manuelaraoz

PLEASE HELP
this is urgent

when trying to deploy, I get this error message:

Rolling back the update.
Error 403: --- begin server output ---

Too Many Versions (403)
The application already has the maximum number of versions.
--- end server output ---


WHAT DOES THAT MEAN

I really need to deploy today, it's urgent
please please please someone help me

I've tried deleting old versions of my app and deploying a new one
(changing version id)
but nothing...

I'm getting desperate!!! I REALLY HAVE TO DEPLOY TODAY
thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Too many versions!?!?

2009-06-26 Thread Stephen Mayer

How many deployments are you currently using?  If you delete a few old
ones it will probably let you add a new one.  Or you could overwrite
an old version and then deploy under that version since it probably
takes some time before your quota resets once you reach the max number
of versions.  See the Deployments in your Quota Details in AppEngine
Control Panel.

Hope that helps!
Stephen

On Jun 26, 7:29 pm, manuelaraoz manuelar...@gmail.com wrote:
 PLEASE HELP
 this is urgent

 when trying to deploy, I get this error message:

 Rolling back the update.
 Error 403: --- begin server output ---

 Too Many Versions (403)
 The application already has the maximum number of versions.
 --- end server output ---

 WHAT DOES THAT MEAN

 I really need to deploy today, it's urgent
 please please please someone help me

 I've tried deleting old versions of my app and deploying a new one
 (changing version id)
 but nothing...

 I'm getting desperate!!! I REALLY HAVE TO DEPLOY TODAY
 thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Random Datastore Timeouts?

2009-06-26 Thread Stephen Mayer

Hi All ...

Anyone know why I might be seeing random timeouts from the datastore?
I'm inserting a very simple row and I'm the only one using my app ...
so almost no load.

ex. error message:

Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py, line 503, in __call__
handler.post(*groups)
  File /base/data/home/apps/myautomaticlife/4.334490812902965182/
forecast/views.py, line 164, in post
event.put()
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 696, in put
return datastore.Put(self._entity)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 166, in Put
raise _ToDatastoreError(err)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 2055, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout


Any ideas?
Stephen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Random Datastore Timeouts?

2009-06-26 Thread Stephen Mayer

Please note that sometimes I don't get any timeout and the exact same
put request works fine.  Appreciate any assistance you can offer!

Stephen

On Jun 26, 11:14 pm, Stephen Mayer stephen.ma...@gmail.com wrote:
 Hi All ...

 Anyone know why I might be seeing random timeouts from the datastore?
 I'm inserting a very simple row and I'm the only one using my app ...
 so almost no load.

 ex. error message:
 
 Traceback (most recent call last):
   File /base/python_lib/versions/1/google/appengine/ext/webapp/
 __init__.py, line 503, in __call__
     handler.post(*groups)
   File /base/data/home/apps/myautomaticlife/4.334490812902965182/
 forecast/views.py, line 164, in post
     event.put()
   File /base/python_lib/versions/1/google/appengine/ext/db/
 __init__.py, line 696, in put
     return datastore.Put(self._entity)
   File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 166, in Put
     raise _ToDatastoreError(err)
   File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 2055, in _ToDatastoreError
     raise errors[err.application_error](err.error_detail)
 Timeout
 

 Any ideas?
 Stephen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Random Datastore Timeouts?

2009-06-26 Thread Stephen Mayer

Also noticing random errors in the appengine control panel ...

Looks like this:

Server Error
A server error has occurred.

On Jun 26, 11:15 pm, Stephen Mayer stephen.ma...@gmail.com wrote:
 Please note that sometimes I don't get any timeout and the exact same
 put request works fine.  Appreciate any assistance you can offer!

 Stephen

 On Jun 26, 11:14 pm, Stephen Mayer stephen.ma...@gmail.com wrote:

  Hi All ...

  Anyone know why I might be seeing random timeouts from the datastore?
  I'm inserting a very simple row and I'm the only one using my app ...
  so almost no load.

  ex. error message:
  
  Traceback (most recent call last):
    File /base/python_lib/versions/1/google/appengine/ext/webapp/
  __init__.py, line 503, in __call__
      handler.post(*groups)
    File /base/data/home/apps/myautomaticlife/4.334490812902965182/
  forecast/views.py, line 164, in post
      event.put()
    File /base/python_lib/versions/1/google/appengine/ext/db/
  __init__.py, line 696, in put
      return datastore.Put(self._entity)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 166, in Put
      raise _ToDatastoreError(err)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 2055, in _ToDatastoreError
      raise errors[err.application_error](err.error_detail)
  Timeout
  

  Any ideas?
  Stephen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Gae is down ?

2009-06-26 Thread Tom Wu
 Server Error

A server error has occurred.

Return to Applications screen » http://appengine.google.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Gae is down ?

2009-06-26 Thread cz

Can't upload a new version either: 500 internal server error
The dashboard is inaccessible as well.
App is slow but works.

On Jun 26, 9:55 pm, gg bradjyo...@gmail.com wrote:
 Seems to be just the admin...

 On Jun 26, 9:52 pm, Tom Wu service.g2...@gmail.com wrote:

   Server Error

  A server error has occurred.

  Return to Applications screen » http://appengine.google.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Gae is down ?

2009-06-26 Thread gg

Seems to be just the admin...

On Jun 26, 9:52 pm, Tom Wu service.g2...@gmail.com wrote:
  Server Error

 A server error has occurred.

 Return to Applications screen » http://appengine.google.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Gae is down ?

2009-06-26 Thread gg

I meant dashboard/admin... Also seems like a lot of extra latency for
the first load.. Way more than normal

On Jun 26, 9:58 pm, cz czer...@gmail.com wrote:
 Can't upload a new version either: 500 internal server error
 The dashboard is inaccessible as well.
 App is slow but works.

 On Jun 26, 9:55 pm, gg bradjyo...@gmail.com wrote:

  Seems to be just the admin...

  On Jun 26, 9:52 pm, Tom Wu service.g2...@gmail.com wrote:

    Server Error

   A server error has occurred.

   Return to Applications screen » http://appengine.google.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---