Open Closed

Tenant not found! There is no tenant with the tenant id or name: 0b65df65-ff28-3fa0-3b14-3a004052b66f #2271


User avatar
0
abpdeveloper@dbizsolution.com created
  • ABP Framework version: v4.4.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Identity Server Separated (Angular)
  • Exception message and stack trace: Attached BIMS Logs
  • Steps to reproduce the issue:" After Login with Tenant and Idle for Some time the Error Occurs. Tried Clearing Redis Cache and Restarting IIS. but still not resolved.


16 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you try to clear the browser cookies?

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Yes, we Tried. But after Multiple Tries, it gets resolved. but we can't as the End User to Follow this workaround. please provide the solution for this issue

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://github.com/abpframework/abp/pull/8916

    You can consider to custom the MultiTenancyMiddlewareErrorPageBuilder

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Please Provide us with more Info. we are not sure how to proceed with the Link.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can configure the AbpAspNetCoreMultiTenancyOptions to handle the Tenant not found error.

    If you want to completely rewrite the logic of MultiTenancyMiddleware, you can create a new middleware and use it.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Hi

    Do we need to override the Source of the MultiTenancy and custom built it, it is not working. Can you pls provide alternative solution.

    And why this error occurs.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    And why this error occurs.

    The cookies contain a tenant but the tenant doesn't exist. You can try it in the incognito mode of your browser.

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    And why this error occurs.

    The cookies contain a tenant but the tenant doesn't exist. You can try it in the incognito mode of your browser.

    The tenant exists in the database but still we are getting this error.

    Step 1: The user is using the applicaiton for say 10 minutes. Step2 : After say 10 mins when trying to access the application we get this error, Tenant not found. Step 3: After clearing cache ,it works.

    Need to know why this happens when tenant exists.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    After clearing cache

    The redis? Does this have nothing to do with cookies for you

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    After clearing cache

    The redis?
    Does this have nothing to do with cookies for you

    Yes we do run redis-cli flushall as well

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I can't reproduce it, can we check it remotely? liming.ma@volosoft.com

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    I can't reproduce it, can we check it remotely? liming.ma@volosoft.com

    Can we do it at 4pm IST time. Pls confirm

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    sorry for the delay, My work hours is utc+8

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We found a similar problem, which is under checking.

    https://support.abp.io/QA/Questions/2319#answer-d8f486b3-fc13-3ab4-c83f-3a010c096435

  • User Avatar
    0
    abpdeveloper@dbizsolution.com created

    Ok sure will try that fix.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    👍

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19