Starts in:
2 DAYS
15 HRS
16 MIN
3 SEC
Starts in:
2 D
15 H
16 M
3 S
Open Closed

Microservice Template is not loading SaaS menus and CMSKit is not showing #6555


User avatar
0
harshgupta created
  • ABP Framework version: v8.0.0
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

We are facing multiple issues with the Microservice templates. We have reviewed many articles but didn’t get proper documentation for the same. We found that multiple users already faced those issues. These are given below.

  1. Saas Menus are not loading properly: Whenever we are creating a new database then Saas Menus are not showing. We deleted and created the new database multiple times, even cleaned the cache, and removed all containers from the docker desktop. Once we were able to see the Saas menus. We keep a copy of the same database. We found that there are some migration issues, but we are not able to find the fix. As of now with the same application, a new database has the same issue. We follow the below article too. https://support.abp.io/QA/Questions/5199/microservices-template-not-loading-administration-menu-after-login#answer-3a0bac8f-4f64-541e-4e01-e66348761c4f

In the above article, you mention adding SaasApplicationContracts manually to the Admin service. Could you please guide me on how to add this?

  1. We added a new service with the name CmsService and we are trying to add CMSkitPro to this. We added this successfully, but we are not able to view the menus. We can view the features, permission, and everything else.

I have followed this article. https://support.abp.io/QA/Questions/5930/MicroService-Pro-add-CmsKit-Pro-Menu-is-missing


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

    What is the result of https://localhost:44325/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0

  • User Avatar
    0
    harshgupta created

    What is the result of https://localhost:44325/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0

    Here is the response

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the JSON of this endpoint with liming.ma@volosoft.com

  • User Avatar
    0
    harshgupta created

    liming.ma@volosoft.com

    Please check, I shared the json by email.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    There are no SAAS permissions in your grantedPolicies

    "auth": {
            "grantedPolicies": {
                "AbpIdentity.Roles": true,
                "AbpIdentity.Roles.Create": true,
                "AbpIdentity.Roles.Update": true,
                "AbpIdentity.Roles.Delete": true,
                "AbpIdentity.Roles.ManagePermissions": true,
                "AuditLogging.ViewChangeHistory:Volo.Abp.Identity.IdentityRole": true,
                "AbpIdentity.Users": true,
                "AbpIdentity.Users.Create": true,
                "AbpIdentity.Users.Update": true,
                "AbpIdentity.Users.Delete": true,
                "AbpIdentity.Users.ManagePermissions": true,
                "AbpIdentity.Users.Update.ManageRoles": true,
                "AbpIdentity.Users.Update.ManageOU": true,
                "AuditLogging.ViewChangeHistory:Volo.Abp.Identity.IdentityUser": true,
                "AbpIdentity.Users.Impersonation": true,
                "AbpIdentity.Users.Import": true,
                "AbpIdentity.Users.Export": true,
                "AbpIdentity.Users.ViewDetails": true,
                "AbpIdentity.OrganizationUnits": true,
                "AbpIdentity.OrganizationUnits.ManageOU": true,
                "AbpIdentity.OrganizationUnits.ManageRoles": true,
                "AbpIdentity.OrganizationUnits.ManageMembers": true,
                "AbpIdentity.ClaimTypes": true,
                "AbpIdentity.ClaimTypes.Create": true,
                "AbpIdentity.ClaimTypes.Update": true,
                "AbpIdentity.ClaimTypes.Delete": true,
                "AbpIdentity.SettingManagement": true,
                "AbpIdentity.SecurityLogs": true,
                "AbpAccount.SettingManagement": true,
                "FeatureManagement.ManageHostFeatures": true,
                "SettingManagement.Emailing": true,
                "SettingManagement.Emailing.Test": true,
                "SettingManagement.TimeZone": true,
                "AuditLogging.AuditLogs": true,
                "LanguageManagement.LanguageTexts": true,
                "LanguageManagement.LanguageTexts.Edit": true,
                "LanguageManagement.Languages": true,
                "LanguageManagement.Languages.Create": true,
                "LanguageManagement.Languages.Edit": true,
                "LanguageManagement.Languages.ChangeDefault": true,
                "LanguageManagement.Languages.Delete": true,
                "TextTemplateManagement.TextTemplates": true,
                "TextTemplateManagement.TextTemplates.EditContents": true,
                "VineforceTest1.Dashboard.Host": true,
                "Saas.Editions": true,
                "Saas.Editions.Create": true,
                "Saas.Editions.Delete": true,
                "Saas.Editions.ManageFeatures": true,
                "Saas.Editions.Update": true,
                "Saas.Tenants": true,
                "Saas.Tenants.SetPassword": true,
                "Saas.Tenants.ManageConnectionStrings": true,
                "Saas.Tenants.Create": true,
                "Saas.Tenants.Impersonation": true,
                "Saas.Tenants.Update": true,
                "Saas.Tenants.ManageFeatures": true,
                "Saas.Tenants.Delete": true,
                "Payment.Plans": true,
                "Payment.Plans.Create": true,
                "Payment.Plans.Delete": true,
                "Payment.Plans.Update": true,
                "Payment.Plans.GatewayPlans": true,
                "Payment.Plans.GatewayPlans.Update": true,
                "Payment.Plans.GatewayPlans.Create": true,
                "Payment.Plans.GatewayPlans.Delete": true,
                "Payment.PaymentRequests": true,
                "CmsKitPublic.Comments": true,
                "CmsKitPublic.Comments.DeleteAll": true,
                "CmsKit.Pages": true,
                "CmsKit.Pages.Create": true,
                "CmsKit.Pages.Update": true,
                "CmsKit.Pages.Delete": true,
                "CmsKit.Pages.SetAsHomePage": true,
                "CmsKit.Blogs": true,
                "CmsKit.Blogs.Update": true,
                "CmsKit.Blogs.Create": true,
                "CmsKit.Blogs.Features": true,
                "CmsKit.Blogs.Delete": true,
                "CmsKit.Tags": true,
                "CmsKit.Tags.Update": true,
                "CmsKit.Tags.Delete": true,
                "CmsKit.Tags.Create": true,
                "CmsKit.Comments": true,
                "CmsKit.Comments.Delete": true,
                "CmsKit.PageFeedback": true,
                "CmsKit.PageFeedback.Delete": true,
                "CmsKit.PageFeedback.Update": true,
                "CmsKit.PageFeedback.Settings": true,
                "CmsKit.BlogPosts": true,
                "CmsKit.BlogPosts.Publish": true,
                "CmsKit.BlogPosts.Delete": true,
                "CmsKit.BlogPosts.Create": true,
                "CmsKit.BlogPosts.Update": true,
                "CmsKit.Menus": true,
                "CmsKit.Menus.Create": true,
                "CmsKit.Menus.Delete": true,
                "CmsKit.Menus.Update": true,
                "CmsKit.Poll": true,
                "CmsKit.Poll.Update": true,
                "CmsKit.Poll.Delete": true,
                "CmsKit.Poll.Create": true,
                "CmsKit.UrlShorting": true,
                "CmsKit.UrlShorting.Delete": true,
                "CmsKit.UrlShorting.Update": true,
                "CmsKit.UrlShorting.Create": true,
                "CmsKit.Newsletter": true,
                "CmsKit.GlobalResources": true,
                "CmsKit.SettingManagement": true,
                "ProductService.Products": true,
                "ProductService.Products.Create": true,
                "ProductService.Products.Delete": true,
                "ProductService.Products.Edit": true,
                "OpenIddictPro.Application": true,
                "OpenIddictPro.Application.Create": true,
                "OpenIddictPro.Application.Update": true,
                "AuditLogging.ViewChangeHistory:Volo.Abp.OpenIddict.Pro.Applications.Application": true,
                "OpenIddictPro.Application.Delete": true,
                "OpenIddictPro.Application.ManagePermissions": true,
                "OpenIddictPro.Scope": true,
                "OpenIddictPro.Scope.Delete": true,
                "AuditLogging.ViewChangeHistory:Volo.Abp.OpenIddict.Pro.Scopes.Scope": true,
                "OpenIddictPro.Scope.Create": true,
                "OpenIddictPro.Scope.Update": true
            }
    
  • User Avatar
    0
    harshgupta created

    yes, I didn't change anything. I just created a new database.

  • User Avatar
    0
    harshgupta created

    can we check together in 30 mins?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can debug the StaticPermissionSaver on your local.

    Remove administration service from tye.yaml.

    Debug the administration service to see what happened on StaticPermissionSaver

  • User Avatar
    0
    harshgupta created

    Maliming,

    I am trying to investigate the same issue from last many days. if you can check on my side I think it will be easy and fast. Actually, this will help us to move further. We are on the first step from the day one.

    I am sure that I have a minor issue and your help will save a lot of time.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I tried your code, and it's no problem, but it doesn't work on your computer. Remote debugging is very inconvenient, so you can debug it first.

  • User Avatar
    0
    harshgupta created

    I can understand, actually I wanted to check what steps are you following and why I am not able to view any log in docker.

  • User Avatar
    0
    harshgupta created

    Now I changed the database and I am getting different error. I found that the OpenIdDictApplication Id exists in other database not in the connected database. so it seems there is an issue with the cache. could you please guide me how to clear the cache for each and everything,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It is very likely that your cache has not been cleared successfully.

    You can view Redis data after flush. or delete and create a new Redis container.

  • User Avatar
    0
    harshgupta created

    Hi Maliming,

    I just re-installed everything including the window and it seems it is working for now. could you please check the CMSKItPro module issue as every page is giving the Not Found error?

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Did you push your new changes to AbpVineforceTest1 repo?

  • User Avatar
    0
    harshgupta created

    There is no change in the project. I am getting the 404 with CMSkitPro module.

    and I am getting 404 error for all CMS menus

  • User Avatar
    0
    harshgupta created

    Hi Maliming, any suggestion about the above issue?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#updating-gateways

  • User Avatar
    0
    harshgupta created

    Thanks Maliming, it's working now.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06