2013-05-07 130 views
0

我遇到问题将部署的数据存储下载到我的本地目录。无法从GAE数据存储下载数据

文档似乎很简单

https://developers.google.com/appengine/docs/python/tools/uploadingdata#Downloading_and_Uploading_All_Data

我是一个有点新的GAE ......我失去了一些东西明显在这里吗?

我运行下面的命令

appcfg.py download_data --url=http://myapp.appspot.com/_ah/remote_api --filename=ds_copy 

我不甚至要求身份验证, 这是输出:

12:33 PM Downloading data records. 
[INFO ] Logging to bulkloader-log-20130507.123333 
[INFO ] Throttling transfers: 
[INFO ] Bandwidth: 250000 bytes/second 
[INFO ] HTTP connections: 8/second 
[INFO ] Entities inserted/fetched/modified: 20/second 
[INFO ] Batch Size: 10 
Error 500: --- begin server output --- 

<html><head> 
<meta http-equiv="content-type" content="text/html;charset=utf-8"> 
<title>500 Server Error</title> 
</head> 
<body text=#000000 bgcolor=#ffffff> 
<h1>Error: Server Error</h1> 
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine/community.html">report</A> your problem and mention this error message and the query that caused it.</h2> 
<h2></h2> 
</body></html> 
--- end server output --- 

任何帮助表示赞赏!

回答

0

你只需要启用远程API

builtins: 
- remote_api: on 

更新您的应用程序,然后运行以下命令:

appcfg.py download_data -A appName --url=http://appName.appspot.com/_ah/remote_api/ --filename=data.csv 
appcfg.py --url=http://localhost:8080/_ah/remote_api/ --filename=data.csv upload_data <directory> 

这从https://stackoverflow.com/a/7944641/2954800

采取