2013-05-07 141 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

採取