Troubleshoot VM updates Stay organized with collections Save and categorize content based on your preferences.
This document provides solutions to common issues you might encounter whenupdating a Compute Engine VM instance. For general instructions on how toupdate a VM, seeUpdate instance properties.
Best practices
To avoid common issues when updating a VM, follow these best practices:
Use the
update-from-fileworkflow: Export the instance configuration to afile, modify the file, and then use thegcloud compute instances update-from-filecommand to apply the changes. Thisapproach helps prevent errors from manual commands.Use the
most-disruptive-allowed-actionflag: This flag prevents accidentalrestarts. Set it toNO_EFFECTto test your changes,REFRESHfornon-disruptive updates, andRESTARTonly when you are sure a restart isacceptable.
Common issues
This section lists errors you might encounter when updating a VM and providesguidance on how to resolve them.
Metadata fingerprint mismatch
This error occurs when you try to update a VM instance, but the VM's metadatawas updated by another process since you last refreshed the page or fetched theinstance data.
Error message:
Supplied fingerprint does not match current metadata fingerprintResolution:
The instance fingerprint property in your request must match the currentfingerprint of the instance to prevent simultaneous update requests fromoverwriting each other. Try the following:
Refresh the page: If you're using the Google Cloud console, refresh the VMinstanceDetails page before making your changes.
Use the
--no-etag-cacheGoogle Cloud CLI flag: If you're using theGoogle Cloud CLI, use the--no-etag-cacheflag with yourgcloud compute instances updatecommand.Retry after a few minutes: As a last resort, try stopping the VM, waiting afew minutes, and then attempt to make the change again.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-18 UTC.