Load Balancing not expiring page cache
I configured the Sitefinity load balancing addon per the instructions in the link below (not using claims based authentication, so only first six steps). When I make changes to a page on one web server, the second web server doesn't display the changes.
I'm using URLs of http://web01/ which aren't available publicly, could that be the issue? If you're on one of the web servers, network names like web01 and web02 bring up the web servers. I assume the cache invalidation is being triggered from the server and not by the client, right? If it were the client then web01 and web02 wouldn't work and we'd need publicly available names, but I figure these are calls made by the backend, so I would imagine this would work.
I opened Fiddler locally and on the web server to see if I could see any HTTP traffic saying to invalidate the cache and didn't see anything.
So where should I start looking?
Thanks,
Eric
www.sitefinity.com/.../configuring-sitefinity-for-load-balancing
Hello Eric,
Would it be possible to try using the IPs of the servers in the Load Balancing urls. That way you will avoid these problems. Keep fiddler running, if everything is configured correctly, there should be a message to invalidate the cache. In addition to that, please, clear the error logs from the App_Data/Sitefinity/Logs folder. Test by making a change and check for a log file. If it was generated, it will contain information regarding possible problems.
I switched to IPs. I don't see anything in Fiddler, but Error.log has new entries. I made the change from WEB03 (10.15.5.22). Could it be the space in the cookie name ".SFAUTH-Main Site"? And if so, how do i change that?
----------------------------------------Timestamp: 4/2/2013 3:42:08 PMMessage: HandlingInstanceID: 037b0824-fdc8-4546-8d0d-c1478491910cAn exception of type 'System.Exception' occurred and was caught.----------------------------------------------------------------04/02/2013 11:42:08Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Message : Error sending system message to URL: http://10.15.5.21/Sitefinity/Services/LoadBalancing/SystemWebService.svc/HandleMessage; HTTP method: PUT; Host: nullSource : Help link : Data : System.Collections.ListDictionaryInternalTargetSite : Stack Trace : The stack trace is unavailable.Additional Info:MachineName : WEB03TimeStamp : 4/2/2013 3:42:08 PMFullName : Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563AppDomainName : /LM/W3SVC/2/ROOT-1-130093651050621235ThreadIdentity : myUserWindowsIdentity : myDomain\websiteUserRequested URL : http://10.15.5.22/unsupported-browser/Action/Edit Inner Exception --------------- Type : System.Net.CookieException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The 'Name'='.SFAUTH-Main Site' part of the cookie is invalid. Source : System Help link : Data : System.Collections.ListDictionaryInternal TargetSite : Void set_Name(System.String) Stack Trace : at System.Net.Cookie.set_Name(String value) at Telerik.Sitefinity.LoadBalancing.WebServiceSystemMessageSender.Authenticate(HttpWebRequest request) at Telerik.Sitefinity.LoadBalancing.WebServiceSystemMessageSender.InvokeWebMethod(String url, String httpMethod, Byte[] data)Category: ErrorLogPriority: 0EventId: 9010Severity: WarningTitle:Enterprise Library Exception HandlingMachine: WEB03App Domain: /LM/W3SVC/2/ROOT-1-130093651050621235ProcessId: 4784Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:5020Extended Properties: --------------------------------------------------------------------------------Timestamp: 4/2/2013 3:42:08 PMMessage: HandlingInstanceID: 9492f431-7ac3-4943-bdcd-9a9e4e3dbe98An exception of type 'System.Exception' occurred and was caught.----------------------------------------------------------------04/02/2013 11:42:08Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Message : Error sending system message to URL: http://10.15.5.22/Sitefinity/Services/LoadBalancing/SystemWebService.svc/HandleMessage; HTTP method: PUT; Host: nullSource : Help link : Data : System.Collections.ListDictionaryInternalTargetSite : Stack Trace : The stack trace is unavailable.Additional Info:MachineName : WEB03TimeStamp : 4/2/2013 3:42:08 PMFullName : Telerik.Sitefinity.Utilities, Version=5.4.4010.0, Culture=neutral, PublicKeyToken=b28c218413bdf563AppDomainName : /LM/W3SVC/2/ROOT-1-130093651050621235ThreadIdentity : myUserWindowsIdentity : myDomain\websiteUserRequested URL : http://10.15.5.22/unsupported-browser/Action/Edit Inner Exception --------------- Type : System.Net.CookieException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The 'Name'='.SFAUTH-Main Site' part of the cookie is invalid. Source : System Help link : Data : System.Collections.ListDictionaryInternal TargetSite : Void set_Name(System.String) Stack Trace : at System.Net.Cookie.set_Name(String value) at Telerik.Sitefinity.LoadBalancing.WebServiceSystemMessageSender.Authenticate(HttpWebRequest request) at Telerik.Sitefinity.LoadBalancing.WebServiceSystemMessageSender.InvokeWebMethod(String url, String httpMethod, Byte[] data)Category: ErrorLogPriority: 0EventId: 9010Severity: WarningTitle:Enterprise Library Exception HandlingMachine: WEB03App Domain: /LM/W3SVC/2/ROOT-1-130093651050621235ProcessId: 4784Process Name: c:\windows\system32\inetsrv\w3wp.exeThread Name: Win32 ThreadId:5020Extended Properties: ----------------------------------------According to the code below (mono's implementation of Cookie?), supposedly spaces aren't permitted in the cookie name. So how do I change the name of my Sitefinity instance?
www.java2v.com/.../Cookie.cs.htm
Hi Eric,
I have answered you in your support ticket. I will repost it here.
It seems there is a problem with the cookie name in Forms Authentication. It should only be .SFAUTH.
You can change the name in Settings - Advanced - Security with the AuthCookieName field.
All the best,
Randy Hodge
the Telerik team
Hello Eric,
We have just updated the information in the support ticket submitted on this topic.
As you properly pointed out, the space character is not valid in the AuthCookieName parameter, and this is a bug on our side which we'll work on fixing for the upcoming releases.
In the meantime, please update manually the value in the Administration->Settings -> Advanced -> Security and modify the AuthCookieName parameter.
All the best,
Boyan Barnev
the Telerik team