code.forgejo.org: database ping failed with error: context canceled #61
Labels
No labels
bug
cleanup
duplicate
enhancement
forgefriends
help wanted
invalid
label workflow
need more info
question
refactor
static-site
sync
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/k8s-cluster#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Happened once and no notes were taken. Recording the incidents here for forensic purposes:
xorm
SQLite
v10 & v11 upgrades
as of 17 April 2025 both v11 & v12-dev run go-sqlite v1.14.28 / SQLite 3.49.1https://codeberg.org/forgejo/forgejo/pulls/7563 -
f76bae4b00
.Nothing in the changelog since SQLite 3.46.1 suggests a fix related to this problem https://sqlite.org/changes.html
Given that SQLite connection ping is about opening a session to a file with no network connection, it could only timeout for two reasons:
Although it was observed on a DRBD mounted device, the I/O problem is ruled out because:
Which leaves the deadlock. It seems to happen only when the instance slows down for some reason. Maybe having slow SQL queries increases the likelyhood of the deadlock and it sometime manifests itself.
If that happens again it would be best documented & tracked publicly in Forgejo itself.
Followup https://codeberg.org/forgejo/forgejo/issues/7741