locked
Branch Cache on Windows Server 2016 does not start caching RRS feed

  • Question

  • Dear all, 

    when I tried to configure a Windows Server 2016 machine as a branch cache I found that I cannot bind a certificate to the cache the same way as I was used to do that in 2008 or 2012. The netsh command failed (details below). In the result m branch cache server does not start caching. Let's have a look at the Get-BCStatus output first: 

    PS C:\> Get-BCStatus

    BranchCacheIsEnabled        : True
    BranchCacheServiceStatus    : Running
    BranchCacheServiceStartType : Automatic


    ClientConfiguration:

        CurrentClientMode           : LocalCache
        HostedCacheServerList       :
        HostedCacheDiscoveryEnabled : False


    ContentServerConfiguration:

        ContentServerIsEnabled : True


    HostedCacheServerConfiguration:

        HostedCacheServerIsEnabled        : True
        ClientAuthenticationMode          : None
        HostedCacheScpRegistrationEnabled : False


    NetworkConfiguration:

        ContentRetrievalUrlReservationEnabled : True
        HostedCacheHttpUrlReservationEnabled  : True
        HostedCacheHttpsUrlReservationEnabled : True
        ContentRetrievalFirewallRulesEnabled  : True
        PeerDiscoveryFirewallRulesEnabled     : True
        HostedCacheServerFirewallRulesEnabled : True
        HostedCacheClientFirewallRulesEnabled : True


    HashCache:

        CacheFileDirectoryPath               : C:\Windows\ServiceProfiles\NetworkService\AppData\Local\PeerDistPub
        MaxCacheSizeAsPercentageOfDiskVolume : 95
        MaxCacheSizeAsNumberOfBytes          : 128982131655
        CurrentSizeOnDiskAsNumberOfBytes     : 29450240
        CurrentActiveCacheSize               : 0


    DataCache:

        CacheFileDirectoryPath               : D:\BranchCache
        MaxCacheSizeAsPercentageOfDiskVolume : 95
        MaxCacheSizeAsNumberOfBytes          : 129417389640
        CurrentSizeOnDiskAsNumberOfBytes     : 286220306
        CurrentActiveCacheSize               : 0

        DataCacheExtensions:

    As you can see the CurrentActiveCacheSize for the datacache as well as the hashcache is always 0.

    When I ran show status all on the client I can see a report for something something is wrong for the firewall rules as well as the certificate is not configured for the branch cache. 

    PS C:\> netsh branchcache show status all


    BranchCache Service Status:
    -------------------------------------------------------------------------------
    Service Mode          = Hosted Cache Server
    Client Authentication = No Authentication
    Current Status        = Running
    Service Start Type    = Automatic
    This machine is currently configured as a hosted cache server.

    Local Cache Status:
    -------------------------------------------------------------------------------
    Maximum Cache Size        = 95% of hard disk
    Active Current Cache Size = 0 Bytes
    Local Cache Location      = D:\BranchCache


    Publication Cache Status:
    -------------------------------------------------------------------------------
    Maximum Cache Size         = 95% of hard disk
    Active Current Cache Size  = 0 Bytes
    Publication Cache Location = C:\Windows\ServiceProfiles\NetworkService\AppData\Local\PeerDistPub (Default)


    Networking Status:
    -------------------------------------------------------------------------------
    Content Retrieval URL Reservation          = Configured     (Required)
    Hosted Cache URL Reservation               = Configured     (Required)
    Hosted Cache HTTP URL Reservation          = Configured     (Required)
    SSL Certificate Bound To Hosted Cache Port = Not Configured (Not Required)
    Content Retrieval Firewall Rules           = Enabled        (Required)
    Peer Discovery Firewall Rules              = Enabled        (Not Required)
    Hosted Cache Server Firewall Rules         = Enabled        (Required)
    Hosted Cache Client Firewall Rules         = Enabled        (Not Required)

    Warning: There is no certificate bound to the Hosted Cache Port. A Hosted Cache SSL Certificate is required to serve Win
    dows 7 clients or to serve Vista clients which are using the BITS protocol.

    PS C:\>

    On older systems, I used the netsh statement from https://technet.microsoft.com/en-us/library/ee649233(v=ws.10).aspx to configure the certifcate, and the syntax seems to be correct as the netsh command still works if I applied the next command on a Windows Server 2008 R2 / 2012 machine (I did the same test on an older test machine). For my new Windows Server 1016 server it does not:

    CMD C:\> netsh http add sslcert ipport=0.0.0.0:443 certhash=f283df6088f28bd52a462418d5b504a80273b921 appid={d673f5ee-a714-454d-8de2-492e4c1bd8f8}

    The parameter is incorrect.

    This is also reported by several other threads, but I did not see a resolution. It does not matter if I ran this from an elevatedd Powershell or cmd. 

    Any help about how to resolve that? Is there a way to configure the certificate by using a Powershell cmdlet / changing a registry key or similar?

    Please help. Thank you.

    Best regards,
    Martin

    Thursday, September 28, 2017 8:15 AM

All replies

  • Hi Martin,

    Is there any other client in your environment? Like windows 10 and window 8? If not, could you please use to do a test.

    Does that works?

    According to the Microsoft,  we could only use BranchCache for Hosted Cache mode in Windows Server 2016 when client computers in your branch office are running windows 10 or windows 8, which provide BranchCache with support for Background Intelligent Transfer Service (BITS)

    https://blogs.technet.microsoft.com/wsnetdoc/2016/10/03/deploy-branchcache-hosted-cache-mode-with-windows-server-2016/

    https://docs.microsoft.com/en-us/windows-server/networking/core-network-guide/cncg/bc-hcm/1-deploy-bc-hcm

    Best Regards,

    Mary


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


    • Edited by Mary Dong Tuesday, October 3, 2017 6:30 AM
    • Proposed as answer by Mary Dong Tuesday, October 3, 2017 6:31 AM
    Friday, September 29, 2017 5:28 AM
  • Hi,

    Could the above reply be of help? If yes, you may mark it as answer, if not, feel free to feed back

    Best Regards,

    Mary


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

    Tuesday, October 3, 2017 6:31 AM
  • Dear all, 

    thank you for the guidance. I need a little more time (until tomorrow evening?) to review and try your proposal.

    Please be patient. I'll come back when done.

    Thanks for your assistance!

    Martin

    Thursday, October 5, 2017 8:30 AM
  • Hi Matin,

    If you have the updates, please feel free to contact.

    Best Regards,

    Mary


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

    Friday, October 6, 2017 1:44 AM
  • Hi Mary, 

    it currently looks like the configuration results are the same as in my original configuration, as the basic configuration script results in the same config.

    Install-WindowsFeature
    BranchCache
    
    Enable-BCHostedServer -RegisterSCP
    
    Get-BCStatus 
     

    When I ran get-BCStatus, it's still 0 in both CurrentActiveCacheSize , so the result is the same as shown above.

    Any ideas?

    Regards,

    Martin


    Friday, October 6, 2017 2:15 PM
  • Hi Mattin,

    On windows 8 and windows 10 clients, same results?

    If it still couldn't find any clue, I'm afraid you might need to contact  Microsoft Customer Support Services (CSS) so that a dedicated Support Professional can help you on this issue.

    To obtain the phone numbers for specific technology request, please refer to the website listed below:

    https://www.microsoft.com/en-us/worldwide.aspx

    Appreciate your support and understanding.

    Best Regards,

    Mary


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

    Monday, October 9, 2017 1:30 AM