[SOLVED] TextIndexer5 does not index invalid geo data

I am running Squidex locally and the TextIndexer5 consumer has a BUG icon next to it and not running. If I try to run it comes back with the stop sign quickly.

I have the following error log in server:

2022-09-16T21:16:31.465397134Z {
2022-09-16T21:16:31.465437234Z   "logLevel": "Warning",
2022-09-16T21:16:31.465443134Z   "message": "Failed to execute timer.",
2022-09-16T21:16:31.465447434Z   "timestamp": "2022-09-16T21:16:31Z",
2022-09-16T21:16:31.465459234Z   "app": {
2022-09-16T21:16:31.465463934Z     "name": "Squidex",
2022-09-16T21:16:31.465468134Z     "version": "7.1.0.0",
2022-09-16T21:16:31.465472234Z     "sessionId": "7d83cf84-0ded-4d93-8f62-2b09ed1fa80e"
2022-09-16T21:16:31.465476434Z   },
2022-09-16T21:16:31.466468533Z   "category": "Squidex.Messaging.Mongo.MongoTransport",
2022-09-16T21:16:31.466484933Z   "exception": {
2022-09-16T21:16:31.466537133Z     "type": "MongoDB.Driver.MongoConnectionException",
2022-09-16T21:16:31.466545933Z     "message": "An exception occurred while receiving a message from the server.",
2022-09-16T21:16:31.473424230Z     "stackTrace": "   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBufferAsync(CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBufferAsync(Int32 responseTo, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Connections.BinaryConnection.Dropbox.RemoveMessage(Int32 responseTo)\n   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBufferAsync(Int32 responseTo, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveMessageAsync(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.PooledConnection.ReceiveMessageAsync(Int32 responseTo, IMessageEncoderSelector encoderSelector, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol\u00601.ExecuteAsync(IConnection connection, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocolAsync[TResult](IWireProtocol\u00601 protocol, ICoreSession session, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Operations.RetryableWriteOperationExecutor.ExecuteAsync[TResult](IRetryableWriteOperation\u00601 operation, RetryableWriteContext context, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase\u00601.ExecuteBatchAsync(RetryableWriteContext context, Batch batch, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Operations.BulkUnmixedWriteOperationBase\u00601.ExecuteBatchesAsync(RetryableWriteContext context, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.ExecuteBatchAsync(RetryableWriteContext context, Batch batch, CancellationToken cancellationToken)\n   at MongoDB.Driver.Core.Operations.BulkMixedWriteOperation.ExecuteAsync(IWriteBinding binding, CancellationToken cancellationToken)\n   at MongoDB.Driver.OperationExecutor.ExecuteWriteOperationAsync[TResult](IWriteBinding binding, IWriteOperation\u00601 operation, CancellationToken cancellationToken)\n   at MongoDB.Driver.MongoCollectionImpl\u00601.ExecuteWriteOperationAsync[TResult](IClientSessionHandle session, IWriteOperation\u00601 operation, CancellationToken cancellationToken)\n   at MongoDB.Driver.MongoCollectionImpl\u00601.BulkWriteAsync(IClientSessionHandle session, IEnumerable\u00601 requests, BulkWriteOptions options, CancellationToken cancellationToken)\n   at MongoDB.Driver.MongoCollectionImpl\u00601.UsingImplicitSessionAsync[TResult](Func\u00602 funcAsync, CancellationToken cancellationToken)\n   at MongoDB.Driver.MongoCollectionBase\u00601.UpdateManyAsync(FilterDefinition\u00601 filter, UpdateDefinition\u00601 update, UpdateOptions options, Func\u00603 bulkWriteAsync)\n   at Squidex.Messaging.Mongo.MongoTransportCleaner.\u003C\u003Ec__DisplayClass1_0.\u003C\u003C-ctor\u003Eb__0\u003Ed.MoveNext()\n--- End of stack trace from previous location ---\n   at Squidex.Messaging.Internal.SimpleTimer.\u003C\u003Ec__DisplayClass3_0.\u003C\u003C-ctor\u003Eb__0\u003Ed.MoveNext()"
2022-09-16T21:16:31.473472530Z   }
2022-09-16T21:16:31.473478230Z }
2022-09-16T21:16:31.473481930Z

I have never seen that and the error looks more like a network issue or something like that.

what does this BUG icon means?

You can click on it, and you should see the same exception that you get in the logs

okay found the exception:

A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : “Uncategorized”, Code : 16755, Message : “Can’t extract geo keys: { _id: “afe5edd4-b184-456e-84ae-2bceb6212262”, DocId: “39f5cacb-bc68-4cc4-b4cd-4631fe4f2bcd–59d8d267-b774-4446-9631-8ec971c1d81d_1”, _ci: “59d8d267-b774-4446-9631-8ec971c1d81d”, _ai: “39f5cacb-bc68-4cc4-b4cd-4631fe4f2bcd”, _si: “d4c1a805-a5c6-4eb6-a3a3-075e3090bb93”, fa: true, fp: true, gf: “location.iv”, go: { type: “Point”, coordinates: [ -38.11, 144.34 ] } } longitude/latitude is out of bounds, lng: -38.11 lat: 144.34” } ].

But I had that wrong value before which i had deleted. Now I have scanned the data for this out of range but there isn’t any. Confused… How can i reset the index?

This helps a lot. It is a bug. You cannot reset the index, because it will try to reindex previous versions of your content, therefore I have to provide a fix for that.

1 Like

The latest dev build contains a fix for that.

1 Like

how can I get the build via docker?

It is docker tag dev-7168

This topic was automatically closed after 2 days. New replies are no longer allowed.