screen is dead and can't reattach?

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











up vote
1
down vote

favorite












I've just started using screen for the first time, and I somehow got it into a state where it wasn't recognizing any commands any longer. Ctrl-A n, Ctrl-A p etc wouldn't work. Meanwhile my cursor was also frozen in emacs, which never happens to me.



So I opened another terminal, hoping that I could just reattach to screen and things would be better. But it won't let me connect, and it won't let me detach it either. I found an alternative command to try, but after the last command everything just hung again.



-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -list
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
1 Socket in /var/run/screen/S-sme.

-bash-4.1$ screen -D
[4511.pts-1304.unixscrna01 power detached.]

-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -d -r 4511


My terminal hung completely at the last point.



Any idea what could have happened here??







share|improve this question
















  • 1




    Maybe the terminal is in the suspended state Try pressing Ctrl-q
    – Andy Dalton
    Jan 22 at 23:13














up vote
1
down vote

favorite












I've just started using screen for the first time, and I somehow got it into a state where it wasn't recognizing any commands any longer. Ctrl-A n, Ctrl-A p etc wouldn't work. Meanwhile my cursor was also frozen in emacs, which never happens to me.



So I opened another terminal, hoping that I could just reattach to screen and things would be better. But it won't let me connect, and it won't let me detach it either. I found an alternative command to try, but after the last command everything just hung again.



-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -list
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
1 Socket in /var/run/screen/S-sme.

-bash-4.1$ screen -D
[4511.pts-1304.unixscrna01 power detached.]

-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -d -r 4511


My terminal hung completely at the last point.



Any idea what could have happened here??







share|improve this question
















  • 1




    Maybe the terminal is in the suspended state Try pressing Ctrl-q
    – Andy Dalton
    Jan 22 at 23:13












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've just started using screen for the first time, and I somehow got it into a state where it wasn't recognizing any commands any longer. Ctrl-A n, Ctrl-A p etc wouldn't work. Meanwhile my cursor was also frozen in emacs, which never happens to me.



So I opened another terminal, hoping that I could just reattach to screen and things would be better. But it won't let me connect, and it won't let me detach it either. I found an alternative command to try, but after the last command everything just hung again.



-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -list
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
1 Socket in /var/run/screen/S-sme.

-bash-4.1$ screen -D
[4511.pts-1304.unixscrna01 power detached.]

-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -d -r 4511


My terminal hung completely at the last point.



Any idea what could have happened here??







share|improve this question












I've just started using screen for the first time, and I somehow got it into a state where it wasn't recognizing any commands any longer. Ctrl-A n, Ctrl-A p etc wouldn't work. Meanwhile my cursor was also frozen in emacs, which never happens to me.



So I opened another terminal, hoping that I could just reattach to screen and things would be better. But it won't let me connect, and it won't let me detach it either. I found an alternative command to try, but after the last command everything just hung again.



-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -list
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
1 Socket in /var/run/screen/S-sme.

-bash-4.1$ screen -D
[4511.pts-1304.unixscrna01 power detached.]

-bash-4.1$ screen -r
There is a screen on:
4511.pts-1304.unixscrna01 (Attached)
There is no screen to be resumed.
-bash-4.1$ screen -d -r 4511


My terminal hung completely at the last point.



Any idea what could have happened here??









share|improve this question











share|improve this question




share|improve this question










asked Jan 22 at 22:00









Stephen

1245




1245







  • 1




    Maybe the terminal is in the suspended state Try pressing Ctrl-q
    – Andy Dalton
    Jan 22 at 23:13












  • 1




    Maybe the terminal is in the suspended state Try pressing Ctrl-q
    – Andy Dalton
    Jan 22 at 23:13







1




1




Maybe the terminal is in the suspended state Try pressing Ctrl-q
– Andy Dalton
Jan 22 at 23:13




Maybe the terminal is in the suspended state Try pressing Ctrl-q
– Andy Dalton
Jan 22 at 23:13










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You're probably now connected to the old session, but the session may be in a wonky state for some reason. Try pressing Control-Q first: if XON-XOFF handshaking is enabled in the pseudo-terminal you've using to connect to the screen session, it might allow the session to resume.



(Control-S is the XOFF control character, which means "pause transmission": if XON/XOFF handshaking is enabled in the pseudo-terminal, it will do just that. Control-Q is the XON character which means "resume transmission".)



Then press Control-L: most full-screen terminal applications will understand that as a request to completely refresh the terminal display, in case it got corrupted for any reason. The bash shell will also clear the screen and display a fresh prompt.



If you were using screen for a ssh session onward to another system, a network problem may have broken the SSH connection, in which case the ssh client will -by default- wait a very long time until it decides the other end must have disconnected. A tilde-dot (~.) key sequence can be used to terminate a hanging SSH session.






share|improve this answer




















  • Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
    – Stephen
    Jan 22 at 23:27










  • It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
    – telcoM
    Jan 23 at 0:19











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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f418958%2fscreen-is-dead-and-cant-reattach%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
3
down vote



