Inhalte aufrufen

Profilbild

log error duplicate key? Stores on error

error

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
4 Antworten zu diesem Thema

#1 mrrcomp

mrrcomp

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 101 Beiträge

Geschrieben: 22 January 2023 - 08:05

HI

 

after update to version 5.0.2  im logged into the backend and i see the 2 stores and all relevant data but when goiing to the store i get an  server error and when i look at the logs its showing error ConcurrentDiction duplicate kkey?

 

attached is a screen shot of the error log 

 

and the following is the full message as show 

 

System.ArgumentException: The source argument contains duplicate keys.
at System.Collections.Concurrent.ConcurrentDictionary`2.InitializeFromCollection(IEnumerable`1 collection)
at System.Collections.Concurrent.ConcurrentDictionary`2..ctor(Int32 concurrencyLevel, IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Smartstore.Caching.MemorySet..ctor(ICacheStore cache, IEnumerable`
1 values) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemorySet.cs:line 38
at Smartstore.Caching.MemoryCacheStore.<>c__DisplayClass20_0.<<GetHashSetAsync>b__0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemoryCacheStore.cs:line 126
--- End of stack trace from previous location ---
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreateAsync[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Smartstore.Caching.MemoryCacheStore.GetHashSetAsync(String key, Func`
1 acquirer) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemoryCacheStore.cs:line 122
at Smartstore.Core.Content.Menus.MenuStorage.GetMenuSystemNamesAsync(Boolean ensureCreated) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuStorage.cs:line 108
at Smartstore.Core.Content.Menus.MenuStorage.MenuExistsAsync(String systemName) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuStorage.cs:line 89
at Smartstore.Core.Content.Menus.MenuService.GetMenuAsync(String name) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuService.cs:line 20
at Smartstore.Web.Controllers.CatalogHelper.GetBreadcrumbAsync(IBreadcrumb breadcrumb, ActionContext context, Product product) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web\Controllers\CatalogHelper.cs:line 469
at Smartstore.Web.Controllers.ProductController.ProductDetails(Int32 productId, ProductVariantQuery query) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web\Controllers\ProductController.cs:line 195
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Smartstore.Core.Bootstrapping.CheckoutBootstrappingExtensions.<>c.<<UseCheckoutState>b__0_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Checkout\Bootstrapping\CheckoutBootstrappingExtensions.cs:line 31
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at Smartstore.ExceptionExtensions.ReThrow(Exception exception) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Extensions\ExceptionExtensions.cs:line 15
at Smartstore.Web.Api.Startup.ProcessException(HttpContext context, Exception ex)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Smartstore.Core.Localization.RequestCultureMiddleware.Invoke(HttpContext context, IWorkContext workContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Services\RequestCultureMiddleware.cs:line 71
at Smartstore.Core.Logging.RequestLoggingMiddleware.InvokeAsync(HttpContext httpContext, IWebHelper webHelper, IWorkContext workContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Logging\Serilog\RequestLoggingMiddleware.cs:line 80
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UseWorkContext>b__1_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Common\Bootstrapping\CommonBuilderExtensions.cs:line 36
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnAfterRouting(HttpContext context, Func`1 next) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Bootstrapping\LocalizationBuilderExtensions.cs:line 117
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnBeforeRouting(HttpContext context, Func`
1 next) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Bootstrapping\LocalizationBuilderExtensions.cs:line 82
at Microsoft.AspNetCore.OData.Batch.ODataBatchMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.OData.Query.ODataQueryRequestMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UsePoweredBy>b__2_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Common\Bootstrapping\CommonBuilderExtensions.cs:line 49
--- End of stack trace from previous location ---
at Smartstore.Web.Bundling.BundleMiddleware.InvokeAsync(HttpContext httpContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web.Common\Bundling\BundleMiddleware.cs:line 98
at Smartstore.Engine.Initialization.ApplicationInitializerMiddleware.Invoke(HttpContext context) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Engine\Initialization\ApplicationInitializerMiddleware.cs:line 77
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Angehängte Bilder



#2 mrrcomp

mrrcomp

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 101 Beiträge

Geschrieben: 23 January 2023 - 05:58

HI

 

It seems something to do with the menus . I deleted the customized  menus for store 2 and now site works :)

 

Meir



#3 stefanmueller

stefanmueller

    SmartStore AG

  • Administrators
  • 459 Beiträge

Geschrieben: 23 January 2023 - 13:04

Hi Meir, we have discussed this here. This issue may be caused by mixing different versions of smartstore. It is not possible to mix a smartstore installation with components from older or newer versions. Regards, Stefan


Stefan


#4 mrrcomp

mrrcomp

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 101 Beiträge

Geschrieben: 23 January 2023 - 14:14

Hi

 

Thanks but as i said i did manage to get the version 5.0.2 working.. and was able to get the data etc from the backup of the version 5.0.2

 

regards

 

meir



#5 stefanmueller

stefanmueller

    SmartStore AG

  • Administrators
  • 459 Beiträge

Geschrieben: 27 January 2023 - 10:39

Hi Meir, thank you for updating to a clean new 5.0.2. This may indicate a deeper technical problem. We cannot resolve this via the forum, only via direct system access, which requires a paid contract, so it remained unanswered here for a few days.
 
A good practice for members of the Smartstore community: technical issues should be reported to the smartstore/smartstore github (requires a free github account) so that our developers can find it in the issue list there and take a look at it.
 
 
Another benefit ... You will be auto-notified via github when an issue is fixed, prioritised or planned for a future Smartstore release. You can also search for issues on github, comment on them and add a text statement, screenshot, video clip to existing issues, even social media-style "likes" for issues are possible.
 
Regards, Stefan
 
Angehängte Datei  github-smartstore.gif   58.14K   0 Anzahl Downloads

Stefan



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: error