Website crash after 1.7.3 update

m.beckman's Avatar

m.beckman

20 Oct, 2014 10:41 AM

Hi,

I updated to 1.7.3 a few moments ago. All went fine, no errors etc.

I also pushed the perform upgrade button on the webpage after installation.

After that i logged in with the admin account and checked several settings and all is the same as before 1.7.3.

BUT when i log in with one of the user-accounts i get an error which results in not being able to use version-control.
Here the error i get:


HgLab Error

There's something wrong under the hood.

System.InvalidOperationException: An error occurred when trying to create a controller of type 'HgLab.Areas.Dashboard.Controllers.DashboardController'. Make sure that the controller has a parameterless public constructor. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: projectRegistry
   at HgLab.Core.ApplicationServices.Impl.AuthenticatedSecurityPrincipal..ctor(User user, IProjectRegistryService projectRegistry) in d:\projects\hglab\src\HgLab.Core\ApplicationServices\Impl\AuthenticatedSecurityPrincipal.cs:line 41
   at HgLab.Core.ApplicationServices.Impl.SecurityManagerService.CreateSecurityPrincipal(User user) in d:\projects\hglab\src\HgLab.Core\ApplicationServices\Impl\SecurityManagerService.cs:line 43
   at HgLab.Core.Configuration.Modules.SecurityModule.<Load>b__0(IComponentContext ctx) in d:\projects\hglab\src\HgLab.Core\Configuration\Modules\SecurityModule.cs:line 57
   at Autofac.RegistrationExtensions.<>c__DisplayClass10`1.<Register>b__f(IComponentContext c, IEnumerable`1 p)
   at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
   at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Execute()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.AutowiringPropertyInjector.InjectProperties(IComponentContext context, Object instance, Boolean overrideSetValues)
   at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClassd.<PropertiesAutowired>b__b(Object s, ActivatedEventArgs`1 e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Autofac.Core.Registration.ComponentRegistration.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance)
   at Autofac.Core.Resolving.InstanceLookup.Complete()
   at Autofac.Core.Resolving.ResolveOperation.CompleteActivations()
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   --- End of inner exception stack trace ---
   at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(Type serviceType)
   at System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType)
   --- End of inner exception stack trace ---
   at System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
   at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
   at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
   at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
   at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Is there some quickfix i can do to make it work again?

  1. Support Staff 1 Posted by Anton Gogolev on 20 Oct, 2014 10:46 AM

    Anton Gogolev's Avatar

    Hello, Maurice!

    Thanks for reporting the bug! I'll issue the fix shortly.

  2. 2 Posted by m.beckman on 20 Oct, 2014 11:29 AM

    m.beckman's Avatar

    Hi Anton,

    I found a workaround so the developers can still push and pull to and from the server. I used the admin account (which operates normally without errors) to make everyone system administrator. This way the users can login again and see the dashboard instead of the error page.

    This is setting cannot be permanent because it contradicts the rules in ISO27001 (security etc)

    But it seems to me there is a problem with the authentication, anything less than system admin gets error.

    Hope to be of some help

    Mvgr,

    Maurice

    Met vriendelijke groet,

    Maurice Beckman
    Developer

    Direct: +31 30 850 1878
    Mobiel:
    KvK nummer: 08054165
    Website: www.4dms.nl<http://www.4dms.nl>

    Van: Anton Gogolev [mailto:[email blocked]]
    Verzonden: maandag 20 oktober 2014 12:46
    Aan: Beckman, Maurice
    Onderwerp: Re: Website crash after 1.7.3 update [Problems #715]

  3. Support Staff 3 Posted by Anton Gogolev on 20 Oct, 2014 03:57 PM

    Anton Gogolev's Avatar

    Maurice,

    Again, thanks a lot for the digging you've done and my apologies for
    letting this bug slip through.

    Please, update to 1.7.4: https://hglabhq.com/download/1.7.4

  4. 4 Posted by m.beckman on 21 Oct, 2014 07:27 AM

    m.beckman's Avatar

    Hi Anton,

    Works like a charm!

    Thanks for the swift response and fix ☺

    PS. Any idea when fork and pull request will be implemented?

    Met vriendelijke groet,

    Maurice Beckman
    Developer

    Direct: +31 30 850 1878
    Mobiel:
    KvK nummer: 08054165
    Website: www.4dms.nl<http://www.4dms.nl>

    Van: Anton Gogolev [mailto:[email blocked]]
    Verzonden: maandag 20 oktober 2014 17:58
    Aan: Beckman, Maurice
    Onderwerp: Re: Website crash after 1.7.3 update [Problems #715]

  5. Support Staff 5 Posted by Anton Gogolev on 02 Nov, 2014 02:36 PM

    Anton Gogolev's Avatar

    Maurice,

    I'm planning on shipping Merge Requests this year with Private Forks being
    next in line.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM
18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM

 

01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM
19 Dec, 2019 06:58 AM
21 Aug, 2019 09:07 AM