After the update, MongoDB fails to start

After encountering some naming errors, I decided to upgrade my MongoDB server from version 3.2 to 3.6. The 3.2 version was working perfectly fine for me until then.

I downloaded MongoDB 3.6 from https://www.mongodb.com/download-center/community, installed it using the package manager (sudo dpkg -i mongodb-org-server_3.6.12_amd64.deb), and verified the update by running mongod --version.

According to my knowledge, the system starts up without any issues, but when I try to run mongo or sudo mongo, I receive the following output:

MongoDB shell version: 3.2.22
connecting to: test
2019-05-14T13:28:09.049-0400 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-05-14T13:28:09.049-0400 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6

exception: connect failed

I have attempted to resolve this issue by restarting the service and even the entire Ubuntu 16.04 server where it's hosted, to no avail. Unfortunately, none of the solutions I found online were successful either. If you have a possible solution to this problem, please share it with me. Thank you!

Answer №1

Prior to that, experiment with this:

sudo systemctl stop mongod
sudo rm /var/lib/mongodb/mongod.lock
mongod --repair
sudo systemctl start mongod

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What are the steps to import the cordova-android repository into the platform of a cordova-base project using svn?

After downloading a Cordova-Android repository from GitHub, I decided to upload it to SVN. The repository was originally a Git repository, so I made some modifications to the `package.json` file for the SVN version. Specifically, I changed the inner label ...

Is there any purpose to incorporating an AngularJS directive within a comment?

Hello, I'm curious about the purpose of using an AngularJS directive as a comment. I've seen some examples where it can display an alert message, even with arguments, but I'm struggling to see the practical use of a directive as a comment. C ...

Learn how to create a fading effect for an element when the mouse is inactive, and have it fade back in when the mouse is active again using J

There is a div with the ID "#top" that I want to have fade out after 3 seconds of mouse inactivity. Once the mouse is moved again, I would like it to fade back in. Any suggestions on how to achieve this effect? Appreciate your help! ...

Steps for ensuring a promise is fulfilled in Node.js and Firebase

I've been struggling with this issue for quite some time now and can't seem to figure it out. g_globalList.once("value").then(function(tickList){ var multiPaths = []; tickList.forEach(function(ticker){ ticker.val().forEach(fu ...

Error encountered while exporting TypeScript module

While I am working with Angular, TypeScript, and Gulp, my module system is CommonJS. However, I encountered an error when trying to import a module into my main.ts file: Error: Cannot find external module 'modules.ts'. Here is the snippet from ...

"Recently incorporated the antiword buildpack into my Heroku application, experiencing issues with error

Attempting to extract text from a doc file using the "textract" npm module requires installing its dependency "antiword" on Heroku. The command used for installation was: heroku buildpacks:add https://github.com/ropensci/antiword.git However, an error o ...

What is preventing zsh from locating Expo?

After successfully installing expo and expo-cli, I made sure that the path was set correctly. Upon checking the bin directory, I could verify that both expo and expo-cli were present. However, I am encountering two main issues. Firstly, whenever I attempt ...

Tips for utilizing JavaScript functions within Vue directives?

Let's say I have a JS function that looks like this: function myFunc() { return true; } Now, I want to display an element if the output of the function is true: <p v-if="myFun()">I am Test</p> I understand that I can place the myFun ...

Switching sub components based on routing through navigation links after logging in

I'm having an issue with my routing setup while transitioning from the login page to the main page. Here's how my Routes are structured: App.jsx <BrowserRouter> <Routes> <Route path="/main/" element={<Main ...

list of key combinations in a ul element

I programmed a list of world states in PHP using an unordered list (<ul>): $WORLD_STATES = array( "France", "Germany", "Greece", "Greenland", "United Kingdom", "United States", "Uruguay" ...

Executing a JavaScript function within a Vue component script

I'm working on a simple component file for submitting a form, along with a JavaScript function to handle an action: <template> <div> <div class="modal-header"> <button type="button" class="close" data-dismi ...

Informing the parent window of the child window's activities in order to adjust the timer for the user timeout feature

Within my Jquery function, I have implemented a feature that darkens the screen after a period of user inactivity. This triggers a pop-up window giving the user the option to stay logged in by clicking a button. If there is no response within the set time ...

The issue with jquery slideToggle is that it mistakenly opens all divs instead of just the specific div that should

My website has a dynamic page with a variable number of <div> elements. The concept is that users can click on the + symbol, which is represented by an <img> tag, to display the corresponding div. Currently, my code includes: PHP/HTML $plus ...

Guide to arranging an object in ascending order based on a key's value using JavaScript

Is there a way to sort the following values: 1, 99, 1, 50 in javascript? Given the input: var map = {test:1, test2:99, test3:1, test4: 50} The desired output is: {test2:99, test4:50, test3:1, test:1} This is the approach I have attempted: function sort ...

Adding a half circle connector in HTML can be accomplished by using SVG (Scal

My task is to replicate the construction shown in this image: https://i.sstatic.net/kaRMO.png I have written the entire code but I am unsure how to include a half circle next to the full circle and connect it with a line connector. Here is my code: .ps- ...

Firebase Operation Not Supported Error in next.js (auth/operation-not-supported-in-this-environment)

After successfully deploying a Next.js app hosted on Vercel with Firebase authentication that functions properly for users, I encountered a mysterious error during the "npm run build" phase: FirebaseError: Firebase: Error (auth/operation-not-supported-in ...

What are the best strategies to troubleshoot issues during NPM Install?

I keep encountering errors during the npm install process, but everything works fine when I use npm install --force in my local environment. However, the issues persist during the repository build as my .yaml file script contains "npm install". Can anyone ...

When the window size is reduced, the navigation vanishes

Whenever I resize the window, the navigation bar disappears. Here is the image of the page before resizing the window https://i.sstatic.net/UiRB9.png Below is the image after resizing the window https://i.sstatic.net/X00d2.png Displayed below is the cod ...

"Dealing with jQuery and PHP error: Index not defined

Greetings to all! I am attempting to load an external php file using jQuery, and I am encountering an undefined index error due to my use of the GET method in the external php file. Here is the code snippet: Main File <script> $(function() { $( ...

Is there a way to initiate LiveServer or npm run dev/start over my local network?

Is it possible to access my project (npm run dev/liveServer) over my home internet network so that my iPad, phone, or iMac could also view the project live as it's being developed (all connected to the same wireless network) without the need to deploy ...