Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vikas 1 post 72 karma points
    Oct 28, 2016 @ 22:28
    Vikas
    1

    Umbraco (v6.2.1)- Content Sync Issue - Error Refreshing Distributed List

    I am facing issues with changes posted on server to reflect in second server in Load balanced environment. The two servers are always in sync. Any file delete , change and addition is automatically reflected in the second server. But when the changes are published, one server always show old page. I have already gone through different questions on the forum and have listed below my observations\ configuration settings.

    I have set up the distributedCall element in config/umbracoSettings.config file as shown below

    <distributedCall enable="true">
        <user>0</user>
        <servers>
            <server>ourserver-node1</server>
            <server>ourserver-node2</server>
        </servers>
    </distributedCall>
    

    But whenever I publish content, its available only on one server and does not gets replicated on another server. I see following entries in the logs

    2016-10-28 09:20:14,220 [7] ERROR Umbraco.Web.BatchedServerMessenger - [Thread 175] Error refreshing a node in the distributed list, URI attempted: http://ourserver-node1/umbraco/webservices/cacheRefresher.asmx
    System.Net.WebException: The request failed with the error message:
    --
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="/login.aspx?ReturnUrl=%2fumbraco%2fwebservices%2fcacheRefresher.asmx">here</a>.</h2>
    </body></html>
    
    --.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
       at Umbraco.Core.Sync.ServerSyncWebServiceClient.EndBulkRefresh(IAsyncResult asyncResult)
       at Umbraco.Web.BatchedServerMessenger.SendMessages(IEnumerable`1 messages)
    

    This makes me think that when system is trying to invoke cacheRefresher webservice at umbraco/webservices/cacheRefresher.asmx, the system tries to redirect it to login page or asks for authentication.

    I tried opening both links in incognito window. I got redirected (302) to login.aspx page then to homepage of the site.

    http://ourserver-node1/umbraco/webservices/cacheRefresher.asmx
    http://ourserver-node2/umbraco/webservices/cacheRefresher.asmx
    

    I also checked authentication configuration in web.config file.

    <authentication mode="Forms">
      <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
    </authentication>
    <authorization>
      <allow users="?" />
    </authorization>
    

    I also see observed that write.lock file is present in index locations on one server

    root\App_Data\TEMP\ExamineIndexes\Internal\Index
    root\App_Data\TEMP\ExamineIndexes\External\Index
    
  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Oct 30, 2016 @ 09:29
    Dave Woestenborghs
    1

    Hi Vikas,

    Can you check if you have a admin user with id 0 ?

    Because that is configured in the distributed calls :

    <distributedCall enable="true">
    <user>0</user>
    <servers>
        <server>ourserver-node1</server>
        <server>ourserver-node2</server>
    </servers>
    

    Make sure the user node contains a valid user id.

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies