Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

保存文章 / 产品时偶发异常 #514

Closed
SeriaWei opened this issue Aug 18, 2024 · 0 comments
Closed

保存文章 / 产品时偶发异常 #514

SeriaWei opened this issue Aug 18, 2024 · 0 comments
Labels

Comments

@SeriaWei
Copy link
Owner

2024-08-18 11:09:10.638 +00:00 [ERR] An unhandled exception has occurred while executing the request.
Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: SharingNativeFSLock@/root/cms/wwwroot/Plugins/ZKEACMS.Search/Index_Data/zh-CN/write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexWriter..ctor(Directory d, IndexWriterConfig conf)
   at ZKEACMS.Search.Service.Analyzers.AnalyzerBase.GetIndexWriter()
   at ZKEACMS.Search.Service.SearchService.Index(WebPage webPage)
   at ZKEACMS.Search.Events.IndexOnArticleSavedEventHandler.Handle(Object entity, EventArg e)
   at ZKEACMS.Event.EventManager.Trigger(EventArg e, Object entity) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Event\EventManager.cs:line 30
   at ZKEACMS.Event.EventManager.Trigger(String eventName, Object entity) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Event\EventManager.cs:line 21
   at ZKEACMS.Article.Service.ArticleService.<>c__DisplayClass7_0.<Update>b__1()
   at Easy.RepositoryPattern.ServiceBase`2.BeginTransaction[TEntity](Func`1 action) in D:\Projects\ZKEACMS.Official\src\EasyFrameWork\RepositoryPattern\ServiceBase.cs:line 94
   at ZKEACMS.Article.Service.ArticleService.Update(ArticleEntity item)
   at ZKEACMS.MultiLanguage.LocalizeService`1.<>c__DisplayClass6_0.<Update>b__0() in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeService.cs:line 84
   at Easy.RepositoryPattern.ServiceBase`2.BeginTransaction[TEntity](Func`1 action) in D:\Projects\ZKEACMS.Official\src\EasyFrameWork\RepositoryPattern\ServiceBase.cs:line 74
   at ZKEACMS.MultiLanguage.LocalizeService`1.Update(T item, CultureFlag cultureFlag) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeService.cs:line 82
   at ZKEACMS.Article.Service.ArticleService.Update(ArticleEntity item, CultureFlag cultureFlag)
   at ZKEACMS.Article.Controllers.ArticleController.Edit(ArticleEntity entity, CultureFlag cultureFlag)
   at lambda_method843(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   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()
--- End of stack trace from previous location ---
   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()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at ZKEACMS.MultiLanguage.LocalizeRedirectMiddleware.Invoke(HttpContext context) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeRedirectMiddleware.cs:line 84
   at ZKEACMS.Page.StaticPageMiddleWare.Invoke(HttpContext context) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Page\StaticPageMiddleWare.cs:line 86
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
2024-08-18 11:09:06.779 +00:00 [ERR] Connection id "0HN5VEOFC9V31", Request id "0HN5VEOFC9V31:00000001": An unhandled exception was thrown by the application.
System.ObjectDisposedException: this Directory is closed
Object name: 'Lucene.Net.Store.MMapDirectory'.
   at Lucene.Net.Store.BaseDirectory.EnsureOpen()
   at Lucene.Net.Store.FSDirectory.CreateOutput(String name, IOContext context)
   at Lucene.Net.Index.SegmentInfos.Write(Directory directory)
   at Lucene.Net.Index.SegmentInfos.PrepareCommit(Directory dir)
   at Lucene.Net.Index.IndexWriter.StartCommit(SegmentInfos toSync)
   at Lucene.Net.Index.IndexWriter.PrepareCommitInternal()
   at Lucene.Net.Index.IndexWriter.CommitInternal()
   at Lucene.Net.Index.IndexWriter.CloseInternal(Boolean waitForMerges, Boolean doFlush)
   at Lucene.Net.Index.IndexWriter.Dispose(Boolean waitForMerges)
   at Lucene.Net.Index.IndexWriter.Dispose()
   at ZKEACMS.Search.Service.Analyzers.AnalyzerBase.Dispose(Boolean disposing)
   at ZKEACMS.Search.Service.Analyzers.AnalyzerBase.Dispose()
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.DisposeAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Http.Features.RequestServicesFeature.<DisposeAsync>g__Awaited|9_0(RequestServicesFeature servicesFeature, ValueTask vt)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.<FireOnCompleted>g__ProcessEvents|242_0(HttpProtocol protocol, Stack`1 events)
2024-08-18 11:09:06.525 +00:00 [ERR] An unhandled exception has occurred while executing the request.
System.ObjectDisposedException: this Directory is closed
Object name: 'Lucene.Net.Store.MMapDirectory'.
   at Lucene.Net.Store.BaseDirectory.EnsureOpen()
   at Lucene.Net.Store.FSDirectory.CreateOutput(String name, IOContext context)
   at Lucene.Net.Index.SegmentInfos.Write(Directory directory)
   at Lucene.Net.Index.SegmentInfos.PrepareCommit(Directory dir)
   at Lucene.Net.Index.IndexWriter.StartCommit(SegmentInfos toSync)
   at Lucene.Net.Index.IndexWriter.PrepareCommitInternal()
   at Lucene.Net.Index.IndexWriter.CommitInternal()
   at Lucene.Net.Index.IndexWriter.CloseInternal(Boolean waitForMerges, Boolean doFlush)
   at Lucene.Net.Index.IndexWriter.Dispose(Boolean waitForMerges)
   at Lucene.Net.Index.IndexWriter.Dispose()
   at ZKEACMS.Search.Service.Analyzers.AnalyzerBase.Dispose(Boolean disposing)
   at ZKEACMS.Search.Service.Analyzers.AnalyzerBase.Dispose()
   at ZKEACMS.Search.Service.SearchService.Index(WebPage webPage)
   at ZKEACMS.Search.Events.IndexOnArticleSavedEventHandler.Handle(Object entity, EventArg e)
   at ZKEACMS.Event.EventManager.Trigger(EventArg e, Object entity) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Event\EventManager.cs:line 30
   at ZKEACMS.Event.EventManager.Trigger(String eventName, Object entity) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Event\EventManager.cs:line 21
   at ZKEACMS.Article.Service.ArticleService.<>c__DisplayClass7_0.<Update>b__1()
   at Easy.RepositoryPattern.ServiceBase`2.BeginTransaction[TEntity](Func`1 action) in D:\Projects\ZKEACMS.Official\src\EasyFrameWork\RepositoryPattern\ServiceBase.cs:line 94
   at ZKEACMS.Article.Service.ArticleService.Update(ArticleEntity item)
   at ZKEACMS.MultiLanguage.LocalizeService`1.<>c__DisplayClass6_0.<Update>b__0() in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeService.cs:line 84
   at Easy.RepositoryPattern.ServiceBase`2.BeginTransaction[TEntity](Func`1 action) in D:\Projects\ZKEACMS.Official\src\EasyFrameWork\RepositoryPattern\ServiceBase.cs:line 74
   at ZKEACMS.MultiLanguage.LocalizeService`1.Update(T item, CultureFlag cultureFlag) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeService.cs:line 82
   at ZKEACMS.Article.Service.ArticleService.Update(ArticleEntity item, CultureFlag cultureFlag)
   at ZKEACMS.Article.Controllers.ArticleController.Edit(ArticleEntity entity, CultureFlag cultureFlag)
   at lambda_method843(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   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()
--- End of stack trace from previous location ---
   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()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at ZKEACMS.MultiLanguage.LocalizeRedirectMiddleware.Invoke(HttpContext context) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\MultiLanguage\LocalizeRedirectMiddleware.cs:line 84
   at ZKEACMS.Page.StaticPageMiddleWare.Invoke(HttpContext context) in D:\Projects\ZKEACMS.Official\src\ZKEACMS\Page\StaticPageMiddleWare.cs:line 86
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
@SeriaWei SeriaWei added the bug label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant