How to update mongodb binaries in nitrous.io mailbox to version 2.4.x?

I take the "mongodb for node.js" course and try to import / restore data into my mongolab instance, but I keep getting Auth err error code errors.

I can connect to any instance that I create using mongo -shell from the nitrous.io box, and it works fine. Therefore, my connection strings and env variables are correct. If I change the password when I enter the mongo shell, it gives me the opportunity to enter the correct password. Therefore, I know that user authentication is correct.

I am confused why I still get Auth err code 18 errors when trying to use the provided mongodump files.

I also tried to specify individual .bson files, and this also gives the same error.

I am connecting to mongod version 2.4.6, but mongorestore is only 2.0.4 on the nitrous.io box. I wanted to upgrade to a newer version and see if this is a problem. I read other posts from other sites where it seems to have broken in version 2.2.2. when importing using older versions of binaries for recovery.

don't you think that you (nitrous.io developers) are leaving a way to upgrade or maintain the mongodb version. Do you have a way that I could upgrade to mongodb v2.4.6?

if you can add htop and bmon to your image, that would be nice.

+4
source share
1 answer

Nitrous has released a package manager called autoparts that will allow you to install mongodb 2.4.6.

Autoparts requires that you have a nitrogen box in the bran version or later. If you are on the "arya" version, you will need to download the contents in your field (SCP or Nitrous Mac application), complete this field, and then create a new update window.

Take a look at the README in Github Repo for instructions on using autostart:

https://github.com/action-io/autoparts

To install / upgrade mongodb to the latest version, run the following command:

parts install mongodb 

After installation is complete, run mongo in the console to check the version. You may need to restart the console if it reports an older version.

+3
source

Source: https://habr.com/ru/post/1500037/


All Articles