我无法将数据上传到我的GAE Java dev serwer。 Bulkloader要求输入密码,但没有密码匹配:
D:\python_google_appengine>appcfg.py upload_data --config_file=bulkloader.yaml --filename=templates.csv --url=http://localhost:8080/remote_api --kind=EmailMessageTemplate --application=myappid --insecure
Uploading data records.
[INFO ] Logging to bulkloader-log-20110927.084025
[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-20110927.084025.sql3
Please enter login credentials for localhost
Email: m@gmail.com
Password for m@gmail.com:
[INFO ] Connecting to localhost:8080/remote_api
2011-09-27 08:40:44,062 WARNING appengine_rpc.py:435 ssl module not found.
Without the ssl module, the identity of the remote host cannot be verified, and
connections may NOT be secure. To fix this, please install the ssl module from
http://pypi.python.org/pypi/ssl .
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl .
Please enter login credentials for localhost
Email: Interrupted.
然后如何在 Java dev服务器上创建带有密码的凭据或绕过密码要求?
我已经从这里阅读了答案Which credentials should I put in for Google App Engine BulkLoader at development server?以及对此问题的评论http://code.google.com/p/googleappengine/issues/detail?id=2440 但它完全是关于Python dev服务器而不是Java 。
答案 0 :(得分:1)
也许这是暂时的问题。尝试重新部署应用程序,然后重新启动所有内容。使用任何电子邮件和空密码。
答案 1 :(得分:0)
适用于GAE的开发服务器
(1)使用浏览器转到http://localhost:8080/_ah/login以检查管理员电子邮件。默认值为test@example.com
(2)将 - email=test@example.com --passin 添加到appcfg.py参数中,然后按Enter键输入密码
(3)应用程序id具有开发服务器的前缀 dev~ ,例如 application = dev~myappid