-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Gitea crash loop every 2 minutes #18917
Comments
Could you paste your queue settings in your |
I don't have any section called queue. I can see configs for it here, am I supposed to set anything? https://docs.gitea.io/en-us/config-cheat-sheet/#queue-queue-and-queue |
Could you paste the rest of your app.ini? |
Sure, here you go.
|
Can Gitea write to:
|
Let me give that a try. It is via a PVC to an NFS share which I recently enabled with no_root_squash, so I will check |
It can, but the user might be different now (I had removed runas git to troubleshoot). Should I run as git again?
|
Are you trying to have multiple giteas run at the same time? |
If so you need to use redis for your queues |
Nope, just one. When I had this issue, I started removing stuff to isolate. I disabled memcache and run as git. |
Killall Giteas and tell me if the LOCK file goes away |
Scaled it to 0, I still see the files, even the LOCK |
OK if you're definitely sure that there are no Giteas running you could try just deleting the LOCK file, and if things still fail delete the /data/queues/common directory. If however you want scaling you will need to change your queue type to redis. |
Will give that a try. I do not scale to more than 1, and don't plan to. But will keep redis in mind. |
Removed the LOCK, started gitea, the LOCK file is back. And it has been stable for > 5 mins. Looks like that was it! |
Cool. I think we can close this. Sorry it took me so long to get involved. The logs were saying that the issue was the level db was temporarily unavailable - which is code for it can't get a LOCK on the db - and it was pointing to the directory but I guess that this isn't completely clear. I guess the question is whether can do more to make things clearer. There are a couple of reasons why a lock can't be taken - but I guess we could just detect this error and try to suggest a few things. I'll close this issue though. |
…rmed connstr This PR adjusts the error returned when there is failure to lock the level db, and permits a connections to the same leveldb where there is a different connection string. Reference go-gitea#18921 Reference go-gitea#18917 Signed-off-by: Andrew Thornton <art27@cantab.net>
…rmed connstr (go-gitea#18923) Backport go-gitea#18923 This PR adjusts the error returned when there is failure to lock the level db, and permits a connections to the same leveldb where there is a different connection string. Reference go-gitea#18921 Reference go-gitea#18917 Signed-off-by: Andrew Thornton <art27@cantab.net>
…rmed connstr (#18923) (#18938) Backport #18923 This PR adjusts the error returned when there is failure to lock the level db, and permits a connections to the same leveldb where there is a different connection string. Reference #18921 Reference #18917 Signed-off-by: Andrew Thornton <art27@cantab.net>
…rmed connstr (go-gitea#18923) This PR adjusts the error returned when there is failure to lock the level db, and permits a connections to the same leveldb where there is a different connection string. Reference go-gitea#18921 Reference go-gitea#18917 Signed-off-by: Andrew Thornton <art27@cantab.net>
Gitea Version
1.16.2
Git Version
2.30.2
Operating System
k3s
How are you running Gitea?
Running on Kubernetes v1.22.6+k3s1 with the
docker.io/gitea/gitea:1.16.2
imageDatabase
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
REMOVED
Description
Gitea crashes every 1-2 minutes. All crashes end with
[F] Unable to create internal queue for XXX Error: Unable to create queue level for XXX with cfg ...
in the logsScreenshots
No response
The text was updated successfully, but these errors were encountered: