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

Docker: Backup fills up entire disk #28669

Closed
mathius1111 opened this issue Dec 31, 2023 · 2 comments
Closed

Docker: Backup fills up entire disk #28669

mathius1111 opened this issue Dec 31, 2023 · 2 comments
Labels

Comments

@mathius1111
Copy link

Description

When creating a backup the disk is continuously written to until I stop it or it takes up the entire disk. The first time it wrote over 400GB of data for a new instance with one user and one 47 KiB repo.

I've tried a few different backup commands including:

Run on the server:

./gitea dump -c /data/gitea/conf/app.ini

Run from WSL2:

docker exec -u git -it -w /tmp $(docker ps -qf "name=gitea-gitea-1") bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini --file /tmp/gitea-dump.zip'

docker exec -u git -it -w /data/gitea/backups $(docker ps -qf name="gitea-gitea-1") bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini'

Gitea Version

1.21.3 built with GNU Make 4.4.1, go1.21.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Windows via Docker

How are you running Gitea?

Docker image: gitea/gitea:latest

Database

SQLite

@joshtrichards
Copy link

Any chance your log/ folder has some overly large log in it? Or, possibly, any of the folders that get included in the dump:

https://docs.gitea.com/administration/backup-and-restore#backup-command-dump

Maybe do some digging around with du for the folders listed just to rule out the obvious.

@wxiaoguang
Copy link
Contributor

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 --file option to set the output file to a non-Gitea directory

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants