These are chat archives for OrchardCMS/Orchard

29th
Mar 2017
Jean Jordaan
@jean
Mar 29 2017 10:02
I think Orchard is angry at me.
This tenant is currently initializing. Please try again later.
(We're evidently doing something bad on startup .. fixing ..)
pritchardhobe
@pritchardhobe
Mar 29 2017 19:58
Hey all. I've run into an issue when moving into our production environment, that does NOT happen in QA. Getting an error almost immediately (in some cases) or on save (in others) when working with elements/widgets on content pages.
'code' An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object. at Orchard.Layouts.Controllers.ElementController.Edit(String session) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() 'code'
looks like a session timeout. We use azure sql for all of our site management, and redis for cache.
since i don't have a web.config for the sites that contain the sessionState parameter, is this something i need to do at a server level? Aka on the azure sql or redis cache servers?
S├ębastien Ros
@sebastienros
Mar 29 2017 20:01
sessions should still work
do you have Instance Affinity turned on, it's on by default but you might have disabled it
also does it happen when after some long inactivity, I have seen this bug in this case
if this is it I think the bug has been fixed with a setTimeout that would keep the session active on the Layout editor page
pritchardhobe
@pritchardhobe
Mar 29 2017 20:07
no, its an active page i'm working on and i can repeat it almost indefinitely. I haven't messed w/instance affinity. Where would that be located?
would that be ARR Afinity?
S├ębastien Ros
@sebastienros
Mar 29 2017 20:11
yes
pritchardhobe
@pritchardhobe
Mar 29 2017 20:11
yep. its off.
i'll talk to my it team.. see if they can flip that back on. Its on in QA which is likely the root cause for it not working. thanks @sebastienros !