Open Closed

internal server error on ABP commercial solution runing #2099


User avatar
0
LawrenceKwan created

Hello All,

I am using ABP commercial and I have follow every steps in "Getting Started" (https://docs.abp.io/en/commercial/latest/getting-started-setup-environment?UI=MVC&DB=EF&Tiered=No). However, it is what I get when I running my ABP commercial solution. Please advice.

Best Regards, Lawrence

  • ABP commercial version: v4.3.3
  • UI type:MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:" compile and build, run


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

    hi

    Can you share a screenshot of your solution structure?

  • User Avatar
    0
    LawrenceKwan created

    Hello Here are my solution structure

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You need to run the ABPApplication.IdentityServer, ABPApplication.HttpAPI.Host and ABPApplication.Web.

  • User Avatar
    0
    LawrenceKwan created

    Hello I have set three of them start up when run, but still have error, I can see the swagger now.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @LawrenceKwan, can you check the Redis is running or not? If it is not running please first run it and then run the three project again.

    https://docs.abp.io/en/abp/latest/Startup-Templates/Application#pre-requirements

  • User Avatar
    0
    LawrenceKwan created

    Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer
    • Redis is an open source external tool mainly used for caching purposes and the ABP framework uses it to improve performance (as a distributed cache) of the templates/applications.

    • You can either download it as zip file and run the redis-server.exe file or run via docker container. (https://redis.io/download)

    • It should be up and running to run your application.

    Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio

    You can not check the Redis working condition via Visual Studio. You can check the logs to see your Redis server is running or not.

    If it is not running, you can see a log like in the above image.

    StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 ...

  • User Avatar
    0
    LawrenceKwan created

    After I have start abp commercial soulution, I get 3 tab open, only the swagger show properly, and other 2 are showing error. See this :

    ABPApplication.HttpApi.Host = > swagger tab ABPApplication.IdentityServer = > 500 server error tab ABPApplication.Web => An unhandled exception

    Anything I need to set up for IdentityServer? I have already input the connection string.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please check the logs of this app, You can use dotnet run command to run this.

  • User Avatar
    0
    LawrenceKwan created

    The HTTP 500 Error has been fix, is because of database connection string issue.

    And I find the below logs:

    2021-11-10 15:04:33.576 +08:00 [WRN] It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 1s ago, last-write: 1s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 189s ago, v: 2.0.593.37019 StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 1s ago, last-write: 1s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 189s ago, v: 2.0.593.37019 at StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Object configuration, TextWriter log) in C:\projects\stackexchange-redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 941 at StackExchange.Redis.ConnectionMultiplexer.Connect(String configuration, TextWriter log) in C:\projects\stackexchange-redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:line 903 at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.Connect() at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.Set(String key, Byte[] value, DistributedCacheEntryOptions options) at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass50_0.

    ** if it need to host redis server myself?**

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer
    • Redis is an open source external tool mainly used for caching purposes and the ABP framework uses it to improve performance (as a distributed cache) of the templates/applications.

    • You can either download it as zip file and run the redis-server.exe file or run via docker container. (https://redis.io/download)

    • It should be up and running to run your application.

    Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio

    You can not check the Redis working condition via Visual Studio. You can check the logs to see your Redis server is running or not.

    If it is not running, you can see a log like in the above image.

    StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 ...

    Hi @LawrenceKwan, as I've mentioned above you need to install the Redis and run it to be able to run the application.

  • User Avatar
    0
    LawrenceKwan created

    EngincanV Thanks for update.

    I do reserch on abp commercial document web https://docs.abp.io/en/commercial/latest Dont find any requisition before running ABP commercial and we at the moment dont have redis server in our system arthecture. As I am doing proof of concept for web module, could I disable redis now ? Or I must set up a redis server?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    If you have a tiered solution you need to use the Redis to share data between layers. (https://github.com/abpframework/abp/issues/5023#issuecomment-687854205)

    You can see the pre-requirements for the application template by reading this document .

  • User Avatar
    0
    LawrenceKwan created

    After I add redis server , every thing is okay Thanks EngincanV.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    You're welcome :)

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