How to resolve “service start-limit-hit”SSH Server stops working after reboot, caused by missing /var/run/sshdCups won't startActive: active (exited) Service plexconnect starts exitedWhy does my systemd service shut down immediately after running?Install Redis-Server on Ubuntu 16.04 LTS minimalhow can I permanently change db path in Mongodb?Exe. path is not absolute (Trying to start a service I created)

How do I self-answer "What does this say?"

Why this definition for Lebesgue measurable functions?

Proof of the inclusion-exclusion principle

being overqualified as a barrier for getting a job

Is an algorithm with an approximation factor of 4000 useful?

Which was the first story to feature force fields?

What does "up to 90 feet" mean in the catapult spell?

Using only one terminal, can I interrupt a process that's hung on very early Unix versions?

Is the weight of the aircraft flying in the sky transferred to the ground?

Why use an adjective after a noun?

What is meant by "gravity waves we see at sea surface"?

If a very huge Earthquake occured anywhere on Earth could waves emerge to come together again on the opposite side?

Why is f'74' the same as f'74' with f-Strings?

Who is responsible on resolving conflicts on different PRs?

Are these homebrew metallic/chromatic pseudodragons the same CR as RAW pseudodragons?

What bit should I use to drill a two inch hole in a solid concrete wall?

Summing Values in an "Association" with the same Keys

Advent calendar

Is self-awareness or consciousness actually a evolutionary disadvantage?

Buffers output load in unpowered state

Can a public school in the USA force a 14yr old to create a Twitter account for a passing grade?

This new puzzle type needs a name

Any reason not to use global lambdas?

Modeling in pure math



How to resolve “service start-limit-hit”


SSH Server stops working after reboot, caused by missing /var/run/sshdCups won't startActive: active (exited) Service plexconnect starts exitedWhy does my systemd service shut down immediately after running?Install Redis-Server on Ubuntu 16.04 LTS minimalhow can I permanently change db path in Mongodb?Exe. path is not absolute (Trying to start a service I created)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















I am trying to run a Node.js API as a service, but am running into problems.



When running systemctl status servicename.service I get the following error:



