-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Started to get an error from OpenId TokenCleanupBackgroundWorker #21024
Comments
hi @espindl You can try to configure the OpenIddict entities to enable the |
hi @espindl Have you tried that? |
Unfortunately not yet. But I will try it today and inform here.... Thank you... |
That worked... Thank you @maliming I modified like these:
|
hi @espindl This has nothing to do with cascade deletion. I think there is a problem with your data. If you can share the detailed Debug log, I can check it again. public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Debug) |
It was happening on prod, and after the DB changes it was resolved, so I do not have any logs now. My understanding about the issue is: Do you think I should revert the changes? @maliming |
We will delete the |
Yes. You can try that. You can share the logs and data in your Database if you get new errors. |
Is there an existing issue for this?
Description
I know this is not directly a bug but it may be directing us to an issue.
I am using Volo.Abp.Account.Web.OpenIddict and Volo.Abp.Identity.Web both Version="8.1.3"
Somehow I started to get a deletion error like this. And it is periodically throwing this.
Why did something like this may happen?
And
How to solve this issue?
Failed executing DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__authorizations_0='?' (DbType = Object)"], CommandType='Text', CommandTimeout='300']"
""DELETE FROM "OpenIddictAuthorizations" AS o
WHERE (@__ef_filter__p_0 OR NOT (o."IsDeleted")) AND o."Id" = ANY (@__authorizations_0)"
23503: update or delete on table "OpenIddictAuthorizations" violates foreign key constraint "FK_OpenIddictTokens_OpenIddictAuthorizations_AuthorizationId" on table "OpenIddictTokens"
Reproduction Steps
I do not know, because it started to happen without any intervention.
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.1.3
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
Linux
Other information
No response
The text was updated successfully, but these errors were encountered: