Access to the database on the production of meteors in 2016

It seems the answer in this thread ( Access to the Meteor Manufacturing Database ) no longer works when you want to access the Meteor Products Database in 2016. I want to access blah.meteor.com meteorite database using

meteor mongo blah.meteor.com

instead, I get:

connection to: sg-mother1-6243.servers.mongodirector.com:27017/blah_meteor_com 2016-01-18T15: 21: 49.884 + 0200 Error: 18 {ok: 0.0, errmsg: "auth failed", code: 18} in src /mongo/shell/db.js: 1210 Exception: login error

Then i tried

meteor mongo --url blah.meteor.com

I get a username pointer. I enter the username of my meteorite site and press enter, and then I get the password. I entered the password for the specified username and press Enter. The following URL seems to me:

MongoDB: // client-2ee8c14d: c1546ca8-4e7e-5883-0214-150b309fb4fb@SG-mother1-6242.servers.mongodirector.com: 27017 / blah_meteor_com

Then each time you re-enter

meteor mongo --url blah.meteor.com

It is assumed that I have already registered, and I was simply provided with a similar URL to the one I provided just above. I read the "meteor mongo command" documentation, stating:

Meteor Mongo --help

In the documentation, I read the following line:

Instead of opening the shell, specifying -url (-U) will return a URL suitable for an external program to connect to the database. For remote databases on deployed applications, the URL is valid for one minute.

In that sense, I went back to the stream (stackoverflow.com/questions/11801278/accessing-meteor-production-database), which I mentioned at the beginning, and read:

"So what does he say, the URL provided when running the command with the -url parameter is intended to be connected to the database by some external application, that is, other than a meteor."

I donโ€™t know which other application can help me connect to the meteor production database, except for what I did in 2015, namely:

meteor mongo blah.meteor.com

I read somewhere that I can use the mongo shell, but I do not know how to open it, and I do not know the mongo installation directory when it is installed with a meteor. I am using Linux (fedora).

How do I access the 2016 meteor production database? Are there updates that prevent me from accessing the meteor production database as easily as in 2015?

+4
mongodb meteor
Jan 21 '16 at 15:03
source share
2 answers

You are trying to connect to a version 3.0 database, while your meteor mongo team is still using version 2.6.7 mongo

Try a workaround:

  • Install Mongo version (3.x) directly on your computer.
  • Then run this command (it should work on osx, linux and windows when installing sed):

    mongo `meteor mongo --url XXX.meteor.com | sed 's/mongodb:\/\//-u /' | sed 's/:/ -p /' | sed 's/@/ /'`

Source: https://forums.meteor.com/t/meteor-mongo-xxx-meteor-com-giving-exception-login-failed-workaround/15289

+4
Jan 26 '16 at 9:46 on
source share

Since Meteor has stopped supporting the use of .meteor domains, and each developer must get their own hosting, I found a way to access the remote database using mup or mupx. I wrote this in this post: stack overflow

Hope this helps future people.

0
May 26 '16 at 10:36
source share



All Articles