亲测可用,建议收藏
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/59822
# backup and restore admin/runner 500 Internal Server Error
# gitlab-rails console
-------------------------------------------------------------------------------------
GitLab: 11.10.1 (861fe405571)
GitLab Shell: 9.0.0
PostgreSQL: 9.6.11
-------------------------------------------------------------------------------------
Loading production environment (Rails 5.0.7.2)
irb(main):001:0> Ci::Runner.all.update_all(token_encrypted: nil)