-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 command does not ignore temporary data directory data/tmp
#6785
Comments
Finding that path in the data volume, the file exists, but is a symlink, pointing to a nonexistent file (because it's a symlink commited into a repository, its target is not valid inside the gogs container, neither should it be valid) # ls -la /var/lib/docker/volumes/gogs-data/_data/gogs/data/tmp/local-repo/42/docker-compose.common.yml
lrwxrwxrwx 1 localadmin localadmin 56 Feb 21 14:17 /var/lib/docker/volumes/gogs-data/_data/gogs/data/tmp/local-repo/42/docker-compose.common.yml -> devops_scripts/docker/drupal-8/docker-compose.common.yml Probably the command gogs is running to backup this location isn't backing up symlinks as-is, but is dereferencing them, which it probably shouldn't do? |
Good find! I think the backup command shouldn't include As a workaround, you may delete your |
data/tmp
data/tmp
data/tmp
data/tmp
data/tmp
data/tmp
data/tmp
For reference, turns out the root issue was the in the Docker setup, the "data" directory is a sub-directory of the custom directory 🤦♂️ |
Gogs version
0.12.4
Git version
Operating system
official docker image gogs/gogs:0.12 sha256:f903b2d8de7e49a3619929a663229ec26d6d9ab67be63aab1552e89f959e2acd in Docker Community 20.10.12 on Ubuntu 18.04 LTS
Database
PostgreSQL 9.5.18
Describe the bug
Executing this command to run a backup to a mounted volume:
gives this error:
It used to work with no problem just a few days ago (scheduled daily) also on 0.12.4, the upgrade from 0.12.3 was done as soon as 0.12.4 came out. I think it was caused by some changes in the repositories hosted in gogs.
To reproduce
Described above
Expected behavior
successful backup
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: