For a while now I get each time I start my server which is running Hangfire immediately following error message:
2024-11-19 09:01:45.0532|0|ERROR|Hangfire.Processing.BackgroundExecution|Execution BackgroundServerProcess is in the Failed state now due to an exception, execution will be retried in no more than 00:00:15 NHibernate.Exceptions.GenericADOException: could not insert:
[Hangfire.FluentNHibernateStorage.Entities._Server#workstation:8136:836b1a05-468e-48a8-a7de-2beeeec226ac][SQL: INSERT INTO `Hangfire_Server` (`Data`, `LastHeartbeat`, `Id`) VALUES (?, ?, ?)]
---> MySql.Data.MySqlClient.MySqlException (0x80004005): Deadlock found when trying to get lock; try restarting transaction at MySql.Data.MySqlClient.MySqlStream.ReadPacketAsync(Boolean execAsync)
...
This is .net 8 with Hangfire 1.8.15 with MySQL Server 8.4.3-1.el9 and following config:
For a while now I get each time I start my server which is running Hangfire immediately following error message:
This is .net 8 with Hangfire 1.8.15 with MySQL Server 8.4.3-1.el9 and following config:
There are no open jobs in the queue and I think everything is running fine but I still get every single time this exception.
Anyone knows what's going on here with the lock?