You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create organization with user (maybe not required - unsure)
Other steps may be required, but I am unsure how to trigger Organization Domain Maintenance.
Expected Result
No errors in admin.log
Actual Result
Error in admin.log:
fail:Bit.Core.Services.OrganizationDomainService[0]Organization domain maintenance failed
System.InvalidOperationException: The LINQ expression 'DbSet<OrganizationDomain>().Where(o =>(DateTime.UtcNow-o.CreationDate).Days==4&&o.VerifiedDate==null)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable','AsAsyncEnumerable','ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|15_0(ShapedQueryExpressiontranslated,<>c__DisplayClass15_0&)
at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpressionmethodCallExpression)
at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpressionmethodCallExpression)
at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expressionquery)
at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expressionquery,Booleanasync)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabasedatabase,Expressionquery,IModelmodel,Booleanasync)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass12_0`1.<ExecuteAsync>b__0()
at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQuery[TResult](ObjectcacheKey, Func`1compiler)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expressionquery,CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expressionexpression,CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1.GetAsyncEnumerator(CancellationTokencancellationToken)
at System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.GetAsyncEnumerator()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1source,CancellationTokencancellationToken)
at Bit.Infrastructure.EntityFramework.Repositories.OrganizationDomainRepository.GetExpiredOrganizationDomainsAsync()in/source/src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs:line 126
at Bit.Core.Services.OrganizationDomainService.OrganizationDomainMaintenanceAsync()in/source/src/Core/Services/Implementations/OrganizationDomainService.cs:line 101
Screenshots or Videos
No response
Additional Context
Appears to have been reported a few months ago: #3416
I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
The text was updated successfully, but these errors were encountered:
@Greenderella I have cleared the logs once but the issue came back; it appears to be intermittent - as I said, I am unsure when organization domain maintenance is triggered. Regardless, it is clear the query is not being translated by EF correctly for MySQL/mariadb and that should probably be resolved.
Steps To Reproduce
Other steps may be required, but I am unsure how to trigger Organization Domain Maintenance.
Expected Result
No errors in admin.log
Actual Result
Error in admin.log:
Screenshots or Videos
No response
Additional Context
Appears to have been reported a few months ago: #3416
Githash Version
dca8d00
Environment Details
Docker
Database Image
mariadb:11
Issue-Link
#2480
Issue Tracking Info
The text was updated successfully, but these errors were encountered: