A task fails for a vSphere Virtual Machine that is being processed by Veeam Backup & Replication with the error:
Error: The operation is not allowed in the current state.
A related error can be seen in the vSphere Client for the VM:
This error may occur during any job in which Veeam Backup & Replication sends a VMware API call to the vSphere environment to create a snapshot for a Virtual Machine.
The error message "The operation is not allowed in the current state." is being reported to Veeam Backup & Replication by the vSphere Environment when Veeam Backup & Replication sends the request that a snapshot be created.
As this issue has to do with the inability to create a snapshot on the virtual machine within the vSphere Environment, the resolution will be to determine what is preventing a snapshot from being created. Once a snapshot can be manually created on the VM (remember to remove it). The Veeam Backup & Replication job will work without issue.
Observed possible causes:
VM is stuck in shutting down state.
VM is in the middle of being Storage vMotioned
The following VMware KB articles have been found to be related to this error
This issue will appear in the job's Email Report as:
This error can be found in the log file: %programdata%\Veeam\Backup\<jobname>\Task.<vmname>.<moref>.log
Error Failed to create VM snapshot (Veeam.Backup.Common.CRegeneratedTraceException)
Error CreateSnapshot failed, vmRef vm-xxx, timeout 1800000, snName VEEAM BACKUP TEMPORARY SNAPSHOT, snDescription Please do not delete this snapshot. It is being used by Veeam Backup., memory False, quiesce False (System.Exception)
Error The operation is not allowed in the current state. (Veeam.Backup.ViSoap.ViServiceFaultException)
Click here to send feedback regarding this KB, or suggest content for a new KB. To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.
Spelling error in text
Your feedback has been received and will be reviewed.