Heroku无法验证mongolab [英] Heroku could not authenticate mongolab

查看:112
本文介绍了Heroku无法验证mongolab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两天前纠正了。昨天我对heroku进行了一些更改,应用程序崩溃了,我从 heroku logs 中发现:

  /app/.bundle/gems/ruby/1.9.1/gems/mongo-1.4.0/lib/mongo/db.rb:137:in`issue_authentication':无法验证用户larryzhao 'on db'uthenera'(Mongo :: AuthenticationError)

我甚至明确输入host / port /用户名/密码/数据库名称转换为mongoid.yml,但仍无法通过认证。



我试过Rackspace和Amazon的两个数据库,但都不能进行身份验证。 / p>

你以前见过吗?除了 heroku日志



感谢之外,还有什么可以检查Heroku吗?

解决方案

确保您使用正确的用户名连接到您的数据库。您用来登录到mongolab.com的用户名与附在'uthenera'数据库的用户名不同。在mongolab.com上查看该数据库的Users选项卡,查看您配置的数据库用户。



希望有帮助。如果您需要进一步帮助,请随时发送电子邮件至support@mongolab.com。

- 罗伯特


It was corrected two days ago. And yesterday I committed some changes to heroku and the application crashed, I found from heroku logs that:

/app/.bundle/gems/ruby/1.9.1/gems/mongo-1.4.0/lib/mongo/db.rb:137:in `issue_authentication': Failed to authenticate user 'larryzhao' on db 'uthenera' (Mongo::AuthenticationError)

I even explicitly input the host/port/username/password/db name into mongoid.yml, still it could not get pass authentication.

I tried both database in Rackspace and in Amazon, but neither could authenticate.

Have you met with that before? Is there anything else I could check on Heroku besides heroku logs ?

Thanks.

解决方案

Make sure you're using the right username to connect to your database. The username you use to log into mongolab.com is different from the one attached to the 'uthenera' database. Have a look at the Users tab for that database at mongolab.com to see what database user(s) you've configured.

Hope that helps. Feel free to email support@mongolab.com if you need further assistance.

-Robert

这篇关于Heroku无法验证mongolab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