OperationalError: unable to open database file

36 views
Skip to first unread message

vivpuri

unread,
Oct 14, 2009, 1:07:18 AM10/14/09
to Google App Engine
I am trying out the data download using remote_api and getting the
following error:

*******************************************************
No descending index on __key__, performing serial download
......................................................................
[ERROR ] [Thread-11] ExportP
rogressThread:
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkloader.py", line 1375, i
n run
self.PerformWork()
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkloader.py", line 2117, i
n PerformWork
item.progress_key = self.db.StoreKeys(item.key_start,
item.key_end)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\bulkloader.py", line 1920, i
n StoreKeys
(STATE_READ, unicode(key_start), unicode(key_end)))
OperationalError: unable to open database file
*******************************************************
I am using the following command:
bulkloader.py --dump --kind=<kind> --url=http://<appname>.appspot.com/
remote_api --filename=<data-filename> <app-directory>

Any ideas how this issue can be resolved?

Thanks

Nick Johnson (Google)

unread,
Oct 14, 2009, 6:42:34 AM10/14/09
to google-a...@googlegroups.com
Hi,

Try adding the --clear_datastore flag, to start with a fresh datastore.

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

vivpuri

unread,
Oct 14, 2009, 8:14:19 AM10/14/09
to Google App Engine
Now error starting the app:

C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py:40: Deprecation
Warning: the md5 module is deprecated; use hashlib instead
import md5
INFO 2009-10-14 12:11:02,953 appengine_rpc.py:157] Server:
appengine.google.com
INFO 2009-10-14 12:11:02,953 appcfg.py:348] Checking for updates
to the SDK.
INFO 2009-10-14 12:11:03,046 appcfg.py:362] The SDK is up to date.
WARNING 2009-10-14 12:11:03,046 datastore_file_stub.py:435] Could not
read datastore data from c:\d
ocume~1\vivekp~1\locals~1\temp\dev_appserver.datastore
WARNING 2009-10-14 12:11:03,046 datastore_file_stub.py:435] Could not
read datastore data from c:\d
ocume~1\vivekp~1\locals~1\temp\dev_appserver.datastore.history
INFO 2009-10-14 12:11:03,108 dev_appserver_main.py:478] Running
application appname on port 8
080: http://localhost:8080

Nick Johnson (Google)

unread,
Oct 14, 2009, 8:59:03 AM10/14/09
to google-a...@googlegroups.com
Hi,

This is not an error - those warnings are normal when running with clear_datastore. Have you tried accessing your app?

-Nick Johnson
Reply all
Reply to author
Forward
0 new messages