[DRE-maint] Bug#846887: gitlab:backup:create fails with undefined method `zero?' for nil:NilClass
Johannes Schauer
josch at debian.org
Sat Dec 3 22:54:38 UTC 2016
Package: gitlab
Version: 8.13.3+dfsg1-2
Severity: important
Hi,
in an effort to fix the problem I reported as #845935, I thought I'd try
to backup my installation, do a fresh install in a completely new and
clean container and restore the backup there. Unfortunately, that plan
failed because gitlab was unable to create a backup. It quit with:
# su gitlab
$ cd /usr/share/gitlab
$ export $(cat /etc/gitlab/gitlab-debian.conf)
$ rake gitlab:backup:create RAILS_ENV=production --trace
[...]
* debian-bootstrap/bootstrap ... [DONE]
* debian-bootstrap/bootstrap.wiki ... [SKIPPED]
* debian-bootstrap/bootstrap_debian_net ... [DONE]
* debian-bootstrap/bootstrap_debian_net.wiki ... [SKIPPED]
* debian-bootstrap/botch ... [DONE]
* debian-bootstrap/botch.wiki ... [DONE]
* debian-bootstrap/botch-tests ... rake aborted!
NoMethodError: undefined method `zero?' for nil:NilClass
/usr/share/gitlab/lib/backup/repository.rb:19:in `block in dump'
/usr/lib/ruby/vendor_ruby/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/usr/lib/ruby/vendor_ruby/active_record/relation/batches.rb:51:in `each'
/usr/lib/ruby/vendor_ruby/active_record/relation/batches.rb:51:in `block in find_each'
/usr/lib/ruby/vendor_ruby/active_record/relation/batches.rb:124:in `find_in_batches'
/usr/lib/ruby/vendor_ruby/active_record/relation/batches.rb:50:in `find_each'
/usr/lib/ruby/vendor_ruby/active_record/querying.rb:9:in `find_each'
/usr/share/gitlab/lib/backup/repository.rb:8:in `dump'
/usr/share/gitlab/lib/tasks/gitlab/backup.rake:72:in `block (4 levels) in <top (required)>'
/usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `block in execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:172:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:165:in `invoke'
/usr/share/gitlab/lib/tasks/gitlab/backup.rake:12:in `block (3 levels) in <top (required)>'
/usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `block in execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:172:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:165:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:150:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:115:in `run_with_threads'
/usr/lib/ruby/vendor_ruby/rake/application.rb:100:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:78:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:176:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:75:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => gitlab:backup:repo:create
What can I do?
Thanks!
cheers, josch
More information about the Pkg-ruby-extras-maintainers
mailing list