Backup LFS Folder Missing
Hi,
I ran into an issue today that I can reproduce pretty easily.
I migrated my GitLab CE Docker installation (Image 8.1.3-ce.0
) via apt-get to rebuild the container with 8.2.0-ce.0
.
The migration was successful and everything worked fine.
However when I wanted to created a backup of this updated 8.2.0
installation, he told me the following:
Dumping lfs objects ...
rake aborted!
Errno::ENOENT: No such file or directory @ realpath_rec - /var/opt/gitlab/gitlab-rails/shared/lfs-objects
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:9:in `realpath'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:9:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/lfs.rb:6:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:146:in `new'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:146:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:16:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:lfs:create
An easy fix was to manually create the folder /var/opt/gitlab/gitlab-rails/shared/lfs-objects
.
After that the backup finished without any problems.
I saw this error twice in a row as I repeated the migration (with an fresh 8.1.3-ce.0
container) to ensure that it hadn't been my fault.
So either I ignored some important migration warnings (feel free to close this issue then), or the migration didn't create the folder.
Best regards