servicename.service - [Service description] 
Loaded: leaded (/etc/systemd/system/servicename.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since [timestamp] ago
Process: 1142 ExecStart=/usr/bin/node /home/pi/Documents/server.js (code=exited, status=0/SUCCESS)
Main PID: 1142 (code=exited, status=0/SUCCESS)
[timestamp] hostname systemd[1]: servicename.service: Service hold-off time over, scheduling restart.
[timestamp] hostname systemd[1]: Stopped [Service description]
[timestamp] hostname systemd[1]: servicename.service: Start request repeated too quickly.
[timestamp] hostname systemd[1]: Failed to start [Service description]
[timestamp] hostname systemd[1]: servicename.service: Unit entered failed state.
[timestamp] hostname systemd[1]: servicename.service: Failed with result 'start-limit-hit'.


What is this error and how can I resolve this issue?



I would like to run the script with sudo since part of the script needs admin permissions.










share|improve this question

































    2


















    I am trying to run a Node.js API as a service, but am running into problems.



    When running systemctl status servicename.service I get the following error:



    servicename.service - [Service description] 
    Loaded: leaded (/etc/systemd/system/servicename.service; enabled; vendor preset: enabled)
    Active: failed (Result: start-limit-hit) since [timestamp] ago
    Process: 1142 ExecStart=/usr/bin/node /home/pi/Documents/server.js (code=exited, status=0/SUCCESS)
    Main PID: 1142 (code=exited, status=0/SUCCESS)
    [timestamp] hostname systemd[1]: servicename.service: Service hold-off time over, scheduling restart.
    [timestamp] hostname systemd[1]: Stopped [Service description]
    [timestamp] hostname systemd[1]: servicename.service: Start request repeated too quickly.
    [timestamp] hostname systemd[1]: Failed to start [Service description]
    [timestamp] hostname systemd[1]: servicename.service: Unit entered failed state.
    [timestamp] hostname systemd[1]: servicename.service: Failed with result 'start-limit-hit'.


    What is this error and how can I resolve this issue?



    I would like to run the script with sudo since part of the script needs admin permissions.










    share|improve this question





























      2













      2









      2


      4






      I am trying to run a Node.js API as a service, but am running into problems.



      When running systemctl status servicename.service I get the following error:



      servicename.service - [Service description] 
      Loaded: leaded (/etc/systemd/system/servicename.service; enabled; vendor preset: enabled)
      Active: failed (Result: start-limit-hit) since [timestamp] ago
      Process: 1142 ExecStart=/usr/bin/node /home/pi/Documents/server.js (code=exited, status=0/SUCCESS)
      Main PID: 1142 (code=exited, status=0/SUCCESS)
      [timestamp] hostname systemd[1]: servicename.service: Service hold-off time over, scheduling restart.
      [timestamp] hostname systemd[1]: Stopped [Service description]
      [timestamp] hostname systemd[1]: servicename.service: Start request repeated too quickly.
      [timestamp] hostname systemd[1]: Failed to start [Service description]
      [timestamp] hostname systemd[1]: servicename.service: Unit entered failed state.
      [timestamp] hostname systemd[1]: servicename.service: Failed with result 'start-limit-hit'.


      What is this error and how can I resolve this issue?



      I would like to run the script with sudo since part of the script needs admin permissions.










      share|improve this question
















      I am trying to run a Node.js API as a service, but am running into problems.



      When running systemctl status servicename.service I get the following error:



      servicename.service - [Service description] 
      Loaded: leaded (/etc/systemd/system/servicename.service; enabled; vendor preset: enabled)
      Active: failed (Result: start-limit-hit) since [timestamp] ago
      Process: 1142 ExecStart=/usr/bin/node /home/pi/Documents/server.js (code=exited, status=0/SUCCESS)
      Main PID: 1142 (code=exited, status=0/SUCCESS)
      [timestamp] hostname systemd[1]: servicename.service: Service hold-off time over, scheduling restart.
      [timestamp] hostname systemd[1]: Stopped [Service description]
      [timestamp] hostname systemd[1]: servicename.service: Start request repeated too quickly.
      [timestamp] hostname systemd[1]: Failed to start [Service description]
      [timestamp] hostname systemd[1]: servicename.service: Unit entered failed state.
      [timestamp] hostname systemd[1]: servicename.service: Failed with result 'start-limit-hit'.


      What is this error and how can I resolve this issue?



      I would like to run the script with sudo since part of the script needs admin permissions.







      sudo services nodejs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 '18 at 13:28









      Zanna

      55.8k15 gold badges152 silver badges258 bronze badges




      55.8k15 gold badges152 silver badges258 bronze badges










      asked Nov 1 '18 at 20:55









      MatthewMatthew

      1331 gold badge2 silver badges9 bronze badges




      1331 gold badge2 silver badges9 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          8



















          Run



          mkdir /var/run/sshd



          then



          systemctl restart ssh



          :thumbsup:



          DONE!






          share|improve this answer




















          • 2





            As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

            – pa4080
            Jan 28 at 14:08






          • 1





            this approach did not work

            – overexchange
            Sep 18 at 17:12












          • What does the question have to do with sshd?

            – Daniel W.
            9 hours ago


















          1



















          I was also struggling with this same error. It happened due to the restart of the application again and again. In my scenario, my app was not running as systemd service it was running like a demon mode. Check if your application is running as demon or systemd.






          share|improve this answer




























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1089310%2fhow-to-resolve-service-start-limit-hit%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









            8



















            Run



            mkdir /var/run/sshd



            then



            systemctl restart ssh



            :thumbsup:



            DONE!






            share|improve this answer




















            • 2





              As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

              – pa4080
              Jan 28 at 14:08






            • 1





              this approach did not work

              – overexchange
              Sep 18 at 17:12












            • What does the question have to do with sshd?

              – Daniel W.
              9 hours ago















            8



















            Run



            mkdir /var/run/sshd



            then



            systemctl restart ssh



            :thumbsup:



            DONE!






            share|improve this answer




















            • 2





              As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

              – pa4080
              Jan 28 at 14:08






            • 1





              this approach did not work

              – overexchange
              Sep 18 at 17:12












            • What does the question have to do with sshd?

              – Daniel W.
              9 hours ago













            8















            8











            8









            Run



            mkdir /var/run/sshd



            then



            systemctl restart ssh



            :thumbsup:



            DONE!






            share|improve this answer














            Run



            mkdir /var/run/sshd



            then



            systemctl restart ssh



            :thumbsup:



            DONE!







            share|improve this answer













            share|improve this answer




            share|improve this answer










            answered Jan 28 at 14:04









            JoeJoe

            811 silver badge3 bronze badges




            811 silver badge3 bronze badges










            • 2





              As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

              – pa4080
              Jan 28 at 14:08






            • 1





              this approach did not work

              – overexchange
              Sep 18 at 17:12












            • What does the question have to do with sshd?

              – Daniel W.
              9 hours ago












            • 2





              As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

              – pa4080
              Jan 28 at 14:08






            • 1





              this approach did not work

              – overexchange
              Sep 18 at 17:12












            • What does the question have to do with sshd?

              – Daniel W.
              9 hours ago







            2




            2





            As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

            – pa4080
            Jan 28 at 14:08





            As reference SSH Server stops working after reboot, caused by missing /var/run/sshd

            – pa4080
            Jan 28 at 14:08




            1




            1





            this approach did not work

            – overexchange
            Sep 18 at 17:12






            this approach did not work

            – overexchange
            Sep 18 at 17:12














            What does the question have to do with sshd?

            – Daniel W.
            9 hours ago





            What does the question have to do with sshd?

            – Daniel W.
            9 hours ago













            1



















            I was also struggling with this same error. It happened due to the restart of the application again and again. In my scenario, my app was not running as systemd service it was running like a demon mode. Check if your application is running as demon or systemd.






            share|improve this answer































              1



















              I was also struggling with this same error. It happened due to the restart of the application again and again. In my scenario, my app was not running as systemd service it was running like a demon mode. Check if your application is running as demon or systemd.






              share|improve this answer





























                1















                1











                1









                I was also struggling with this same error. It happened due to the restart of the application again and again. In my scenario, my app was not running as systemd service it was running like a demon mode. Check if your application is running as demon or systemd.






                share|improve this answer
















                I was also struggling with this same error. It happened due to the restart of the application again and again. In my scenario, my app was not running as systemd service it was running like a demon mode. Check if your application is running as demon or systemd.







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited Nov 30 '18 at 18:58









                Yufenyuy Veyeh Dider

                1,7605 gold badges11 silver badges25 bronze badges




                1,7605 gold badges11 silver badges25 bronze badges










                answered Nov 30 '18 at 9:43









                Anmol NagpalAnmol Nagpal

                113 bronze badges




                113 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1089310%2fhow-to-resolve-service-start-limit-hit%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

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?