我刚刚将我的Dockerised GitLab实例从gitlab-ce:latest升级到gitlab-ee:latest。
除了Admin->设置页面之外,一切似乎都运行良好。它只给我一个500错误并记录下来:
ActionView::Template::Error (undefined method `twitter_sharing_enabled' for #<ApplicationSetting:0x00000014a77e48>):
80: .col-sm-offset-2.col-sm-10
81: .checkbox
82: = f.label :twitter_sharing_enabled do
83: = f.check_box :twitter_sharing_enabled, :'aria-describedby' => 'twitter_help_block'
84: Twitter enabled
85: %span.help-block#twitter_help_block Show users a button to share their newly created public or internal projects on twitter
86: .form-group
app/views/admin/application_settings/_form.html.haml:83:in `block (2 levels) in _app_views_admin_application_settings__form_html_haml___2805672912369624077_173324520'
app/views/admin/application_settings/_form.html.haml:82:in `block in _app_views_admin_application_settings__form_html_haml___2805672912369624077_173324520'
app/views/admin/application_settings/_form.html.haml:1:in `_app_views_admin_application_settings__form_html_haml___2805672912369624077_173324520'
app/views/admin/application_settings/show.html.haml:4:in `_app_views_admin_application_settings_show_html_haml___3252692826887083853_173266720'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
我已经清除缓存并运行迁移,似乎运行正常。
有什么想法吗?
答案 0 :(得分:0)
这取决于GitLab的确切版本:
db/migrate/20160331223143_remove_twitter_sharing_enabled_from_application_settings.rb
是最近的(13天前)
commit 85cc172清楚地显示def twitter_sharing_enabled?
已移除。
这意味着迁移中的某些内容可能尚未完全完成。