Issue indexer queue not getting processed, 8000+ unfinished jobs
-
I went ahead and tried to flush the queue:
sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini manager flush-queues --timeout 20m
but even with that generous timeout value it timed out:
flush timeout with non-empty queues: issue_indexer
I've little to no idea of what I'm doing here btw.
-
I'm using Gitea for quite some years as well and this got me curious. The current queue can be seen in the webinterface of Gitea at
https://your-domain/admin/monitor
. My queues however are at0
.If you have not done yet I would check the logs of gitea if there are any abnormalities in regards to queue handling. Error messages at startup?
The same website also allows to see stacktraces for the running processes.
In the end it may be a bug within Gitea that would need reporting and fixing upstream.
-
@girish Must've got it wrong somehow. Anyway,
--debug
only adds one line of little insight:sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini manager flush-queues --debug 2023/01/16 09:45:29 ...dules/git/command.go:213:Run() [D] /usr/bin/git version flush timeout with non-empty queues: issue_indexer
-
@yusf I guess we have to ask upstream for ideas...
But I found https://github.com/go-gitea/gitea/issues/17563 . It suggests changing the indexer to db instead of the default bleve. Don't know if that will help your case.
I think another idea is to figure where these jobs are stored and clear that. There is a
task
table, probably there? -
@girish Setting
[indexer] ISSUE_INDEXER_TYPE=db
in
app.ini
solved the issue immediately. Thanks alot!Now I'm curious to know what
db
means in this context (but the urgency is gone ). Should the Cloudron package have db as ISSUE_INDEXER_TYPE out of the box, for example?Some Cloudron app config data got alot of legacy files from earlier versions, so sometimes it's hard to know what the true good defaults are.
-
-