Seq Documentation and Support

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 month ago

3

Bad signature for a log file

Hi, suddenly getting this error on our Prod instance.. We upgraded this instance from v4 9 days ago, and up till now been running with no issues whatsoever, so can't image that's related? Thanks Steve {"@t":"2019-09-12T06:49:36.1832675Z","@mt":"Seq {SeqVersion} running on OS {OSCaption}","SeqVersion":"5.1.3118","OSCaption":"Microsoft Windows Server 2012 R2 Standard","SourceContext":"Seq.Server.Features.Diagnostics.EnvironmentInformationWriter"} {"@t":"2019-09-12T06:49:36.2576842Z","@mt":"Running in Windows Service host"} {"@t":"2019-09-12T06:49:37.4709946Z","@mt":"Seq listening on {ListenUris}","ListenUris":["http://localhost:5341/"]} {"@t":"2019-09-12T06:49:37.5471337Z","@mt":"Opening document store {DatabasePath}","DatabasePath":"H:\\Seq\\Documents\\default.quince","InstanceName":"Quince","SourceContext":"Quince.Storage.Esent.EsentDocumentStore"} {"@t":"2019-09-12T06:49:37.6518340Z","@mt":"Uncaught exception from worker {WorkDescription} ({WorkId})","@l":"Error","@x":"Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = TelemetryController (ReflectionActivator), Services = [Seq.Server.Features.Telemetry.TelemetryController], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SystemSettings (ReflectionActivator), Services = [Seq.Server.Features.Settings.SystemSettings], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Bad signature for a log file (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SystemSettings (ReflectionActivator), Services = [Seq.Server.Features.Settings.SystemSettings], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Bad signature for a log file (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Bad signature for a log file (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Bad signature for a log file (See inner exception for details.) ---> Microsoft.Isam.Esent.Interop.EsentBadLogSignatureException: Bad signature for a log file\r\n at Microsoft.Isam.Esent.Interop.Api.JetInit2(JET_INSTANCE& instance, InitGrbit grbit)\r\n at Microsoft.Isam.Esent.Interop.Instance.Init(InitGrbit grbit)\r\n at Quince.Storage.Esent.EsentDocumentStore..ctor(String path, String instanceName)\r\n at Seq.Server.SeqServerModule.InitStorageSubsystem(IComponentContext c)\r\n at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)\r\n at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n --- End of inner exception stack trace ---\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)\r\n at Autofac.Core.Resolving.InstanceLookup.Execute()\r\n at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)\r\n at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)\r\n at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)\r\n at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)\r\n at Seq.Server.SeqServerModule.<>c.<Load>b__14_10(IComponentContext c)\r\n at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)\r\n at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n --- End of inner exception stack trace ---\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n at Autofac.Core.Resolving.InstanceLookup.Execute()\r\n at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)\r\n at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()\r\n at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n --- End of inner exception stack trace ---\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)\r\n at Autofac.Core.Resolving.InstanceLookup.Execute()\r\n at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)\r\n at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()\r\n at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n --- End of inner exception stack trace ---\r\n at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)\r\n at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)\r\n at Autofac.Core.Resolving.InstanceLookup.Execute()\r\n at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)\r\n at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)\r\n at Autofac.Features.LazyDependencies.LazyRegistrationSource.<>c__DisplayClass5_1`1.<CreateLazyRegistration>b__1()\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 Seq.Server.ServiceProcess.ServerService.<Start>b__13_0(CancellationToken cancel)\r\n at Flare.Workers.WorkerPool.<>c__DisplayClass4_0.<Run>g__DoWork|0()","WorkDescription":"Start background processes","WorkId":"eb9c8576-fde9-43cb-866f-dfecb84cd265","SourceContext":"Flare.Workers.WorkerPool"}

Posted by Steve Perske about a month ago

5

Does NLog Seq target support Json layout?

