Activities of "nqthaitn"

Answer

Hi Team, I apologize for my confusion, it is now working well. Thanks for your support.

Answer

Did you configure ocelot for websockets? https://ocelot.readthedocs.io/en/latest/features/websockets.html

yes, i did. it show in i can use postman to post : https://localhost:44325/signalr-hubs/chat/negotiate?negotiateVersion=1 (44325 is the web gateway) and catched this package in my service. As i mentioned before, how to config signalR url in my mvc web ? the signalR url should be https://localhost:44325 (the web gateway) not https://localhost:44321 (the mvc web app)

Answer

Hi, Yes, my application use microservice template and MVC for UI Framework. I already installed and config Volo.Abp.EventBus.RabbitMQ.

update: After reviewing the code, I realized that the ChatSignalR Module has dependencies in the wrong place.

  • SmartContractServiceWebModule -> [DependsOn(typeof(ChatSignalRModule))]
  • apps/web/src/GoSquidMs.Web/GoSquidMsWebModule.cs depends on SmartContractServiceWebModule so i think the websocket log above:
WebSocket connected to wss://localhost:44321...

this connect is connected to apps/web/src/GoSquidMs.Web/GoSquidMsWebModule, and the gateway is not functioning properly, the issue seems to be that i haven't configured the signalR url for the gateway, i found a post on how to config signalR url in Blazor

but my application is built using MVC, how can i configure it?

Answer

Hey, simple shot in the dark:

Make the DbSet full properties. You only have {get; } -> {get; set; } Guessing a DI thing based on that.

Let me know if that helped

It works! Thanks a milion. But now i have a new proplem with websocket, receiver not receive message realtime,

ocelot.json

SmartContractServiceHttpApiHostModule

Question
  • ABP Framework version: v7.3.1
  • UI Type: MVC
  • Database System: EF Core - SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: An internal error occurred during your request!
6kmUka0tNT3o&state=V2VkIEF1ZyAwMiAyMDIzIDExOjAxOjU5IEdNVCswNzAwIChJbmRvY2hpbmEgVGltZSk%3D&iss=https%3A%2F%2Flocalhost%3A44322%2F - -
[smart-contract-service_27a3e381-a]: [11:02:02 INF] Sending file. Request path: '/oauth2-redirect.html'. Physical path: 'N/A'
[smart-contract-service_27a3e381-a]: [11:02:02 INF] Request finished HTTP/1.1 GET https://localhost:45186/swagger/oauth2-redirect.html?code=8jt0wCFx2O1km_DwdwGsq4Oy-yTjXf-6kmUka0tNT3o&state=V2VkIEF1ZyAwMiAyMDIzIDExOjAxOjU5IEdNVCswNzAwIChJbmRvY2hpbmEgVGltZSk%3D&iss=https%3A%2F%2Flocalhost%3A44322%2F - - - 200 2690 text/html 3.6102ms
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Request starting HTTP/1.1 GET https://localhost:45186/abp/Swashbuckle/SetCsrfCookie - -
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle"}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle).
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executing action method Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) - Validation state: Valid
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executed action method Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle), returned result Microsoft.AspNetCore.Mvc.EmptyResult in 2.0293ms.
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 5.0455ms
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)'
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Request finished HTTP/1.1 GET https://localhost:45186/abp/Swashbuckle/SetCsrfCookie - - - 204 - - 152.7716ms
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Request starting HTTP/1.1 GET https://localhost:45186/api/chat/contact/contacts?Filter=go&IncludeOtherContacts=true - -
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executing endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)'
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Route matched with {area = "chat", action = "GetContacts", controller = "Contact"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Volo.Chat.Users.ChatContactDto]] GetContactsAsync(Volo.Chat.Users.GetContactsInput) on controller Volo.Chat.Users.ContactController (Volo.Chat.HttpApi).
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executing action method Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) - Validation state: Valid
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:e63622f1-a21b-9612-c6cb-3a0cc272c812,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Not found in the cache: pn:U,pk:e63622f1-a21b-9612-c6cb-3a0cc272c812,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Getting all granted permissions from the repository for this provider name,key: U,e63622f1-a21b-9612-c6cb-3a0cc272c812
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Finished setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Not found in the cache: pn:R,pk:admin,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Getting all granted permissions from the repository for this provider name,key: R,admin
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Finished setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:WebGateway_Swagger,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Not found in the cache: pn:C,pk:WebGateway_Swagger,n:Chat.Messaging
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Getting all granted permissions from the repository for this provider name,key: C,WebGateway_Swagger
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 DBG] Finished setting the cache items. Count: 115
[smart-contract-service_27a3e381-a]: [11:02:25 ERR] ---------- RemoteServiceErrorInfo ----------
[smart-contract-service_27a3e381-a]: {
[smart-contract-service_27a3e381-a]: "code": null,
[smart-contract-service_27a3e381-a]: "message": "An internal error occurred during your request!",
[smart-contract-service_27a3e381-a]: "details": null,
[smart-contract-service_27a3e381-a]: "data": {},
[smart-contract-service_27a3e381-a]: "validationErrors": null
[smart-contract-service_27a3e381-a]: }
[smart-contract-service_27a3e381-a]:
[smart-contract-service_27a3e381-a]: [11:02:25 ERR] Value cannot be null. (Parameter 'inner')
[smart-contract-service_27a3e381-a]: System.ArgumentNullException: Value cannot be null. (Parameter 'inner')
[smart-contract-service_27a3e381-a]: at System.ArgumentNullException.Throw(String paramName)
[smart-contract-service_27a3e381-a]: at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
[smart-contract-service_27a3e381-a]: at System.Linq.Queryable.Join[TOuter,TInner,TKey,TResult](IQueryable`1 outer, IEnumerable`1 inner, Expression`1 outerKeySelector, Expression`1 innerKeySelector, Expression`1 resultSelector)
[smart-contract-service_27a3e381-a]: at Volo.Chat.EntityFrameworkCore.Conversations.EfCoreConversationRepository.GetListByUserIdAsync(Guid userId, String filter, CancellationToken cancellationToken)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Volo.Chat.Users.ContactAppService.GetContactsAsync(GetContactsInput input)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Features.FeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
[smart-contract-service_27a3e381-a]: at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
[smart-contract-service_27a3e381-a]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
[smart-contract-service_27a3e381-a]: at lambda_method1505(Closure, Object)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
[smart-contract-service_27a3e381-a]: at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executed action Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) in 287.0242ms
[smart-contract-service_27a3e381-a]: [11:02:25 INF] Executed endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)'
  • Steps to reproduce the issue:
  • I added Chat Module to my service (SmartContractService)
  • Call get Contact via swagger
curl -X 'GET' \
  'https://localhost:45186/api/chat/contact/contacts?Filter=go&IncludeOtherContacts=true' \
  -H 'accept: text/plain' \
  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkZCOEY1MjlGMEMyQjRGMjYyMDMxNkQ5MTdFRTU1QkVFRUNCRjJBMjAiLCJ4NXQiOiItNDlTbnd3clR5WWdNVzJSZnVWYjd1eV9LaUEiLCJ0eXAiOiJhdCtqd3QifQ.eyJzdWIiOiJlNjM2MjJmMS1hMjFiLTk2MTItYzZjYi0zYTBjYzI3MmM4MTIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImVtYWlsIjoiYWRtaW5AYWJwLmlvIiwicm9sZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6ImFkbWluIiwiZmFtaWx5X25hbWUiOiJUaGFpIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjoiRmFsc2UiLCJlbWFpbF92ZXJpZmllZCI6IkZhbHNlIiwidW5pcXVlX25hbWUiOiJhZG1pbiIsIm9pX3Byc3QiOiJXZWJHYXRld2F5X1N3YWdnZXIiLCJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo0NDMyMi8iLCJvaV9hdV9pZCI6ImI5MjY3YmM4LTcwM2QtYjk1My05NjM1LTNhMGNjMjc5YmZjNiIsImNsaWVudF9pZCI6IldlYkdhdGV3YXlfU3dhZ2dlciIsIm9pX3Rrbl9pZCI6ImFmMTY1YzE5LTEyZTMtNTcwMy0wNGU5LTNhMGNjNjk1Yzc1OSIsImF1ZCI6IlNtYXJ0Q29udHJhY3RTZXJ2aWNlIiwic2NvcGUiOiJTbWFydENvbnRyYWN0U2VydmljZSIsImp0aSI6IjNlMzllMGQ3LWQzZjctNGY1Yi04NGM5LWFiYWFhNTFjOTQ0NCIsImV4cCI6MTcyMjQ4NDkyMywiaWF0IjoxNjkwOTQ4OTIzfQ.JUbrbzjjWojPcraHrwtPJjlE4xCUYuENnsIxNR_kVhF-7sI9ksIdaK-pvC7oCd1CUxhY7V9LaFwZ_WU1DALCM2uGrjMLOWCiO2mMELx3Vzuv7SDOPh8ng7gJFMCWWedoHL725xrIBFB7EK0j5jbiC3hFrX7lDNEJMfRa_Bv3Pv6tkA848Xc10rG2OnzNC4e1ojCfM5b13v9XJaqI_ZdUFvboCWAG8YXP4G6aFhfcOEK2BlFY9FN7YRJyPE_CNERgFMjoMW6NecXon1VHJWX11fP-ozBEPTiIw95krk5CBkI6MdM1RD_2foLcoqQHAPRpHNZkYaUw74v2C7Le-j5JEA' \
  -H 'RequestVerificationToken: CfDJ8O6JN0JCrPFGv-HvAMg3UjqUrOB1gHLoGuAU3ULaQh9yN-4PLmZvhHLfYe-J5OWk5-1eKe55b5HjVgdsRDNsbsmsFKIqwu5osRIXGXsjRsph5IyFQ_gAnOAVBOadRqUzf7xlT6e9l2KKYGlf3u7nWO38yOV-VuJcAT1iw5DxNnZiqfLpVNoAnTxZU7uY3DWKjw' \
  -H 'X-Requested-With: XMLHttpRequest'

The result:

{
  "error": {
    "code": null,
    "message": "An internal error occurred during your request!",
    "details": null,
    "data": {},
    "validationErrors": null
  }
}

My config:

And then I tried to debug it by adding a CustomEfCoreConversationRepository and overide the GetListByUserIdAsync method and test via Sample API, i figured out GetCountAsync on ConversationRepository worked, but GetListByUserAsync not work because all of Chat DbSet is null, am i missing something ? please help.

Yes, What's ulimit -a command result on your macbook?

I already set to 64000, restart the macOs , -> still error

hi

Is there any logs in MongoDB(docker) when the unit test fails.

hmm, I think we are misunderstanding the problem, ABP framework is using mongo2go (in-memory) for integration tests, that is not related to MongoDb running on docker at all. right?

hi

You can try increase limit of your macOS

https://www.mongodb.com/docs/manual/administration/production-checklist-operations/#operating-system-configuration https://www.mongodb.com/docs/manual/reference/ulimit/#recommended-ulimit-settings

It appears that the defaults for open files in the docker container are already way larger than the recommended settings

hi

What is your OS?

Hi, I'm using MacBook Pro M1 ( macOS 13.2.1 (22D68))

Hi, I am experiencing an issue where running all 226 unit tests results in an error. However, when I run approximately 50 test cases at a time, all of the tests pass. Although I am able to perform this task on my local machine, I have been unable to pass this on Bitbucket's CICD. Please help. Thanks.

  • ABP Framework version: v6.0.2
  • UI type: Angular
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor...

Volo.Abp.AbpInitializationException
An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module GoSquid.GoSquidTestBaseModule, GoSquid.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: Command create failed: 24: Too many open files.. See the inner exception for details.
   at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context)
   at Volo.Abp.AbpApplicationBase.InitializeModules()
   at Volo.Abp.Testing.AbpIntegratedTest`1..ctor()
   at GoSquid.GoSquidTestBase`1..ctor()
   at GoSquid.GoSquidApplicationTestBase..ctor()
   at GoSquid.GuildInvitations.GuildInvitationsAppServiceTests..ctor() in /Users/thaingo/Sources/GoSquid/gosquid-suite/aspnet-core/test/GoSquid.Application.Tests/GuildInvitations/GuildInvitationApplicationTests.cs:line 16
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

MongoDB.Driver.MongoCommandException
Command create failed: 24: Too many open files.
   at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol`1.ProcessResponse(ConnectionId connectionId, CommandMessage responseMessage)
   at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol[TResult](IWireProtocol`1 protocol, ICoreSession session, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Servers.Server.ServerChannel.Command[TResult](ICoreSession session, ReadPreference readPreference, DatabaseNamespace databaseNamespace, BsonDocument command, IEnumerable`1 commandPayloads, IElementNameValidator commandValidator, BsonDocument additionalOptions, Action`1 postWriteAction, CommandResponseHandling responseHandling, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelHandle channel, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelSource channelSource, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.WriteCommandOperation`1.Execute(IWriteBinding binding, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.CreateCollectionOperation.Execute(IWriteBinding binding, CancellationToken cancellationToken)
   at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation[TResult](IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoDatabaseImpl.ExecuteWriteOperation[T](IClientSessionHandle session, IWriteOperation`1 operation, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoDatabaseImpl.CreateCollection(IClientSessionHandle session, String name, CreateCollectionOptions options, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoDatabaseImpl.UsingImplicitSession(Action`1 func, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoDatabaseImpl.CreateCollection(String name, CreateCollectionOptions options, CancellationToken cancellationToken)
   at Volo.Abp.MongoDB.MongoModelBuilder.CreateCollectionIfNotExists(AbpMongoDbContext dbContext, String collectionName)
   at Volo.Abp.MongoDB.MongoModelBuilder.Build(AbpMongoDbContext dbContext)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Volo.Abp.MongoDB.AbpMongoDbContext.GetEntityModel[TEntity]()
   at Volo.Abp.MongoDB.AbpMongoDbContext.GetCollectionName[T]()
   at Volo.Abp.MongoDB.AbpMongoDbContext.Collection[T]()
   at Volo.Abp.Domain.Repositories.MongoDB.MongoDbRepository`2.InsertAsync(TEntity entity, Boolean autoSave, 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 GoSquid.StatisticMonthlies.StatisticMonthliesDataSeedContributor.SeedAsync(DataSeedContext context) in /Users/thaingo/Sources/GoSquid/gosquid-suite/aspnet-core/test/GoSquid.TestBase/StatisticMonthlies/StatisticMonthliesDataSeedContributor.cs:line 30
   at Volo.Abp.Data.DataSeeder.SeedAsync(DataSeedContext context)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at GoSquid.GoSquidTestBaseModule.&lt;&gt;c__DisplayClass2_0.&lt;&lt;SeedTestData&gt;b__0>d.MoveNext() in /Users/thaingo/Sources/GoSquid/gosquid-suite/aspnet-core/test/GoSquid.TestBase/GoSquidTestBaseModule.cs:line 41
--- End of stack trace from previous location ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   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 Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at GoSquid.GoSquidTestBaseModule.SeedTestData(ApplicationInitializationContext context) in /Users/thaingo/Sources/GoSquid/gosquid-suite/aspnet-core/test/GoSquid.TestBase/GoSquidTestBaseModule.cs:line 37
   at GoSquid.GoSquidTestBaseModule.OnApplicationInitialization(ApplicationInitializationContext context) in /Users/thaingo/Sources/GoSquid/gosquid-suite/aspnet-core/test/GoSquid.TestBase/GoSquidTestBaseModule.cs:line 32
   at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context)
  • Steps to reproduce the issue:" Run Unit Tests
Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38