English 中文(简体)
Heroku无法认证mongolab
原标题:Heroku could not authenticate mongolab

这在两天前得到了纠正。 昨天,我对她的oku做了一些改动,申请被打碎。

/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)

我甚至明确地将东道/港口/用户名/密码/密码/db的名字输入了mongoid.yml,但仍然无法得到通行证认证。

我在Rackspace和亚马孙都尝试过两个数据库,但两者都无法认证。

此前,你是否与你会晤? 除herokulogs外,我是否可以对Heroku进行检查?

Thanks.

最佳回答

确保你重新使用正确的用户名称与你的数据库连接。 用户名称与图诺拉数据库的用户名称不同。 查阅用户在mongolab.com为这一数据库列表,以了解您对数据库用户的配置。

希望会有所帮助。 如果需要进一步援助,可自由电子邮件支持@mongolab.com。

- 罗伯托

问题回答

今天,我在Heroku也遇到同样的问题:

Mongo::AuthenticationError: Failed to authenticate user  heroku_app111  on db  heroku_app111 .
        from /home/ad/.rvm/gems/ruby-2.1.3@app/gems/mongo-1.11.1/lib/mongo/functional/authentication.rb:205:in `issue_authentication 

这并不是因为以下原因造成的: bug,而是因为MongoLab升级为MongoDB 3.0,其中使用了 challenge-responseuser accreditation机制。 因此,我需要最新的风.:mongo ,该版本正是以这种方式计算的。 在我的案件中,最新的1.x分行。

支持SCRAM-SHA-1的最低驾驶标准是:

Driver     Language Version
C          1.1.0
C++        1.0.0
C#         1.10
Java       2.13
Node.js    1.4.29
Perl       0.708.0.0
PHP        1.6
Python     2.8
Motor      0.4
Ruby       1.12
Scala      2.8.0

当然,你们必须保证你们的信念:

您可使用以下方法获取贵国数据库用户名和密码:

heroku config ep> MONGODB_URI

答复方式如下:





相关问题
Packaging precompiled binaries inside of a gem

I ve got a ruby web app that uses lilypond to generate sheet music based on user input. I d like to move the hosting to heroku (I ve recently used heroku on a few projects and really liked it, plus ...

ActiveScaffold on Heroku s read-only file system?

ActiveScaffold apparently creates public/blank.html every time the server starts, even if that file already exists (so adding it to version control doesn t help). This is causing my application to ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

PostgreSQL GROUP BY different from MySQL?

I ve been migrating some of my MySQL queries to PostgreSQL to use Heroku. Most of my queries work fine, but I keep having a similar recurring error when I use group by: ERROR: column "XYZ" must ...

热门标签