Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodeguard crashes in first attempt after a db drop #185

Open
RodriFS opened this issue May 31, 2023 · 1 comment
Open

Nodeguard crashes in first attempt after a db drop #185

RodriFS opened this issue May 31, 2023 · 1 comment
Labels

Comments

@RodriFS
Copy link
Contributor

RodriFS commented May 31, 2023

When you drop the DB and then try to start the Nodeguard, it crashes for the first time, and then after the second one it works well.

"Error while migrating","Exception":"System.InvalidOperationException: This NpgsqlTransaction has completed; it is no longer usable.
   at Npgsql.NpgsqlTransaction.CheckReady()
   at Npgsql.NpgsqlTransaction.Commit(Boolean async, CancellationToken cancellationToken)
   at Npgsql.NpgsqlTransaction.Commit()
   at Microsoft.EntityFrameworkCore.Storage.RelationalTransaction.Commit()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade)
   at FundsManager.Data.DbInitializer.Initialize(IServiceProvider serviceProvider) in /Users/rodrifs/Documents/Git/nodeguard/src/Data/DbInitializer.cs:line 73","
@RodriFS RodriFS added the Bug label May 31, 2023
@Jossec101
Copy link
Contributor

Hmm, race condition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants