无法从GAE数据存储区下载数据

时间:2013-05-07 17:46:59

标签: google-app-engine google-cloud-datastore

我在将部署的数据存储下载到我的本地目录时遇到问题。

文档似乎很简单

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 ---

感谢任何帮助!

2 个答案:

答案 0 :(得分:0)

您是否已在app.yaml中配置了remote_api?

https://developers.google.com/appengine/docs/python/tools/remoteapi

答案 1 :(得分: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