“screen” exit by itself after broken ssh?





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







0















I'm on Mac and ssh to a server (Ubuntu 18.04) to run a long Python job. I started the job in a screen session and then detached the screen.



After a few minutes, I receive a message packet_write_wait: Connection to 128.122.136.109 port 22: Broken pipe from my local terminal.



Then I reconnected to the server using ssh, and when I try to resume the screen session I got There is no screen to be resumed..



This is weird as I suppose screen should still be running even after the ssh is broken? This has also happened at least three times so it's not an incident.



What could go wrong, and how should I debug and repair it? Thanks!










share|improve this question


















  • 1





    Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

    – BowlOfRed
    Feb 13 at 22:06











  • @BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

    – yuqli
    Feb 14 at 22:02


















0















I'm on Mac and ssh to a server (Ubuntu 18.04) to run a long Python job. I started the job in a screen session and then detached the screen.



After a few minutes, I receive a message packet_write_wait: Connection to 128.122.136.109 port 22: Broken pipe from my local terminal.



Then I reconnected to the server using ssh, and when I try to resume the screen session I got There is no screen to be resumed..



This is weird as I suppose screen should still be running even after the ssh is broken? This has also happened at least three times so it's not an incident.



What could go wrong, and how should I debug and repair it? Thanks!










share|improve this question


















  • 1





    Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

    – BowlOfRed
    Feb 13 at 22:06











  • @BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

    – yuqli
    Feb 14 at 22:02














0












0








0








I'm on Mac and ssh to a server (Ubuntu 18.04) to run a long Python job. I started the job in a screen session and then detached the screen.



After a few minutes, I receive a message packet_write_wait: Connection to 128.122.136.109 port 22: Broken pipe from my local terminal.



Then I reconnected to the server using ssh, and when I try to resume the screen session I got There is no screen to be resumed..



This is weird as I suppose screen should still be running even after the ssh is broken? This has also happened at least three times so it's not an incident.



What could go wrong, and how should I debug and repair it? Thanks!










share|improve this question














I'm on Mac and ssh to a server (Ubuntu 18.04) to run a long Python job. I started the job in a screen session and then detached the screen.



After a few minutes, I receive a message packet_write_wait: Connection to 128.122.136.109 port 22: Broken pipe from my local terminal.



Then I reconnected to the server using ssh, and when I try to resume the screen session I got There is no screen to be resumed..



This is weird as I suppose screen should still be running even after the ssh is broken? This has also happened at least three times so it's not an incident.



What could go wrong, and how should I debug and repair it? Thanks!







ssh screen






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 13 at 20:29









yuqliyuqli

1033




1033








  • 1





    Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

    – BowlOfRed
    Feb 13 at 22:06











  • @BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

    – yuqli
    Feb 14 at 22:02














  • 1





    Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

    – BowlOfRed
    Feb 13 at 22:06











  • @BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

    – yuqli
    Feb 14 at 22:02








1




1





Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

– BowlOfRed
Feb 13 at 22:06





Any chance the server crashed/was rebooted during that interval? Did you check the uptime?

– BowlOfRed
Feb 13 at 22:06













@BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

– yuqli
Feb 14 at 22:02





@BowlOfRed yes this is probably the issue. The uptime is suspiciously short. Thanks for the advice!

– yuqli
Feb 14 at 22:02










1 Answer
1






active

oldest

votes


















0














Both the ssh connection and the screen session are handled by running processes and both will be lost with a server reboot. You should check the server uptime, or look for boot indications in the messages file.



If it has rebooted, you'll need to diagnose that separately.






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/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%2faskubuntu.com%2fquestions%2f1118043%2fscreen-exit-by-itself-after-broken-ssh%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









    0














    Both the ssh connection and the screen session are handled by running processes and both will be lost with a server reboot. You should check the server uptime, or look for boot indications in the messages file.



    If it has rebooted, you'll need to diagnose that separately.






    share|improve this answer




























      0














      Both the ssh connection and the screen session are handled by running processes and both will be lost with a server reboot. You should check the server uptime, or look for boot indications in the messages file.



      If it has rebooted, you'll need to diagnose that separately.






      share|improve this answer


























        0












        0








        0







        Both the ssh connection and the screen session are handled by running processes and both will be lost with a server reboot. You should check the server uptime, or look for boot indications in the messages file.



        If it has rebooted, you'll need to diagnose that separately.






        share|improve this answer













        Both the ssh connection and the screen session are handled by running processes and both will be lost with a server reboot. You should check the server uptime, or look for boot indications in the messages file.



        If it has rebooted, you'll need to diagnose that separately.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 14 at 22:13









        BowlOfRedBowlOfRed

        20115




        20115






























            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%2f1118043%2fscreen-exit-by-itself-after-broken-ssh%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

            Questions related to Moebius Transform of Characteristic Function of the Primes

            List of scandals in India

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?