Attività di "chris.tune@gmail.com"

Risposta

ABP Framework version: v4.2.0 VisualStudioVersion = 16.0.31004.235 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:

I created a vanilla project and without any modifications it wont build.

  • Create a new application using suite.
  • Open Solution
  • Build

Error: \Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly. error MSB4018: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Unexpected CopyLocal flag.

I reduced the version down to 4.1.0 for all Volo packages and it worked, but failed again when I updated to 4.2.1

Thanks Chris

Risposta

ABP Framework version: v4.2.0
VisualStudioVersion = 16.0.31004.235
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Seperated (Angular): yes
Exception message and stack trace:
Steps to reproduce the issue:

I created a vanilla project and without any modifications it wont build.

  • Create a new application using suite.
  • Open Solution
  • Build

Error:
\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly.
error MSB4018: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Unexpected CopyLocal flag.

I reduced the version down to 4.1.0 for all Volo packages and it worked, but failed again when I updated to 4.2.1

Thanks
Chris

@chris.tune@gmail.com I have tried to reproduce the problem with 4.2.1 and it was OK. Try to build via dotnet build CLI tool. check whether the path of your project is too long
try to re-login ABP via abp login <username> (if some packages are not being restored)

Hi @alper thanks for the check.

Sorry this was on me, my PC had done a hard reset and the nuget package files for .net 5 were corrupt. Check Disk didnt pick it up. Had to do a NuGet global cache clean to get things working.

Thanks again. Chris

Risposta

Create new tenant not creating admin user

  • ABP Framework version: v4.3.0 (Upgraded from 4.2.1)
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: No error is thrown.
  • Steps to reproduce the issue:
  1. Goto SaaS-->Tenants-->New Tenant
  2. Create a new tenant with the admin user and pass entered.
  3. Save

It looks like the tenant is created but the admin user is not added. In the database the tenant is added but there is no user. Potentially a problem in ObjectExtensions or TenantAppService?

Chris

Risposta

Hi Yes Nicholas is right, I and another also raised this, bug. I feel like this system is not the best for tracking bugs.

My post: Create new tenant not creating admin user

ABP Framework version: v4.3.0 (Upgraded from 4.2.1) UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no Exception message and stack trace: No error is thrown. Steps to reproduce the issue: Goto SaaS-->Tenants-->New Tenant Create a new tenant with the admin user and pass entered. Save It looks like the tenant is created but the admin user is not added. In the database the tenant is added but there is no user. Potentially a problem in ObjectExtensions or TenantAppService?

Hi

I just tried to upgrade to business, but when the payment redirected back there was a 403 error(10005) on the abp.io site. I'm not sure if the payment went through or it stopped.

Is there anyway of finding out?

Chris

Hi

Our devs have created a react app which connects to ABP.IO using identity server. We are using subdomains to identity each tenant.

site1.oursite.com site2.oursite.com

When a user logs in to site1 the token is returned and used from the app If we then switch to site2 we login again and get a token for that as well.

Then if we switch between the sites the token endpoint returns the same token

We are using /connect/token to get the token and supplying the redirect _url etc. But should we be sending something else to identity the tenant, such as a header or query string?

Thanks

Hi

I'm looking for the best practice to add a background worker to a multitenant microservices architecture. Our background job is part of a service which goes through a collection of entities and processes them, accross each tenant.

In terms of processing I was thinking using (_currentTenant.Change(TenantId)) would be the best way. BUT we need the tenants, which is part of the SaaS service.

Get could potentially turn off the tenant filter. using (_dataFilter.Disable<IMultiTenant>()) We could get the list of tenants from the client service and use change. We could add these to a shared project which has access to everything, for example ITenantRepository

Any recomendations for teh prefered way would be great.

Thanks

Hi,

ICurrentTenant.Change is the only way to operate on a specific tenant in a background worker. I can recommend to create a separate console application for the background workers and run only a single instance of that application. Otherwise, if you make it a part of a service, you should care when you run multiple instances of that service - the worker may work on the same data which may cause duplications.

Disabling the tenancy filter is needed if you want to query from all tenants. It can only work for "shared database" approach. It can't work if a tenant has a seperate database. However, if you want to query a list of tenants (from the AbpTenants table), no need to disable the tenancy filter, because the Tenant entity is not multi-tenant.

In your background worker app, you can add a reference to the Volo.SaaS.EntityFrameworkCore and set the connection string for the saas database. Alternatively, you can perform a call to the SaaS service if you don't want to access the SaaS db from the worker app. But, I suggest to use the db.

Thanks for the info, that makes a lot of sense!

  • ABP Framework version: v4.4.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi we are getting an error with our Auth server using the microservices model.

We haven't figured out how to reproduce this, but once it occurs the only way to fix it is by a restart the service, something that's not sustainable.

It's the standards Microservices solution from a previous version, but we recently upgraded to 4.4.4 I'm not sure if this has anything to do with it.

Stack Trace Extract. System.Exception: Exception of type 'System.Exception' was thrown.\n at x973ltTuyr0iNFtkVC2.uoxoRDTMlI1EVNyvYXa.O5QlTBeshI(Int32 )\n at System.Linq.Enumerable.SelectArrayIterator2.MoveNext()\n at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable`1 collection)\n at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri)\n at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context)\n at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)

Can you watch the webserver memory and check it when it occurs?

Will do.

1 - 10 di 24
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11