-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running a second instance of Gitea on the same storage path hangs #5798
Comments
Gitea expects to be able claim the lock for indexing. Are you running a second install of Gitea using same path for High Availability reasons? |
Yeah. For a rolling upgrade without downtime. |
@techknowlogick any suggestions or outline of how to solve this? would setting a per-instance index file work? |
I will test it. |
We're working on deploying a multi-master Gitea using CephFS as shared storage for both git repos and blevesearch indexes. We seemed to have the system working on 1.6.0, but suspect that we're hitting this issue after upgrading to 1.7.1. The system is not in production yet, and we don't have much in the way of historical data to contribute to this bug report. But if you do come up with a solution to this, we would be happy to help out with some fairly high-volume testing. |
@jeblair any logs could you give? |
I ran strace on the second gitea process I started and came to the same conclusion as @segevfiner, when I saw an open file handle to issues.bleve and flock syscalls. Other than that, I didn't see much of use. Is there anything I should look for? |
Looking at the indexer code, it seems to be a nice clean interface (yay for interfaces!) What would people think about adding something like an optional elasticsearch driver that people trying to do larger installations could use, but keep the bleve implementation in as the default so that people don't have to install elasticsearch just to get a gitea? |
@emonty that's exactly the plan 😉 |
@techknowlogick sweet! that sounds like an excellent plan. 👍 |
I have sent #6144, then if you change ISSUE_INDEXER_TYPE to |
[x]
):Description
Running a second instance of Gitea using the same storage path hangs on startup on locking
issues.bleve
. This probably didn't happen to us on 1.5 due to the issue fixed by #5563.Stack trace
cc @zvikagart
The text was updated successfully, but these errors were encountered: