Open Closed

Problems creating runnable start-up Blazor solutions from ABP Suite Version 5 - Application and Microservices Templates #2317


User avatar
0
travom created

Are there issues with creating and running Start-up Templates with ABP Commercial version 5? Has this been tested?

I have tried unsuccessfully to create and get running a new Application Template Solution v5 (Tiered, Blazor Server, Entity Framework) and also (when I could not get that successfully running), a microservice Blazor Server, EF solution. Again v5 and frustratingly no luck there also.

In Tye with the microservice everything runs except the Blazor (44314) service. Same as the application template based solution, which is horrendously slow when it does manage to come to life (the Blazor project), albeit it briefly and randomly before failing.

Both template solutions fail with various errors here is one:

Error: There was an unhandled exception on the current circuit, so this circuit will be terminated. For more details turn on detailed exceptions by setting 'DetailedErrors: true' in 'appSettings.Development.json' or set 'CircuitOptions.DetailedErrors'.

I could spend a lot of time documenting all the hours of dramas and problems I've encountered endeavouring to just try and create some new solutions and get them running (documentation needs a lot of improvement), but first I thought I'd reach out and ask if there are known issues with Blazor environments and if so, what are they and are they similar to what troubles I have experienced and possibly when can patches be released?

I note, I last used ABP Commercial with version 4.3, and the above worked pretty well and was straightforward with that version.

I'm using VS 2022 and .NET 6