accepted










You're probably now connected to the old session, but the session may be in a wonky state for some reason. Try pressing Control-Q first: if XON-XOFF handshaking is enabled in the pseudo-terminal you've using to connect to the screen session, it might allow the session to resume.



(Control-S is the XOFF control character, which means "pause transmission": if XON/XOFF handshaking is enabled in the pseudo-terminal, it will do just that. Control-Q is the XON character which means "resume transmission".)



Then press Control-L: most full-screen terminal applications will understand that as a request to completely refresh the terminal display, in case it got corrupted for any reason. The bash shell will also clear the screen and display a fresh prompt.



If you were using screen for a ssh session onward to another system, a network problem may have broken the SSH connection, in which case the ssh client will -by default- wait a very long time until it decides the other end must have disconnected. A tilde-dot (~.) key sequence can be used to terminate a hanging SSH session.






share|improve this answer




















  • Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
    – Stephen
    Jan 22 at 23:27










  • It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
    – telcoM
    Jan 23 at 0:19















up vote
3
down vote



accepted










You're probably now connected to the old session, but the session may be in a wonky state for some reason. Try pressing Control-Q first: if XON-XOFF handshaking is enabled in the pseudo-terminal you've using to connect to the screen session, it might allow the session to resume.



(Control-S is the XOFF control character, which means "pause transmission": if XON/XOFF handshaking is enabled in the pseudo-terminal, it will do just that. Control-Q is the XON character which means "resume transmission".)



Then press Control-L: most full-screen terminal applications will understand that as a request to completely refresh the terminal display, in case it got corrupted for any reason. The bash shell will also clear the screen and display a fresh prompt.



If you were using screen for a ssh session onward to another system, a network problem may have broken the SSH connection, in which case the ssh client will -by default- wait a very long time until it decides the other end must have disconnected. A tilde-dot (~.) key sequence can be used to terminate a hanging SSH session.






share|improve this answer




















  • Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
    – Stephen
    Jan 22 at 23:27










  • It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
    – telcoM
    Jan 23 at 0:19













up vote
3
down vote



accepted







up vote
3
down vote



accepted






You're probably now connected to the old session, but the session may be in a wonky state for some reason. Try pressing Control-Q first: if XON-XOFF handshaking is enabled in the pseudo-terminal you've using to connect to the screen session, it might allow the session to resume.



(Control-S is the XOFF control character, which means "pause transmission": if XON/XOFF handshaking is enabled in the pseudo-terminal, it will do just that. Control-Q is the XON character which means "resume transmission".)



Then press Control-L: most full-screen terminal applications will understand that as a request to completely refresh the terminal display, in case it got corrupted for any reason. The bash shell will also clear the screen and display a fresh prompt.



If you were using screen for a ssh session onward to another system, a network problem may have broken the SSH connection, in which case the ssh client will -by default- wait a very long time until it decides the other end must have disconnected. A tilde-dot (~.) key sequence can be used to terminate a hanging SSH session.






share|improve this answer












You're probably now connected to the old session, but the session may be in a wonky state for some reason. Try pressing Control-Q first: if XON-XOFF handshaking is enabled in the pseudo-terminal you've using to connect to the screen session, it might allow the session to resume.



(Control-S is the XOFF control character, which means "pause transmission": if XON/XOFF handshaking is enabled in the pseudo-terminal, it will do just that. Control-Q is the XON character which means "resume transmission".)



Then press Control-L: most full-screen terminal applications will understand that as a request to completely refresh the terminal display, in case it got corrupted for any reason. The bash shell will also clear the screen and display a fresh prompt.



If you were using screen for a ssh session onward to another system, a network problem may have broken the SSH connection, in which case the ssh client will -by default- wait a very long time until it decides the other end must have disconnected. A tilde-dot (~.) key sequence can be used to terminate a hanging SSH session.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 22 at 23:19









telcoM

10.8k11132




10.8k11132











  • Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
    – Stephen
    Jan 22 at 23:27










  • It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
    – telcoM
    Jan 23 at 0:19

















  • Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
    – Stephen
    Jan 22 at 23:27










  • It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
    – telcoM
    Jan 23 at 0:19
















Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
– Stephen
Jan 22 at 23:27




Thank you. I've already given up on that screen session, but I tested what you said and confirmed what you were saying about XON/XOFF. Just one crazy thing though: It seems like when you pass XON, any characters you typed after XOFF are immediately sent through (at least with PuTTY). Seems like that's what you would want to avoid if you were using XOFF to temporarily disable your keyboard...
– Stephen
Jan 22 at 23:27












It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
– telcoM
Jan 23 at 0:19





It's not for disabling your keyboard: it's for pausing the output from the remote end. On a very slow link (say, a bare-bones GPS 9600 bps mobile data link) and cating a file on your display, you would actually be able to eyeball it as it scrolls by, and use the XON/XOFF to pause the display if you need to look at something more carefully.
– telcoM
Jan 23 at 0:19













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f418958%2fscreen-is-dead-and-cant-reattach%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?