FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Tenants failed to Delete

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    302
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      derek
      last edited by

      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

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @derek
        last edited by

        @derek If you try to manually delete a tenant does it work? Do you mind sharing the code you used to bulk delete?

        D 1 Reply Last reply Reply Quote 0
        • D
          derek @mark.robustelli
          last edited by

          @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.

          mark.robustelliM 1 Reply Last reply Reply Quote 0
          • mark.robustelliM
            mark.robustelli @derek
            last edited by mark.robustelli

            @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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post