![]() I'll be thankful to know what could have caused this, and how can I fix it. The IP address of the network is changed.Machine is dis-joined and then joined to the domain controller. ![]() Here's the exact changes made to the machine: I can't have any logical explanations about what could have happened, since everything else on the server is fine. I tried running mongod -repair without any luck, it doesn't start at all. T03:54:26.123+0430 I STORAGE exception in initAndListen: 10078 nsToDatabase: db too long, terminating \src\mongo\db\db.cpp(659) mongo::initAndListen+0x27 \src\mongo\db\db.cpp(559) mongo::_initAndListen+0xee4 \src\mongo\db\db.cpp(337) mongo::repairDatabasesAndCheckVersion+0x517 \src\mongo\db\catalog\database_holder.cpp(134) mongo::DatabaseHolder::openDb+0x380 ![]() \src\mongo\db\catalog\database.cpp(214) mongo::Database::Database+0x25b \src\mongo\db\catalog\database.cpp(182) mongo::Database::_getOrCreateCollectionInstance+0x35 \src\mongo\db\catalog\database.cpp(429) mongo::Database::getCollection+0x1ab \src\mongo\util\assert_util.cpp(222) mongo::msgasserted+0xfa \src\mongo\util\log.cpp(136) mongo::logContext+0xb0 \src\mongo\util\stacktrace_windows.cpp(174) mongo::printStackTrace+0x43 I tried upgrading MongoDB to 3.2.3 didn't work but the error is changed: T03:54:25.404+0430 I - Assertion: 10078:nsToDatabase: db too long The database name is a few characters and reasonable, and it used to work. T02:46:26.940+0430 I STORAGE exception in initAndListen: 10080 ns name too long, max size is 127 bytes, terminating The error I'm getting is: T02:46:26.936+0430 W STORAGE database D:\mongodata MYDBNAME could not be opened due to DBException 10080: ns name too long, max size is 127 bytes I moved the VM to a new physical server without any major changes, and to my surprise it cannot be started and I can't seem to be able to find the issue on the internet. ![]() sudo chown $USER /tmp/mongodb-27017.I had a happy MongoDB 3.0.5 installed on a VM on a Windows 2012R2 Server, for light use. MongoDB Atlas is a multi-cloud developer data platform that provides the database and data services that accelerate and simplify how you build with data. I found the answer to these issues here, here, and here. Find the guides, samples, and references you need to use the database, visualize data, and build applications on the MongoDB data platform. If you run into errors when running mongod, you might need to modify some permissions and create a data directory. However, running mongod should still work! System has not been booted with systemd as init system (PID 1). Notice that the same error is thrown when running the command manually. This is caused by mongodb-org package trying to use systemctl to start the DB after install ( source). wget -qO - | sudo apt-key add -Įcho "deb focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt//mongodb-org-4.4.list Sudo dpkg -remove -force-remove-reinstreq mongodb-org-toolsĪdd new PPA and install Mongo 4.4. Sudo dpkg -remove -force-remove-reinstreq mongodb-org-shell Sudo dpkg -remove -force-remove-reinstreq mongodb-org-mongos Sudo dpkg -remove -force-remove-reinstreq mongodb-org-server Sudo dpkg -remove -force-remove-reinstreq mongodb-org Sudo dpkg -remove -force-remove-reinstreq mongo-tools Remove all Mongo packages and bits and pieces. ~ ❯ sudo rm -i /etc/apt//mongodb-org-4.4.list Many instructions were taken from directions here. You'll still be able to connect from WSL2 over localhost.įor me, solution resulted in an error: System has not been booted with systemd as init system (PID 1). Now, you can run mongo to reach the database.Įasiest way to bypass this issue is to run MongoDB on Windows. Now, to get mongoDB running, sudo nano /etc/init.d/mongodĪnd paste the contents in this link into the file and save it. Sudo dpkg -remove -force-remove-reinstreq mongodb-server-coreįor installing mongodb community edition, I have added the commands below: wget -qO - | sudo apt-key add -Įcho "deb bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt//mongodb-org-4.2.list Note : If you have already installed mongodb please remove all those before you install mongodb-org since it may cause some issues during installation : sudo dpkg -remove -force-remove-reinstreq mongo-tools So, I suggest you follow that steps given in MongoDB docs. I have come across this situation recently.Įven though MongoDB says that it is not supported in WSL, you can actually install it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |