Hi,
This could be happening if you're storing the string form of keys in
your db entities (str(entity.key())). You may need to run a process
to cleanup / convert your data, or you could figure out where this is
coming from and add handling in there.
A very simple example of the conversion logic this:
clean_key = db.Key.from_path(*bad_key.to_path())
Note that if you use namespaces, you'll have to set that as well.
Robert
On Wed, Jan 25, 2012 at 18:17, Nevada County Makes
<[email protected]> wrote:
> I followed the steps at
> http://code.google.com/appengine/docs/adminconsole/applicationsettings.html
> for an HRD migration as far as one Incremental Copy iteration.
>
> I browsed to the HRD appspot url:
> http://v1-8-hrd.nevadacountymakes-hrd.appspot.com/
>
> I see:
> Traceback (most recent call last):
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/webapp/_webapp25.py", line 701, in __call__
> handler.get(*groups)
> File "/base/data/home/apps/s~nevadacountymakes-hrd/v1-8-hrd.
> 356337164398010837/ncm.py", line 607, in get
> (featured_maker, featured_products) = Product.getFeatured(4,
> community)
> File "/base/data/home/apps/s~nevadacountymakes-hrd/v1-8-hrd.
> 356337164398010837/model.py", line 431, in getFeatured
> maker = Maker.get(community.featured_maker)
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/db/__init__.py", line 1220, in get
> results = get(keys, **kwargs)
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> ext/db/__init__.py", line 1509, in get
> return get_async(keys, **kwargs).get_result()
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> api/apiproxy_stub_map.py", line 592, in get_result
> return self.__get_result_hook(self)
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> datastore/datastore_rpc.py", line 1428, in __get_hook
> self.check_rpc_success(rpc)
> File "/base/python_runtime/python_lib/versions/1/google/appengine/
> datastore/datastore_rpc.py", line 1184, in check_rpc_success
> raise _ToDatastoreError(err)
> BadRequestError: app s~nevadacountymakes-hrd cannot access app
> nevadacountymakes's data
>
> I've tried re-uploading the app with an the app.yaml "application" set
> to nevadacountymakes and also tried it with the application set to
> nevadacountymakes-hrd (since the instructions don't specify which to
> use and which will work after the alias). Neither worked.
>
> I've searched the forums and bugs and opened issue 6795, but haven't
> heard anything on it yet. I was hoping maybe someone with experience
> with a successful migration can tell me the magic handshake so I can
> document it here for myself and others.
>
> --
> 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.