Starts in:
1 DAY
22 HRS
43 MIN
30 SEC
Starts in:
1 D
22 H
43 M
30 S

Activities of "ash.jackson"

Was the project's abp version 6.0.2 when you created it, or did you upgrade it from an older version? If so, have you build the project after the upgrage?

Hi There,

Creating a new solution with 6.0.2 and everything is working, so the problem is with how I upgraded from 6.0.1. I will test the steps for upgrading and update the ticket with the result. AJ.

That's correct, generated with the command abp new MyService -t microservice-service-pro

What is the version of Volo.Abp.Commercial.SuiteTemplates package in *.Domain.Shared project?

Hi, the version is 6.0.2

Module within micro service template = Entity generation throws the error above.

What do you mean by Module? A microservice-service-pro template?

That's correct, generated with the command abp new MyService -t microservice-service-pro

@ash.jackson What is the projects abp version?

The project is 6.0.1, I updated to 6.0.2 and the same error occurs - I created also brand new test project in 6.0.2 and the problem is the same as in my existing project.

Just to be clear - the problem is manifested differently depending on monolith or micro service template:

Module within monolith (application pro) template = Entity generation runs without error, but no angular UI is generated. Module within micro service template = Entity generation throws the error above.

Hi, I updated to 6.0.2, but now get this error when generating a new entity in a Microservice project.

2022-12-07 10:13:21.411 +00:00 [INF] 1/10 - EntityGenerateCommand started...
2022-12-07 10:13:24.109 +00:00 [INF] 1/10 - EntityGenerateCommand completed.                           | Duration: 2691 ms.
2022-12-07 10:13:24.109 +00:00 [INF] 2/10 - RepositoryCommand started...
2022-12-07 10:13:24.232 +00:00 [INF] 2/10 - RepositoryCommand completed.                               | Duration: 122 ms.
2022-12-07 10:13:24.232 +00:00 [INF] 3/10 - ManagerCommand started...
2022-12-07 10:13:24.272 +00:00 [INF] 3/10 - ManagerCommand completed.                                  | Duration: 39 ms.
2022-12-07 10:13:24.272 +00:00 [INF] 4/10 - AppServiceCommand started...
2022-12-07 10:13:29.805 +00:00 [INF] 4/10 - AppServiceCommand completed.                               | Duration: 5532 ms.
2022-12-07 10:13:29.805 +00:00 [INF] 5/10 - ProxyControllerCommand started...
2022-12-07 10:13:29.831 +00:00 [INF] 5/10 - ProxyControllerCommand completed.                          | Duration: 25 ms.
2022-12-07 10:13:29.831 +00:00 [INF] 6/10 - PermissionCommand started...
2022-12-07 10:13:29.892 +00:00 [INF] 6/10 - PermissionCommand completed.                               | Duration: 60 ms.
2022-12-07 10:13:29.892 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand started...
2022-12-07 10:13:29.922 +00:00 [INF] 7/10 - ApplicationObjectMappingCommand completed.                 | Duration: 29 ms.
2022-12-07 10:13:29.922 +00:00 [INF] 8/10 - UnitTestCommandCommand started...
2022-12-07 10:13:30.033 +00:00 [INF] 8/10 - UnitTestCommandCommand completed.                          | Duration: 110 ms.
2022-12-07 10:13:30.033 +00:00 [INF] 9/10 - GenerateProxyCommand started...
2022-12-07 10:13:30.038 +00:00 [WRN] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt",
  "details": null,
  "data": {},
  "validationErrors": null
}

