-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 dump takes a very long time #28943
Comments
Do you stop gitea before starting a dump,.there could be locks held on the database. My backup process is
|
Yes, at least if i understand it correctly. I closed the browser instance, though guess that is not enough. However running |
So rather than shutting down the docker, can you stop the gitea service within the docker? If you are able to run "gitea dump" you can run "gitea manager stop" (or rc-service gitea stop ... Assuming alpine/Gentoo based docker) There is also a "gitea manager flush-queues" There is either some git process or database query/task that is postponing the dump command from being executed in a timely fashion and thus these activities need to be completed to permit gitea exclusive access. This is why I prefer the stop method to ensure the dB is consistent when a dump is performed |
Hmmm, doesn't seem to work. |
Did you resolve the issue?
there is another way to backup gitea ? in kubernetes |
It's likely the dump output file is in the Gitea's data directory, then it packs itself again and again. Some cases could be fixed by #30240 , while there might be some still simliar cases. So you could use |
We close issues that need feedback from the author if there were no new comments for a month. 🍵 |
Description
Doing gitea dump inside docker takes a very long time. I have waited more than 30 minutes on an almost empty instance. What is taking so long?
The logs stop here
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
With docker-rootless
Database
SQLite
The text was updated successfully, but these errors were encountered: