problems SSHing after MemoryError

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












0















I am running a Compute Engine on Google Cloud Platform, which has been functioning perfectly for over a month now.



Recently I was running a Jupyter Lab instance in which I ended up with a MemoryError. My SSH connection to the VM was dropped and I was unable to reconnect, however restarting the VM (several times) seemed to do the trick.



This problem is still occuring now. I will be able to SSH into the VM perfectly fine, and then whenever I shutdown the VM and turn it back on, I will suddenly find myself unable to SSH in, unless I restart the VM an arbitrary amount of times (sometimes once is enough, sometimes it takes more than 4).



The attempt to SSH results in:
ssh: connect to host xx.xxx.xx.xxx port 22: Connection timed out.



Several things I can rule out:



  • The network I am on has no proxy issues.

  • The VM is definitely up and running (with sufficient time to fully start up) by the time I am trying to SSH into it. I know this because I can ssh onto the machine via the Google Cloud web console.

  • The VM has 86GB of disk available and so it is not a disk issue.

The fact that this works sometimes but not all times is making this very tricky for me to diagnose what the problem is. How might I determine and fix this problem?










share|improve this question
























  • How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

    – Bodo
    Feb 12 at 18:13











  • Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

    – quantum285
    Feb 12 at 22:18











  • Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

    – quantum285
    Feb 12 at 22:25






  • 1





    When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

    – Bodo
    Feb 13 at 9:46











  • Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

    – quantum285
    Feb 13 at 10:59















0















I am running a Compute Engine on Google Cloud Platform, which has been functioning perfectly for over a month now.



Recently I was running a Jupyter Lab instance in which I ended up with a MemoryError. My SSH connection to the VM was dropped and I was unable to reconnect, however restarting the VM (several times) seemed to do the trick.



This problem is still occuring now. I will be able to SSH into the VM perfectly fine, and then whenever I shutdown the VM and turn it back on, I will suddenly find myself unable to SSH in, unless I restart the VM an arbitrary amount of times (sometimes once is enough, sometimes it takes more than 4).



The attempt to SSH results in:
ssh: connect to host xx.xxx.xx.xxx port 22: Connection timed out.



Several things I can rule out:



  • The network I am on has no proxy issues.

  • The VM is definitely up and running (with sufficient time to fully start up) by the time I am trying to SSH into it. I know this because I can ssh onto the machine via the Google Cloud web console.

  • The VM has 86GB of disk available and so it is not a disk issue.

The fact that this works sometimes but not all times is making this very tricky for me to diagnose what the problem is. How might I determine and fix this problem?










share|improve this question
























  • How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

    – Bodo
    Feb 12 at 18:13











  • Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

    – quantum285
    Feb 12 at 22:18











  • Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

    – quantum285
    Feb 12 at 22:25






  • 1





    When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

    – Bodo
    Feb 13 at 9:46











  • Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

    – quantum285
    Feb 13 at 10:59













0












0








0








I am running a Compute Engine on Google Cloud Platform, which has been functioning perfectly for over a month now.



Recently I was running a Jupyter Lab instance in which I ended up with a MemoryError. My SSH connection to the VM was dropped and I was unable to reconnect, however restarting the VM (several times) seemed to do the trick.



This problem is still occuring now. I will be able to SSH into the VM perfectly fine, and then whenever I shutdown the VM and turn it back on, I will suddenly find myself unable to SSH in, unless I restart the VM an arbitrary amount of times (sometimes once is enough, sometimes it takes more than 4).



The attempt to SSH results in:
ssh: connect to host xx.xxx.xx.xxx port 22: Connection timed out.



Several things I can rule out:



  • The network I am on has no proxy issues.

  • The VM is definitely up and running (with sufficient time to fully start up) by the time I am trying to SSH into it. I know this because I can ssh onto the machine via the Google Cloud web console.

  • The VM has 86GB of disk available and so it is not a disk issue.

The fact that this works sometimes but not all times is making this very tricky for me to diagnose what the problem is. How might I determine and fix this problem?










share|improve this question
















I am running a Compute Engine on Google Cloud Platform, which has been functioning perfectly for over a month now.



Recently I was running a Jupyter Lab instance in which I ended up with a MemoryError. My SSH connection to the VM was dropped and I was unable to reconnect, however restarting the VM (several times) seemed to do the trick.



This problem is still occuring now. I will be able to SSH into the VM perfectly fine, and then whenever I shutdown the VM and turn it back on, I will suddenly find myself unable to SSH in, unless I restart the VM an arbitrary amount of times (sometimes once is enough, sometimes it takes more than 4).



The attempt to SSH results in:
ssh: connect to host xx.xxx.xx.xxx port 22: Connection timed out.



Several things I can rule out:



  • The network I am on has no proxy issues.

  • The VM is definitely up and running (with sufficient time to fully start up) by the time I am trying to SSH into it. I know this because I can ssh onto the machine via the Google Cloud web console.

  • The VM has 86GB of disk available and so it is not a disk issue.

The fact that this works sometimes but not all times is making this very tricky for me to diagnose what the problem is. How might I determine and fix this problem?







ssh google-cloud






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 13 at 10:06









Bodo

2,048416




2,048416










asked Feb 12 at 15:33









quantum285quantum285

573




573












  • How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

    – Bodo
    Feb 12 at 18:13











  • Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

    – quantum285
    Feb 12 at 22:18











  • Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

    – quantum285
    Feb 12 at 22:25






  • 1





    When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

    – Bodo
    Feb 13 at 9:46











  • Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

    – quantum285
    Feb 13 at 10:59

















  • How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

    – Bodo
    Feb 12 at 18:13











  • Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

    – quantum285
    Feb 12 at 22:18











  • Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

    – quantum285
    Feb 12 at 22:25






  • 1





    When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

    – Bodo
    Feb 13 at 9:46











  • Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

    – quantum285
    Feb 13 at 10:59
















How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

– Bodo
Feb 12 at 18:13





How do you detect that "The VM is definitely up and running"? Maybe it has not yet started sshd. Is there anything suspicious in syslog?

– Bodo
Feb 12 at 18:13













Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

– quantum285
Feb 12 at 22:18





Apologies, I've provided more information in my question. I can ssh onto the compute engine via the Google Cloud web console, but not via ConEmu

– quantum285
Feb 12 at 22:18













Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

– quantum285
Feb 12 at 22:25





Nothing suspicious in syslog as far as I can see but I'm not sure what I'm looking for.

– quantum285
Feb 12 at 22:25




1




1





When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

– Bodo
Feb 13 at 9:46





When you have the situation that you can SSH from the Google Cloud web console but not from your local system, run tcptraceroute yourserver 22, bring the system to a usable state again, run the tcptraceroute again and compare the output. This should help to find out if there is some intermediate system dropping the packets. Another thought: Does the VM have a fixed IP address or does it get a new dynamic IP address when it's restarted?

– Bodo
Feb 13 at 9:46













Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

– quantum285
Feb 13 at 10:59





Thanks, I'm running Windows locally so will have to install a tcptraceroute equivalent, in the meantime would just like to respond that yes the IP address if fixed. Thanks for your help so far, would like to get to the bottom of this.

– quantum285
Feb 13 at 10:59










0






active

oldest

votes











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%2f500198%2fproblems-sshing-after-memoryerror%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500198%2fproblems-sshing-after-memoryerror%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

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?