Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't access VM instance in google cloud

I can't access my VM instance because of the following error:

Failed to start VM instance: Operation type [start] failed with message "The zone 'projects/........./zones/us-west1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later."

and when I'm trying to connect to the serial console I'm getting this error: "You cannot connect to the VM instance because of an unexpected error. Wait a few moments and then try again"

Also, when I get an error when using this command: gcloud beta compute ssh instanceNAme --project=projectNAme --zone=us-west1-b --troubleshoot

error:  Enabling service [monitoring.googleapis.com] on project [machine.....]...   However, the monitoring is enabled.

 

I could not file a support case because I need to purchase a standard support plan and need to create an organization. 

 

0 4 2,826
4 REPLIES 4

Hi Omama

 

Regarding the problem that you are facing, it is necessary to know more details in order to detect which is the  root cause, like:

 

This is an onprem machine? 

The VM Instance displays a status  as it turns on? 

Are you able to access the serial port and check that the OS is running correctly?

Are you connected through GCP console or any other client?



As a proactive way, I would like to recommend checking the link  where you can find the known issue related to serial console connection. Let's begin from this point then we can proceed with why the SSH connection is not able to connect.

 

Regards!!

Thanks emelgoza for your response.

  • This is a virtual machine on google cloud platform and I connect to it usually using SSH.
  • When I click on start, after 20 seconds, it shows to me the following message but never started:

Failed to start VM instance: Operation type [start] failed with message "The zone 'projects/........./zones/us-west1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later."

 

  • I can't access the serial port because it gives me this error message:

You cannot connect to the VM instance because of an unexpected error. Wait a few moments and then try again.

  • I'm trying to connect through GCP console and visual studio code and both not working.

 

However, sometimes the server is started and sometimes not.

 

 

 

Hello, Omama,

 

Thanks for your reply.

 

It is difficult to know what you are facing without inspecting the behavior of your instance; however, this kind of issue is related to the stockout when GCE rejects a VM-creation request and the customer is not at fault (this also could be related to having sufficient quota, the request is well-formed, and the zone supports the requested kind of VM). In these cases, stockouts occur due to a lack of one or more resources in the zone/region where the VM-creation request was made. As a suggestion, you could check if you have available quotas in accordance with the link. So you could request an increase following the steps.

 

On the other hand, I would like to mention that for free tier accounts, this resource is limited, and there is no possibility to increase it. You can learn the details in the link.


In case that this is not the issue, you could check the troubleshooting guide  when there are connection issues. In case that this suggestion does not solve your issue, I recommend reaching the GCP support for better tracking. They could check the instance behavior.

I have a little similar problem...

My VM has been started and running on SSH...I am not been able to connect using the public IP address...I have configured the firewall rule and placed the public IP suggested by the Compute Engine and its port on which the SSH VM running. The Error says

This site canโ€™t be reached 

"34.124.249.41 took too long to respond."

If anybody can help. I am using a trail account.