Read-Only Lock

Comments

2 comments

  • Avatar
    Per Svedenbring

    We are going with AlwaysOn High Availability Groups and are having a problem. When the first SQL-server is primary it works. When we failover to the second we get this error in SharePoint:

    We apologize for any inconvenience, but we've made the site read only while we're making some improvements.

    It seems locked somehow. The database properties says Read-Only = False.

    I try some coding:

    $SiteURL = "https://siteXXX"
    $Admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration($SiteURL)
    $Admin.ClearMaintenanceMode()

    or

    Set-SPSite -Identity "https://siteXXX" -LockState "Unlock"

    or 

    $site = get-spsite https://siteXXX

    $site.GetType().GetProperty("MaintenanceMode").GetSetMethod($true).Invoke($site, @($false));

    but Always get this error: "Failed to update database "SP_ContentDB_XXX" because the database is read-only.

    What is happening and any suggestion how to solve it? SharePoint 2016.

    0
    Comment actions Permalink
  • Avatar
    Alex

    Hello Per,

    Thank you for your comment. I'm going to go ahead and open a ticket with Support for you, they'll be better aligned to help you with this issue!

    Thanks. 

    0
    Comment actions Permalink

Please sign in to leave a comment.