2022-11-03 11:05:47.606 [INFO] [Program] Application starting...
2022-11-03 11:05:47.645 [INFO] [Program] Using Postgres connection string: Host=timescaledb-alpha.default.svc.cluster.local;Port=5432;Database=ccscan;User ID=postgres;Password==****************;Include Error Detail=true;
2022-11-03 11:05:47.647 [INFO] [Program] Feature flag [MigrateDatabasesAtStartup]: True
2022-11-03 11:05:47.648 [INFO] [Program] Feature flag [ConcordiumNodeImportEnabled]: True
2022-11-03 11:05:47.648 [INFO] [Program] Feature flag [ConcordiumNodeImportValidationEnabled]: False
2022-11-03 11:05:47.721 [INFO] [DatabaseMigrator] Starting database migration...
2022-11-03 11:05:47.747 [INFO] [DatabaseMigrator] Master ConnectionString => Host=timescaledb-alpha.default.svc.cluster.local;Port=5432;Database=postgres;Username=postgres;Password=****************;Include Error Detail=True
2022-11-03 11:05:48.115 [INFO] [DatabaseMigrator] Beginning transaction
2022-11-03 11:05:48.120 [INFO] [DatabaseMigrator] Checking whether journal table exists..
2022-11-03 11:05:48.123 [INFO] [DatabaseMigrator] Fetching list of already executed scripts.
2022-11-03 11:05:48.133 [INFO] [DatabaseMigrator] Beginning transaction
2022-11-03 11:05:48.133 [INFO] [DatabaseMigrator] Checking whether journal table exists..
2022-11-03 11:05:48.134 [INFO] [DatabaseMigrator] Fetching list of already executed scripts.
2022-11-03 11:05:48.136 [INFO] [DatabaseMigrator] Database does not require upgrade.
2022-11-03 11:05:48.136 [INFO] [DatabaseMigrator] Master ConnectionString => Host=timescaledb-alpha.default.svc.cluster.local;Port=5432;Database=postgres;Username=postgres;Password=****************;Include Error Detail=True
2022-11-03 11:05:48.157 [INFO] [DatabaseMigrator] Beginning transaction
2022-11-03 11:05:48.157 [INFO] [DatabaseMigrator] Checking whether journal table exists..
2022-11-03 11:05:48.159 [INFO] [DatabaseMigrator] Fetching list of already executed scripts.
2022-11-03 11:05:48.159 [INFO] [DatabaseMigrator] Beginning transaction
2022-11-03 11:05:48.159 [INFO] [DatabaseMigrator] Checking whether journal table exists..
2022-11-03 11:05:48.160 [INFO] [DatabaseMigrator] Fetching list of already executed scripts.
2022-11-03 11:05:48.161 [INFO] [DatabaseMigrator] Database does not require upgrade.
2022-11-03 11:05:48.161 [INFO] [DatabaseMigrator] Database migration finished successfully
2022-11-03 11:05:48.375 [INFO] [ImportReadController] Awaiting initial import state...
2022-11-03 11:05:48.382 [INFO] [ImportWriteController] Reading initial import state...
2022-11-03 11:05:49.986 [INFO] [ImportWriteController] Initial import state read
2022-11-03 11:05:49.987 [INFO] [ImportReadController] Checking preconditions for importing data from Concordium node...
2022-11-03 11:05:49.988 [INFO] [ImportReadController] Database contains genesis block hash '38bf770b4c247f09e1b62982bb71000c516480c5a2c5214dadac6da4b1ad50e5' which is not one of the known Concordium networks.
2022-11-03 11:05:50.060 [INFO] [NodeSummaryImportController] Starting reading data from Concordium Collector backend...
2022-11-03 11:05:50.127 [INFO] [ImportReadController] Concordium Node says genesis block hash is '38bf770b4c247f09e1b62982bb71000c516480c5a2c5214dadac6da4b1ad50e5' which is not one of the known Concordium networks.
2022-11-03 11:05:50.127 [INFO] [ImportReadController] Genesis block hash of Concordium Node and Database are identical
2022-11-03 11:05:50.130 [INFO] [ImportReadController] Starting reading data from Concordium node...
2022-11-03 11:05:50.623 [DBUG] [AccountLookup] Cache-miss for 71 accounts
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 33 will have its stake reduced to 1998004730352.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 31 will have its stake reduced to 1998004806254.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 64 will have its stake reduced to 1998006341059.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 71 will have its stake reduced to 1998002549714.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 47 will have its stake reduced to 1998005943513.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 46 will have its stake reduced to 1997999923642.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 77 will have its stake reduced to 1998001753276.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 40 will have its stake reduced to 1998006796604.
2022-11-03 11:05:50.874 [INFO] [BakerImportHandler] Baker with id 52 will have its stake reduced to 1998006582866.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 37 will have its stake reduced to 1998005804869.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 32 will have its stake reduced to 1998006926915.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 78 will have its stake reduced to 1998005242764.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 68 will have its stake reduced to 1998005747821.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 80 will have its stake reduced to 1998007077583.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 76 will have its stake reduced to 1998005660957.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 42 will have its stake reduced to 1998004000401.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 59 will have its stake reduced to 1998005920872.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 41 will have its stake reduced to 1998006272804.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 54 will have its stake reduced to 1998005493849.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 36 will have its stake reduced to 1998005273130.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 53 will have its stake reduced to 1998003840622.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 70 will have its stake reduced to 1998005246276.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 45 will have its stake reduced to 1998000184938.
2022-11-03 11:05:50.875 [INFO] [BakerImportHandler] Baker with id 75 will have its stake reduced to 1998006323490.
2022-11-03 11:05:50.926 [INFO] [BakerImportHandler] NextPendingBakerChangeTime set to 11/03/2022 12:16:34 +00:00
2022-11-03 11:05:59.052 [INFO] [ImportWriteController] Stopped
2022-11-03 11:05:59.056 [EROR] [Host] BackgroundService failed
System.InvalidOperationException: Baker did not exist in database
at Application.Api.GraphQL.Import.BakerWriter.<>c__5`1.<UpdateBaker>b__5_0(TSource _) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 54
at Application.Api.GraphQL.Import.BakerWriter.AddOrUpdateBaker[TSource](TSource item, Func`2 bakerIdSelector, Func`2 createNew, Action`2 updateExisting) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 43
at Application.Api.GraphQL.Import.BakerWriter.AddOrUpdateBaker[TSource](TSource item, Func`2 bakerIdSelector, Func`2 createNew, Action`2 updateExisting) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 49
at Application.Api.GraphQL.Import.BakerImportHandler.UpdateCurrentPaydayStatusOnAllBakers(BlockDataPayload payload) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 201
at Application.Api.GraphQL.Import.BakerImportHandler.ApplyBakerChanges(BlockDataPayload payload, RewardsSummary rewardsSummary, ChainParametersState chainParameters, IPendingBakerChangeStrategy pendingChangeStrategy, ImportState importState, BakerUpdateResultsBuilder resultBuilder, Boolean isFirstBlockAfterPayday) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 171
at Application.Api.GraphQL.Import.BakerImportHandler.HandleBakerUpdates(BlockDataPayload payload, RewardsSummary rewardsSummary, ChainParametersState chainParameters, BlockImportPaydayStatus importPaydayStatus, ImportState importState) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 49
at Application.Api.GraphQL.Import.ImportWriteController.HandleCommonWrites(BlockDataPayload payload, ImportState importState) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 174
at Application.Api.GraphQL.Import.ImportWriteController.WriteData(BlockDataPayload payload) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 141
at Application.Api.GraphQL.Import.ImportWriteController.ExecuteAsync(CancellationToken stoppingToken) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 90
at Application.Api.GraphQL.Import.ImportWriteController.ExecuteAsync(CancellationToken stoppingToken) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 84
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
2022-11-03 11:05:59.069 [FATL] [Host] The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
System.InvalidOperationException: Baker did not exist in database
at Application.Api.GraphQL.Import.BakerWriter.<>c__5`1.<UpdateBaker>b__5_0(TSource _) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 54
at Application.Api.GraphQL.Import.BakerWriter.AddOrUpdateBaker[TSource](TSource item, Func`2 bakerIdSelector, Func`2 createNew, Action`2 updateExisting) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 43
at Application.Api.GraphQL.Import.BakerWriter.AddOrUpdateBaker[TSource](TSource item, Func`2 bakerIdSelector, Func`2 createNew, Action`2 updateExisting) in /src/Application/Api/GraphQL/Import/BakerWriter.cs:line 49
at Application.Api.GraphQL.Import.BakerImportHandler.UpdateCurrentPaydayStatusOnAllBakers(BlockDataPayload payload) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 201
at Application.Api.GraphQL.Import.BakerImportHandler.ApplyBakerChanges(BlockDataPayload payload, RewardsSummary rewardsSummary, ChainParametersState chainParameters, IPendingBakerChangeStrategy pendingChangeStrategy, ImportState importState, BakerUpdateResultsBuilder resultBuilder, Boolean isFirstBlockAfterPayday) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 171
at Application.Api.GraphQL.Import.BakerImportHandler.HandleBakerUpdates(BlockDataPayload payload, RewardsSummary rewardsSummary, ChainParametersState chainParameters, BlockImportPaydayStatus importPaydayStatus, ImportState importState) in /src/Application/Api/GraphQL/Import/BakerImportHandler.cs:line 49
at Application.Api.GraphQL.Import.ImportWriteController.HandleCommonWrites(BlockDataPayload payload, ImportState importState) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 174
at Application.Api.GraphQL.Import.ImportWriteController.WriteData(BlockDataPayload payload) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 141
at Application.Api.GraphQL.Import.ImportWriteController.ExecuteAsync(CancellationToken stoppingToken) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 90
at Application.Api.GraphQL.Import.ImportWriteController.ExecuteAsync(CancellationToken stoppingToken) in /src/Application/Api/GraphQL/Import/ImportWriteController.cs:line 84
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
2022-11-03 11:05:59.077 [INFO] [ImportReadController] Stopped
2022-11-03 11:05:59.083 [INFO] [Program] Exiting application!