Log events post failed with " Index was outside the bounds of the array"
See original GitHub issueI built an image use dockerfile myself from branch “feature-elastic7” several days ago, and run it in Linux-arm64. I can create account and add new project . But there are some error when i try to post events to exceptionless service:
[06:11:20 INF] Processing post: id=a0e7c9ad2a3043a2bc9394f18889f1e0 path=q/442/442f73672b834d82b6c9d968f2d9b429.payload project=5e1e859d340b4200010d2e32 ip=::ffff:10.161.67.47 v=2 agent=exceptionless/4.0.0
[06:11:20 FTL] Error processing action: SaveEventAction Message: Index was outside the bounds of the array.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Extensions.Logging.LogValuesFormatter.GetValue(Object[] values, Int32 index)
at Microsoft.Extensions.Logging.FormattedLogValues.GetEnumerator()+MoveNext()
at Serilog.Extensions.Logging.SerilogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
at Foundatio.Repositories.Elasticsearch.Extensions.LoggerExtensions.LogErrorRequest(ILogger logger, Exception ex, IElasticsearchResponse elasticResponse, String message, Object[] args)
at Foundatio.Repositories.Elasticsearch.Configuration.Index.CreateIndexAsync(String name, Func`2 descriptor)
at Foundatio.Repositories.Elasticsearch.Configuration.DailyIndex.EnsureDateIndexAsync(DateTime utcDate)
at Foundatio.Repositories.Elasticsearch.ElasticRepositoryBase`1.IndexDocumentsAsync(IReadOnlyCollection`1 documents, Boolean isCreateOperation, ICommandOptions options)
at Foundatio.Repositories.Elasticsearch.ElasticRepositoryBase`1.AddAsync(IEnumerable`1 documents, ICommandOptions options)
at Exceptionless.Core.Pipeline.SaveEventAction.ProcessBatchAsync(ICollection`1 contexts)
[06:11:20 ERR] Error processing EventPost a0e7c9ad2a3043a2bc9394f18889f1e0 q/442/442f73672b834d82b6c9d968f2d9b429.payload: Index was outside the bounds of the array.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Extensions.Logging.LogValuesFormatter.GetValue(Object[] values, Int32 index)
at Microsoft.Extensions.Logging.FormattedLogValues.GetEnumerator()+MoveNext()
at Serilog.Extensions.Logging.SerilogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args)
at Foundatio.Repositories.Elasticsearch.Extensions.LoggerExtensions.LogErrorRequest(ILogger logger, Exception ex, IElasticsearchResponse elasticResponse, String message, Object[] args)
at Foundatio.Repositories.Elasticsearch.Configuration.Index.CreateIndexAsync(String name, Func`2 descriptor)
at Foundatio.Repositories.Elasticsearch.Configuration.DailyIndex.EnsureDateIndexAsync(DateTime utcDate)
at Foundatio.Repositories.Elasticsearch.ElasticRepositoryBase`1.IndexDocumentsAsync(IReadOnlyCollection`1 documents, Boolean isCreateOperation, ICommandOptions options)
at Foundatio.Repositories.Elasticsearch.ElasticRepositoryBase`1.AddAsync(IEnumerable`1 documents, ICommandOptions options)
at Exceptionless.Core.Pipeline.SaveEventAction.ProcessBatchAsync(ICollection`1 contexts)
My elasticsearch version is 7.5.1 and run in the same enviroment. But it doesnot seems have problems. Please let me know which other information you need and how I can obtain it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error : Index was outside the bounds of the array. [duplicate]
This question already has answers here: Error: "Index was outside the bounds of the array." "Index was outside the bounds of the array."...
Read more >Error - Assign - Index was outside the bounds of the Array
The error is telling you that you are searching for a index position that does not exists in that array. My use case...
Read more >Getting the "Index is outside the bounds of the array" error
When I click on the error details link, the resulting screen displays the "Index is outside the bounds of the array" message.
Read more >Error "Index was outside the bounds of the array" exiting ABL ...
This is caused by a Microsoft bug in the .Net runtime event loop. The problem relates to how the runtime processes internal event...
Read more >Index outside bounds of array error - Excel
"Index was outside the bounds of the array" error when you import data from multiple tables in a SQL Server database to an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, this is my mistake. I didn’t check the two configs between Linux and Windows carefully.
The reason for this problem is that i have not downloaded “mapper-size” plugin for ES. It responded error “root mapping definition has unsupported parameters … [_size:{enabled=true}]…” when exceptionless tried to create prod-events-xxxx index. After that, foundatio.repositories.elasticsearch tried to log this error but somehow it failed.
Add “enable-size-plugin=false” into Elasticserach ConnectionString or add mapper-size plugin can avoid this problem.
Thanks for the heads up! We are getting close to a release (images are currently rc)