{"id":22697,"date":"2017-11-13T09:00:22","date_gmt":"2017-11-13T08:00:22","guid":{"rendered":"https:\/\/nolabnoparty.com\/?p=22697"},"modified":"2020-03-15T18:09:08","modified_gmt":"2020-03-15T17:09:08","slug":"veeam-fails-backup-azure-ad-connect-error-vss-critical-writer-has-failed","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/veeam-fails-backup-azure-ad-connect-error-vss-critical-writer-has-failed\/","title":{"rendered":"Veeam fails to backup Azure AD Connect with the error \"A VSS critical writer has failed\""},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter wp-image-22698 size-full\" title=\"veeam-backup-fails-azureadconnect-01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-01.jpg\" alt=\"veeam-backup-fails-azureadconnect-01\" width=\"602\" height=\"202\" \/><\/p>\n<p>The Veeam backup job of\u00a0Microsoft Azure AD Connect fails with the error <em>A VSS critical writer has failed<\/em> ...<strong>Error code: 0x800423f4<\/strong>.<\/p>\n<p>The backup job window displays the error <em>Failed to call RPC function \" Vss.Unfreeze\"...<\/em> for the virtual machine affected by the problem.<!--more--><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22699 size-large\" title=\"veeam-backup-fails-azureadconnect-02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-02-600x459.jpg\" alt=\"veeam-backup-fails-azureadconnect-02\" width=\"600\" height=\"459\" \/><\/p>\n<p>To get additional details of the problem, opening the log file the error is related to the\u00a0<strong>SQL Server Writer<\/strong>, perhaps a Microsoft update somehow caused the issue.<\/p>\n<blockquote><p>A VSS critical writer has failed. Writer Name: [SqlServerWriter].<\/p><\/blockquote>\n<p>The error reported in the <strong>Veeam log<\/strong> file.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22700 size-large\" title=\"veeam-backup-fails-azureadconnect-03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-03-600x305.jpg\" alt=\"veeam-backup-fails-azureadconnect-03\" width=\"600\" height=\"305\" \/><\/p>\n<p>Same error in the Windows'\u00a0<strong>Event Viewer<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22701 size-large\" title=\"veeam-backup-fails-azureadconnect-04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-04-600x417.jpg\" alt=\"veeam-backup-fails-azureadconnect-04\" width=\"600\" height=\"417\" \/><\/p>\n<p>To solve the problem, login to the Azure AD Connect server and go to the <strong>Control Panel<\/strong>. In the\u00a0<strong>Programs<\/strong>\u00a0category, click the link\u00a0<strong>Uninstall a program<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22702 size-large\" title=\"veeam-backup-fails-azureadconnect-05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-05-600x450.jpg\" alt=\"veeam-backup-fails-azureadconnect-05\" width=\"600\" height=\"450\" \/><\/p>\n<p>From the programs list, select <strong>Microsoft SQL Server 2012 Express LocalDB<\/strong>\u00a0and click <strong>Repair<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22703 size-large\" title=\"veeam-backup-fails-azureadconnect-06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-06-600x450.jpg\" alt=\"veeam-backup-fails-azureadconnect-06\" width=\"600\" height=\"450\" \/><\/p>\n<p>The program is being repaired.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22704 size-large\" title=\"veeam-backup-fails-azureadconnect-07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-07-600x450.jpg\" alt=\"veeam-backup-fails-azureadconnect-07\" width=\"600\" height=\"450\" \/><\/p>\n<p>When the process has completed, the server must be rebooted to complete the procedure.\u00a0Click <strong>Yes<\/strong> to proceed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22705 size-full\" title=\"veeam-backup-fails-azureadconnect-08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-08.jpg\" alt=\"veeam-backup-fails-azureadconnect-08\" width=\"324\" height=\"151\" \/><\/p>\n<p>When the Azure AD Connect server has rebooted, <strong>run the backup job<\/strong> once again.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22706 size-full\" title=\"veeam-backup-fails-azureadconnect-09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-09.jpg\" alt=\"veeam-backup-fails-azureadconnect-09\" width=\"580\" height=\"496\" \/><\/p>\n<p>This time the backup has <strong>completed successfully<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22707 size-large\" title=\"veeam-backup-fails-azureadconnect-10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-10-600x459.jpg\" alt=\"veeam-backup-fails-azureadconnect-10\" width=\"600\" height=\"459\" \/><\/p>\n<p>This simple fix resolved the issue allowing to complete the backup job successfully <strong>ensuring the protection<\/strong> of the Azure AD Connect server.<\/p>\n<p>&nbsp;<\/p>\n<h2>Update 24\/11\/2017<\/h2>\n<p>The above fix seems not solving the problem permanently and, again, the issue is <strong>not due to Veeam<\/strong>\u00a0software but to an update of Azure AD connect.<\/p>\n<p>After a Google search, I found <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/2287297\/a-com-application-may-stop-working-on-windows-server-2008-when-a-user\" target=\"_blank\" rel=\"noopener\">this article<\/a> in the Microsoft website that explains the issue:<\/p>\n<blockquote><p>The user identity that is associated with the COM+ application is logged on when the COM+ application is first initialized. If this user were to log off of the machine then the user's profile would get unloaded and the COM+ application can no longer read registry keys in the profile of the user identity. Starting with Windows Vista the User Profile Service will force the unloading of a user profile when that user logs off. This is a situation where the functionality of forcing the unload of the user profile may break an application if registry handles are not closed in the process. This new User Profile Service functionality is the default behavior.<\/p><\/blockquote>\n<p>To fix the problem, login to your Azure AD Connect Server and open the\u00a0<strong>Local Group Policy Editor<\/strong> with the command\u00a0<em>gpedit.msc<\/em>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22823 size-large\" title=\"veeam-backup-fails-azureadconnect-11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-11-600x420.jpg\" alt=\"veeam-backup-fails-azureadconnect-11\" width=\"600\" height=\"420\" \/><\/p>\n<p>Navigate to <strong>Computer Configuration &gt; Administrative Templates &gt; System &gt; User Profiles<\/strong>\u00a0and select <strong>Do not forcefully unload the user registry at user logoff<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22824 size-large\" title=\"veeam-backup-fails-azureadconnect-12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-12-600x367.jpg\" alt=\"veeam-backup-fails-azureadconnect-12\" width=\"600\" height=\"367\" \/><\/p>\n<p>Double click the selected item and thick\u00a0<strong>Enabled<\/strong>. Click <strong>OK<\/strong> to confirm.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22825 size-large\" title=\"veeam-backup-fails-azureadconnect-13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-13-600x549.jpg\" alt=\"veeam-backup-fails-azureadconnect-13\" width=\"600\" height=\"549\" \/><\/p>\n<p>The option is now enabled. <strong>Reboot the server<\/strong> to complete the procedure.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22826 size-large\" title=\"veeam-backup-fails-azureadconnect-14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-14-600x245.jpg\" alt=\"veeam-backup-fails-azureadconnect-14\" width=\"600\" height=\"245\" \/><\/p>\n<p>After rebooting, try to backup the server once again.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22827 size-large\" title=\"veeam-backup-fails-azureadconnect-15\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2017\/11\/veeam-backup-fails-azureadconnect-15-600x199.jpg\" alt=\"veeam-backup-fails-azureadconnect-15\" width=\"600\" height=\"199\" \/><\/p>\n<p>The backup should now be completed successfully.<\/p>\n<p><img decoding=\"async\" title=\"signature\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" alt=\"signature\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Veeam backup job of\u00a0Microsoft Azure AD Connect fails with the error A VSS critical writer has failed ...Error code: 0x800423f4. The backup job window displays the error Failed to call RPC function \" Vss.Unfreeze\"... for the virtual machine affected by the problem.<\/p>\n","protected":false},"author":3,"featured_media":22698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[903,2138,933],"tags":[1682,584,1426],"class_list":["post-22697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware-en","category-backup-en","category-veeam-en","tag-azure","tag-veeam-en","tag-vss-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/22697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=22697"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/22697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/22698"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=22697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=22697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=22697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}