While restoring a backup of a registry (as part of a complete restore), we get the trace below (the backup is from 1 server and the restore is on a local vm, the secrets file is copied and we did run a reconfigure)
Version 10.0.3
It reports something about a move of the registry dir failing:
** Invoke gitlab:backup:registry:restore (first_time)
** Invoke environment
** Execute gitlab:backup:registry:restore
Restoring container registry images …
rake aborted!
Errno::EBUSY: Device or resource busy @ rb_file_s_rename - (/var/opt/gitlab/gitlab-rails/shared/registry, /var/opt/gitlab/gitlab-rails/shared/registry.1508422892)
/opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:529:in rename' /opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:529:in
block in mv’
/opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:1572:in block in fu_each_src_dest' /opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:1588:in
fu_each_src_dest0’
/opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:1570:in fu_each_src_dest' /opt/gitlab/embedded/lib/ruby/2.3.0/fileutils.rb:518:in
mv’
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:46:in backup_existing_files_dir' /opt/gitlab/embedded/service/gitlab-rails/lib/backup/files.rb:37:in
restore’
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:221:in block (4 levels) in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in
block in execute’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in
execute’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/2.3.0/monitor.rb:214:in
mon_synchronize’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in
invoke’
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:62:in block (3 levels) in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in
block in execute’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in
execute’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/2.3.0/monitor.rb:214:in
mon_synchronize’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in
invoke’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in
block (2 levels) in top_level’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in each' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in
block in top_level’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in
top_level’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in block in run' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in
standard_exception_handling’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in run' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rake-12.0.0/exe/rake:27:in
<top (required)>’
/opt/gitlab/embedded/bin/rake:23:in load' /opt/gitlab/embedded/bin/rake:23:in
<top (required)>’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in load' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in
kernel_load’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in run' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in
exec’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in dispatch' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in
dispatch’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in start' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in
start’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in block in <top (required)>' /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in
with_friendly_errors’
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in
load’
/opt/gitlab/embedded/bin/bundle:23:in `’
Tasks: TOP => gitlab:backup:registry:restore