我能够下载我的生产 GAE 数据存储的备份,但我无法将备份上传到我的开发应用程序。这是我的尝试:
从生产中下载商店,按预期工作:
appcfg.py download_data --application=s~myApp --url=http://myApp.appspot.com/_ah/remote_api --filename=backup1
将备份上传到开发存储,失败:
appcfg.py upload_data --application=dev~myApp --url=http://localhost:8080/_ah/remote_api --filename=backup1
Uploading data records.
[INFO ] Logging to bulkloader-log-20120823.225047
[INFO ] Throttling transfers:
[INFO ] Bandwidth: 250000 bytes/second
[INFO ] HTTP connections: 8/second
[INFO ] Entities inserted/fetched/modified: 20/second
[INFO ] Batch Size: 10
[INFO ] Opening database: bulkloader-progress-20120823.225047.sql3
Please enter login credentials for localhost
Email: myemail@gmail.com
Password for myemail@gmail.com:
[INFO ] Connecting to localhost:8080/_ah/remote_api
[INFO ] Starting import; maximum 10 entities per post
............................................................................................................................................................[INFO ] Unexpected thread death: WorkerThread-5
[INFO ] An error occurred. Shutting down...
.........[ERROR ] Error in WorkerThread-5: <urlopen error [Errno 61] Connection refused>
[INFO ] 2670 entities total, 0 previously transferred
[INFO ] 1650 entities (1207416 bytes) transferred in 431.1 seconds
[INFO ] Some entities not successfully transferred
似乎错误 61 是一个端口错误。该应用程序正在运行,我已通过浏览器以管理员身份登录,并且我还输入了我的电子邮件/密码作为 CLI 命令的一部分。有些记录总是被上传,然后上传过程被切断。