Many commands seem to hang Ubuntu Server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












We have an installation of Ubuntu Server (running 16.04.4 LTS) that, at some point in the last week or so, started having problems. Just about every command I try to run seems to completely hang the terminal. CTRL + C doesn't work, nor do some of the other key commands I've seen suggested (e.g. CTRL + D, Z, backslash)




  • ps seems to work, but ps aux hangs


  • top hangs

  • doing an ls in certain folders causes the terminal to hang

Here is what I've tried:



  • All packages are up-to-date.

  • I don't see anything unusual in /var/log/syslog.

  • Rebooting the server doesn't help.


  • badblocks revealed no errors.

  • I tried dmesg, but it seems to hang as well.

  • Running some of the hanging commands with strace produces some output, but it hangs as well and I'm too much of a Linux noob to really make much of the output anyway. I'm happy to paste some in if it will help, though.

I have no NFS shares mounted. The server is used for application logging and is only running Elasticsearch/Kibana (behind nginx). Elasticsearch itself seems to be working fine (documents sent to it are being indexed).










share|improve this question





















  • So you access this server via ssh?
    – NerdOfCode
    Mar 21 at 21:26










  • @NerdOfCode, correct (PuTTY on Windows).
    – Matt Peterson
    Mar 21 at 21:29










  • When did this start? Or has it always been the case?
    – ubashu
    Mar 21 at 21:45






  • 2




    I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
    – guiverc
    Mar 21 at 21:50










  • Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
    – dessert
    Mar 21 at 22:24















up vote
3
down vote

favorite












We have an installation of Ubuntu Server (running 16.04.4 LTS) that, at some point in the last week or so, started having problems. Just about every command I try to run seems to completely hang the terminal. CTRL + C doesn't work, nor do some of the other key commands I've seen suggested (e.g. CTRL + D, Z, backslash)




  • ps seems to work, but ps aux hangs


  • top hangs

  • doing an ls in certain folders causes the terminal to hang

Here is what I've tried:



  • All packages are up-to-date.

  • I don't see anything unusual in /var/log/syslog.

  • Rebooting the server doesn't help.


  • badblocks revealed no errors.

  • I tried dmesg, but it seems to hang as well.

  • Running some of the hanging commands with strace produces some output, but it hangs as well and I'm too much of a Linux noob to really make much of the output anyway. I'm happy to paste some in if it will help, though.

I have no NFS shares mounted. The server is used for application logging and is only running Elasticsearch/Kibana (behind nginx). Elasticsearch itself seems to be working fine (documents sent to it are being indexed).










share|improve this question





















  • So you access this server via ssh?
    – NerdOfCode
    Mar 21 at 21:26










  • @NerdOfCode, correct (PuTTY on Windows).
    – Matt Peterson
    Mar 21 at 21:29










  • When did this start? Or has it always been the case?
    – ubashu
    Mar 21 at 21:45






  • 2




    I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
    – guiverc
    Mar 21 at 21:50










  • Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
    – dessert
    Mar 21 at 22:24













up vote
3
down vote

favorite









up vote
3
down vote

favorite











We have an installation of Ubuntu Server (running 16.04.4 LTS) that, at some point in the last week or so, started having problems. Just about every command I try to run seems to completely hang the terminal. CTRL + C doesn't work, nor do some of the other key commands I've seen suggested (e.g. CTRL + D, Z, backslash)




  • ps seems to work, but ps aux hangs


  • top hangs

  • doing an ls in certain folders causes the terminal to hang

Here is what I've tried:



  • All packages are up-to-date.

  • I don't see anything unusual in /var/log/syslog.

  • Rebooting the server doesn't help.


  • badblocks revealed no errors.

  • I tried dmesg, but it seems to hang as well.

  • Running some of the hanging commands with strace produces some output, but it hangs as well and I'm too much of a Linux noob to really make much of the output anyway. I'm happy to paste some in if it will help, though.

I have no NFS shares mounted. The server is used for application logging and is only running Elasticsearch/Kibana (behind nginx). Elasticsearch itself seems to be working fine (documents sent to it are being indexed).










share|improve this question













We have an installation of Ubuntu Server (running 16.04.4 LTS) that, at some point in the last week or so, started having problems. Just about every command I try to run seems to completely hang the terminal. CTRL + C doesn't work, nor do some of the other key commands I've seen suggested (e.g. CTRL + D, Z, backslash)




  • ps seems to work, but ps aux hangs


  • top hangs

  • doing an ls in certain folders causes the terminal to hang

Here is what I've tried:



  • All packages are up-to-date.

  • I don't see anything unusual in /var/log/syslog.

  • Rebooting the server doesn't help.


  • badblocks revealed no errors.

  • I tried dmesg, but it seems to hang as well.

  • Running some of the hanging commands with strace produces some output, but it hangs as well and I'm too much of a Linux noob to really make much of the output anyway. I'm happy to paste some in if it will help, though.

I have no NFS shares mounted. The server is used for application logging and is only running Elasticsearch/Kibana (behind nginx). Elasticsearch itself seems to be working fine (documents sent to it are being indexed).







command-line server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 21:25









Matt Peterson

1364




1364











  • So you access this server via ssh?
    – NerdOfCode
    Mar 21 at 21:26










  • @NerdOfCode, correct (PuTTY on Windows).
    – Matt Peterson
    Mar 21 at 21:29










  • When did this start? Or has it always been the case?
    – ubashu
    Mar 21 at 21:45






  • 2




    I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
    – guiverc
    Mar 21 at 21:50










  • Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
    – dessert
    Mar 21 at 22:24

















  • So you access this server via ssh?
    – NerdOfCode
    Mar 21 at 21:26










  • @NerdOfCode, correct (PuTTY on Windows).
    – Matt Peterson
    Mar 21 at 21:29










  • When did this start? Or has it always been the case?
    – ubashu
    Mar 21 at 21:45






  • 2




    I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
    – guiverc
    Mar 21 at 21:50










  • Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
    – dessert
    Mar 21 at 22:24
















So you access this server via ssh?
– NerdOfCode
Mar 21 at 21:26




So you access this server via ssh?
– NerdOfCode
Mar 21 at 21:26












@NerdOfCode, correct (PuTTY on Windows).
– Matt Peterson
Mar 21 at 21:29




@NerdOfCode, correct (PuTTY on Windows).
– Matt Peterson
Mar 21 at 21:29












When did this start? Or has it always been the case?
– ubashu
Mar 21 at 21:45




When did this start? Or has it always been the case?
– ubashu
Mar 21 at 21:45




2




2




I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
– guiverc
Mar 21 at 21:50




I would check the health of drives (smartctl) esp. if desktop drives are used (they can pause with errors to reduce warranty claims reporting fewer errors to os)
– guiverc
Mar 21 at 21:50












Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
– dessert
Mar 21 at 22:24





Please check the RAM with memtest86+ (can be accessed via the boot menu or with a boot stick, see the linked website), edit and provide the results along with the smartctl ones.
– dessert
Mar 21 at 22:24











1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.



I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1018068%2fmany-commands-seem-to-hang-ubuntu-server%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.



    I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.






    share|improve this answer
























      up vote
      2
      down vote



      accepted










      I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.



      I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.






      share|improve this answer






















        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.



        I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.






        share|improve this answer












        I think I've discovered the culprit, and it has nothing to do with the VM itself. I think our network/firewall settings changed recently and it was interfering with SSH traffic. I connected to the VM with a different internet connection (outside our corporate network) and was able to administer the machine over SSH with no issues.



        I'll leave this as the accepted answer in the event that someone else comes along with random weird SSH hangs and it is helpful, but mods should feel free to close this question if it is too narrow.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 23 at 19:05









        Matt Peterson

        1364




        1364



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018068%2fmany-commands-seem-to-hang-ubuntu-server%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491