CapabilityDisabledError: Datastore writes are temporarily disabled.

4 views
Skip to first unread message

wojo

unread,
Jun 4, 2008, 1:15:30 PM6/4/08
to Google App Engine
Anyone else seeing this error?

Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 501, in __call__
handler.post(*groups)
File "/base/data/home/apps/xxx/1.66/property_bag.py", line 38, in
post
bag.put()
File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 618, in put
return datastore.Put(self._entity)
File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 160, in Put
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Put', req, resp)
File "/base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py", line 46, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
File "/base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py", line 246, in MakeSyncCall
rpc.CheckSuccess()
File "/base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py", line 189, in CheckSuccess
raise self.exception
CapabilityDisabledError: Datastore writes are temporarily disabled.

palp

unread,
Jun 4, 2008, 1:19:17 PM6/4/08
to Google App Engine
Yup, same here. My dashboard is also getting a 404.

Marzia Niccolai

unread,
Jun 4, 2008, 1:22:49 PM6/4/08
to google-a...@googlegroups.com
Hi,
 The error you are seeing is due to our scheduled downtime.

Due to this scheduled maintenance, the datastore will be in read-only mode for approximately 10 minutes.  If you'd like to modify your app to catch this exception, here are some specifics:

exception
google.appengine.runtime.apiproxy_errors.CapabilityDisabledError

will be thrown by db.Model.put(), db.Model.delete(), and  db.run_in_transaction(). You can use python's try syntax to fail gracefully on writes like this:

from google.appengine.ext import db
from google.appengine.runtime.apiproxy_errors import
CapabilityDisabledError

myModel = db.Model()

try:
    myModel.put()
except CapabilityDisabledError:
    # fail gracefully here
    pass

Though the message was also sent to this group, you should subscribe to:
http://groups.google.com/group/google-appengine-downtime-notify

To get all such announcements in the future.

Thanks,
Marzia
Reply all
Reply to author
Forward
0 new messages