I have…
- [ x] Checked the logs and have provided the logs if I found something suspicious there
“logLevel”: “Warning”,
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “message”: "Unreleased index found.",
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “schemaId”: “d3434550-a3c4-4d92-9ca7-ea09aa7c19ea”,
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “app”: {
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “name”: “Squidex”,
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “version”: “4.1.0.0”,
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “sessionId”: “756df6d4-a760-4d6d-8a6b-2c2eb2ef724f”
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT },
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT “timestamp”: “2020-02-25T12:13:31Z”
2020-02-25T12:13:31.07+0000 [APP/PROC/WEB/0] OUT }
System.NullReferenceException: Object reference not set to an instance of an object. at Squidex.Domain.Apps.Entities.Contents.Text.IndexManager.CommitInternalAsync(IIndex index, Boolean dispose) in /src/src/Squidex.Domain.Apps.Entities/Contents/Text/IndexManager.cs:line 118 at Squidex.Domain.Apps.Entities.Contents.Text.IndexManager.AcquireAsync(Guid schemaId) in /src/src/Squidex.Domain.Apps.Entities/Contents/Text/IndexManager.cs:line 73 at Squidex.Domain.Apps.Entities.Contents.Text.TextIndexerGrain.OnActivateAsync(Guid key) in /src/src/Squidex.Domain.Apps.Entities/Contents/Text/TextIndexerGrain.cs:line 57 at Squidex.Infrastructure.Orleans.GrainOfGuid.ActivateAsync(Guid key) in /src/src/Squidex.Infrastructure/Orleans/GrainOfGuid.cs:line 40 at Orleans.LifecycleSubject.g__CallOnStart|7_0(Int32 stage, OrderedObserver observer, CancellationToken cancellationToken) at Orleans.LifecycleSubject.OnStart(CancellationToken ct) at Orleans.Runtime.Catalog.CallGrainActivate(ActivationData activation, Dictionary2 requestContextData) at Orleans.Runtime.Scheduler.AsyncClosureWorkItem.Execute() at Orleans.Runtime.Catalog.InitActivation(ActivationData activation, String grainType, String genericArguments, Dictionary
2 requestContextData) at Orleans.Runtime.Catalog.InitActivation(ActivationData activation, String grainType, String genericArguments, Dictionary2 requestContextData) at Orleans.Internal.OrleansTaskExtentions.<ToTypedTask>g__ConvertAsync|4_0[T](Task
1 asyncTask) at Squidex.Domain.Apps.Entities.Contents.Text.GrainTextIndexer.On(Envelope1 event) in /src/src/Squidex.Domain.Apps.Entities/Contents/Text/GrainTextIndexer.cs:line 86 at Squidex.Infrastructure.EventSourcing.Grains.EventConsumerGrain.DispatchConsumerAsync(Envelope
1 event) in /src/src/Squidex.Infrastructure/EventSourcing/Grains/EventConsumerGrain.cs:line 247 at Squidex.Infrastructure.EventSourcing.Grains.EventConsumerGrain.<>c__DisplayClass12_0.<b__0>d.MoveNext() in /src/src/Squidex.Infrastructure/EventSourcing/Grains/EventConsumerGrain.cs:line 91— End of stack trace from previous location where exception was thrown — at Squidex.Infrastructure.EventSourcing.Grains.EventConsumerGrain.DoAndUpdateStateAsync(Func`1 action, String caller) in /src/src/Squidex.Infrastructure/EventSourcing/Grains/EventConsumerGrain.cs:line 200
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [ x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
We are running v4.10 and have two environments (Dev and UAT). On Dev the TextIndexer2 consumer is not running. On UAT it works as expected. If I try to restart the consumer it fails after a few minutes with the above errors. The first indicates an index is locked which may be the cause for the object reference error that follows it.
Expected behavior
The TextIndexer2 consumer would run and searching within the interface would return results.
Minimal reproduction of the problem
This appears to be specific to one of our instances so maybe an index is corrupt?
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ x] Self hosted with other version
- [ ] Cloud version
Hosted in GovPaaS (Cloud Foundry using a dotnetcore buildpack)
Version: 4.10
Browser:
- [ x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
We are storing assets in MongoDB. I had seen an issue someone had regarding indexes and a suggestion was to delete the index_{id}.zip files. I cannot see these in the Mongo Assets collection so have not been able to try this as an option.