getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
584 stars 206 forks source link

Sentry + Serilog + Autofac: Cannot Access a disposed object #800

Closed Lobosque closed 3 years ago

Lobosque commented 3 years ago

Environment

How do you use Sentry? Sentry.io

Which SDK and version?

    <PackageReference Include="Sentry" Version="3.0.3" />
    <PackageReference Include="Sentry.AspNetCore" Version="3.0.3" />
    <PackageReference Include="Sentry.Serilog" Version="3.0.3" />

Steps to Reproduce

  1. Setup Sentry with Serilog:
        private static void ConfigureLogger()
        {
            _logger = new LoggerConfiguration()
                .MinimumLevel.Information()
                .MinimumLevel.Override("Sentry", LogEventLevel.Debug)
                .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
                .Enrich.FromLogContext()
                .WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] [{Module}] [{Context}] {Message:lj}{NewLine}{Exception}")
                .WriteTo.Sentry(o =>
                {
                    o.Debug = true;
                    o.Dsn = "https://sentryurlhere.com";
                    // Debug and higher are stored as breadcrumbs (default is Information)
                    o.MinimumBreadcrumbLevel = LogEventLevel.Debug;
                    // Warning and higher is sent as event (default is Error)
                    o.MinimumEventLevel = LogEventLevel.Information;
                })
                .CreateLogger();
        }
  2. Register that logger instance as a singleton in an Autofac container:
            builder.RegisterInstance(_logger)
                .As<ILogger>()
                .SingleInstance();      
  3. Start a new scope, and try to log stuff in there. (I have a Quartz job that runs the code below every few seconds)
            using (var scope = TrocoSimplesCompositionRoot.BeginLifetimeScope())
            {
                var mediator = scope.Resolve<IMediator>();
                await mediator.Send(command); //this command only logs "this is a test error" and return
            }
  1. It will log the first few errors, but then something gets disposed inside Sentry and it stops logging everything. The complete log in in an Spoiler Alert at the end of this issue

Expected Result

I expected that the Sentry sink would work fine with my _logger singleton. I expect to use the same _logger instance in many different lifetime scope, even concurrently.

Actual Result

After a few runs of the scheduled job on step three, which logs stuff successfully, something gets disposed inside the Sentry worker, and then nothing gets sent to sentry.io anymore. Apparently things start to go south after a TooManyRequests error (line 535 of the debug output)

Complete Log ``` ------------------------------------------------------------------- You may only use the Microsoft .NET Core Debugger (vsdbg) with Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you develop and test your applications. ------------------------------------------------------------------- Using launch settings from '/home/lobosque/ts/backend/Frontend/Properties/launchSettings.json' [Profile 'Frontend']... Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Frontend.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Step into: Stepping over non-user code 'Frontend.Program.
' Step into: Stepping over non-user code 'Frontend.Program.Main' Step into: Stepping over non-user code 'Frontend.Program.
d__2..ctor' Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Hosting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/netstandard.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Hosting.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Autofac.Extensions.DependencyInjection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Autofac.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Hosting.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.DependencyInjection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Hosting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Server.Kestrel.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Server.Kestrel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Server.IIS.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.RuntimeInformation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Server.IISIntegration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.CommandLine.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.FileProviders.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.FileProviders.Physical.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.FileExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.Binder.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Configuration.UserSecrets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.EntityFrameworkCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Troco.Api.Common.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/AWSSDK.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Kralizek.Extensions.Configuration.AWSSecretsManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.IO.FileSystem.Watcher.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.FileSystemGlobbing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Text.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.CompilerServices.Unsafe.dll'. Module was built without symbols. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Http.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.FileProviders.Composite.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Xml.XDocument.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Private.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Algorithms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Sled.Infrastructure.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Sled.Domain.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.BuildingBlocks.Domain.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Expressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.TypeConverter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Linq.Queryable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Newtonsoft.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.BuildingBlocks.Infrastructure.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Caching.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.EntityFrameworkCore.Relational.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.EntityFrameworkCore.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Npgsql.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.Security.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Data.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.DiagnosticSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Transactions.Local.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Tracing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Threading.ThreadPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Options.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.BuildingBlocks.Application.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Identity.Stores.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Troco.Common.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.ILGeneration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded 'Anonymously Hosted DynamicMethods Assembly'. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/EFCore.NamingConventions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Caching.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Xml.ReaderWriter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Text.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.NetworkInformation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Collections.Specialized.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.ComponentModel.Annotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/MediatR.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Identity.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.ObjectModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Channels.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.X509Certificates.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Collections.NonGeneric.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.NameResolution.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Serialization.Formatters.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.TraceSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.EventLog.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Logging.EventSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Http.Features.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Connections.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.HostFiltering.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.HttpOverrides.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Routing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.ObjectPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Routing.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Serilog.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.BuildingBlocks.EventBus.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Serilog.Sinks.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sentry.Serilog.dll'. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sentry.dll'. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.IO.Compression.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.IO.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Debug: Logging enabled with ConsoleDiagnosticLogger and min level: Debug Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Debug: Using 'GzipBufferedRequestBodyHandler' body compression strategy with level Optimal. Debug: Initializing Hub for Dsn: 'https://7fa1d5adbb654d54941b1f123f4604e4@o516535.ingest.sentry.io/5623111'. Debug: Registering integration: 'AppDomainUnhandledExceptionIntegration'. Debug: Registering integration: 'AppDomainProcessExitIntegration'. Debug: New scope pushed. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Hangfire.Core.dll'. Module was built without symbols. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Components.Server.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Blazorise.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Blazorise.Bootstrap.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Blazorise.Icons.FontAwesome.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Rollbar.NetPlatformExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Rollbar.NetCore.AspNet.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Loader.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Frontend.Views.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Razor.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.Razor.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.AspNetCore.Mvc.Versioning.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Swashbuckle.AspNetCore.SwaggerGen.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Resources.ResourceManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Authentication.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Authentication.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Claims.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Authorization.Policy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Authorization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.DataAnnotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.RazorPages.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Razor.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.ViewFeatures.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Components.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.JSInterop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.DataProtection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.DataProtection.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Cryptography.Internal.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Antiforgery.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.WebEncoders.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Text.Encodings.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Intrinsics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Mvc.TagHelpers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.SignalR.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.SignalR.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.SignalR.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.StaticFiles.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Components.Authorization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.WebSockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Http.Connections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.SignalR.Protocols.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Hangfire.PostgreSql.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Hangfire.AspNetCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Hangfire.MemoryStorage.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Rollbar.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Banking.Infrastructure.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.TrocoSimples.Infrastructure.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Sled.Application.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Banking.Application.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.TrocoSimples.Application.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.Localization.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Runtime.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Threading.Tasks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/Microsoft.Win32.Registry.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/System.IO.Pipelines.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Diagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.HttpsPolicy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Hangfire.BackgroundJobServer: Information: Starting Hangfire Server using job storage: 'PostgreSQL Server: Host: database-1.cimyatvarevu.sa-east-1.rds.amazonaws.com, DB: trocosimples, Schema: hangfire' info: Hangfire.BackgroundJobServer[0] Starting Hangfire Server using job storage: 'PostgreSQL Server: Host: database-1.cimyatvarevu.sa-east-1.rds.amazonaws.com, DB: trocosimples, Schema: hangfire' Hangfire.BackgroundJobServer: Information: Using the following options for SQL Server job storage: info: Hangfire.BackgroundJobServer[0] Using the following options for SQL Server job storage: info: Hangfire.BackgroundJobServer[0] Queue poll interval: 00:00:15. Hangfire.BackgroundJobServer: Information: Queue poll interval: 00:00:15. info: Hangfire.BackgroundJobServer[0] Invisibility timeout: 1.12:00:00. Hangfire.BackgroundJobServer: Information: Invisibility timeout: 1.12:00:00. Hangfire.BackgroundJobServer: Information: Using the following options for Hangfire Server: Worker count: 6 Listening queues: 'default' Shutdown timeout: 00:00:15 Schedule polling interval: 00:00:15 info: Hangfire.BackgroundJobServer[0] Using the following options for Hangfire Server: Worker count: 6 Listening queues: 'default' Shutdown timeout: 00:00:15 Schedule polling interval: 00:00:15 Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Process.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Serilog.Extensions.Logging.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Dapper.dll'. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Quartz.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.TrocoSimples.Domain.dll'. Symbols loaded. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Polly.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Sled.Modules.Sled.IntegrationEvents.dll'. Symbols loaded. [08:11:46 INF] [TrocoSimples] [] Quartz starting... Info: Capturing event. info: Hangfire.Server.BackgroundServerProcess[0] Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf successfully announced in 226.983 ms Hangfire.Server.BackgroundServerProcess: Information: Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf successfully announced in 226.983 ms Debug: Running main event processor on: Event b15e209ee8f948548360b743607a18b5 info: Hangfire.Server.BackgroundServerProcess[0] Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, Worker, DelayedJobScheduler, RecurringJobScheduler... Hangfire.Server.BackgroundServerProcess: Information: Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, Worker, DelayedJobScheduler, RecurringJobScheduler... info: Hangfire.Server.BackgroundServerProcess[0] Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf all the dispatchers started Hangfire.Server.BackgroundServerProcess: Information: Server 8ea96ee7-051d-43a1-8ee7-8adfcff3b5bf all the dispatchers started Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/System.Configuration.ConfigurationManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Csp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. [08:11:47 INF] [TrocoSimples] [] Quartz started. Info: Capturing event. Debug: Running main event processor on: Event 59c6274445b848069d848d885ff16185 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope b15e209ee8f948548360b743607a18b5 handed off to transport. #2 in queue. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.ServicePoint.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Net.WebProxy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Components.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Http.Connections.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Net.Http.Headers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Security.Cryptography.Encoding.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Formats.Asn1.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Diagnostics.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Swashbuckle.AspNetCore.Swagger.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/home/lobosque/ts/backend/Frontend/bin/Debug/net5.0/Microsoft.OpenApi.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Html.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.Extensions.FileProviders.Embedded.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/5.0.0/Microsoft.AspNetCore.Diagnostics.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. info: Microsoft.Hosting.Lifetime[0] Now listening on: http://[::]:5000 Microsoft.Hosting.Lifetime: Information: Now listening on: http://[::]:5000 Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development Microsoft.Hosting.Lifetime: Information: Hosting environment: Development info: Microsoft.Hosting.Lifetime[0] Content root path: /home/lobosque/ts/backend/Frontend Microsoft.Hosting.Lifetime: Information: Content root path: /home/lobosque/ts/backend/Frontend Debug: Envelope b15e209ee8f948548360b743607a18b5 successfully received by Sentry. Debug: Envelope 59c6274445b848069d848d885ff16185 handed off to transport. #1 in queue. Debug: Envelope 59c6274445b848069d848d885ff16185 successfully received by Sentry. [08:11:53 INF] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event 2491843745bd4e868033b7e654dd7939 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:11:53 INF] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event 708e3ce490e94bfba8432454da8d288f Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope 2491843745bd4e868033b7e654dd7939 handed off to transport. #2 in queue. [08:11:53 ERR] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] this is a test error Info: Capturing event. Debug: Running main event processor on: Event 8a3887e7be1c4affb63967285afb6c2c Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:11:53 INF] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event cf8426d3280d4385a7e4e6d0e72f9fc3 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:11:53 INF] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event 933321f96f7d4fe4bbdafed5e929bf67 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:11:53 INF] [TrocoSimples] [Command:95f827f5-262b-4dc3-a535-7f906d507a9e] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event e16cbc6028c141bb9059775ceefea495 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope 2491843745bd4e868033b7e654dd7939 successfully received by Sentry. Debug: Envelope 708e3ce490e94bfba8432454da8d288f handed off to transport. #5 in queue. Debug: Envelope 708e3ce490e94bfba8432454da8d288f successfully received by Sentry. Debug: Envelope 8a3887e7be1c4affb63967285afb6c2c handed off to transport. #4 in queue. Debug: Envelope 8a3887e7be1c4affb63967285afb6c2c successfully received by Sentry. Debug: Envelope cf8426d3280d4385a7e4e6d0e72f9fc3 handed off to transport. #3 in queue. Debug: Envelope cf8426d3280d4385a7e4e6d0e72f9fc3 successfully received by Sentry. Debug: Envelope 933321f96f7d4fe4bbdafed5e929bf67 handed off to transport. #2 in queue. Debug: Envelope 933321f96f7d4fe4bbdafed5e929bf67 successfully received by Sentry. Debug: Envelope e16cbc6028c141bb9059775ceefea495 handed off to transport. #1 in queue. Debug: Envelope e16cbc6028c141bb9059775ceefea495 successfully received by Sentry. [08:12:02 INF] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event f06de4be683b4aea8815236ea9e8d84e Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:02 INF] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event dc98858d0b03409db111522e803ba0c3 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:02 ERR] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] this is a test error Info: Capturing event. Debug: Running main event processor on: Event 23d1b2c84efa4dfe8263f33017af13be Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope f06de4be683b4aea8815236ea9e8d84e handed off to transport. #3 in queue. [08:12:02 INF] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event d6b04573143a42688d4bff766f66c5f3 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:02 INF] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event af9a0e55a213482882934144ef49eaa6 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:02 INF] [TrocoSimples] [Command:d23400be-6414-41d8-a8c3-5406267811f7] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event ab2f988c07fa403e8c862e494bd9c125 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope f06de4be683b4aea8815236ea9e8d84e successfully received by Sentry. Debug: Envelope dc98858d0b03409db111522e803ba0c3 handed off to transport. #5 in queue. Debug: Envelope dc98858d0b03409db111522e803ba0c3 successfully received by Sentry. Debug: Envelope 23d1b2c84efa4dfe8263f33017af13be handed off to transport. #4 in queue. Debug: Envelope 23d1b2c84efa4dfe8263f33017af13be successfully received by Sentry. Debug: Envelope d6b04573143a42688d4bff766f66c5f3 handed off to transport. #3 in queue. Debug: Envelope d6b04573143a42688d4bff766f66c5f3 successfully received by Sentry. Debug: Envelope af9a0e55a213482882934144ef49eaa6 handed off to transport. #2 in queue. Debug: Envelope af9a0e55a213482882934144ef49eaa6 successfully received by Sentry. Debug: Envelope ab2f988c07fa403e8c862e494bd9c125 handed off to transport. #1 in queue. Debug: Envelope ab2f988c07fa403e8c862e494bd9c125 successfully received by Sentry. [08:12:11 INF] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event aa946c80537b45969d63d61cee0d2a5d Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:11 INF] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event a4332b74de344702b060f70a0d494c00 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope aa946c80537b45969d63d61cee0d2a5d handed off to transport. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:11 ERR] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] this is a test error Info: Capturing event. Debug: Running main event processor on: Event e955db6d482f4706821f556c0d8515f5 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:11 INF] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event 820afbc67e354c479bc53b400580e70f Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:11 INF] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event 0db119bb37d34a2eb856d70bc2948051 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:11 INF] [TrocoSimples] [Command:20040b61-4b5e-49ab-8236-de80ae894dea] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event 3088eda8b6264beaa4312055e8ee60ba Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope aa946c80537b45969d63d61cee0d2a5d successfully received by Sentry. Debug: Envelope a4332b74de344702b060f70a0d494c00 handed off to transport. #5 in queue. Debug: Envelope a4332b74de344702b060f70a0d494c00 successfully received by Sentry. Debug: Envelope e955db6d482f4706821f556c0d8515f5 handed off to transport. #4 in queue. Debug: Envelope e955db6d482f4706821f556c0d8515f5 successfully received by Sentry. Debug: Envelope 820afbc67e354c479bc53b400580e70f handed off to transport. #3 in queue. Debug: Envelope 820afbc67e354c479bc53b400580e70f successfully received by Sentry. Debug: Envelope 0db119bb37d34a2eb856d70bc2948051 handed off to transport. #2 in queue. Debug: Envelope 0db119bb37d34a2eb856d70bc2948051 successfully received by Sentry. Debug: Envelope 3088eda8b6264beaa4312055e8ee60ba handed off to transport. #1 in queue. Debug: Envelope 3088eda8b6264beaa4312055e8ee60ba successfully received by Sentry. [08:12:20 INF] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event 4b140556de6d4611bf264e5ae81d539f Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:20 INF] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event bef32fe79a7f4617813f8367b6f6d983 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:20 ERR] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] this is a test error Debug: Envelope 4b140556de6d4611bf264e5ae81d539f handed off to transport. #2 in queue. Info: Capturing event. Debug: Running main event processor on: Event 150cbf00d98c4df384ea128540a42217 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:20 INF] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event 39d4479745e04d35a3ba8404b88a0a6d Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:20 INF] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event d6bb84384d38482ebb928d1601ba623b Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:20 INF] [TrocoSimples] [Command:8181f92e-d9d2-49e1-96ea-db576cec2cdb] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event 61898405bb364226be8ed5c2fda27573 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope 4b140556de6d4611bf264e5ae81d539f successfully received by Sentry. Debug: Envelope bef32fe79a7f4617813f8367b6f6d983 handed off to transport. #5 in queue. Debug: Envelope bef32fe79a7f4617813f8367b6f6d983 successfully received by Sentry. Debug: Envelope 150cbf00d98c4df384ea128540a42217 handed off to transport. #4 in queue. Debug: Envelope 150cbf00d98c4df384ea128540a42217 successfully received by Sentry. Debug: Envelope 39d4479745e04d35a3ba8404b88a0a6d handed off to transport. #3 in queue. Debug: Envelope 39d4479745e04d35a3ba8404b88a0a6d successfully received by Sentry. Debug: Envelope d6bb84384d38482ebb928d1601ba623b handed off to transport. #2 in queue. Debug: Envelope d6bb84384d38482ebb928d1601ba623b successfully received by Sentry. Debug: Envelope 61898405bb364226be8ed5c2fda27573 handed off to transport. #1 in queue. Debug: Envelope 61898405bb364226be8ed5c2fda27573 successfully received by Sentry. [08:12:29 INF] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event e4f0f51f4f00477482172f64fa2691d6 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:29 INF] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event 7e23a6e8f9f54150b9271cb7ff073fbb Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope e4f0f51f4f00477482172f64fa2691d6 handed off to transport. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:29 ERR] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] this is a test error Info: Capturing event. Debug: Running main event processor on: Event 7379c334873a44dc8c10ab2a54514f3f Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:29 INF] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event 6f58fe69ccdf4ef592502ff0d2ac0610 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:29 INF] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event 0dcae69cda964352b20e77804b0ae19f Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:29 INF] [TrocoSimples] [Command:ffc352a5-759b-430f-bd65-c450656bb8e4] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event 22427189cfa84ef694538965ec2eb520 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope e4f0f51f4f00477482172f64fa2691d6 successfully received by Sentry. Debug: Envelope 7e23a6e8f9f54150b9271cb7ff073fbb handed off to transport. #5 in queue. Debug: Envelope 7e23a6e8f9f54150b9271cb7ff073fbb successfully received by Sentry. Debug: Envelope 7379c334873a44dc8c10ab2a54514f3f handed off to transport. #4 in queue. Debug: Envelope 7379c334873a44dc8c10ab2a54514f3f successfully received by Sentry. Debug: Envelope 6f58fe69ccdf4ef592502ff0d2ac0610 handed off to transport. #3 in queue. Debug: Envelope 6f58fe69ccdf4ef592502ff0d2ac0610 successfully received by Sentry. Debug: Envelope 0dcae69cda964352b20e77804b0ae19f handed off to transport. #2 in queue. Debug: Envelope 0dcae69cda964352b20e77804b0ae19f successfully received by Sentry. Debug: Envelope 22427189cfa84ef694538965ec2eb520 handed off to transport. #1 in queue. Error: Sentry rejected the envelope 22427189cfa84ef694538965ec2eb520. Status code: TooManyRequests. Error detail: event rejected due to rate limit. Error causes: . [08:12:38 INF] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event 451b0f5abd7349c08207e9f24cb352f5 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:38 INF] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event 3d8286bdfc4e4858a457ca30cbabb06a Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:38 ERR] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] this is a test error Info: Capturing event. Debug: Running main event processor on: Event 2084ff4e671443689064c3abafea9c57 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Error: Sentry rejected the envelope 451b0f5abd7349c08207e9f24cb352f5. Status code: TooManyRequests. Error detail: . Debug: Envelope 451b0f5abd7349c08207e9f24cb352f5 handed off to transport. #2 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:38 INF] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Info: Capturing event. Debug: Running main event processor on: Event a603000ee46f4d1891dc43df3d2338bf Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope 3d8286bdfc4e4858a457ca30cbabb06a handed off to transport. #2 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:38 INF] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event fb26c9b4cad84a22a376afaf1dedc0f4 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:38 INF] [TrocoSimples] [Command:641572a6-20f9-4208-9a3c-b94c9867efb5] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event b458520c41ce4faea898834d28343646 Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.0/System.IO.MemoryMappedFiles.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Error: Error while processing event 3d8286bdfc4e4858a457ca30cbabb06a: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #2 in queue. Debug: Envelope 2084ff4e671443689064c3abafea9c57 handed off to transport. #4 in queue. Error: Error while processing event 2084ff4e671443689064c3abafea9c57: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #4 in queue. Debug: Envelope a603000ee46f4d1891dc43df3d2338bf handed off to transport. #3 in queue. Error: Error while processing event a603000ee46f4d1891dc43df3d2338bf: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #3 in queue. Debug: Envelope fb26c9b4cad84a22a376afaf1dedc0f4 handed off to transport. #2 in queue. Error: Error while processing event fb26c9b4cad84a22a376afaf1dedc0f4: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #2 in queue. Debug: Envelope b458520c41ce4faea898834d28343646 handed off to transport. #1 in queue. Error: Error while processing event b458520c41ce4faea898834d28343646: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. [08:12:47 INF] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] Executing command ProcessInternalCommandsCommand Info: Capturing event. Debug: Running main event processor on: Event 6c5c8de019444904acc7cca7131b19c9 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:47 INF] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] --> PRE COMMIT Info: Capturing event. Debug: Running main event processor on: Event e48afe868f214cf1b765e806479efe38 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope 6c5c8de019444904acc7cca7131b19c9 handed off to transport. #1 in queue. Error: Error while processing event 6c5c8de019444904acc7cca7131b19c9: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:47 ERR] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] this is a test error Info: Capturing event. Debug: Running main event processor on: Event c95d77b8201a4aa396cbf325ff6e5ac5 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope e48afe868f214cf1b765e806479efe38 handed off to transport. #1 in queue. Error: Error while processing event e48afe868f214cf1b765e806479efe38: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:47 INF] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] Entity Framework Core 5.0.0 initialized 'DataContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: SensitiveDataLoggingEnabled using snake-case naming (culture=) Debug: Envelope c95d77b8201a4aa396cbf325ff6e5ac5 handed off to transport. #1 in queue. Info: Capturing event. Debug: Running main event processor on: Event a8af0c27f1284d6ba936ade8505cfe6d Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Error: Error while processing event c95d77b8201a4aa396cbf325ff6e5ac5: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:47 INF] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] --> POST COMMIT Info: Capturing event. Debug: Running main event processor on: Event 29425a46c3024ef38109868201889b61 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope a8af0c27f1284d6ba936ade8505cfe6d handed off to transport. #1 in queue. Error: Error while processing event a8af0c27f1284d6ba936ade8505cfe6d: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. [08:12:47 INF] [TrocoSimples] [Command:3e021884-0a29-4317-8118-ee65088fe449] Command ProcessInternalCommandsCommand processed successful Info: Capturing event. Debug: Running main event processor on: Event bfdd81b97fca4628b3bdd9a9e6c27537 Debug: No Exception and AttachStacktrace is off. No stack trace will be collected. Debug: Envelope 29425a46c3024ef38109868201889b61 handed off to transport. #1 in queue. Error: Error while processing event 29425a46c3024ef38109868201889b61: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. Debug: Envelope queued up. Debug: Configuring the scope. Debug: Envelope bfdd81b97fca4628b3bdd9a9e6c27537 handed off to transport. #1 in queue. Error: Error while processing event bfdd81b97fca4628b3bdd9a9e6c27537: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.EmptyContent'. at System.Net.Http.HttpContent.CheckDisposed() at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at Sentry.Internal.Http.HttpTransport.SendEnvelopeAsync(Envelope envelope, CancellationToken cancellationToken) in /_/src/Sentry/Internal/Http/HttpTransport.cs:line 163 at Sentry.Internal.BackgroundWorker.WorkerAsync() in /_/src/Sentry/Internal/BackgroundWorker.cs:line 134. #1 in queue. The program '[21081] Frontend.dll' has exited with code 0 (0x0). ```
Lobosque commented 3 years ago

This TooManyRequests error also makes me wonder: 1 - Is there an option to send errors in batches? 2 - Is there a way to throttle requests to sentry to avoid the TooManyRequests scenario? Having bursts of errors is a common scenario.

Tyrrrz commented 3 years ago

@Lobosque hi. Are you running on .net5.0?

Tyrrrz commented 3 years ago

Ok I'm able to reproduce this bug and this is the weirdest shit I've ever seen.

So the main point of interest are the following lines:

https://github.com/getsentry/sentry-dotnet/blob/54af283fa2c788e5416c23dbba5f55c6698c5b94/src/Sentry/Internal/Http/HttpTransport.cs#L111-L113

Notice that the response is wrapped in a using, so it should be disposed after the execution scope is popped. In any case, the Dispose() method should not be called earlier than await _httpClient.SendAsync(request, cancellationToken) finishes, right? Well, somehow it does.

When it gets a unsuccessful error from relay (429 error in this case), await _httpClient.SendAsync(request, cancellationToken) somehow finishes executing BEFORE the response is fully processed. To illustrate what I mean, on a request that results in an error, the following breakpoint is hit FIRST:

image

And only then, after that, it hits this one:

image

If I put a breakpoint on HttpContent.Dispose(), I can see that all calls come from end of the scope here: https://github.com/getsentry/sentry-dotnet/blob/54af283fa2c788e5416c23dbba5f55c6698c5b94/src/Sentry/Internal/Http/HttpTransport.cs#L161

Additionally, if I remove using var response and replace it with var response, then the bug disappears.

My guess at the moment is that it's a bug, either in .NET or C# compiler. It never is, but right now I don't have a better explanation.

Tyrrrz commented 3 years ago

Another interesting find: on .net461 and .netcoreapp3.1 (i.e. not net5.0) the same code results in a NullReferenceException rather than ObjectDisposedException

image

Lobosque commented 3 years ago

@Tyrrrz is sentry-dotnet/src/Sentry/Internal/Http/HttpTransport.cs the only point where there is a manual disposal?

@Tyrrrz Should we work on a POC to post on the dotnet repository?

@Tyrrrz Is there any configuration I can use to throttle calls so I can avoid the 429 altogether?

Tyrrrz commented 3 years ago

Here is a breakpoint inside HttpClient.SendAsyncCore(...) (which is called by HttpClient.SendAsync(...)) where it gets the response and the content inside is already disposed. It can't get disposed by us at this point, because this method has not finished yet.

image

My new guess is that it could be possible that it reuses EmptyContent and when we get one and dispose it, it stays disposed and causes an error later?

Tyrrrz commented 3 years ago

@Lobosque

is sentry-dotnet/src/Sentry/Internal/Http/HttpTransport.cs the only point where there is a manual disposal?

Yes, that's the only point. The response object is scoped to that method and is not shared.

Should we work on a POC to post on the dotnet repository?

It seems to be leading us in that direction. I will try to pinpoint the bug as close as possible.

Is there any configuration I can use to throttle calls so I can avoid the 429 altogether?

Setting SentryOptions.MaxQueueItems to something lower than the default 30 should help. You can set it either in appsettings.json or via UseSentry(o => o.MaxQueueItems = 15). Let me know if it helps.

Tyrrrz commented 3 years ago

Okay, yeah, it looks like the instance is shared.

image

Basically, we get a response with EmptyContent once, dispose it, then we get another response and HttpClient reuses the same instance of EmptyContent, which is already disposed. I think it's fair to say at this point that it's a bug in .NET. We can temporarily work around it by not disposing the response at all or by checking if the type of content is EmptyContent and not disposing only in that case.

Tyrrrz commented 3 years ago

After 3 hours of debugging, it turns out it's not a bug in .NET :D

The error is, in fact, in RetryAfterHandler here: https://github.com/getsentry/sentry-dotnet/blob/a757f981a8197215a28de038f318cae0ad313b07/src/Sentry/Internal/Http/RetryAfterHandler.cs#L53-L62

It reuses the same instance of HttpResponseMessage which, in turn, reuses the same instance of EmptyContent:

image

Will make a PR with a fix shortly.

Lobosque commented 3 years ago

@Tyrrrz thanks for digging into that and filling a PR so quickly!

Tyrrrz commented 3 years ago

No problem :)

bruno-garcia commented 3 years ago

Awesome debugging session!

Thanks @Tyrrrz for figuring out.

@Lobosque valeu por ter aberto o issue! ❤️