Tenants failed to Delete
-
I bulk deleted a bunch of tenants (cleanup from some automation testing) using the delete async api. Several of these tenants are in a deleting state, and the jobs to delete them errored with:
"2023-09-22 06:15:51.375 PM INFO io.fusionauth.api.service.system.DefaultAsyncTaskManager - [b4d80fc3-e5ca-4fb1-ad86-8f5553fcbc6f] Submit [DeleteTenant] task for [79206dd7-a9ed-4f11-a42b-ddc962d31edf].
2023-09-22 06:15:53.559 PM ERROR io.fusionauth.app.primeframework.error.ExceptionExceptionHandler - An unhandled exception was thrown
java.lang.NullPointerException: null"Is there a way to rerigger the jobs or manually delete these tenants.
Thanks
-
@derek If you try to manually delete a tenant does it work? Do you mind sharing the code you used to bulk delete?
-
@mark-robustelli I used the Ruby Sdk
client = FaClient.client client.delete_tenant_async("the-uuid-of-the-tenant")
When I try to delete again via the API I get an error about it already being deleted. In the UI there is no delete button.
I will say I think the issue is with the server being overloaded, ethier the db or FA. Because most of the tenants I deleted worked fine without issue.
-
@derek Are you able to set one of the "deleting tenants" back to an active state and then try to delete using the front end? Also, what version of FusionAuth are you using? Are there users for the tenant that did not delete as well? Sounds similar to this issue: https://github.com/FusionAuth/fusionauth-issues/issues/2307