Many commands seem to hang Ubuntu Server
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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, butps aux
hangstop
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
 |Â
show 1 more comment
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, butps aux
hangstop
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
So you access this server viassh
?
â 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 thesmartctl
ones.
â dessert
Mar 21 at 22:24
 |Â
show 1 more comment
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, butps aux
hangstop
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
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, butps aux
hangstop
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
command-line server
asked Mar 21 at 21:25
Matt Peterson
1364
1364
So you access this server viassh
?
â 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 thesmartctl
ones.
â dessert
Mar 21 at 22:24
 |Â
show 1 more comment
So you access this server viassh
?
â 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 thesmartctl
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
 |Â
show 1 more comment
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Mar 23 at 19:05
Matt Peterson
1364
1364
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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