How do I update the mongodb binaries in my nitrous.io box to the 2.4.x versions? - mongodb

I am taking the "mongodb for node.js" course and trying to import/restore data to my mongolab instance but I keep getting Auth err code 18 errors.
I can connect to any instance I create using the mongo --shell from the nitrous.io box and it works fine. So my connect string and env variables are correct. If I change the password when logging in to mongo shell it actually gives me the opportunity to put in the correct password. So I know the user authentication is proper.
I am confused as to why I still get Auth err code 18 errors when I try to use the supplied mongodump files.
I have also tried specifying individual .bson files and that gives the same error as well.
I am connecting to mongod version 2.4.6 but mongorestore is only 2.0.4 on the nitrous.io box. I wanted to update to the newer version and see if this is the problem. I have read other posts from other sites where this seemd to break in version 2.2.2. while importing using older versions of the binaries for restore.
it does not appear you(nitrous.io developers) leave a way to update or support mongodb versioning. Do you have a way I could update to mongodb v2.4.6?
also if you could add htop and bmon to your image that would be nice.

Nitrous has released a package manager dubbed autoparts which will allow you to install mongodb 2.4.6.
Autoparts requires you to have a Nitrous box on version "bran" or later. If you are on version "arya" then you will need to download the contents within your box (SCP or Nitrous Mac App), terminate the box, followed by creating a new box in order to upgrade.
Take a look at the README within the Github Repo for instructions on how to use autoparts:
https://github.com/action-io/autoparts
To install/update mongodb to the latest version, run the following command:
parts install mongodb
After the installation completes, run mongo in the console to check the version. You may need to restart the console if it is reporting an older version.

Related

mongodb installation in pc

I install mongodp from its web but when its complete its not showing anything i can follow my teacher but in c mongodb 6.0 bin mongodb its not opened but in mongosh its work proper it show the version of mongodb and version of mongosh and show database als but i want to follow my teacher so it is necessary to open from bin. plz 😣 help please.
i want to open mongodb from bin but its not opened from bin but its work properly from mongosh. iwant to follow my teacher.
i reinstall mongodb and also delte from c but its not working. i repair it mongodb install repair option but the problem is not solved.
mongo binary is legacy shell and no longer shipped with server binaries. See for details. If you, for some reason, need it, you should download a server binaries < 6.0, like 5.0.14 from here. And just copy mongo binary from there (without the rest server binaries).

Create Strapi App, no option for mongoDB on custom installation type

When attempting to create a Strapi App which is connected to a MongoDB cluster and selecting the custom installation, all online tutorials suggest that "mongodb" should be one of the options in the dropdown list alongside "postgres", "mysql" and "sqlite". However, I am not getting an option for mongodb.
I have tried reinstalling nodejs which then triggered the reinstall of create-strapi-app. I also have mongoDB installed locally.
Strapi has abandoned its support for NoSQL DBs. The MongoDB team might (if at all) write their own connector to MongoDB, however ETA is around July, and stable version ETA is around August.
SQLite is now the default DB. However I believe they recommend using PostgreSQL for production.
try with v3
npx create-strapi-app#3.6.8 fileName
Is running well with MongoDB
This worked for me guys,
Install strapi locally to your system using npm i strapi#alpha -g
Run mongodb locally on your system.
Use strapi new <project name> for creating a new project.
Choose your installation type as "custom"
This will avail "Mongo" on the list of supported Databases for Strapi.
Hope this will work for everyone.
Thanks
Reference:
https://strapi.gitee.io/documentation/3.0.0-alpha.x/guides/databases.html#mongodb-installation

Why is mongoimport.exe is gone from my package?

I'm a begineer at learning MongoDB. I had followed some course and installed windows mongodb enterprise edition package in the downloads section on MongoDB website. After installing and adding environment variables to PATH, I used mongoimport command. Then it said mongodb is not recognized as an internal or external command, operable program or batch file. But I could execute mongo command
I had checked C:\Program Files\MongoDB\Server\4.4\bin and the only are mongo.exe, mongod.exe, mongodecrypt.exe, mongoldap.exe, and mongos.exe. No others.
So, where can I find downloadable executable file or is there a way to install the rest of the addition tools/package (such as mongodump, mongoimport, mongoexport, and else) so I could do mongoimport?
I ran into the same issue myself. As of MongoDB 4.4, the database tools is now a separate installation for all platforms except Linux. You can find the instructions to install for your platform here.
I faced same issue. Please find below information might help you to solve your issue related to mongoimport.
The Database Tools are now separately versioned and installed as of the MongoDB 4.4 server release. These tools release independently from the MongoDB Server schedule enabling you to receive more frequent updates and leverage new features as soon as they are available. These include, among other things: mongodump, mongorestore, mongoimport, and mongoexport.
This is the download link for MongoDB Database Tools
In case of Windows installation, don't forget to add Database Tools folder to your path

Meteor.js mongodb version

This may be a dumb question, but I am confused about something. I have downloaded mongodb 2.6.4(latest) version to my mac, and deleted old mongodb folder which had executables and other stuff. But whenever I execute 'meteor mongo' command from my meteor.js application, it is opening MongoDB shell version 2.4.9, not the latest one. Why is this happening? Where is this old version is coming from? How can I use the latest version in meteor.js application?
Thank you
Meteor 1.0.x supports both 2.6 and 3.0. It ships with 2.6 locally.
http://info.meteor.com/blog/meteor-104-mongo-cordova-template-subscriptions
Meteor includes its own version of mongodb as a part of its bundle when you ran curl https://install.meteor.com | sh
It does this so its not a hassle to install and they can bundle the correct supported versions with it.
Meteor doesn't yet officially support 2.6.4 on the account of some oplog differences, though you can get it to work without the oplog without any issues, and with the oplog with a couple of issues.

MongoDB: Upgrade 2.4.10 to 2.6

I have a mongodb standalone instance in my ubuntu. According to official docs I replace mongod binary then I restarted mongodb using sudo service mongodb restart command, and restarted mongod binary also. Then when I check version using mongo --version. It's still 2.4.10. But when I check mongod version it's 2.6.1. Is it okay? I installed mongodb in my local machine using this guide. If it correct then I will upgrade my production server.
It sounds like you have upgraded your mongod server to 2.6.1 but still have an older version of the mongo shell in your path.
Technically that isn't a major issue for most usage as the older 2.4 shell can still connect and run common commands.
However, there are 2.6-specific shell helpers & features you'll be missing out on such as Bulk() operations and user management commands with user-defined roles.
If you have an open mongo shell, you can check the versions of both the mongo client and the mongod server you are connected to.
Ideally the major versions should match, eg:
> version() // Version of the `mongo` shell
2.6.1
> db.version() // Version of the `mongod` server this shell has connected to
2.6.1
The upgrade guide you have followed is assuming you are not using the packaged versions of MongoDB -- the guidance here could definitely be improved.
A better (and typical) approach for Ubuntu is to install MongoDB using the standard packages: Install MongoDB on Ubuntu. This would allow you to get software updates via the normal apt-get update process.
Yes. It's okay. The 2.6.1 version is a small update with bugfixes after version 2.6. But it's still the same major version.