9 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    I tested what you said for the Microservice Blazor-Wasm and Microservice Blazor-Server templates. Here are my steps:

    1. abp new MicroTemp -t microservice-pro -csf -u blazor or abp new MicroTemp -t microservice-pro -csf -u blazor-server

    2. cd MicroTemp

    3. dotnet build /graphBuild

    4. cd shared/MicroTem.DbMigrator

    5. cd .. && cd ..

    6. I ran the script ./run-tye.ps1

    PS: Commands may vary depending on your operating system.

    Since the slowness varies from person to person, I leave a GiF from the Microservice Blazor-Wasm project below.

    PS: Microservice Blazor-Server provides almost the same experience as Microservice Blazor-Wasm.

    So, if you're talking about a much bigger slowness than in the GiF, maybe it's because the redis server isn't running.

    Redis is a requirement for all the templates you mention, and without it there can be a lot of slowness. For more information 👉 https://stackoverflow.com/a/69371513/9922629

  • User Avatar
    0
    travom created

    Hi, Thanks for your reply…appreciated.

    I followed the same steps…

    1. abp new MicroTemp -t microservice-pro -csf -u blazor or abp new MicroTemp -t microservice-pro -csf -u blazor-server
    2. cd MicroTemp
    3. dotnet build /graphBuild
    4. cd shared/MicroTem.DbMigrator
    5. cd .. && cd ..
    6. I ran the script ./run-tye.ps1

    I managed to get the non-microservice version working, but only after disabling Redis in the appsettings.json files: "Redis": { "IsEnabled": "false", "Configuration": "127.0.0.1" },

    What version of Redis do require to be installed in these environments? My dev environment is latest windows 10, VS 2022. Can you point me to the Redis download (link/instructions) I need to install it (if that is the issue) please? I note all this worked fine with ABP 4.3. Regarding the Microservices solution, I have all projects running ok (tye run), except the Blazor (server) one. Redis is (as I understand) in the Docker images and seems to be running (see screen shot below), but I still cannot successfully run the Blazor app. SQL in the Docker images and the migrations worked fine…so I’m guessing the Docke Your help sorting this issue out is appreciated.

    Best regards,

    Mike

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Please provide the relevant log record for the MicroService Blazor-Server and a minimal, reproducible example, if any, would be greatly appreciated.

    PS: BTW, my Redis server version is the same as in the image you shared.

  • User Avatar
    0
    travom created

    What version of Redis do you run when not using the microservices template which uses the Docker version?

    I had to disable it in these cases to get the standard Application template to work - it does not use the Docker version.

    "Redis": { "IsEnabled": "false", "Configuration": "127.0.0.1" },

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    I am using the image of Redis with version 6.2.5.

    Any chance of sharing the application you're having an error with, deleting all bin/obj and libs folders?

  • User Avatar
    0
    travom created

    I have attached logs for Blazor Server based non-microservices application.

    Extremely slow (unworkable) - this is with Redis enabled, running version in WSL (Windows 10) - redis-server is already the newest version (5:5.0.14-1+deb10u1).

    Your help would be appreciated.

  • User Avatar
    0
    travom created

    I have attached (snippets) logs for Blazor Server based non-microservices application.

    Extremely slow (unworkable) - this is with Redis enabled, running version in WSL (Windows 10) - "redis-server is already the newest version (5:5.0.14-1+deb10u1)".

    Your help would be appreciated. How do I upload file here?

    2021-12-30 11:36:20.128 +10:00 [INF] Request finished HTTP/2 GET https://localhost:44314/_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/abp.js?_v=637745468120000000 - - - 304 - application/javascript 15.0996ms
    2021-12-30 11:36:20.162 +10:00 [INF] Request starting HTTP/2 GET https://localhost:44314/_blazor/initializers - -
    2021-12-30 11:36:20.166 +10:00 [INF] Request starting HTTP/2 GET https://localhost:44314/_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/backgrounds/bg-transparent.png - -
    2021-12-30 11:36:20.167 +10:00 [INF] The file /_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/backgrounds/bg-transparent.png was not modified
    2021-12-30 11:36:20.167 +10:00 [INF] Request finished HTTP/2 GET https://localhost:44314/_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/backgrounds/bg-transparent.png - - - 304 - image/png 0.7792ms
    2021-12-30 11:36:20.168 +10:00 [INF] Executing endpoint 'Blazor initializers'
    2021-12-30 11:36:20.174 +10:00 [INF] Executed endpoint 'Blazor initializers'
    2021-12-30 11:36:20.174 +10:00 [INF] Request finished HTTP/2 GET https://localhost:44314/_blazor/initializers - - - 200 - application/json;+charset=utf-8 11.6727ms
    2021-12-30 11:36:20.209 +10:00 [INF] Request starting HTTP/2 GET https://localhost:44314/_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/fonts/poppins-v6-latin-regular.woff2 - -
    2021-12-30 11:36:20.209 +10:00 [INF] The file /_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/fonts/poppins-v6-latin-regular.woff2 was not modified
    2021-12-30 11:36:20.209 +10:00 [INF] Request finished HTTP/2 GET https://localhost:44314/_content/Volo.Abp.AspNetCore.Components.Web.LeptonTheme/assets/fonts/poppins-v6-latin-regular.woff2 - - - 304 - font/woff2 1.0022ms
    2021-12-30 11:36:20.213 +10:00 [INF] Request starting HTTP/2 POST https://localhost:44314/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
    2021-12-30 11:36:20.217 +10:00 [INF] Executing endpoint '/_blazor/negotiate'
    2021-12-30 11:36:20.226 +10:00 [INF] Executed endpoint '/_blazor/negotiate'
    2021-12-30 11:36:20.226 +10:00 [INF] Request finished HTTP/2 POST https://localhost:44314/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 13.1632ms
    2021-12-30 11:36:20.243 +10:00 [INF] Request starting HTTP/1.1 GET https://localhost:44314/_blazor?id=4ZoHH-SsrXIycgBR0fch2w - -
    2021-12-30 11:36:20.245 +10:00 [INF] Executing endpoint '/_blazor'
    2021-12-30 11:36:20.856 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:20.856 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:20.856 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.155 +10:00 [INF] Received HTTP response headers after 298.9826ms - 200
    2021-12-30 11:36:21.155 +10:00 [INF] End processing HTTP request after 299.2067ms - 200
    2021-12-30 11:36:21.206 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:21.240 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:21.240 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.240 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.562 +10:00 [INF] Received HTTP response headers after 322.236ms - 200
    2021-12-30 11:36:21.562 +10:00 [INF] End processing HTTP request after 322.5054ms - 200
    2021-12-30 11:36:21.614 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:21.618 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:21.618 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.618 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.925 +10:00 [INF] Received HTTP response headers after 306.3557ms - 200
    2021-12-30 11:36:21.925 +10:00 [INF] End processing HTTP request after 306.6692ms - 200
    2021-12-30 11:36:21.976 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.&lt;&gt;c__DisplayClass51_0.&lt;&lt;SetAsync&gt;g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:21.977 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:21.977 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:21.977 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:22.266 +10:00 [INF] Received HTTP response headers after 288.0483ms - 200
    2021-12-30 11:36:22.266 +10:00 [INF] End processing HTTP request after 288.315ms - 200
    2021-12-30 11:36:22.310 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:22.313 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:22.314 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:22.314 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:22.662 +10:00 [INF] Received HTTP response headers after 347.7942ms - 200
    2021-12-30 11:36:22.662 +10:00 [INF] End processing HTTP request after 348.3986ms - 200
    2021-12-30 11:36:22.709 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.&lt;&gt;c__DisplayClass51_0.&lt;&lt;SetAsync&gt;g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:22.711 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:22.711 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:22.711 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.009 +10:00 [INF] Received HTTP response headers after 297.8752ms - 200
    2021-12-30 11:36:23.009 +10:00 [INF] End processing HTTP request after 298.1163ms - 200
    2021-12-30 11:36:23.050 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:23.051 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:23.051 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.051 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.334 +10:00 [INF] Received HTTP response headers after 282.8674ms - 200
    2021-12-30 11:36:23.334 +10:00 [INF] End processing HTTP request after 283.1578ms - 200
    2021-12-30 11:36:23.369 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.&lt;&gt;c__DisplayClass51_0.&lt;&lt;SetAsync&gt;g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:23.371 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:23.371 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.371 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.642 +10:00 [INF] Received HTTP response headers after 270.6388ms - 200
    2021-12-30 11:36:23.642 +10:00 [INF] End processing HTTP request after 270.9239ms - 200
    2021-12-30 11:36:23.687 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:23.689 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    2021-12-30 11:36:23.689 +10:00 [INF] Start processing HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.689 +10:00 [INF] Sending HTTP request GET "https://localhost:44334/api/abp/application-configuration?api-version=1.0"
    2021-12-30 11:36:23.964 +10:00 [INF] Received HTTP response headers after 274.4126ms - 200
    
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer
    2021-12-30 11:36:21.976 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
    StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
       at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
       at Volo.Abp.Caching.DistributedCache`2.&lt;&gt;c__DisplayClass51_0.&lt;&lt;SetAsync&gt;g__SetRealCache|0>d.MoveNext()
    2021-12-30 11:36:21.977 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
    

    I think the problem is caused by your Redis server.

    But just to be sure, I downloaded and tested the template below.

    abp new TestBszTiered -t app-pro -u blazor-server --database-provider mongodb -csf --tiered

    PS: ABP CLI tool version: 5.0.1

    After a little research, I found a resource that had the same problem as you, maybe it will help => https://github.com/StackExchange/StackExchange.Redis/issues/1904#issuecomment-982500351

  • User Avatar
    0
    travom created

    Resolved:

    Changed Windows WSL distribution to Ubuntu 20.04 from Debian.

    Debian used v3 of Redis Server, whereas Ubuntu uses v5, which overcomes the .NET 6 issue of requiring version 4 or later of Redis Server.

    Thanks for your help. Much appreciated.

    Mike

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