To troubleshoot issues when you
[renew commitments automatically](https://docs.cloud.google.com/compute/docs/instances/renew-commitments-automatically),
use the following information.

## Invalid values for auto-renew

The following error occurs when you try to create or update the auto-renew
setting for a commitment.

```
INVALID_FIELD_VALUE
```

This error occurs if you don't pass a value or you pass an invalid value for
auto-renew.

To resolve this error, pass valid values for auto-renew. The following list
shows the valid values for auto-renew:

- **gcloud CLI** : `--auto-renew`, `--no-auto-renew`
- **Compute Engine API** : `true`, `false`

## Resource not available for auto-renew

The following error occurs when you try to update the auto-renew setting for a
commitment.

```
RESOURCE_NOT_READY_WITH_DETAILS
```

This error occurs if you try to update the auto-renew setting on a commitment
that is in one of the following states: Creating, Expired, Cancelled.

To resolve this error, only update the auto-renew setting on a commitment when
it is in the Active state.

## What's next

- [Learn how to renew commitments
  automatically](https://docs.cloud.google.com/compute/docs/instances/renew-commitments-automatically).