Question

Photo of Greg Leininger

0

Exception occurs every minute

When I look at my Exception List under System Settings I see an Exception with a count of over 15,000. I click on it for details and see that it gets thrown every minute. The Type is System.Net.Sockets.SocketException. The Exception Description is "An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:80". I click on the most recent record of all these exceptions and get two Detail records

Exception Type Source Description
System.Net.WebException System Unable to connect to the remote server
System.Net.Sockets.SocketException System An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:80

 

I also looked at my Jobs List and they are all running successfully.

Any ideas? Please help. 

  • Photo of David Turner

    0

    Rock has a mechanism to keep a site "alive" so that cached objects are not lost and performance does not suffer when the site does not get much actual traffic. This is done by making a request to the site's KeepAlive.aspx page. The url for this page is determined by the first request made after an application restart. It appears that Azure (which is the hosting provider that Managed Missions uses) has a mechanism for starting the application in a way that this url is not calculated correctly. When this happens, an exception will then occur each time Rock tries to run the keep alive mechanism. We are working on getting a fix for this and will provide it to Managed Missions as soon as we do.

    • Greg Leininger

      David, This problem is still ongoing. Any update? Also, if the issue is with Managed Ministries hosting, wouldn't this be a problem with everyone hosting there? Thanks for your help.

    • David Turner

      We did add a check for this so that the internal request from Azure does not update the location of the KeepAlive page, and Rock will wait for the first "real" external request. This fix will be included in the v4.0 update.

  • Photo of Louis Oju

    0

    Hi Dave I am having the same issue. I am running on AZURE on a hosted VM I have full control of. Please advice. I am running the latest version of ROCK and it doesn't seem like this is resolved. Do I need to open any specific server ports for this ? If so which so i can add it into our firewall rules. Thanks


    System.Net.WebException The remote server returned an error: (404) Not Found. System at System.Net.HttpWebRequest.GetResponse() at RockWeb.Global.CacheItemRemoved(String k, Object v, CacheItemRemovedReason r)


    System.Exception Error doing KeepAlive request.

    at RockWeb.Global.LogError(Exception ex, HttpContext context) at RockWeb.Global.CacheItemRemoved(String k, Object v, CacheItemRemovedReason r) at System.Web.Caching.CacheEntry.CallCacheItemRemovedCallback(CacheItemRemovedCallback callback, CacheItemRemovedReason reason) at System.Web.Caching.CacheEntry.Close(CacheItemRemovedReason reason) at System.Web.Caching.CacheSingle.UpdateCache(CacheKey cacheKey, CacheEntry newEntry, Boolean replace, CacheItemRemovedReason removedReason, Object& valueOld) at System.Web.Caching.ExpiresBucket.FlushExpiredItems(DateTime utcNow, Boolean useInsertBlock) at System.Web.Caching.CacheExpires.FlushExpiredItems(Boolean checkDelta, Boolean useInsertBlock) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.TimerQueueTimer.CallCallback() at System.Threading.TimerQueueTimer.Fire() at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()









  • Photo of Kelvin Liu

    0

    Hi, 

    I just upgraded our Rock to version 10 and its behaving similarly. Lot of exception logs about

    "Error doing KeepAlive request" 

    Is there a solution with this? We are also hosted on Azure


    Thank you