Google App Engine appcfg.py data_upload 身份验证失败
我正在使用 appcfg.py 将数据从 csv 文件上传到数据存储区。 但每次尝试时,我都会收到错误:
[info ] Authentication failed
即使我使用管理员 ID 和密码。
在我的 app.yaml 文件中,我有:
handlers: - url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin - url: .* script: MainHandler.py
有人可以帮助我吗? 提前致谢。
I am using appcfg.py to upload data to datastore from a csv file.
But every time I try, I am getting error:
[info ] Authentication failed
even if i am using Admin id and password.
In my app.yaml file I am having:
handlers: - url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin - url: .* script: MainHandler.py
Can anybody please help me?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该
app.yaml
文件对我来说看起来不错,但您确定它已部署到服务器吗?文档明确指出,您需要先更新服务器上的应用程序,然后才能使用appcfg.py
批量上传数据,因此您可以尝试建议的命令:您还可以查看 删除您的会话 Cookie,特别是当 appcfg.py 不存在时不会每次都要求您进行身份验证——它可能保存了错误的密码。
希望其中一些有所帮助!
That
app.yaml
file looks good to me, but are you sure it's been deployed to the server? The docs explicitly note that you need to update your app on the server before usingappcfg.py
to bulk upload data will work, so you might try the suggested command:You might also look at deleting your session cookies, particularly if appcfg.py isn't asking you for your authentication each time -- it may have saved an incorrect password.
Hope some of this helps!
如果您的管理员是 Apps for Domains 帐户(例如 @yourdomain.com),并且您的应用使用 Google 帐户身份验证,则您将无法以应用管理员身份进行身份验证。您需要添加一个 Google 帐户(例如,@google.com)帐户作为管理员,并使用该帐户进行上传。
If your administrator is an Apps for Domains account (eg, @yourdomain.com), and your app uses Google Accounts authentication, you won't be able to authenticate as an admin on your app. You need to add a Google Accounts (eg, @google.com) account as an administrator, and use that to upload.