restart systemd after it crash












1














How to restart systemd after it crash? systemd currently crash during VirtualBox installation. Problem is already tracked by this issue#10716. I'm using Ubuntu 18.10.



sudo dpkg -i virtualbox-5.2_5.2.20-125813_Ubuntu_bionic_amd64.deb
Setting up virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

sudo journalctl --no-pager -b -0 -p 0..4
dec 08 20:20:55 machine kernel: systemd[1]: segfault at 40000 ip 00007fe8fdcb9116 sp 00007ffd6f134918 error 4 in libc-2.28.so[7fe8fdc2e000+171000]
dec 08 20:20:55 machine systemd[1]: Caught <SEGV>, dumped core as pid 6345.
dec 08 20:20:55 machine systemd[1]: Freezing execution.


I tried to execute following commands, but without success. The only solution that I came up is to hard restart my machine.



sudo systemctl restart org.freedesktop.systemd1
Failed to restart org.freedesktop.systemd1.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

# This finish without errors, but "list-units" still doesn't show anything
sudo systemctl daemon-reexec

sudo systemctl list-units --no-pager
Failed to list units: Connection timed out

sudo systemctl daemon-reload
Failed to reload daemon: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)









share|improve this question






















  • You restarted your machine and systemd won’t start?
    – justinnoor.io
    Dec 8 at 20:34












  • @justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
    – NiegodziwyBeru
    Dec 8 at 22:09










  • Rebooting your machine is not overkill if it crashes :)
    – justinnoor.io
    Dec 8 at 22:32


















1














How to restart systemd after it crash? systemd currently crash during VirtualBox installation. Problem is already tracked by this issue#10716. I'm using Ubuntu 18.10.



sudo dpkg -i virtualbox-5.2_5.2.20-125813_Ubuntu_bionic_amd64.deb
Setting up virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

sudo journalctl --no-pager -b -0 -p 0..4
dec 08 20:20:55 machine kernel: systemd[1]: segfault at 40000 ip 00007fe8fdcb9116 sp 00007ffd6f134918 error 4 in libc-2.28.so[7fe8fdc2e000+171000]
dec 08 20:20:55 machine systemd[1]: Caught <SEGV>, dumped core as pid 6345.
dec 08 20:20:55 machine systemd[1]: Freezing execution.


I tried to execute following commands, but without success. The only solution that I came up is to hard restart my machine.



sudo systemctl restart org.freedesktop.systemd1
Failed to restart org.freedesktop.systemd1.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

# This finish without errors, but "list-units" still doesn't show anything
sudo systemctl daemon-reexec

sudo systemctl list-units --no-pager
Failed to list units: Connection timed out

sudo systemctl daemon-reload
Failed to reload daemon: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)









share|improve this question






















  • You restarted your machine and systemd won’t start?
    – justinnoor.io
    Dec 8 at 20:34












  • @justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
    – NiegodziwyBeru
    Dec 8 at 22:09










  • Rebooting your machine is not overkill if it crashes :)
    – justinnoor.io
    Dec 8 at 22:32
















1












1








1







How to restart systemd after it crash? systemd currently crash during VirtualBox installation. Problem is already tracked by this issue#10716. I'm using Ubuntu 18.10.



sudo dpkg -i virtualbox-5.2_5.2.20-125813_Ubuntu_bionic_amd64.deb
Setting up virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

sudo journalctl --no-pager -b -0 -p 0..4
dec 08 20:20:55 machine kernel: systemd[1]: segfault at 40000 ip 00007fe8fdcb9116 sp 00007ffd6f134918 error 4 in libc-2.28.so[7fe8fdc2e000+171000]
dec 08 20:20:55 machine systemd[1]: Caught <SEGV>, dumped core as pid 6345.
dec 08 20:20:55 machine systemd[1]: Freezing execution.


I tried to execute following commands, but without success. The only solution that I came up is to hard restart my machine.



sudo systemctl restart org.freedesktop.systemd1
Failed to restart org.freedesktop.systemd1.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

# This finish without errors, but "list-units" still doesn't show anything
sudo systemctl daemon-reexec

sudo systemctl list-units --no-pager
Failed to list units: Connection timed out

sudo systemctl daemon-reload
Failed to reload daemon: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)









share|improve this question













How to restart systemd after it crash? systemd currently crash during VirtualBox installation. Problem is already tracked by this issue#10716. I'm using Ubuntu 18.10.



sudo dpkg -i virtualbox-5.2_5.2.20-125813_Ubuntu_bionic_amd64.deb
Setting up virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Failed to enable unit: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

sudo journalctl --no-pager -b -0 -p 0..4
dec 08 20:20:55 machine kernel: systemd[1]: segfault at 40000 ip 00007fe8fdcb9116 sp 00007ffd6f134918 error 4 in libc-2.28.so[7fe8fdc2e000+171000]
dec 08 20:20:55 machine systemd[1]: Caught <SEGV>, dumped core as pid 6345.
dec 08 20:20:55 machine systemd[1]: Freezing execution.


I tried to execute following commands, but without success. The only solution that I came up is to hard restart my machine.



sudo systemctl restart org.freedesktop.systemd1
Failed to restart org.freedesktop.systemd1.service: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)

# This finish without errors, but "list-units" still doesn't show anything
sudo systemctl daemon-reexec

sudo systemctl list-units --no-pager
Failed to list units: Connection timed out

sudo systemctl daemon-reload
Failed to reload daemon: Failed to activate service 'org.freedesktop.systemd1': timed out (service_start_timeout=25000ms)






ubuntu systemd virtualbox crash segmentation-fault






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 8 at 20:23









NiegodziwyBeru

1084




