Fix "database table is locked" #9

Closed
JonasFranzDEV wants to merge 2 commits from fix-sqlite into master
Owner

This PR solves the problem that occures if you try to migrate a repo to a sqlite gitea instance. It just retries if a "database table is locked" occures.

Needs the approval of another contributor.

This PR solves the problem that occures if you try to migrate a repo to a sqlite gitea instance. It just retries if a "database table is locked" occures. Needs the approval of another contributor.
JonasFranzDEV added this to the 0.0.10 milestone 7 years ago
JonasFranzDEV added the
bug
help wanted
labels 7 years ago
Poster
Owner
CC @techknowlogick @kolaente
JonasFranzDEV added the
wip
label 7 years ago
Poster
Owner

It seems that this problem is a bug of gitea since the issue get's created but it fails while setting the status:

2018/06/18 09:04:29 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:29 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:30 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:31 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:36 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:39 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: comment
2018/06/18 09:04:40 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:42 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:43 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
2018/06/18 09:04:44 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label
It seems that this problem is a bug of gitea since the issue get's created but it fails while setting the status: ``` 2018/06/18 09:04:29 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:29 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:30 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:31 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:36 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:39 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: comment 2018/06/18 09:04:40 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:42 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:43 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label 2018/06/18 09:04:44 [...api/v1/repo/issue.go:203 CreateIssue()] [E] ChangeStatus: database table is locked: label ```
Poster
Owner

I've created an issue at go-gitea/gitea: https://github.com/go-gitea/gitea/issues/4268

I've created an issue at go-gitea/gitea: https://github.com/go-gitea/gitea/issues/4268
Collaborator

So does this mean you could resolve the issue on your side and everything is ok? Or do we need to wait for this to get resolved in Gitea?

So does this mean you could resolve the issue on your side and everything is ok? Or do we need to wait for this to get resolved in Gitea?
Poster
Owner

@kolaente The problem is that if this problem occures no comments for the specific issue will be created. I thinknthat I will find a solution which does not depend on gitea.

@kolaente The problem is that if this problem occures no comments for the specific issue will be created. I thinknthat I will find a solution which does not depend on gitea.
Poster
Owner

I close this PR since this issue must be resolved at Gitea.

I close this PR since this issue must be resolved at Gitea.
JonasFranzDEV closed this pull request 7 years ago
All checks were successful
the build was successful
Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: JonasFranzDEV/gitea-github-migrator#9
Loading…
There is no content yet.