2
votes

http://code.google.com/appengine/docs/python/tools/uploadingdata.html

Here it is explained how to download data from a gAE app,

First thing to do is setting up remote_api. The bulk loader tool communicates with your application running on App Engine using remote_api, a request handler included with the App Engine runtime environment that allows remote applications with the proper credentials to access the datastore remotely. There are two ways to install remote_api: automatically using the builtins directive, or you manually using the url directive.

I enabled it using builtins directive: i changed app.yaml accordingly

builtins:
-  remote_api: on

Its given that this directive finds "include.yaml" file for the remote_api and maps the request handler to /_ah/remote_api. Only administrators of the application can access this URL.

but i never came across include.yaml

after that i tried downloading data using the the commands given there

appcfg.py download_data --application=<app-id> --url=http://<appname>.appspot.com/[remote_api_path] --filename=<data-filename>

i'm getting an error saying permission denied, i'm confused. i am also not able to use "create_bulkloader_config" command, getting the same error, I'm confused, Thanks

3
are u using your application in a custom domain ?Sam
You need to include your complete command line, error messages, and stack traces.Nick Johnson

3 Answers

1
votes

Are you using open ID / federated login for your app? The remote API does not work with open ID, but there is a workaround here:

http://blog.notdot.net/2010/06/Using-remote-api-with-OpenID-authentication

0
votes

Replace

builtins:
-  remote_api: on

With

- url: /remote_api
      script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
      login: admin
0
votes

You Should run the commandline as an admin user. The permission denied error you are getting refers to the appcfg script not being able to access a local file.