1084












  • You restarted your machine and systemd won’t start?
    – justinnoor.io
    Dec 8 at 20:34












  • @justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
    – NiegodziwyBeru
    Dec 8 at 22:09










  • Rebooting your machine is not overkill if it crashes :)
    – justinnoor.io
    Dec 8 at 22:32




















  • You restarted your machine and systemd won’t start?
    – justinnoor.io
    Dec 8 at 20:34












  • @justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
    – NiegodziwyBeru
    Dec 8 at 22:09










  • Rebooting your machine is not overkill if it crashes :)
    – justinnoor.io
    Dec 8 at 22:32


















You restarted your machine and systemd won’t start?
– justinnoor.io
Dec 8 at 20:34






You restarted your machine and systemd won’t start?
– justinnoor.io
Dec 8 at 20:34














@justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
– NiegodziwyBeru
Dec 8 at 22:09




@justinnoor.io Yes it restart, but it would be nice to have some runtime solution for that. If you don't rely on any particular service, linux is pretty much operational. Hard reset looks like overkill
– NiegodziwyBeru
Dec 8 at 22:09












Rebooting your machine is not overkill if it crashes :)
– justinnoor.io
Dec 8 at 22:32






Rebooting your machine is not overkill if it crashes :)
– justinnoor.io
Dec 8 at 22:32












1 Answer
1






active

oldest

votes


















3














You cannot.



Once systemd has reached this state, there is no way out. It is an infinite loop in the systemd program.



You will have to wait for the actual bugs (one in Oracle's barmy VirtualBox post-installation procedures, q.v., and one in systemd when daemon-reexec is called often) to be fixed.



Oracle's barmy post-installation procedure is not only calling daemon-reexec instead of daemon-reload several times in quick succession, it is duplicating with its own mechanisms, written in shell script, work that systemd-sysv-generator already does. (So, too, does the Debian replacement mechanism, sad to say.) As seems to be so often the case, one major cause of problems is Oracle's shell script layers on top of stuff.



Further reading




  • Jonathan de Boyne Pollard (2015). The systemd House of Horror. Frequently Given Answers.

  • https://unix.stackexchange.com/a/233581/5132






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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%2funix.stackexchange.com%2fquestions%2f486836%2frestart-systemd-after-it-crash%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









    3














    You cannot.



    Once systemd has reached this state, there is no way out. It is an infinite loop in the systemd program.



    You will have to wait for the actual bugs (one in Oracle's barmy VirtualBox post-installation procedures, q.v., and one in systemd when daemon-reexec is called often) to be fixed.



    Oracle's barmy post-installation procedure is not only calling daemon-reexec instead of daemon-reload several times in quick succession, it is duplicating with its own mechanisms, written in shell script, work that systemd-sysv-generator already does. (So, too, does the Debian replacement mechanism, sad to say.) As seems to be so often the case, one major cause of problems is Oracle's shell script layers on top of stuff.



    Further reading




    • Jonathan de Boyne Pollard (2015). The systemd House of Horror. Frequently Given Answers.

    • https://unix.stackexchange.com/a/233581/5132






    share|improve this answer


























      3














      You cannot.



      Once systemd has reached this state, there is no way out. It is an infinite loop in the systemd program.



      You will have to wait for the actual bugs (one in Oracle's barmy VirtualBox post-installation procedures, q.v., and one in systemd when daemon-reexec is called often) to be fixed.



      Oracle's barmy post-installation procedure is not only calling daemon-reexec instead of daemon-reload several times in quick succession, it is duplicating with its own mechanisms, written in shell script, work that systemd-sysv-generator already does. (So, too, does the Debian replacement mechanism, sad to say.) As seems to be so often the case, one major cause of problems is Oracle's shell script layers on top of stuff.



      Further reading




      • Jonathan de Boyne Pollard (2015). The systemd House of Horror. Frequently Given Answers.

      • https://unix.stackexchange.com/a/233581/5132






      share|improve this answer
























        3












        3








        3






        You cannot.



        Once systemd has reached this state, there is no way out. It is an infinite loop in the systemd program.



        You will have to wait for the actual bugs (one in Oracle's barmy VirtualBox post-installation procedures, q.v., and one in systemd when daemon-reexec is called often) to be fixed.



        Oracle's barmy post-installation procedure is not only calling daemon-reexec instead of daemon-reload several times in quick succession, it is duplicating with its own mechanisms, written in shell script, work that systemd-sysv-generator already does. (So, too, does the Debian replacement mechanism, sad to say.) As seems to be so often the case, one major cause of problems is Oracle's shell script layers on top of stuff.



        Further reading




        • Jonathan de Boyne Pollard (2015). The systemd House of Horror. Frequently Given Answers.

        • https://unix.stackexchange.com/a/233581/5132






        share|improve this answer












        You cannot.



        Once systemd has reached this state, there is no way out. It is an infinite loop in the systemd program.



        You will have to wait for the actual bugs (one in Oracle's barmy VirtualBox post-installation procedures, q.v., and one in systemd when daemon-reexec is called often) to be fixed.



        Oracle's barmy post-installation procedure is not only calling daemon-reexec instead of daemon-reload several times in quick succession, it is duplicating with its own mechanisms, written in shell script, work that systemd-sysv-generator already does. (So, too, does the Debian replacement mechanism, sad to say.) As seems to be so often the case, one major cause of problems is Oracle's shell script layers on top of stuff.



        Further reading




        • Jonathan de Boyne Pollard (2015). The systemd House of Horror. Frequently Given Answers.

        • https://unix.stackexchange.com/a/233581/5132







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 9 at 14:05









        JdeBP

        33k468155




        33k468155






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f486836%2frestart-systemd-after-it-crash%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

            Morgemoulin

            Scott Moir

            Souastre