Activities of "Repunjay"

Hi,

I'm developing an application using abp.io with Angular front-end. I'm trying to deploy and run the api into Docker container. I used Visual studio Docker support which creates a Dockerfile under project *.HttpApi.Host. The Docker image is created and a container runs successfully. But when I try to access the api from Docker using http://localhost:<Docker port> from browser, it is not accessible. However, the api is accessible when it runs from local machine using Visual Studio like http://localhost:44306.

Question -

  1. Do we have some instructions/guidelines/scripts to deploy and run abp.io asp.net core api into Docker container? To extend it further, I want to deploy and run it from AWS ECS.
  2. How do we map port of local machine which is specified in appsettings.json to the port of docker container?

Let me know if you require additional information. Any help, suggestions would be welcome.

Thanks, Repunjay

Hi,

I'm facing another issue when try to deploy and run aspnet-core project into Docker Container (Windows). The image is successfully created but the docker container doesnt run and exits. When I checked the logs, I found below issue - Could you please advise on resolution steps for this issue? Kindly note, that I have a commercial license code for abp.io and it works properly when I run code from local machine.

2020-04-28 00:00:03.669 +05:30 [ERR] ABP-LIC-0008 - License check failed for 'Volo.Abp.LanguageManagement.Domain.Shared-v2.4.0.0'. You need to log in using the command abp login <username>. For more information, contact to license@abp.io. 2020-04-28 00:00:03.673 +05:30 [INF] Application is shutting down... 2020-04-28 00:00:03.673 +05:30 [FTL] An error occurred stopping the application System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Hangfire.AbpHangfireModule.OnApplicationShutdown(ApplicationShutdownContext context) at Volo.Abp.Modularity.OnApplicationShutdownModuleLifecycleContributor.Shutdown(ApplicationShutdownContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.ShutdownModules(ApplicationShutdownContext context) at Volo.Abp.AbpApplicationBase.Shutdown() at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.<>c__DisplayClass1_0.<InitializeApplication>b__0() at System.Threading.CancellationToken.<>c.<.cctor>b__26_0(Object obj) at System.Threading.CancellationTokenSource.CallbackNode.<>c.<ExecuteCallback>b__9_0(Object s) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) --- End of inner exception stack trace --- at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException) at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.StopApplication()

Regards, Repunjay

Hi,

We want to develop an application using ABP.IO commercial framework with backend database on AWS Aurora PostgreSQL. Need to know -

  1. Does ABP.IO supports PostgreSQL integration using Entity Framework core?
  2. Do you have any guidelines to migrate existing MS SQL database to PostgreSQL database in abp.io? How do I re-use existing migrations to migrate schema and data to PostgreSQL database?

Please suggest and advise.

Thanks & regards, Repunjay

Hi,

We are trying to develop a microservices based application consisting of several microservices. For inter-microservices communication we plan to evaluate RabbitMQ or ActiveMQ distributed Event bus system. Do we have any integration in place to use RabbitMQ or ActiveMQ with ABP framework? What code changes needs to be done in order integrate, are there any guidelines/documentation available?

Thanks & regards, Repunjay

Hi,

I'm trying to use ABP text templates in my code by referring the TextTemplateDemo sample solution. I have followed steps in documentation and sample code, but I get below error when try to render a template from my code solution -

Please suggest?

Note sure what is causing this issue. 2020-06-05 09:49:37.476 +05:30 [ERR] ---------- RemoteServiceErrorInfo ---------- 2020-06-05 09:49:37.479 +05:30 [ERR] { "code": null, "message": "An internal error occurred during your request!", "details": null, "validationErrors": null } 2020-06-05 09:49:37.480 +05:30 [ERR] The upgradeable lock is being released without being held. System.Threading.SynchronizationLockException: The upgradeable lock is being released without being held. at System.Threading.ReaderWriterLockSlim.ExitUpgradeableReadLock() at Volo.Abp.TextTemplating.VirtualFiles.LocalizedTemplateContentReaderFactory.CreateAsync(TemplateDefinition templateDefinition) at Volo.Abp.TextTemplating.VirtualFiles.VirtualFileTemplateContentContributor.GetOrNullAsync(TemplateContentContributorContext context) at Volo.Abp.TextTemplating.TemplateContentProvider.GetContentOrNullAsync(ITemplateContentContributor[] contributors, TemplateContentContributorContext context) at Volo.Abp.TextTemplating.TemplateContentProvider.GetContentOrNullAsync(TemplateDefinition templateDefinition, String cultureName, Boolean tryDefaults, Boolean useCurrentCultureIfCultureNameIsNull) at Volo.Abp.TextTemplating.TemplateRenderer.RenderSingleTemplateAsync(TemplateDefinition templateDefinition, Dictionary2 globalContext, Object model) at Volo.Abp.TextTemplating.TemplateRenderer.RenderInternalAsync(String templateName, Dictionary2 globalContext, Object model) at Volo.Abp.TextTemplating.TemplateRenderer.RenderAsync(String templateName, Object model, String cultureName, Dictionary`2 globalContext)

Thanks for the response. Is it possible for an online connect so that I can explain the issue from code?

Thanks, could you please let me know how do you want me connect with you? Are you available on teams or Google meet?

Hi,

Never mind. I was able to resolve it, actually below line was added to both module classes (MyProjectApplicationModule, MyProjectHttpApiHostModule) which was causing the issue -

Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<MyProjectApplicationModule>("MyProject"); });

Thanks for the prompt response and help.

Hi, We are developing few microservices using ABP framework which expose HTTP APIs. These microservices will run in container and will communicate with each other internally to exchange data. We want to implement Request/Reply messaging using RabbitMQ for inter microservices communication. As ABP provides integration with RabbitMQ, I can only see publish/subscribe example in the documentation.

Need to know -

  1. Is there a way to do Request/Reply messaging between microservices using existing ABP-RabbitMQ implementation? If yes, could you please share some documentation or illustrative example?
  2. If #1 is not true, do we have to rely on native implementation of RabbitMQ to accomodate Request/Reply communication, please confirm.

Thanks, Repunjay

Hi,

I'm trying to log ABP Audit Log info to AWS CloudWatch using ticket response - https://support.abp.io/QA/Questions/218

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAuditingStore))]
public class CustomAuditingStore : AuditingStore
{
    private readonly LogEventBatch _repo = new LogEventBatch();
    private readonly IAmazonCloudWatchLogs _client;
    private int _requestCount = 5;
    private static readonly Regex InvalidSequenceTokenRegex = new
    Regex(@"The given sequenceToken is invalid. The next expected sequenceToken is: (\d+)");


    public CustomAuditingStore(
    IAuditLogRepository auditLogRepository,
    IGuidGenerator guidGenerator,
    IUnitOfWorkManager unitOfWorkManager,
    IOptions<AbpAuditingOptions> options)
    : base(auditLogRepository, guidGenerator, unitOfWorkManager, options)
    {
        _client = CloudWatchLog.GetClient();
    }

The class CustomAuditStore seems to work just fine in my POC code but when I added it to my main Application project and when I run unit tests, it gives me below error -

Autofac.Core.DependencyResolutionException : An exception was thrown while activating Volo.Abp.EntityFrameworkCore.EntityHistory.EntityHistoryHelper -> ProfileManagement.CustomAuditingStore. ---- Autofac.Core.DependencyResolutionException : None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'ProfileManagement.CustomAuditingStore' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.AuditLogging.IAuditLogRepository auditLogRepository' of constructor 'Void .ctor(Volo.Abp.AuditLogging.IAuditLogRepository, Volo.Abp.Guids.IGuidGenerator, Volo.Abp.Uow.IUnitOfWorkManager, Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Auditing.AbpAuditingOptions])'.

Could you please help and advise?

Showing 1 to 10 of 149 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11