Seq Documentation and Support

Welcome to the Seq documentation hub. You'll find comprehensive guides and documentation to help you start working with Seq as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    
Ask A Question

Questions

2

EsentInstanceUnavailableExceptions

Hi, probably related to my issues last week (Bad Signature for Log file discussion 15 Sept), we seem now to be having issues with the Documents database: Users can't login - they successfully authenticate but ESENT error follows: {"@t":"2019-09-15T22:17:32.9250353Z","@mt":"User {Username} in {Domain} logged on and mapped to existing user {UserId}","Username":"xxxxx","Domain":"tpch","UserId":"user-195","Principal":{"Id":"principal-public","OnBehalfOfUserId":null},"ActionId":"2306ae2e-45c7-4fb6-8570-36fcbfacb79c","ActionName":"Seq.Server.Web.Api.UsersController.Login (Seq)","RequestId":"80004166-0000-eb00-b63f-84710c7967bb","RequestPath":"/api/users/login","CorrelationId":null} {"@t":"2019-09-15T22:17:32.9252960Z","@mt":"User {Username} logged in successfully","Username":"xxxxxxxx","Principal":{"Id":"principal-public","OnBehalfOfUserId":null},"ActionId":"2306ae2e-45c7-4fb6-8570-36fcbfacb79c","ActionName":"Seq.Server.Web.Api.UsersController.Login (Seq)","RequestId":"80004166-0000-eb00-b63f-84710c7967bb","RequestPath":"/api/users/login","CorrelationId":null} {"@t":"2019-09-15T22:17:32.9258091Z","@mt":"HTTP {RequestMethod} {RequestPath} responded {StatusCode} in {Elapsed:0.0000} ms","@r":["17.7510"],"@l":"Error","@x":"Microsoft.Isam.Esent.Interop.EsentInstanceUnavailableException: This instance cannot be used because it encountered a fatal error\r\n at Microsoft.Isam.Esent.Interop.Api.JetBeginSession(JET_INSTANCE instance, JET_SESID& sesid, String username, String password)\r\n at Quince.Storage.Esent.EsentDocumentSession..ctor(Instance instance, String path)\r\n at Quince.Storage.Esent.EsentDocumentStore.BeginEsentDocumentSession(String tag)\r\n at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)\r\n at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)\r\n at System.Lazy`1.CreateValue()\r\n at Quince.Caching.CachingDocumentSession.Store(String id, Object document, Boolean lazyFlush)\r\n at Seq.Server.Features.Users.SessionList.StartSession(String userId, TimeSpan expiry, Nullable`1 refreshAtUtc, String refreshToken)\r\n at Seq.Server.Web.Api.UsersController.Login()\r\n at lambda_method(Closure , Object , Object[] )\r\n at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()\r\n at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()\r\n at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)\r\n at Seq.Server.Web.Middleware.WebSocketAcceptMiddleware.Invoke(HttpContext context)\r\n at Seq.Server.Web.Middleware.RequestAuthenticationMiddleware.Invoke(HttpContext httpContext)\r\n at Seq.Server.Web.Middleware.BrowserSecurityOptionsMiddleware.Invoke(HttpContext context)\r\n at Seq.Server.Web.Middleware.RequestCompletionMiddleware.Invoke(HttpContext httpContext)","RequestMethod":"POST","RequestPath":"/api/users/login","StatusCode":500,"Elapsed":17.75104,"ErrorToken":"4ac23ccd85b846d3ad1453f2e02c8133","RequestProtocol":"HTTP/1.1","RequestHost":"seq.bnc.health.qld.gov.au","RequestHeaders":{"Content-Length":"67","Content-Type":"application/json;charset=UTF-8","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"},"SourceContext":"Seq.Server.Web.Middleware.RequestCompletionMiddleware","RequestId":"80004166-0000-eb00-b63f-84710c7967bb","CorrelationId":null} Retention polices fail to apply: {"@t":"2019-09-15T22:37:35.3303340Z","@mt":"Failed to apply retention policy {RetentionPolicyId}","@l":"Error","@x":"Microsoft.Isam.Esent.Interop.EsentInstanceUnavailableException: This instance cannot be used because it encountered a fatal error\r\n at Microsoft.Isam.Esent.Interop.Api.JetBeginSession(JET_INSTANCE instance, JET_SESID& sesid, String username, String password)\r\n at Quince.Storage.Esent.EsentDocumentSession..ctor(Instance instance, String path)\r\n at Quince.Storage.Esent.EsentDocumentStore.BeginEsentDocumentSession(String tag)\r\n at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)\r\n at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)\r\n at System.Lazy`1.CreateValue()\r\n at Quince.Caching.CachingDocumentSession.Store(String id, Object document, Boolean lazyFlush)\r\n at Seq.Server.Data.KeyValueStoreExtensions.Update[TDocument](DocumentSession kvs, TDocument document, Boolean lazyFlush)\r\n at Seq.Server.Features.Retention.RetentionPolicyApplier.ApplyPolicy(RetentionPolicy retentionPolicy, RetentionPolicyBookmark bookmark, IReadOnlyDictionary`2 associatedSignals, CancellationToken cancel)\r\n at Seq.Server.Features.Retention.RetentionPolicyApplier.Apply(CancellationToken cancel)","RetentionPolicyId":"retentionpolicy-555","SourceContext":"Seq.Server.Features.Retention.RetentionPolicyApplier"} And general setting can't be saved, also with ESENT errors.. Any advice? Thanks Steve

Posted by Steve Perske about a year ago