Skip to content
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

Assigning a PR causes the server to hang #5639

Closed
2 of 7 tasks
apricote opened this issue Jan 4, 2019 · 4 comments · Fixed by #5640
Closed
2 of 7 tasks

Assigning a PR causes the server to hang #5639

apricote opened this issue Jan 4, 2019 · 4 comments · Fixed by #5640
Labels
Milestone

Comments

@apricote
Copy link
Contributor

apricote commented Jan 4, 2019

Description

Summary

When assigning a user to a PR, Gitea will never complete the POST request, from now on the Gitea Instance is "broken" and will not answer most requests. Restarting the server solves the problem until a user is assigned to a PR again.

The Log shows incoming requests, but they never succeed/complete:

[Macaron] 2019-01-04 17:26:12: Started POST /organization1/repository2/issues/assignee for 172.18.0.1
[Macaron] 2019-01-04 17:26:12: Started GET /organization1/repository2/pulls/42 for 172.18.0.1

Some requests still complete, for example, our instance is configured to require a login, accessing the PR page from an incognito browser window redirects me to the login page and renders it.

Steps to reproduce

Initially, the error happened in our company instance. I was able to reproduce the error on try.gitea.io.

@zeripath
Copy link
Contributor

zeripath commented Jan 4, 2019

OK this looks like an sqlite deadlock bug - I suspect the issue is at:

https://github.com/go-gitea/gitea/blob/master/models/issue_assignees.go#L176

@lafriks
Copy link
Member

lafriks commented Jan 4, 2019

I would not recommend running company instance on sqlite but @zeripath mentioned issue could be the cause

@pixelspark
Copy link

Experiencing this as well but on 1.9.4 (also SQLite). Can I help in any way (e.g. where to look for logs?)

@lunny
Copy link
Member

lunny commented Oct 30, 2019

@pixelspark Please open another issue and give some details.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants