Gitlab Restore Troubleshooting
Issue: API tokens not working
State
Gitlab backup restored from host to docker. The secrets were copied. There were no critical problems during the restoration process. After installation, the root password was reset. A private API token has been created, we didn't have any tokens before. The external URL domain has changed.
Request
Container logs:
==> /var/log/gitlab/puma/puma_stderr.log <==
caught error of type OpenSSL::Cipher::CipherError in after callback inside Grape::Middleware::Formatter :
==> /var/log/gitlab/gitlab-rails/production.log <==
OpenSSL::Cipher::CipherError ():
/opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/encryptor-3.0.0/lib/encryptor.rb:98:in 'final'
/opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/encryptor-3.0.0/lib/encryptor.rb:98:in 'crypt'
Solution
Fix Timezone in container