-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add sqlite MaxOpenConns to 1 for fixing database locking #4848
Conversation
This might not work because even if max connections is set to 1, multiple processes will still try to connect to DB (for example |
The solution could be to use the gitea api in |
@techknowlogick @sapk that's why we have |
@lunny that makes sense. |
I could try to migrate serv to /internal and not use the models/database access. |
I've tried this a time ago and it resulted in random errors like the server hanging up. |
I think this should be closed in favor of #4886 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
Closing as SQLite locking has mostly been resolved in other PRs |
see https://github.com/mattn/go-sqlite3#faq
ref: #2040 (comment)