Datastore error in production...

16 views
Skip to first unread message

Andy Burke

unread,
Aug 12, 2011, 11:05:53 PM8/12/11
to google-a...@googlegroups.com
I seem to get the following error intermittently:

app s~XXX cannot access app dev~XXX data

I am getting it right now after a recent deploy.  My application is running on the High Replication store.  I have always used the App Engine Launcher to do my deploys, have not used the command line.

It's super, super frustrating.  No idea why this is happening or what recourse I could possibly take to fix it.  I have tried re-deploying to no avail.

Any help or guidance would be appreciated.

andy



Tim Hoffman

unread,
Aug 12, 2011, 11:11:54 PM8/12/11
to google-a...@googlegroups.com
Hi

It looks like you have a key reference to some dev data.  Appids are embedded in the keys of entities.
dev~ is from the dev environment.  Have you harded coded a key (str(db.Key()) some where ?

Have a look at the stack trace to see where in your code this is occurring. Is it in a consistent location ?

Rgds

T

Ikai Lan (Google)

unread,
Aug 15, 2011, 7:19:40 PM8/15/11
to google-a...@googlegroups.com
Uh oh. Yep, Tim is right. This happens because datastore keys embed application IDs in them. When you do a migration, if you have something with a List of Key objects, we will extract the app ID and rewrite them. However, if your key object is encoded as a string, we don't do deep examination of each String that is stored, so you are probably getting this error when you try to convert a String key back into a value.

--
Ikai Lan 
Developer Programs Engineer, Google App Engine




T

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/n_fsVRWU4o8J.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages