Your message dated Thu, 16 Jul 2020 21:07:30 +0530
with message-id <[email protected]>
and subject line Backup is working now
has caused the Debian Bug report #846887,
regarding gitlab:backup:create fails with undefined method `zero?' for 
nil:NilClass
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
846887: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846887
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message --- On Sat, 03 Dec 2016 23:54:38 +0100 Johannes Schauer <[email protected]> wrote:
> 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:

Closing old bug. Backup is working now.

# gitlab-rake gitlab:backup:create
Check if Gitlab is configured correctly...
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
/usr/share/rubygems-integration/all/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: warning: `_1' is reserved for numbered parameter; consider another name /usr/share/rubygems-integration/all/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: warning: `_2' is reserved for numbered parameter; consider another name /usr/share/rubygems-integration/all/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: warning: `_3' is reserved for numbered parameter; consider another name /usr/share/rubygems-integration/all/gems/aws-sdk-core-2.9.32/lib/aws-sdk-core.rb:472: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead /usr/share/rubygems-integration/all/gems/aws-sdk-core-2.9.32/lib/aws-sdk-core.rb:472: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead /usr/share/rubygems-integration/all/gems/aws-sdk-core-2.9.32/lib/aws-sdk-core.rb:472: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead /usr/share/rubygems-integration/all/gems/aws-sdk-core-2.9.32/lib/aws-sdk-core.rb:472: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead /usr/share/rubygems-integration/all/gems/aws-sdk-core-2.9.32/lib/aws-sdk-core.rb:472: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
Attention: used pure ruby version of MurmurHash3
DEPRECATION WARNING: ActionDispatch::Http::ParameterFilter is deprecated and will be removed from Rails 6.1. Use ActiveSupport::ParameterFilter instead. (called from <top (required)> at /usr/lib/ruby/vendor_ruby/grape_logging/util/parameter_filter.rb:2) /usr/lib/ruby/vendor_ruby/acts_as_taggable_on/tagging.rb:9: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.1/lib/active_record/associations.rb:1657: warning: The called method `belongs_to' is defined here /usr/share/gitlab/lib/gitlab.rb:38: warning: already initialized constant Gitlab::COM_URL /usr/share/gitlab/lib/gitlab.rb:38: warning: previous definition of COM_URL was here /usr/share/gitlab/lib/gitlab.rb:39: warning: already initialized constant Gitlab::STAGING_COM_URL /usr/share/gitlab/lib/gitlab.rb:39: warning: previous definition of STAGING_COM_URL was here /usr/share/gitlab/lib/gitlab.rb:40: warning: already initialized constant Gitlab::APP_DIRS_PATTERN /usr/share/gitlab/lib/gitlab.rb:40: warning: previous definition of APP_DIRS_PATTERN was here /usr/share/gitlab/lib/gitlab.rb:41: warning: already initialized constant Gitlab::SUBDOMAIN_REGEX /usr/share/gitlab/lib/gitlab.rb:41: warning: previous definition of SUBDOMAIN_REGEX was here /usr/share/gitlab/lib/gitlab.rb:42: warning: already initialized constant Gitlab::VERSION /usr/share/gitlab/lib/gitlab.rb:42: warning: previous definition of VERSION was here /usr/share/gitlab/lib/gitlab.rb:43: warning: already initialized constant Gitlab::INSTALLATION_TYPE /usr/share/gitlab/lib/gitlab.rb:43: warning: previous definition of INSTALLATION_TYPE was here /usr/share/gitlab/lib/gitlab.rb:44: warning: already initialized constant Gitlab::HTTP_PROXY_ENV_VARS /usr/share/gitlab/lib/gitlab.rb:44: warning: previous definition of HTTP_PROXY_ENV_VARS was here /usr/share/rubygems-integration/all/gems/marginalia-1.8.0/lib/marginalia.rb:94: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/postgresql_adapter.rb:648: warning: The called method `execute_and_clear_without_marginalia' is defined here /usr/share/rubygems-integration/all/gems/doorkeeper-5.0.3/lib/doorkeeper/orm/active_record/access_grant.rb:17: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.1/lib/active_record/associations.rb:1657: warning: The called method `belongs_to' is defined here /usr/share/rubygems-integration/all/gems/doorkeeper-5.0.3/lib/doorkeeper/orm/active_record/access_token.rb:17: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.1/lib/active_record/associations.rb:1657: warning: The called method `belongs_to' is defined here /usr/share/rubygems-integration/all/gems/doorkeeper-5.0.3/lib/doorkeeper/models/concerns/ownership.rb:14: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.1/lib/active_record/associations.rb:1657: warning: The called method `belongs_to' is defined here
2020-07-16 15:33:11 +0000 -- Dumping database ...
Dumping PostgreSQL database gitlab_production ... [DONE]
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping repositories ...
* praveen/hello-testing (@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b) ... /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/grpc-1.26.0/src/ruby/lib/grpc/generic/service.rb:180: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/grpc-1.26.0/src/ruby/lib/grpc/generic/client_stub.rb:316: warning: The called method `server_streamer' is defined here
[DONE]
/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/grpc-1.26.0/src/ruby/lib/grpc/generic/service.rb:170: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/grpc-1.26.0/src/ruby/lib/grpc/generic/client_stub.rb:148: warning: The called method `request_response' is defined here
[DONE] Wiki
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping uploads ...
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping builds ...
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping artifacts ...
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping pages ...
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping lfs objects ...
2020-07-16 15:33:16 +0000 -- done
2020-07-16 15:33:16 +0000 -- Dumping container registry images ...
2020-07-16 15:33:16 +0000 -- [DISABLED]
Creating backup archive: 1594913596_2020_07_16_13.1.4_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
done
done
done
done
done
done
Deleting old backups ... skipping
Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
Backup task is done.

--- End Message ---

Reply via email to