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

4

Error deleting a user

Hi. I'm having trouble deleting a user from Seq. The log says: { "@t": "2019-02-21T09:47:25.0568213Z", "@mt": "HTTP {RequestMethod} {RequestPath} responded {StatusCode} in {Elapsed:0.0000} ms", "@r": [ "68.2994" ], "@l": "Error", "@x": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Seq.Server.Data.Users.Deletions.OwnedItemDeletedPolicy`1.<>c__DisplayClass5_0.<CanDelete>b__1()\r\n at Seq.Server.Web.EntityResourceController`2.RemoveEntity(String id)\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": "DELETE", "RequestPath": "/api/users/user-202", "StatusCode": 500, "Elapsed": 68.2993927999229, "ErrorToken": "0830f7b0b3e14f588ae70565a8157d91", "RequestProtocol": "HTTP/1.1", "RequestHost": "XXXXXXXXXXXXXXXXXXXXXXX", "RequestHeaders": { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" }, "SourceContext": "Seq.Server.Web.Middleware.RequestCompletionMiddleware", "RequestId": "80000c0f-0000-0700-b63f-84710c7967bb", "CorrelationId": null } The error message on the settings page: Could not save user An unhandeled error occurred while serving the request

Posted by Erling Brandvik 3 months ago

3

Hosting Seq under a virtual path

Hello, I'm trying to run the Seq docker container and run it under a virtual path at the address http://localhost/seq The documentation states: > To use a specific hostname, or listen at a virtual path on the server, the listen URIs need to be reconfigured. If I edit the Seq.json file and set the listenerUris to this: ``` "api": { "listenUris": [ "http://localhost:80/seq", "http://localhost:5341/seq" ], ``` When I run Seq from within the docker container with the command: ``` /bin/seq-server/Seq run --storage=/data ``` I'm getting the following error: ``` ──────────────────────────────────────── Seq ♦ Machine data, for humans. ─────────── © 2018 Datalust Pty Ltd ──── Running as server; press Ctrl+C to exit. [04:17:21 INF] Seq "5.0.2394" running on OS "Linux 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018" [04:17:22 FTL] Unable to start Kestrel. System.InvalidOperationException: A path base can only be configured using IApplicationBuilder.UsePathBase(). at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.ParseAddress(String address, Boolean& https) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) [04:17:22 FTL] Error running the server application System.InvalidOperationException: A path base can only be configured using IApplicationBuilder.UsePathBase(). at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.ParseAddress(String address, Boolean& https) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start() at Seq.Server.ServiceProcess.ServerService.Start() ``` Is running seq with virtual path base supported? Am I doing it wrong? Secondarily, the docker container seems to always run a script that sets the listener URIs to http://localhost:80,http://localhost:5341. I'm having to bypass the docker entry point to just run the shell interactively and attempt to launch Seq manually. This allows me to modify the Seq.json config and not have the container overwrite the changes when it starts. If the scenario I'm hoping for is supported, is there a correct way I should run the seq docker container and specify the listener url with a virtual path? Thanks for any help!

Posted by Joe Camp 4 months ago