Hello, I am trying to configure NLog to use the Seq target. We use NLog and write to files using the Json layout like so... ``` <target xsi:type="File" name="ELK" fileName="${shortdate}.log"> <layout xsi:type="JsonLayout"> <attribute name="Timestamp" layout="${date:format=yyyy-MM-ddTHH\:mm\:ss.fff}" /> <attribute name="Message" layout="${message}" /> <attribute name="Id" layout="${event-properties:item=EventId.Id}" /> <attribute name="Level" layout="${level}" /> <attribute name="Exception" layout="${exception:format=toString,StackTrace,Data:maxInnerExceptionLevel=5}" /> <attribute name="SourceName" layout="${logger}" /> <attribute name="AuthLogin" encode="false"> <layout xsi:type="JsonLayout"> <attribute name="Url" layout="${aspnet-request-url}" /> <attribute name="Action" layout="${aspnet-mvc-action}" /> </layout> </attribute> <attribute name="AppGlobal" encode="false"> <layout type="JsonLayout"> <attribute name="MachineName" layout="${machinename}" /> <attribute name="SourceContext" layout="${callsite}" /> <attribute name="ThreadId" layout="${threadid}" /> </layout> </attribute> </layout> </target> ``` But when I try this with a Seq target I get the following error in my Nlog error file... ``` nlog.config. ---> System.NotSupportedException: Parameter layout not supported on SeqTarget at NLog.Internal.PropertyHelper.SetPropertyFromString(Object obj, String propertyName, String value, ConfigurationItemFactory configurationItemFactory) at NLog.Config.XmlLoggingConfiguration.SetPropertyFromElement(Object o, NLogXmlElement element) at NLog.Config.XmlLoggingConfiguration.ParseTargetElement(Target target, NLogXmlElement targetElement, Dictionary`2 typeNameToDefaultTargetParameters) at NLog.Config.XmlLoggingConfiguration.ParseTargetsElement(NLogXmlElement targetsElement) at NLog.Config.XmlLoggingConfiguration.ParseNLogElement(NLogXmlElement nlogElement, String filePath, Boolean autoReloadDefault) at NLog.Config.XmlLoggingConfiguration.Initialize(XmlReader reader, String fileName, Boolean ignoreErrors) --- End of inner exception stack trace --- ```

Posted by Brian Harwell about a month ago

8

Autofac.Core.DependencyResolutionException on startup

Hi, I'm running Seq on docker and recently getting an exception on startup. Any ideas? Here are the logs: ──────────────────────────────────────── Seq ♦ Machine data, for humans. ─────────── © 2019 Datalust Pty Ltd ──── Running as server; press Ctrl+C to exit. [18:15:16 INF] Seq "5.1.3118" running on OS "Linux 4.15.0-1055-azure #60-Ubuntu SMP Thu Aug 8 18:29:07 UTC 2019" [18:15:18 INF] Seq listening on ["http://localhost/", "http://localhost:5341/"] [18:15:18 INF] Seq using canonical URI "https://***/" [18:15:18 INF] Opening document store "/data/Documents/documents.lmdb" thread '<unnamed>' panicked at 'assertion failed: self.remaining() >= dst.len()', /rust/cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.4.12/src/buf/buf.rs:242:9note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. [18:15:19 INF] Closing document store [18:15:19 ERR] Uncaught exception from worker "Start background processes" ("e9498c73-d8e8-40c5-b7c4-a95f7a1fb282") Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = TelemetryController (ReflectionActivator), Services = [Seq.Server.Features.Telemetry.TelemetryController], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SystemSettings (ReflectionActivator), Services = [Seq.Server.Features.Settings.SystemSettings], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Flare native storage failed (InternalError), internal panic with 'assertion failed: self.remaining() >= dst.len()' (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SystemSettings (ReflectionActivator), Services = [Seq.Server.Features.Settings.SystemSettings], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Flare native storage failed (InternalError), internal panic with 'assertion failed: self.remaining() >= dst.len()' (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IDocumentStore (DelegateActivator), Services = [Quince.IDocumentStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Flare native storage failed (InternalError), internal panic with 'assertion failed: self.remaining() >= dst.len()' (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StorageSubsystem (DelegateActivator), Services = [Seq.Server.Storage.StorageSubsystem], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Flare native storage failed (InternalError), internal panic with 'assertion failed: self.remaining() >= dst.len()' (See inner exception for details.) ---> System.Exception: Flare native storage failed (InternalError), internal panic with 'assertion failed: self.remaining() >= dst.len()' at Flare.Storage.Native.FlareResult.EnsureSuccess() at Flare.Storage.Store.Open(String path) at Flare.Storage.Native.FlareStorageExtent.OpenStore() at Flare.Storage.Native.FlareStorageExtent..ctor(IStorageEngine storageEngine, ExtentRange range, String dataFile) at Flare.Storage.Native.FlareStorageEngine.CreateExtent(ExtentRange range, String dataFile, String instanceName) at Flare.Storage.Extents.ExtentMap..ctor(IStorageEngine[] storageEngines, String extentsPath) at Flare.Events.EventStore..ctor(IStorageEngine[] storageEngines, String extentsPath, WorkerPool workerPool, MemoryThresholds memoryThresholds, BroadcastChannel broadcast, IClock clock) at Seq.Server.SeqServerModule.InitStorageSubsystem(IComponentContext c) at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0`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, Object& decoratorTarget) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, 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.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at Seq.Server.SeqServerModule.<>c.<Load>b__14_10(IComponentContext c) at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass0_0`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, Object& decoratorTarget) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Features.LazyDependencies.LazyRegistrationSource.<>c__DisplayClass5_1`1.<CreateLazyRegistration>b__1() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at Seq.Server.ServiceProcess.ServerService.<Start>b__13_0(CancellationToken cancel) at Flare.Workers.WorkerPool.<>c__DisplayClass4_0.<Run>g__DoWork|0()

