hi
Can you enable debug logging and share the logs.txt when the problem occurs?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks
hi
. If the distributed lock times out during migration, the entire block fails
In this case, the HandleErrorTenantCreatedAsync method will output messages.
Could not perform tenant created event. Re-queueing the operation. TenantId
Are you sure it's caused by the distributed lock?
Thanks.
hi
Do your logs contain Could not perform tenant created event. Re-queueing the operation. TenantId messages?
Let's make sure the retry mechanism is working.
Thanks
hi kfrancis
If it's still not working, can you share your code? I will check and try to reproduce it locally.
liming.ma@volosoft.com
Thanks.
hi
The HandleErrorTenantCreatedAsync will try to publish the event again, and your event handler will execute again.
BTW, it will delay random 5-15s.
protected virtual async Task HandleErrorTenantCreatedAsync(
TenantCreatedEto eventData,
Exception exception)
{
var tryCount = IncrementEventTryCount(eventData);
if (tryCount <= MaxEventTryCount)
{
Logger.LogWarning($"Could not perform tenant created event. Re-queueing the operation. TenantId = {eventData.Id}, TenantName = {eventData.Name}.");
Logger.LogException(exception, LogLevel.Warning);
await Task.Delay(RandomHelper.GetRandom(5000, 15000));
await DistributedEventBus.PublishAsync(eventData);
}
else
{
Logger.LogError($"Could not perform tenant created event. Canceling the operation. TenantId = {eventData.Id}, TenantName = {eventData.Name}.");
Logger.LogException(exception);
}
}
Thanks,
hi
I will check this case asap.
Thanks.
hi
Github repo named StandardApp.
Can you share the repository URL?
liming.ma@volosoft.com
Thanks.
hi
We will fix it in the account pro module.
Please send an email to liming.ma@volosoft.com
I will share the cshtml source code for account/src/Volo.Abp.Account.Pro.Public.Web/Pages/Account/Components/ProfileManagementGroup/ProfilePicture/Default.cshtml, and then you can customize it to fix it.
Thanks.