locked
Windows Server Backup - Cannot find System Writer SERVER 2012 RRS feed

  • Question

  • Good afternoon,

    I have a Server 2012 R2 server running Windows Server Backup.

    However, the backup is failing with the error "Cannot find system writer".

    I have this KB to no avail.

    The app logs show event ID 513 Source: CAPI2 with the following error:

    Cryptographic services failed while processing the onidentity() call in the system writer object.

    Details: TraverseDir: Unable to FindFirstFile.

    System Error: Access is Denied.

    I am able to back up individual drives, just not system state.

    Any help is appreciated.

    thanks,


    Tuesday, March 28, 2017 12:46 PM

Answers

  • I have fixed this issue.

    Andy, you had pointed me in the right direction. However, because I had read this article before I posted and it didnt work, I disregarded it. However, there was a little bit at the bottom of that article which I did not read and this is what sent me on the right path.

    FIX:

    I was getting Event ID 8123 and and 513 in the event logs.

    It's easier to clear the event logs and restart the Cryptography Service to see what errors it throws.

    I tried following this article but it didnt stop event ID 8123.

    I then used REGEDIT and went to

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS

    and gave NT SERVICE full permission to this folder and sub folders. For good measure I ran the commands specified in the above link and this stopped this event happening.

    System Writer still wasn't showing.

    After searching high and low on the internet I found I had to browse to

    C:\Windows\Microsoft.NET

    Within this folder I had 4 folders.

    Go in to Framework and Framework64 (I had to take ownership)

    Look in each folder starting with v1, v2, v3 ,v4 if you have them.

    Find the folder called Temporary ASP.NET Files (in each one) and delete all files and folders in there.

    Run the above script again for good measure and then restart the Cryptographic Service.

    VSSAdmin List Writers now displays the System Writer and i've successfully done a System State backup.


    ***UPDATE: Over the weekend the backup worked fine and then the System Writer disappeared again. The issue is down to the Temporary ASP .NET folder becoming too long. Clearing this folder out again restores the writer.

    As a workaround you could create a powershell script to automatically clear out these folders. However, you should find out what the cause is. I will be creating a new thread as I think this is IIS related.

    Get-ChildItem “C:\Windows\Microsoft.NET\Framework*\v*\Temporary ASP.NET Files” -Recurse | Remove-Item -Recurse

    UPDATE: See here on how to permanently resolve issue with temp ASP.NET files causing system writer to disappear






    • Marked as answer by Alphanumbers Friday, March 31, 2017 3:59 PM
    • Edited by Alphanumbers Thursday, April 6, 2017 12:40 PM v4
    Friday, March 31, 2017 3:56 PM

All replies

  • Hi,

    >>However, the backup is failing with the error "Cannot find system writer".

    Please try this link: https://support.microsoft.com/en-us/help/2807849/you-cannot-back-up-the-system-state-on-a-computer-that-is-running-windows-server-2008-r2-or-windows-server-2012

    http://www.catalog.update.microsoft.com/search.aspx?q=2807849

    Best regards,

    Andy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, March 29, 2017 2:01 AM
  • Hi Andy,

    I've tried that and it says "this hotfix is not applicable"

    Wednesday, March 29, 2017 10:10 AM
  • I have fixed this issue.

    Andy, you had pointed me in the right direction. However, because I had read this article before I posted and it didnt work, I disregarded it. However, there was a little bit at the bottom of that article which I did not read and this is what sent me on the right path.

    FIX:

    I was getting Event ID 8123 and and 513 in the event logs.

    It's easier to clear the event logs and restart the Cryptography Service to see what errors it throws.

    I tried following this article but it didnt stop event ID 8123.

    I then used REGEDIT and went to

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS

    and gave NT SERVICE full permission to this folder and sub folders. For good measure I ran the commands specified in the above link and this stopped this event happening.

    System Writer still wasn't showing.

    After searching high and low on the internet I found I had to browse to

    C:\Windows\Microsoft.NET

    Within this folder I had 4 folders.

    Go in to Framework and Framework64 (I had to take ownership)

    Look in each folder starting with v1, v2, v3 ,v4 if you have them.

    Find the folder called Temporary ASP.NET Files (in each one) and delete all files and folders in there.

    Run the above script again for good measure and then restart the Cryptographic Service.

    VSSAdmin List Writers now displays the System Writer and i've successfully done a System State backup.


    ***UPDATE: Over the weekend the backup worked fine and then the System Writer disappeared again. The issue is down to the Temporary ASP .NET folder becoming too long. Clearing this folder out again restores the writer.

    As a workaround you could create a powershell script to automatically clear out these folders. However, you should find out what the cause is. I will be creating a new thread as I think this is IIS related.

    Get-ChildItem “C:\Windows\Microsoft.NET\Framework*\v*\Temporary ASP.NET Files” -Recurse | Remove-Item -Recurse

    UPDATE: See here on how to permanently resolve issue with temp ASP.NET files causing system writer to disappear






    • Marked as answer by Alphanumbers Friday, March 31, 2017 3:59 PM
    • Edited by Alphanumbers Thursday, April 6, 2017 12:40 PM v4
    Friday, March 31, 2017 3:56 PM
  • Hi Kieferschild,

    Thanks for your detailed illustrations.

    Very helpful for me and other communities.

    Have a nice day!

    Best regards,

    Andy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, April 5, 2017 9:35 AM
  • To all who are having the same issue and have gotten this far.

    Please see my thread here which explains how to resolve the issue with the ASP.NET temp file stopping system writer.

    I hope my hours of research helps someone!

    Thursday, April 6, 2017 12:39 PM