Posted by Yohan Belval about a month ago

4

Docker image for Windows volume

This is a continuation of https://docs.datalust.co/discuss/5d49af3c1f12320049b6f48f I have the Seq server running in a Windows container but it can only run stateless, meaning the log data is stored inside the container and any logs and signals are lost when the container stops. I configured the Seq server to use `C:\Data` as the log directory and when I start the container with a volume mapping it works the first time but if I start a new container with a previous volume it doesn't start. Log messages are... ## First Time ``` Starting Seq... Installing service... Creating a new configuration file in C:\ProgramData\Seq\Seq.json... [SC] CreateService SUCCESS Setting service restart policy... [SC] ChangeServiceConfig2 SUCCESS Setting service description... [SC] ChangeServiceConfig2 SUCCESS Service installed successfully. Starting Seq... Waiting up to 15 seconds for the service to start (currently: Stopped)... Started. Startup logs: {"@t":"2019-08-22T18:32:47.8412725Z","@mt":"Seq {SeqVersion} running on OS {OSCaption}","SeqVersion":"5.1.3118","OSCaption":"Microsoft ","SourceContext":"Seq.Server.Features.Diagnostics.EnvironmentInformationWriter"} {"@t":"2019-08-22T18:32:47.9008277Z","@mt":"Running in Windows Service host"} {"@t":"2019-08-22T18:32:49.3225371Z","@mt":"Seq listening on {ListenUris}","ListenUris":["http://localhost:5341/"]} {"@t":"2019-08-22T18:32:49.3861789Z","@mt":"Opening document store {DatabasePath}","DatabasePath":"C:\\Data\\Documents\\default.quince","InstanceName":"Quince","SourceContext":"Quince.Storage.Esent.EsentDocumentStore"} {"@t":"2019-08-22T18:32:49.4467101Z","@mt":"Creating new data file at {DatabasePath}","DatabasePath":"C:\\Data\\Documents\\default.quince","InstanceName":"Quince","SourceContext":"Quince.Storage.Esent.EsentDocumentStore"} {"@t":"2019-08-22T18:32:49.6315457Z","@mt":"Opening event store at {ExtentsPath}","ExtentsPath":"C:\\Data\\Extents","SourceContext":"Flare.Events.EventStore"} {"@t":"2019-08-22T18:32:49.6320081Z","@mt":"Available storage engines in order of preference are {Engines}","Engines":["FLARE","ESENT","LMDB"],"SourceContext":"Flare.Events.EventStore"} {"@t":"2019-08-22T18:32:49.7645342Z","@mt":"Creating {SchemaVersions} table","SchemaVersions":"SchemaVersions","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8057342Z","@mt":"Applying migration {MigrationName}","MigrationName":"Prevent unsupported v1.x upgrades","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8277781Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the built-in roles","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8550385Z","@mt":"Applying migration {MigrationName}","MigrationName":"Assign roles to existing users","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8612245Z","@mt":"Applying migration {MigrationName}","MigrationName":"Check for App instances without Apps","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8743253Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the server license","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.8815886Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the Administrator account","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9062482Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure the public NuGet feed","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9214646Z","@mt":"Applying migration {MigrationName}","MigrationName":"Store the default system configuration","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9307087Z","@mt":"Applying migration {MigrationName}","MigrationName":"Ensure the license supports this version - 5.1.3118.0","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9715524Z","@mt":"Applying migration {MigrationName}","MigrationName":"Ensure the default system configuration has an id","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9787298Z","@mt":"Applying migration {MigrationName}","MigrationName":"Apply master key to app settings","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9833334Z","@mt":"Applying migration {MigrationName}","MigrationName":"Re-encrypt NuGet feed passwords with portable key","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:49.9923523Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default SQL queries","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.0199736Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default queries visible to all users","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.0522565Z","@mt":"Applying migration {MigrationName}","MigrationName":"Configure default signals","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.0691985Z","@mt":"Applying migration {MigrationName}","MigrationName":"Make default signals visible to all users","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.0892630Z","@mt":"Applying migration {MigrationName}","MigrationName":"Map user accounts to the default AD domain, if one is configured","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.0930953Z","@mt":"Applying migration {MigrationName}","MigrationName":"Check for early preview chart format and update","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1002407Z","@mt":"Applying migration {MigrationName}","MigrationName":"Migrate charts to new dashboards","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1104620Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the shared overview dashboard","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1540764Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create the default API key","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1627956Z","@mt":"Applying migration {MigrationName}","MigrationName":"Migrate pins to permalinks","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1660761Z","@mt":"Applying migration {MigrationName}","MigrationName":"Convert app instance input to signal expression","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1818515Z","@mt":"Applying migration {MigrationName}","MigrationName":"Convert retention policy target to signal expression","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.1858537Z","@mt":"Applying migration {MigrationName}","MigrationName":"Convert dashboard chart signals to expressions","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.3422755Z","@mt":"Applying migration {MigrationName}","MigrationName":"Convert default signal ids to expression","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.3456080Z","@mt":"Applying migration {MigrationName}","MigrationName":"Apply groupings to initial signals","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.3786099Z","@mt":"Applying migration {MigrationName}","MigrationName":"Show built-in signals to new users upon creation","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.3915736Z","@mt":"Applying migration {MigrationName}","MigrationName":"Completely remove obsolete email app instances","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.3969741Z","@mt":"Applying migration {MigrationName}","MigrationName":"Rename `Signal.IsRestricted` to `IsProtected`","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4144857Z","@mt":"Applying migration {MigrationName}","MigrationName":"Update existing API keys to store hashes","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4215118Z","@mt":"Applying migration {MigrationName}","MigrationName":"Convert API key configuration to permissions","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4459308Z","@mt":"Applying migration {MigrationName}","MigrationName":"Embed permalinked events in permalink documents","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4506854Z","@mt":"Applying migration {MigrationName}","MigrationName":"Assign index ids to signals","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4546186Z","@mt":"Applying migration {MigrationName}","MigrationName":"Pre-existing dashboards are protected by default","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4634828Z","@mt":"Setting protected flag on {DashboardId}","DashboardId":"dashboard-14"} {"@t":"2019-08-22T18:32:50.4657854Z","@mt":"Applying migration {MigrationName}","MigrationName":"Create retention policy bookmarks","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4692027Z","@mt":"Applying migration {MigrationName}","MigrationName":"User default workspace reflects earlier view","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4735379Z","@mt":"Creating default workspace for {UserId}","UserId":"user-admin"} {"@t":"2019-08-22T18:32:50.4807465Z","@mt":"Applying migration {MigrationName}","MigrationName":"New user defaults include shared dashboards","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4859938Z","@mt":"Applying migration {MigrationName}","MigrationName":"Update app invocation control properties","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4908765Z","@mt":"Applying migration {MigrationName}","MigrationName":"Extend the built-in roles","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.4970124Z","@mt":"Applying migration {MigrationName}","MigrationName":"Set the default roles for new users","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.5012615Z","@mt":"Applying migration {MigrationName}","MigrationName":"Personal dashboards are never protected","SourceContext":"Quince.Storage.Esent.Migration.Migrator","InstanceName":"Quince"} {"@t":"2019-08-22T18:32:50.5061623Z","@mt":"Storage subsystem available"} ``` ## Second Time ``` Starting Seq... Installing service... Creating a new configuration file in C:\ProgramData\Seq\Seq.json... [SC] CreateService SUCCESS Setting service restart policy... [SC] ChangeServiceConfig2 SUCCESS Setting service description... [SC] ChangeServiceConfig2 SUCCESS Service installed successfully. Starting Seq... Waiting up to 15 seconds for the service to start (currently: Stopped)... Started. Startup logs: {"@t":"2019-08-22T18:33:32.1290539Z","@mt":"Seq {SeqVersion} running on OS {OSCaption}","SeqVersion":"5.1.3118","OSCaption":"Microsoft ","SourceContext":"Seq.Server.Features.Diagnostics.EnvironmentInformationWriter"} {"@t":"2019-08-22T18:33:32.1920393Z","@mt":"Running in Windows Service host"} ```

Posted by Brian Harwell 2 months ago