google-compute-engine"/>
2Answers
  • 4
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Cannot reach/stop instance

I have GPU machine with local SSD attached, and I am unable to reach, stop or delete the instance. Currently the instance is shown as running in the console.

When I try to stop the instance, it says it cannot stop since there is a local SSD attached.

I cannot delete the instance because it has "deletion protection enabled", and I cannot disable deletion protection using the edit button on top of the console, since the instance is running.

I cannot reach the instance via the SSH button on console browser, or through another ssh client.

I resetted the instance using the console, but still the instance is unreachable.

Any ideas? It just keeps me billing :)

      • 1
    • Do you have any important data on the local SSD? If not, couldn't you just try to detach it? I don't know exactly how local SSD works, so I can't say for sure whether my suggestion would work.

The problem was after I reset the instance, the local SSD could not be mounted correctly due to a problem with fstab. This prevented the bootup, and the SSH daemon couldn't start. In the end, I was able to use the serial console (if you click on the instance, in the page that opens there is SSH and serial for remote access, use the serial) and open up the command line. I shut down the instance from the command line (sudo shutdown now), then stopped and deleted the instance completely. No critical data was on the SSD.

  • 0
Reply Report

I presume that a mounted file system in the attached ssd disk is preventing the VM from shutting down.

You could try steps in this documentation to try to detach the disk:

  1. Open a Cloud Shell
  2. Use the command:
    gcloud compute instances detach-disk <your-vm-name> --disk=<ssd-disk-name> --zone <your-vm-zone>

Once the ssd disk is detached from the VM you can try to stop it.


  • 0
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags