Attempting to restart google compute instance “INVALID_FIELD_VALUE: Invalid value for field ‘resource.@’: ‘@’. Resource was not found.”

cloudcloud computinggooglegoogle-cloud-platformgoogle-compute-engine

Using the website https://console.developers.google.com, i have tried unsuccessfully to fire up an instance on the google compute engine cloud. It stopped and started just fine months ago, but every attempt since, i have not been able to restart it.

"resource.kernel" is an example of a valid resource field. Seems to be a blank resource name or an array of resources went missing?

 operation-1407990294019-5008f49527bb9-04bcda5c-f8616595

 Error  
 INVALID_FIELD_VALUE: Invalid value for field 'resource.@': '@'. Resource was not found.

 Operation type 
 reset

 Target type    
 Instances
Serial console  
Hide output


Invalid value for field 'resource.projects': 'projects/14008721509110051'.  Resource was not found.

Equivalent REST

Clicking the red exclamation point (see screenshots below), a popup textbox says:
"The instance has been terminated and is no longer running."

So even though google knows the instance is definitely not started,
the only button available via https://console.developers.google.com is "Reboot".

Screenshot 1 of 2 on exactly how it try to reboot it.

console.developers.google.com


Screenshot 2 of 2 on exactly how it try to reboot it.

The instance has been terminated and is no longer running.

Best Answer

As you've pointed out, the presence of the red exclamation mark icon indicates the instance has been terminated. Unfortunately, even though there's a reboot button present for terminated instances, it simply won't work; the backend system that handles the reboot API call requires a running instance rather than a terminated one. In order to get the instance running again, you'll need to delete the instance (but save the disk!), and create a new instance booting from that existing disk. This is effectively the same thing as restarting the machine, but obviously requires a little legwork.

I'll file a feature request to better deal with starting up terminated instances -- what you're doing makes sense, and I'd personally like to see the system support it directly.

Related Topic