mongo db (mongodb.service) failed, status 14












0















I am experiencing the following problem using mongodb.



This is the error, when I check the status:



Screenshot of the error (mongodb.service, status 14)



Screenshot of code in the mongod.config file



Screenshot of the log file



I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.



Would really appreciate, if someone can help me fix this.










share|improve this question

























  • see if there's anything in log file. You can find log file path in /etc/mongod.conf.

    – yaoxing
    Nov 25 '18 at 17:37











  • @yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

    – Ivan C
    Nov 25 '18 at 18:56













  • You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

    – yaoxing
    Nov 26 '18 at 1:46











  • I have attached screenshot of the log file.

    – Ivan C
    Nov 26 '18 at 9:55
















0















I am experiencing the following problem using mongodb.



This is the error, when I check the status:



Screenshot of the error (mongodb.service, status 14)



Screenshot of code in the mongod.config file



Screenshot of the log file



I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.



Would really appreciate, if someone can help me fix this.










share|improve this question

























  • see if there's anything in log file. You can find log file path in /etc/mongod.conf.

    – yaoxing
    Nov 25 '18 at 17:37











  • @yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

    – Ivan C
    Nov 25 '18 at 18:56













  • You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

    – yaoxing
    Nov 26 '18 at 1:46











  • I have attached screenshot of the log file.

    – Ivan C
    Nov 26 '18 at 9:55














0












0








0








I am experiencing the following problem using mongodb.



This is the error, when I check the status:



Screenshot of the error (mongodb.service, status 14)



Screenshot of code in the mongod.config file



Screenshot of the log file



I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.



Would really appreciate, if someone can help me fix this.










share|improve this question
















I am experiencing the following problem using mongodb.



This is the error, when I check the status:



Screenshot of the error (mongodb.service, status 14)



Screenshot of code in the mongod.config file



Screenshot of the log file



I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.



Would really appreciate, if someone can help me fix this.







database mongodb web






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 9:56







Ivan C

















asked Nov 25 '18 at 16:37









Ivan CIvan C

14




14













  • see if there's anything in log file. You can find log file path in /etc/mongod.conf.

    – yaoxing
    Nov 25 '18 at 17:37











  • @yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

    – Ivan C
    Nov 25 '18 at 18:56













  • You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

    – yaoxing
    Nov 26 '18 at 1:46











  • I have attached screenshot of the log file.

    – Ivan C
    Nov 26 '18 at 9:55



















  • see if there's anything in log file. You can find log file path in /etc/mongod.conf.

    – yaoxing
    Nov 25 '18 at 17:37











  • @yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

    – Ivan C
    Nov 25 '18 at 18:56













  • You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

    – yaoxing
    Nov 26 '18 at 1:46











  • I have attached screenshot of the log file.

    – Ivan C
    Nov 26 '18 at 9:55

















see if there's anything in log file. You can find log file path in /etc/mongod.conf.

– yaoxing
Nov 25 '18 at 17:37





see if there's anything in log file. You can find log file path in /etc/mongod.conf.

– yaoxing
Nov 25 '18 at 17:37













@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

– Ivan C
Nov 25 '18 at 18:56







@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..

– Ivan C
Nov 25 '18 at 18:56















You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

– yaoxing
Nov 26 '18 at 1:46





You need to take a loot at /var/log/mongodb/mongod.log. See if there's anything interesting inside.

– yaoxing
Nov 26 '18 at 1:46













I have attached screenshot of the log file.

– Ivan C
Nov 26 '18 at 9:55





I have attached screenshot of the log file.

– Ivan C
Nov 26 '18 at 9:55












2 Answers
2






active

oldest

votes


















0














It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod is already running.

First, make sure mongod is not running already
ps aux | grep mongod



If it's not, remove the file:
rm /tmp/mongodb-27017.sock



Then try systemctl start mongod to start MongoDB again.






share|improve this answer































    0














    After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469608%2fmongo-db-mongodb-service-failed-status-14%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod is already running.

      First, make sure mongod is not running already
      ps aux | grep mongod



      If it's not, remove the file:
      rm /tmp/mongodb-27017.sock



      Then try systemctl start mongod to start MongoDB again.






      share|improve this answer




























        0














        It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod is already running.

        First, make sure mongod is not running already
        ps aux | grep mongod



        If it's not, remove the file:
        rm /tmp/mongodb-27017.sock



        Then try systemctl start mongod to start MongoDB again.






        share|improve this answer


























          0












          0








          0







          It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod is already running.

          First, make sure mongod is not running already
          ps aux | grep mongod



          If it's not, remove the file:
          rm /tmp/mongodb-27017.sock



          Then try systemctl start mongod to start MongoDB again.






          share|improve this answer













          It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod is already running.

          First, make sure mongod is not running already
          ps aux | grep mongod



          If it's not, remove the file:
          rm /tmp/mongodb-27017.sock



          Then try systemctl start mongod to start MongoDB again.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 27 '18 at 7:24









          yaoxingyaoxing

          2,45321325




          2,45321325

























              0














              After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.






              share|improve this answer




























                0














                After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.






                share|improve this answer


























                  0












                  0








                  0







                  After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.






                  share|improve this answer













                  After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 27 '18 at 7:26









                  Ivan CIvan C

                  14




                  14






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469608%2fmongo-db-mongodb-service-failed-status-14%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      404 Error Contact Form 7 ajax form submitting

                      How to know if a Active Directory user can login interactively

                      Refactoring coordinates for Minecraft Pi buildings written in Python