Closed
Description
Description
I've tried to enable code indexing in our instance using Elasticsearch, but I get the following error for a lot of repositories:
workergroup.go:102:doWorkerHandle() [E] Queue "code_indexer" failed to handle batch of 20 items, backoff for a few seconds
indexer.go:128:func2() [E] Codes indexer handler: index error for repo 713: elastic: Error 413 (Request Entity Too Large)
workergroup.go:102:doWorkerHandle() [E] Queue "code_indexer" failed to handle batch of 1 items, backoff for a few seconds
I've changed the setting http.max_content_length
in the Elasticsearch config to the maximum possile value 2147483647b
but the error still comes up.
This also comes up for a lot of repositories, not just our biggest ones.
I'm unsure how the indexer works, does it take the whole sourcecode of a branch and pumps it into elastic? Is some kind of batching per x files needed?
Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Running Gitea on Linux amd64 with the official binary and Elasticsearch within Docker
Database
None