Open Closed

Adding permissions of microservices to Administration service with dbmigrator #5647


User avatar
0
alicaner created

ABP Framework version: 7.0.1 UI Type: Angular Database System: EF Core (PostgreSQL) Tiered (for MVC) or Auth Server Separated (for Angular): auth server seperetad for angular

  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We want to write the permissions to the administration service using dbmigrator in the Definition microservice, but when we run it, we get an error like the 2nd image, what could be the reason?


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

    Hi

    First, you need to make sure that all ABP package versions are the same.

    Then run dotnet clean & dotnet build command.

    BTW, ABP7.0 is based on NET 7.0, you should update the microsoft.extensions.hosting package to version 7.0.1

  • User Avatar
    0
    alicaner created

    Hi

    First, you need to make sure that all ABP package versions are the same.

    Then run dotnet clean & dotnet build command.

    BTW, ABP7.0 is based on NET 7.0, you should update the microsoft.extensions.hosting package to version 7.0.1

    now i am getting an error like this

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the .....DbMigrator.deps.json file with me(under bin/Debug/net7.0)? shiwei.liang@volosoft.com I will check it.

  • User Avatar
    0
    alicaner created

    Hi,

    Can you share the .....DbMigrator.deps.json file with me(under bin/Debug/net7.0)? shiwei.liang@volosoft.com I will check it.

    actually the previous problem is solved

    Do you still want me to share DbMigrator.deps.json? if you want i can share such a problem has arisen

  • User Avatar
    0
    alicaner created

    Hi,

    Can you share the .....DbMigrator.deps.json file with me(under bin/Debug/net7.0)? shiwei.liang@volosoft.com
    I will check it.

    actually the previous problem is solved

    Do you still want me to share DbMigrator.deps.json? if you want i can share such a problem has arisen

    I understand, I guess my new migration will solve this problem, I will try and get back to you.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    alicaner created

    ok I was able to run dbgrator that problem solved

    but I can't see the permissions of the definition service on the frontend, do I need to do anything?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Are there permissions in the database?

    The microservice project uses distributed cache. You can clear the Redis cache and try again.

  • User Avatar
    0
    alicaner created

    Hi,

    Are there permissions in the database?

    The microservice project uses distributed cache. You can clear the Redis cache and try again.

    this problem is solved

    We were able to login, we could see the permissions, but when we request the definition service on the gateway, we get a 403 error.We can see the necessary permission in the user grants.What can be the solution to the problem?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you try clear all Redis cache?

  • User Avatar
    0
    alicaner created

    Can you try clear all Redis cache? unfortunately not successful.

    We preferred to use the abpremoteservice library. For the problem, we made the gateway a remote service. When a request is made to the service, we cannot see anything.

    where can we go wrong?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There could be many reasons for the problem, can you provide the full steps to reproduce the problem, I will check it

  • User Avatar
    0
    alicaner created

    Hi,

    There could be many reasons for the problem, can you provide the full steps to reproduce the problem, I will check it

    If you want, I can send the project to your e-mail and we will progress faster.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Ok, please. my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    alicaner created

    Hi,

    Ok, please. my email is shiwei.liang@volosoft.com

    I sent the project mail

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We preferred to use the abpremoteservice library.

    When you use remote services, you need to install Package Volo.Abp.Http.Client.IdentityModel.Web

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35