500 Whoops, something went wrong on our end.
ported gitlab to another machine
Gitlab 13.12.3-ce was installed on Ubuntu 18.04 and everything worked fine. I also had ssl from letsencrypt. The move was to another distribution, where gitlab was built from source code and the gitlab itself worked well until I restored it from a backup.
Everything works based on:
bundle exec rake gitlab:env:info RAILS_ENV=production
bundle exec rake gitlab:check RAILS_ENV=production
backup and restore:
gitlab-ctl stop puma
gitlab-ctl stop sidekiq
gitlab-ctl status
gitlab-rake gitlab:backup:create STRATEGY=copy
cp /etc/gitlab/gitlab-secrets.json /root/
rc-service gitlab stop
mv *.tar /opt/gitlab/backups/
chown git:git /opt/gitlab/backups/*.tar
cd /opt/gitlab/gitlab
sudo -u git -H GITLAB_ASSUME_YES=1 bundle exec rake gitlab:backup:restore RAILS_ENV=production
I have converted json to yml
cp /root/secrets.yml /opt/gitlab/gitlab/config/
production.log: https://pastebin.com/06MtDiWa
secrets.yml: https://pastebin.com/USqiL2qg
su git
sh-5.1$ export RUBYOPT=--disable-did_you_mean
sh-5.1$ RAILS_ENV=production bundle exec rails c
--------------------------------------------------------------------------------
Ruby: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux]
GitLab: 13.12.3-ce (9d9769ba2ad) CE
GitLab Shell: 13.18.0
PostgreSQL: 12.6
--------------------------------------------------------------------------------
Loading production environment (Rails 6.0.3.6)
irb(main):001:0> ApplicationSetting.current.reset_runners_registration_token!
Traceback (most recent call last):
5: from (irb):1
4: from app/models/concerns/token_authenticatable.rb:53:in `block in add_authentication_token_field'
3: from app/models/concerns/token_authenticatable_strategies/base.rb:44:in `reset_token!'
2: from lib/gitlab/database.rb:370:in `transaction'
1: from lib/gitlab/database.rb:371:in `block in transaction'
OpenSSL::Cipher::CipherError ()
What is the problem?
Edited by Ghost User