Your assistance please, I need to update a project and this is holding the task
Your assistance please, I need to update a project and this is holding the task
Thanks for your help. Same problem
PS D:\Dev\Modules\Cns.Modules.ServiceLayerProxy> abp update -v 7.2.3 ABP CLI 7.2.3 Unable to update package "Volo.Abp.AspNetCore.Components.WebAssembly.Theming" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.MongoDB" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.EntityFrameworkCore" version v7.2.3 to v7.2.3. Updating package "Volo.Abp.AspNetCore.Mvc" from v7.2.2 to v7.2.3. Unable to update package "Volo.Abp.Autofac" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Ddd.Application.Contracts" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.AspNetCore.Mvc" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Autofac" version v7.2.3 to v7.2.3. Could not parse package "Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" version v2.2.-. Skipped. Could not parse package "Volo.Abp.AspNetCore.Components.Server.LeptonXTheme" version v2.2.-. Skipped. Updating package "Volo.Abp.Autofac" from v7.2.2 to v7.2.3. Could not parse package "Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" version v2.2.-. Skipped. Unable to update package "Volo.Abp.Http.Client" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Autofac" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Autofac.WebAssembly" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Autofac" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.Ddd.Domain" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.AspNetCore.Components.Server.Theming" version v7.2.3 to v7.2.3. Unable to update package "Volo.Abp.AutoMapper" version v7.2.3 to v7.2.3.
Trying to run abp update -v 7.2.3 i receive many errors with 404 blob not found, when i go to the https://nuget.abp.io/myprivatekey where the key comes from my https://commercial.abp.io/my-organizations I can see links but when i click any link i receive 404.
My project is not building due to some inconsistency with abp multitenancy requirement on lepton.
Thanks but I don't think that's an option for me, since all my projects are already using the abp provided implementation, and we don't want to re-implement something the framework is offering, it would be great of the abp implementation could add a property object with information of the particular task so that we can then use BackgroundJob to requeue it..
You mean stop using
transactionProcessingJob : AsyncBackgroundJob<TArgs>
??
Hi,
I had already tried something with BackgroundJob
before I posted, I just couldn't get it to work and Is till don't understand how to apply this. In essence a class that processes a type of job
public class TransactionProcessingJob : AsyncBackgroundJob<TransactionProcessingArgs>, ITransientDependency
has method
public override async Task ExecuteAsync(TransactionProcessingArgs args)
{
try
{
IUnitOfWorkManager unitOfWorkManager = _serviceProvider.GetRequiredService<IUnitOfWorkManager>();
using (unitOfWorkManager.Begin())
{
// stuff in here
}
}
catch (Exception ex)
{
Logger.LogError(ex, "Unable to process transaction {TransactionId}", args.TranId);
await _emailSender.QueueAsync(
to: _config["Notifications:Recipients"],
subject: $"Error processing transaction {args.TranId} {args.Channel} {args.ObjectType} {args.ExternalID} for Tenant: {tenantId}",
body: $"{ex.Message}</br>{ex.InnerException?.Message}"
);
using (_currentTenant.Change(tenantId != default ? tenantId : null))
{
var transaction = await _transactionRepository.GetAsync(args.TranId);
transaction.Error = $"{ex.Message}\n{ex?.InnerException?.Message}";
await _transactionRepository.UpdateAsync(transaction);
}
throw;
}
}
In the catch block, it'd be nice to capture job id and set it on a property of the transaction, this way from a dashboard page, using TransactionAppService
The user can retry that transaction.
I had already tried to do this adapating an implementation in one of the modules that grabs a distributed lock and IBackgroundJobStore
to use FindAsync(guid) to retrieve the job, but since I don't have the job id I can't use IBackgroundJobExecuter
to execute the job.
I'm having a problem with jobs that are processed via hangfire module. When a job fails it can be requeued through the hangifre ui, but this interface is more backend than frontend user. I have a page in the application for front end user to see jobs in error state. I want them to be able to click a button and retry this job (not enqueue again, but reprocess failed job just like in backend ui). I've tried many things but in the end I always reach a point where I get stuck.
During job execution can I capture the job id somehow to set it in the error property of my transaction and then use this to retry the job when the user presses the button to retry?
Hi Maliming,
Thanks for feedback, yes I did that before opening ticket.
<PackageReference Include="Volo.Abp.LeptonTheme.Management.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.OpenIddict.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Saas.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Application" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BlobStoring.Database.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.LeptonTheme" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.OpenIddict.Pro.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LanguageManagement.Blazor.WebAssembly" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonTheme" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Blazor.Server" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Application" Version="7.1.1" /> <PackageReference Include="Volo.Saas.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BlobStoring.Database.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Commercial.SuiteTemplates" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Saas.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Authentication.OpenIdConnect" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Http.Client.IdentityModel.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Http.Client.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Web" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AuditLogging.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.SettingManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Identity.Pro.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Web" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.Application" Version="7.1.1" /> <PackageReference Include="Volo.Saas.Host.HttpApi" Version="7.1.1" /> <PackageReference Include="Volo.Saas.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BlobStoring.Database.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BackgroundJobs.Abstractions" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Authorization.Abstractions" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BackgroundJobs.Abstractions" Version="7.1.1" /> <PackageReference Include="Volo.Abp.BackgroundJobs.HangFire" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Ddd.Application" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AutoMapper" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Emailing" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.Server.Theming" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.WebAssembly.Theming" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AutoMapper" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.Web.Theming" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Validation" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Ddd.Domain" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Http.Client" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc" Version="7.1.1" /> <PackageReference Include="Volo.Abp.MongoDB" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AutoMapper" Version="7.1.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared" Version="7.1.1" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.Sqlite" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Http.Client.IdentityModel" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Autofac" Version="7.1.1" /> <PackageReference Include="Volo.Abp.Authorization" Version="7.1.1" /> <PackageReference Include="Volo.Abp.TestBase" Version="7.1.1" />
Upgrade 6.0 to 7, now receiving this message. if I go to the domain.shared project where the method is used and press F12 it browses to the definition of the method so i can see it still exists.
InnerException {"Method not found: 'Volo.Abp.Localization.LocalizationResource Volo.Abp.Localization.LocalizationResourceExtensions.AddBaseTypes(Volo.Abp.Localization.LocalizationResource, System.Type[])'."} System.Exception {System.MissingMethodException}
created and applied migration to db.