I have…
- [x] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
When you run the latest docker image tagged dev for the very first time with a new db and new admin user you get the following exception that stops the app from starting.
MongoDB.Driver.MongoCommandException: Command aggregate failed: the limit must be positive.
I suspect it is related to recent changes as this was working fine in the earlier dev images
Logs:
2021-01-20T16:44:37.455167192Z {
2021-01-20T16:44:37.455224493Z “logLevel”: “Error”,
2021-01-20T16:44:37.455231393Z “message”: “QueueWorkItem was called on a non-null context [SystemTarget: S127.0.0.1:11111:348857056stg/13/0000000d@S0000000d] but there is no valid WorkItemGroup for it.",
2021-01-20T16:44:37.455236793Z “eventId”: {
2021-01-20T16:44:37.455241093Z “id”: 101231
2021-01-20T16:44:37.455245393Z },
2021-01-20T16:44:37.456703709Z “timestamp”: “2021-01-20T16:44:37Z”,
2021-01-20T16:44:37.456720309Z “app”: {
2021-01-20T16:44:37.456725309Z “name”: “Squidex”,
2021-01-20T16:44:37.456729509Z “version”: “4.0.0.0”,
2021-01-20T16:44:37.456760509Z “sessionId”: “4f08041f-ed73-44cb-9347-cde9e1815859”
2021-01-20T16:44:37.456765009Z },
2021-01-20T16:44:37.456768709Z “category”: “Orleans.Runtime.Scheduler.OrleansTaskScheduler”
2021-01-20T16:44:37.456772809Z }
2021-01-20T16:44:37.456776409Z
2021-01-20T16:44:37.456780009Z {
2021-01-20T16:44:37.456783610Z “logLevel”: “Error”,
2021-01-20T16:44:37.456787610Z “message”: "QueueWorkItem was called on a non-null context [SystemTarget: S127.0.0.1:11111:348857056stg/13/0000000d@S0000000d] but there is no valid WorkItemGroup for it.”,
2021-01-20T16:44:37.456792010Z “eventId”: {
2021-01-20T16:44:37.456795710Z “id”: 101231
2021-01-20T16:44:37.456799510Z },
2021-01-20T16:44:37.456803110Z “timestamp”: “2021-01-20T16:44:37Z”,
2021-01-20T16:44:37.456806910Z “app”: {
2021-01-20T16:44:37.456810510Z “name”: “Squidex”,
2021-01-20T16:44:37.456814210Z “version”: “4.0.0.0”,
2021-01-20T16:44:37.456818210Z “sessionId”: “4f08041f-ed73-44cb-9347-cde9e1815859”
2021-01-20T16:44:37.456827210Z },
2021-01-20T16:44:37.456845310Z “category”: “Orleans.Runtime.Scheduler.OrleansTaskScheduler”
2021-01-20T16:44:37.456849510Z }
2021-01-20T16:44:37.456853110Z
2021-01-20T16:44:37.675723171Z Unhandled exception. MongoDB.Driver.MongoCommandException: Command aggregate failed: the limit must be positive.
2021-01-20T16:44:37.675825672Z at MongoDB.Driver.Linq.MongoQueryProviderImpl1.Execute(Expression expression) 2021-01-20T16:44:37.675834172Z at MongoDB.Driver.Linq.MongoQueryableImpl
2.GetEnumerator()
2021-01-20T16:44:37.675839872Z at System.Collections.Generic.List1..ctor(IEnumerable
1 collection)
2021-01-20T16:44:37.675845072Z at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
2021-01-20T16:44:37.675850372Z at Squidex.Domain.Users.DefaultUserService.QueryAsync(String query, Int32 take, Int32 skip) in /src/src/Squidex.Domain.Users/DefaultUserService.cs:line 93
2021-01-20T16:44:37.675855872Z at Squidex.Areas.IdentityServer.Config.CreateAdminInitializer.IsEmptyAsync(IUserService userService) in /src/src/Squidex/Areas/IdentityServer/Config/CreateAdminInitializer.cs:line 116
2021-01-20T16:44:37.675861472Z at Squidex.Areas.IdentityServer.Config.CreateAdminInitializer.InitializeAsync(CancellationToken ct) in /src/src/Squidex/Areas/IdentityServer/Config/CreateAdminInitializer.cs:line 52
2021-01-20T16:44:37.675867472Z at Squidex.Hosting.InitializerHost.StartAsync(CancellationToken cancellationToken)
2021-01-20T16:44:37.675872572Z at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
2021-01-20T16:44:37.675877672Z at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-01-20T16:44:37.675888572Z at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-01-20T16:44:37.675893372Z at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
2021-01-20T16:44:37.682121940Z at Squidex.Program.Main(String[] args) in /src/src/Squidex/Program.cs:line 22