Easiest fix I've found (on Windows 7) is contained in the issue referenced by Robert http://code.google.com/p/googleappengine/issues/detail?id=7244 at the very bottom of the thread.
Upgrade to 1.6.6 and use localhost/_ah/quit to terminate the dev server. Local datastore changes persist! On Apr 20, 10:14 am, Robert Schuppenies <[email protected]> wrote: > It's probablyhttp://code.google.com/p/googleappengine/issues/detail?id=7244 > which > is a bug. Can you try the new SDK once we release 1.6.5 and see if that > fixed the issue? FWIW, it's probably best to add your feedback to the bug > then to consolidate.. > > thanks, > robert > > On Fri Apr 20 04:33:01 GMT-700 2012, Jeff Gager <[email protected]> > wrote: > > > > > > > > > I have just started using GAE (Python 2.7 SDK 1.6.4) , I have set up a > > simple test project using Pydev (latest version) in eclipse (indigo) > > on Windows XP (SP3). > > > It all works fine, I can persist data in the datastore and blobstore > > and then retrieve it, but when I stop the development server and start > > it again the data in the datastore is lost. This is not the case for > > the blobstore which is retaining blobs fine and I can see the > > blobstore folder that gets created in C:\Temp > > > I did the sensible thing and look back through old posts and found > > that most people who have this problem solve it by changing the > > location of the datastore file, so I used the following parameters; > > > --datastore_path="${workspace_loc}/myproject/datastore" -- > > blobstore_path="${workspace_loc}/myproject/blobstore" "$ > > {workspace_loc}/myproject/src" > > > I moved the blobstore at the same time as you can see. > > > The blobstore still works, and now the blobstore folder is created in > > myproject folder as expected. The datastore file is still not created > > however, and when I stop and restart the development server the data > > is still lost. > > > The dev server startup logs include the following entry > > > WARNING 2012-04-20 10:49:04,513 datastore_file_stub.py:513] Could not > > read datastore data from C:\myworkspace\myproject\datastore > > > So I know it is trying to create the datastore in the correct place. > > > Finally I lifted the whole eclipse workspace folder and copied it to > > another computer with exactly the same setup except it is running > > Windows 7 instead of Windows XP. > > > Everything works fine there - both the datastore file and blobstore > > folder are now created where I expect them to be. > > > I have set up eclipse, python, gae, my project and my eclipse launch > > file in exactly the same way on two computers, it works on one and > > not the other. Maybe XP is something to do with it but to be honest I > > think that's unlikely. > > > The only other clue I have come up with is that a recent change to the > > GAE development server stopped writing to the datastore file after > > every change and only flushes on exit, see this > > >http://stackoverflow.com/questions/10060172/gae-sdk-1-6-4-dev-appserv...<https://www.google.com/url?sa=D&q=http://stackoverflow.com/questions/...> > > > adding the following to my code did not help at all however > > > from google.appengine.tools import dev_appserver > > import atexit > > atexit.register(dev_appserver.TearDownStubs) > > > So it's not down to incorrect termination sequence either as far as I > > can tell. > > > Anyway I am stumped and I would be really grateful for suggestions you > > guys can come up with. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
