+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / The remote server returned an error: (401) Unauthorized on Load Balanced

The remote server returned an error: (401) Unauthorized on Load Balanced

5 posts, 0 answered
  1. Yau Gene
    Yau Gene avatar
    1 posts
    Registered:
    03 Sep 2015
    20 Apr
    Link to this post

    Need urgent help on the matter, as we are 2 hours behind go-live.

    We are now having a very weird issues for Sitefinity Load Balancing on AWS EC2 Instances. the error return (401) Unauthorized and 503 server unavailable. 

    We have already tried to configured everything and step by step from this guide http://docs.sitefinity.com/administration-ensure-content-consistency-on-all-nodes

    ELB URL : stadiumastro-prod-web-elb-1843221563.ap-southeast-1.elb.amazonaws.com
    web 01 : 52.77.65.52
    web 02 : 52.74.209.9
    web 03 : 52.77.89.151

    Also, if you are browsing the ELB URL, you will notice the site is loading extremely slow while browse for just one instance is acceptable. i'm not sure is this issue causing the Sitefinity  performance on ELB.

    ----------------------------------------
    ----------------------------------------
    Timestamp: 4/20/2016 5:13:22 AM

    Message: HandlingInstanceID: a72538f8-a709-4720-ae23-36addc7ec898
    An exception of type 'System.Exception' occurred and was caught.
    ----------------------------------------------------------------
    04/20/2016 13:13:22
    Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Error sending system message to URL:http://52.77.65.52/Sitefinity/Services/LoadBalancing/SystemWebService.svc/HandleMessages; HTTP method: PUT; Host: null
    Source :
    Help link :
    Data : System.Collections.ListDictionaryInternal
    TargetSite :
    HResult : -2146233088
    Stack Trace : The stack trace is unavailable.
    Additional Info:

    MachineName : SAPRODWEB02
    TimeStamp : 4/20/2016 5:13:22 AM
    FullName : Telerik.Sitefinity.Utilities, Version=8.2.5902.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/2/ROOT-2-131056003720150934
    ThreadIdentity :
    WindowsIdentity : IIS APPPOOL\SA
        Inner Exception
        ---------------
        Type : System.Net.WebException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
        Message : The remote server returned an error: (401) Unauthorized.
        Source : System
        Help link :
        Status : ProtocolError
        Response : System.Net.HttpWebResponse
        Data : System.Collections.ListDictionaryInternal
        TargetSite : System.IAsyncResult BeginGetResponse(System.AsyncCallback, System.Object)
        HResult : -2146233079
        Stack Trace :    at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
           at Telerik.Sitefinity.LoadBalancing.WebServiceSystemMessageSender.WithExceptionHandling(String url, String httpMethod, String hostHeader, Action action)



    Category: ErrorLog

    Priority: 0

    EventId: 9010

    Severity: Warning

    Title:Enterprise Library Exception Handling

    Machine: SAPRODWEB02

    App Domain: /LM/W3SVC/2/ROOT-2-131056003720150934

    ProcessId: 4628

    Process Name: c:\windows\system32\inetsrv\w3wp.exe

    Thread Name: http://52.77.65.52/Sitefinity/Services/LoadBalancing/SystemWebService.svc/HandleMessages-Thread-1

    Win32 ThreadId:4944

    Extended Properties:
    ----------------------------------------
    ----------------------------------------

     

  2. Pavel Benov
    Pavel Benov avatar
    21 posts
    Registered:
    29 Sep 2016
    28 Apr
    Link to this post
    Hi Yau Gene,

    Have you tried pinging the node servers from one another to see if they can communicate with each other?

    Additionally have you configured the security as per this documentation article:

    http://docs.sitefinity.com/administration-configure-security

    Regards,
    Pavel Benov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Arno
    Arno avatar
    1 posts
    Registered:
    31 May 2013
    31 May
    Link to this post
    I had a similar Problem. In my case the reason for the 401 error was that some files in the SitefinityWebApp folder were write protected.
  4. Pavel Benov
    Pavel Benov avatar
    21 posts
    Registered:
    29 Sep 2016
    31 May
    Link to this post
    Hi Arno,

    Yes that also could be a potential cause. Thank you for sharing your experience with the community.

    Regards,
    Pavel Benov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    06 Aug in reply to Arno
    Link to this post
    Hi there we are experiencing the same.  Can you say which folder(s) and file(s) needed to be writeable?
5 posts, 0 answered