Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-23 12:40:55 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-23 18:24:29 +0300
commite3ff928c753447bfad33ff3facd51bfde3e32878 (patch)
tree5fc4ac96afb56aca565d15121d0b525bc135ce45 /lib/backup/files.rb
parenteffda09e06997f3b800e56617e1200cf795b890d (diff)
Describe workaround when restore fails because of `Errno::EBUSY`
When `Errno::EBUSY` is raised during restore, this could indicate that the directory being restored into is a mountpoint. In this case we explain the user how to retry the restore.
Diffstat (limited to 'lib/backup/files.rb')
-rw-r--r--lib/backup/files.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backup/files.rb b/lib/backup/files.rb
index 88cb7e7b5a4..9895db9e451 100644
--- a/lib/backup/files.rb
+++ b/lib/backup/files.rb
@@ -53,6 +53,8 @@ module Backup
FileUtils.mv(files, timestamped_files_path)
rescue Errno::EACCES
access_denied_error(app_files_dir)
+ rescue Errno::EBUSY
+ resource_busy_error(app_files_dir)
end
end
end