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

Error: "Tenant already exists" when creating an organization after first-time login as superadmin #8734

Open
rahilparsana opened this issue Jan 16, 2025 · 2 comments
Assignees

Comments

@rahilparsana
Copy link

image_2025-01-16_145818629

When I log in as superadmin for the first time and attempt to create an organization, I encounter the following error:
Tenant already exists.

This issue prevents the creation of the organization, even though no tenant has been previously created.

Steps to Reproduce:

Log in as superadmin for the first time.
Go to the "Create Organization" section.
Fill in the required details and attempt to create an organization.
Observe the error message: Tenant already exists.
@rahul-rocket rahul-rocket self-assigned this Jan 17, 2025
@rahul-rocket
Copy link
Collaborator

@rahilparsana This check fails if the superadmin already has a Tenant/Role, which seems to be assigned automatically when the first superadmin account is created. However, we are still unsure how this happens in your specific case.

Need More Information

To investigate further, could you please provide more details on the environment where this issue is occurring? Specifically:

  1. Which API server are you using to connect API?
  • Local
  • Integrated (Staging/QA)
  • Live (Production)
  1. Is this a fresh installation, or was the database pre-populated?

This will help us reproduce the issue and determine the exact cause.

Note: Don't forget to add some short video for better understanding.

@rahilparsana
Copy link
Author

rahilparsana commented Jan 29, 2025

  • Environment Details:
    • API Server: Live (Production)
    • Installation Type: Fresh install with a fresh database
    • Command Used to Start API:
      pm2 start yarn --name "gauzyapi" -- run start:api:prod

I have attached a video demonstrating the issue for better understanding. Please let me know if any additional details are required.

https://drive.google.com/file/d/1Wzg6c7ay7RfNaCYygNCTxcfiqK1nJvXY/view?usp=sharing

Looking forward to your insights on this. Thanks!

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

No branches or pull requests

2 participants