Unable to start the mongo services on debian server












0














Mongo DB keep on crashing automatically and all database and collection remove automatically.This is happening randomly and when I check mongod.log I can see it's automatically dropped.



enter image description here



Today I got the error message that mongo service unable to start, and when I start it services it give me the error



Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.


when I type this command



systemctl status mongod.service


enter image description here



Debian Server Configuration are: 40GB HHD 4GB RAM



I have around 2 million data as of now in mongoDB and it will increase day by day.



I have down so much of google but didn't find the perfect solution and as I'm not an expert at server level ,so can some give a suggestion or solution to how can I get rid with this problem.










share|improve this question














bumped to the homepage by Community 18 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0














    Mongo DB keep on crashing automatically and all database and collection remove automatically.This is happening randomly and when I check mongod.log I can see it's automatically dropped.



    enter image description here



    Today I got the error message that mongo service unable to start, and when I start it services it give me the error



    Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.


    when I type this command



    systemctl status mongod.service


    enter image description here



    Debian Server Configuration are: 40GB HHD 4GB RAM



    I have around 2 million data as of now in mongoDB and it will increase day by day.



    I have down so much of google but didn't find the perfect solution and as I'm not an expert at server level ,so can some give a suggestion or solution to how can I get rid with this problem.










    share|improve this question














    bumped to the homepage by Community 18 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0







      Mongo DB keep on crashing automatically and all database and collection remove automatically.This is happening randomly and when I check mongod.log I can see it's automatically dropped.



      enter image description here



      Today I got the error message that mongo service unable to start, and when I start it services it give me the error



      Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.


      when I type this command



      systemctl status mongod.service


      enter image description here



      Debian Server Configuration are: 40GB HHD 4GB RAM



      I have around 2 million data as of now in mongoDB and it will increase day by day.



      I have down so much of google but didn't find the perfect solution and as I'm not an expert at server level ,so can some give a suggestion or solution to how can I get rid with this problem.










      share|improve this question













      Mongo DB keep on crashing automatically and all database and collection remove automatically.This is happening randomly and when I check mongod.log I can see it's automatically dropped.



      enter image description here



      Today I got the error message that mongo service unable to start, and when I start it services it give me the error



      Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.


      when I type this command



      systemctl status mongod.service


      enter image description here



      Debian Server Configuration are: 40GB HHD 4GB RAM



      I have around 2 million data as of now in mongoDB and it will increase day by day.



      I have down so much of google but didn't find the perfect solution and as I'm not an expert at server level ,so can some give a suggestion or solution to how can I get rid with this problem.







      mongodb linux debian






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 10 '17 at 9:58









      Aman MauryaAman Maurya

      1012




      1012





      bumped to the homepage by Community 18 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 18 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          That first log file tells that "client" connects to the server and gives dropDatabase command, so check your application. Why it executes dropDatabase.



          What comes to the second problem, you need to check your mongodb.log, what it tells for the reason, why mongodb cannot start. Wild guess is ownership of some files (data, lock, log), all files must be owned by user what you use to start mongod process (probably mongodb -user)
          Name and location of mongodb.log, you can find from /etc/mongod.conf -file






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fdba.stackexchange.com%2fquestions%2f183160%2funable-to-start-the-mongo-services-on-debian-server%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            That first log file tells that "client" connects to the server and gives dropDatabase command, so check your application. Why it executes dropDatabase.



            What comes to the second problem, you need to check your mongodb.log, what it tells for the reason, why mongodb cannot start. Wild guess is ownership of some files (data, lock, log), all files must be owned by user what you use to start mongod process (probably mongodb -user)
            Name and location of mongodb.log, you can find from /etc/mongod.conf -file






            share|improve this answer


























              0














              That first log file tells that "client" connects to the server and gives dropDatabase command, so check your application. Why it executes dropDatabase.



              What comes to the second problem, you need to check your mongodb.log, what it tells for the reason, why mongodb cannot start. Wild guess is ownership of some files (data, lock, log), all files must be owned by user what you use to start mongod process (probably mongodb -user)
              Name and location of mongodb.log, you can find from /etc/mongod.conf -file






              share|improve this answer
























                0












                0








                0






                That first log file tells that "client" connects to the server and gives dropDatabase command, so check your application. Why it executes dropDatabase.



                What comes to the second problem, you need to check your mongodb.log, what it tells for the reason, why mongodb cannot start. Wild guess is ownership of some files (data, lock, log), all files must be owned by user what you use to start mongod process (probably mongodb -user)
                Name and location of mongodb.log, you can find from /etc/mongod.conf -file






                share|improve this answer












                That first log file tells that "client" connects to the server and gives dropDatabase command, so check your application. Why it executes dropDatabase.



                What comes to the second problem, you need to check your mongodb.log, what it tells for the reason, why mongodb cannot start. Wild guess is ownership of some files (data, lock, log), all files must be owned by user what you use to start mongod process (probably mongodb -user)
                Name and location of mongodb.log, you can find from /etc/mongod.conf -file







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 10 '17 at 13:51









                JJussiJJussi

                2,9941314




                2,9941314






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2fdba.stackexchange.com%2fquestions%2f183160%2funable-to-start-the-mongo-services-on-debian-server%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

                    Liste der Baudenkmale in Friedland (Mecklenburg)

                    Single-Malt-Whisky

                    Czorneboh