2022-12-07 10:13:30.038 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Proxy.Proxy.txt
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.EGCmOkTk9L()
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.GenerateProxyCommand.ExecuteAsync(CrudPageCommandOptions options)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution)
   at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
   at lambda_method1872(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeInnerFilterAsync&gt;g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

I uninstalled and reinstalled CLI and Suite in case the issue was with upgrade, but the problem persists.

Hi, Is anyone from ABP going to respond to this ticket?

AJ

I also tried updating to preview (7.0.0-rc2) and entity generation fails with the following message: `2022-11-26 15:46:26.912 +00:00 [INF] 1/9 - EntityGenerateCommand started... 2022-11-26 15:46:26.960 +00:00 [INF] 1/9 - EntityGenerateCommand completed. | Duration: 47 ms. 2022-11-26 15:46:26.960 +00:00 [INF] 2/9 - RepositoryCommand started... 2022-11-26 15:46:27.066 +00:00 [INF] 2/9 - RepositoryCommand completed. | Duration: 105 ms. 2022-11-26 15:46:27.066 +00:00 [INF] 3/9 - ManagerCommand started... 2022-11-26 15:46:27.087 +00:00 [WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt", "details": null, "data": {}, "validationErrors": null }

2022-11-26 15:46:27.087 +00:00 [WRN] Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt Volo.Abp.UserFriendlyException: Cannot read the template Volo.Abp.Commercial.SuiteTemplates.Templates.Server.Domain.Partials.Manager_UpdateGetQuery.txt at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.ReadFromTemplateAsync(String relativeResourceName, CrudPageCommandOptions options, String defaultValue) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.TemplateService.PopulateTemplateAsync(String relativeResourceName, CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.SeM5l53jL1(String ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.IDQ5HkRatR() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.ManagerCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1860(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

Hi @maliming

Setting the requiresNew parameter to false in this line using (var uow = _unitOfWorkManager.Begin(requiresNew: false, isTransactional: true))

as per #1386 solves the time-out issue for me.

Thank you for your assistance.

hi @ash.jackson

Can you check this?

https://support.abp.io/QA/Questions/1915/Timeout-Error-Creating-a-Tenant

hi PravinRaijade

Can you try with a new template project?

Hi There, Some further info:

The timeout occurs at this line

var tenantConfiguration = await _tenantStore.FindAsync(tenantId);

of ProjectNameTenantDatabaseMigrationHandler.MigrateAndSeedForTenantAsync method.

The timeout suggests that the transaction for inserting the tenant has not completed when the abp.multi_tenancy.tenant.created event is raised.

AJ.

Hi There,

I can confirm I'm having the same issue.

ABP Ver 5.3.2 Angular UI SQL Server + EF Core

A database time-out occurs causing the tenant to fail to create. This error does not bubble up to the UI, and the the UI returns to the tenant list showing the entry from SAASTenants table as if the tenant created. Here is a log of the error.

2022-07-16 21:48:44.907 +01:00 [ERR] Failed executing DbCommand (30,045ms) [Parameters=[@__ef_filter__p_0='?' (DbType = Boolean), @__id_0='?' (DbType = Guid)], CommandType='"Text"', CommandTimeout='30']
SELECT TOP(1) [s].[Id], [s].[ActivationEndDate], [s].[ActivationState], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[EditionEndDateUtc], [s].[EditionId], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[Name]
FROM [SaasTenants] AS [s]
WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR ([s].[IsDeleted] = CAST(0 AS bit))) AND ([s].[Id] = @__id_0)
ORDER BY [s].[Id]
2022-07-16 21:48:44.910 +01:00 [ERR] An exception occurred while iterating over the results of a query for context type 'CloudBiz.Stockist.EntityFrameworkCore.StockistDbContext'.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
 ---> System.ComponentModel.Win32Exception (258): Unknown error: 258
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
 ---> System.ComponentModel.Win32Exception (258): Unknown error: 258
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.FindAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
2022-07-16 21:48:44.911 +01:00 [ERR] Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
 ---> System.ComponentModel.Win32Exception (258): Unknown error: 258
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.FindAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Volo.Saas.Tenants.TenantStore.GetCacheItemAsync(Nullable`1 id, String name)
   at Volo.Saas.Tenants.TenantStore.FindAsync(Guid id)
   at CloudBiz.Stockist.Data.StockistTenantDatabaseMigrationHandler.MigrateAndSeedForTenantAsync(Guid tenantId, String adminEmail, String adminPassword) in /Users/ashjackson/Git/CloudBiz/Stockist/aspnet-core/src/CloudBiz.Stockist.Domain/Data/StockistTenantDatabaseMigrationHandler.cs:line 99
ClientConnectionId:ec2d6372-8566-42e9-be6f-a84594b17dbd
Error Number:-2,State:0,Class:11
2022-07-16 21:48:44.911 +01:00 [ERR] ---------- Exception Data ----------
HelpLink.ProdName = Microsoft SQL Server
HelpLink.ProdVer = 15.00.4236
HelpLink.EvtSrc = MSSQLServer
HelpLink.EvtID = -2
HelpLink.BaseHelpUrl = https://go.microsoft.com/fwlink
HelpLink.LinkId = 20476`

Steps to reproduce:

  1. Generate empty application template solution.
  2. Run & Add New Tenant from the SaaS > Tenants menu.

Kind Regards, AJ.

Showing 11 to 20 of 22 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06