Gitlab从CE 7.14迁移到8.17.8导致unicorn无法启动,502错误
Migrating Gitlab from CE 7.14 to 8.17.8 causes unicorn to be unable to start and 502 error
从 7.1 成功迁移到 7.14 后,我尝试迁移到 8.17.8 版本。不幸的是它没有用,因为现在我收到以下错误:
==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
NameError: uninitialized constant UsersGroup::Notifiable
/opt/gitlab/embedded/service/gitlab-rails/app/models/users_group.rb:15:in `<class:UsersGroup>'
==> /var/log/gitlab/sidekiq/current <==
2018-05-25_06:21:50.98012 uninitialized constant UsersGroup::Notifiable
我试过运行重新配置、重新启动,甚至重新启动服务器,但没有任何效果。
如果 sudo gitlab-ctl reconfigure
不足以解决问题,那么您可以考虑再次执行相同的迁移,但这次是逐个次要版本。
即:遵循“Upgrade recommendations”(您所做的):
We recommend that you first upgrade to the latest available minor version within your major version. By doing this, you can address any deprecation messages that could possibly change behaviour in the next major release.
不过这次先试7.14到8.0.x,再试8.17.8,也就是低版本8.x
中间的一个步骤
从 7.1 成功迁移到 7.14 后,我尝试迁移到 8.17.8 版本。不幸的是它没有用,因为现在我收到以下错误:
==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
NameError: uninitialized constant UsersGroup::Notifiable
/opt/gitlab/embedded/service/gitlab-rails/app/models/users_group.rb:15:in `<class:UsersGroup>'
==> /var/log/gitlab/sidekiq/current <==
2018-05-25_06:21:50.98012 uninitialized constant UsersGroup::Notifiable
我试过运行重新配置、重新启动,甚至重新启动服务器,但没有任何效果。
如果 sudo gitlab-ctl reconfigure
不足以解决问题,那么您可以考虑再次执行相同的迁移,但这次是逐个次要版本。
即:遵循“Upgrade recommendations”(您所做的):
We recommend that you first upgrade to the latest available minor version within your major version. By doing this, you can address any deprecation messages that could possibly change behaviour in the next major release.
不过这次先试7.14到8.0.x,再试8.17.8,也就是低版本8.x
中间的一个步骤