User Tools

Site Tools


public:8088_issue:vss_e_writererror_access_is_denied

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
public:8088_issue:vss_e_writererror_access_is_denied [2020/11/18 17:31]
edward.chan removed
— (current)
Line 1: Line 1:
-=====  ISSUE: Cannot start shadow copy (VSS_E_WRITERERROR_NONRETRYABLE) (VSS Event 8193 - Access is denied) ​  ===== 
  
-<​html>​ 
- <​b>​ 
-  Article ID: 
- </​b>​ 
- 8088 
- <​br/>​ 
- <​b>​ 
-  Reviewed: 
- </​b>​ 
- ​10/​11/​2020 
- <​br/>​ 
- <​br/>​ 
- <​b>​ 
-  Product Version: 
- </​b>​ 
- <​br/>​ 
- ​AhsayOBM:​ 8.1.0.0 or above 
- <​br/>​ 
- OS: Windows 
-</​html>​ 
- 
- 
-===== Problem Description ===== 
-<​html>​ 
-When performing a MS SQL database backup job, the following backup error is received in the backup report: 
- <​br/>​ 
- <​table border="​0"​ cellpadding="​0"​ cellspacing="​0"​ width="​850">​ 
-  <tr> 
-   <​td bgcolor="#​E8E8E8"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-TOP: #​C0C0C0 ​ 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    No. 
-   </​td>​ 
-   <​td bgcolor="#​E8E8E8"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-TOP: #​C0C0C0 ​ 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    Type 
-   </​td>​ 
-   <​td bgcolor="#​E8E8E8"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-TOP: #​C0C0C0 ​ 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    Timestamp 
-   </​td>​ 
-   <​td bgcolor="#​E8E8E8"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-TOP: #C0C0C0 1px solid; BORDER-RIGHT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    Log 
-   </​td>​ 
-  </tr> 
-  <tr> 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    * 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    ... 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    ... 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-RIGHT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    ... 
-   </​td>​ 
-  </tr> 
-  <tr> 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    * 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    info 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    ... 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-RIGHT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    [Start] Backing up database... 
-   </​td>​ 
-  </tr> 
-  <tr> 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    * 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    <font color=#​FF0000>​ 
-     erro 
-    </​font>​ 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    <font color=#​FF0000>​ 
-     ​YYYY/​MM/​DD 
-     ​hh:​mm:​ss 
-     </​font>​ 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-RIGHT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    <font color=#​FF0000>​ 
-     ​Cannot start shadow copy, reason =The writer operation failed because of an error that might 
-<br> 
-recur if another shadow copy is created. (VSS_E_WRITERERROR_NONRETRYABLE) 
-     <​br/>​ 
-    </​font>​ 
-   </​td>​ 
-  </tr> 
-  <tr> 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    * 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    ... 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​top">​ 
-    ... 
-   </​td>​ 
-   <​td bgcolor="#​ffffff"​ style="​BORDER-LEFT:​ #C0C0C0 1px solid; BORDER-RIGHT:​ #C0C0C0 1px solid; BORDER-BOTTOM:​ #C0C0C0 1px solid" valign="​middle">​ 
-    ... 
-   </​td>​ 
-  </tr> 
- </​table>​ 
- 
- 
-At the same time the following errors appear in Windows Application Event log: 
-<br> 
-<br> 
-    <table border="​0"​ cellpadding="​0"​ cellspacing="​0"​ width="​850">​ 
-    <tr> 
-     <​td style="​BACKGROUND-COLOR:​ white">​ 
-      <font size=2 color=black><​p style="​font-family:​courier;"> ​ 
-     ​ 
-Log Name:      Application<​br>​ 
-Source: ​       VSS<​br>​ 
-Date:          DD/MM/YYYY h:​mm:​ss<​br>​ 
-Event ID:      8193<​br>​ 
-Task Category: None<​br>​ 
-Level: ​        ​Error<​br>​ 
-Keywords: ​     Classic<​br>​ 
-User:          N/A 
-Computer: ​     Computer_name 
-Description:<​br>​ 
-Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,​SYSTEM\CurrentControlSet\Services\VSS\Diag,​...). ​ hr = 0x80070005, Access is denied.<​br>​ 
- 
-     </​td>​ 
-    </tr> 
-   </​table>  ​ 
- 
- 
- 
- 
-Note: This issue will often occur after installing the DHCP role on the MS SQL server. 
-</​html>​ 
- 
- 
-===== Cause ===== 
-<​html>​ 
-The error can be cause by installation of the DHCP role on the SQL server, resulting in the Network Service account losing the permissions on the registry key  
- <​br/>​ 
- <​br/>​ 
- 
-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\Diag 
- <​br/>​ 
- <​br/>​ 
-The problem is related to the installation of the VSS module DHCP Jet Writer, which is responsible for correct shadow copy creation of the DHCP service. This VSS module changes permissions on the specified registry key during the installation. 
-</​html>​ 
- 
- 
-===== Resolution ===== 
-<​html>​ 
-To resolve the issue, assign Full Control permissions to the Network Service account for the registry key: 
- <​br/>​ 
- 
- 
-<ol> 
- 
-<​li><​font color=black>​Open Registry Editor from the Windows Start menu. 
-</​font></​li>​ 
-<br> 
- 
- 
-<​li><​font color=black>​Browse to: 
-<br> 
-<br> 
-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\Diag ​ 
-</​font></​li>​ 
-<br> 
- 
- 
-<​li><​font color=black>​Right click on Diag, then click Permissions option in the context menu. 
-<br> 
-<br> 
-<img style="​width:​65%"​ src="​http://​wiki.ahsay.com/​lib/​exe/​fetch.php?​media=public:​8088_3.png"/>​ 
-</​font></​li>​ 
-<br> 
- 
- 
-<​li><​font color=black>​Find Network Service in the list and assign the Full Control permissions. 
-<br> 
-<br> 
-<img style="​width:​25%"​ src="​http://​wiki.ahsay.com/​lib/​exe/​fetch.php?​media=public:​8088_4.png"/>​ 
-</​font></​li>​ 
-<br> 
- 
- 
-<​li><​font color=black>​Click OK, then restart the server afterward. 
-</​font></​li>​ 
-</ol> 
- 
-</​html>​ 
- 
- 
-===== Keywords ===== 
-ms, sql, dhcp, vss, nonretryable,​ denied, deny, mssql