升级后Gitlab 500出错

时间:2015-03-31 17:57:41

标签: ruby-on-rails ldap gitlab

我刚刚将我的Gitlab Omnibus安装从7.3升级到7.9.1,现在而不是显示登录页面,Gitlab只显示了一个500错误页面(见下文)

我还注意到/var/log/gitlab/gitlab-rails/production.log中的以下内容

Started GET "/" for 127.0.0.1 at 2015-03-31 13:36:56 -0400
Processing by DashboardController#show as HTML
PG::Error: ERROR:  relation "identities" does not exist
LINE 5:                WHERE a.attrelid = '"identities"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"identities"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum

Completed 500 Internal Server Error in 135ms

ActiveRecord::StatementInvalid (PG::Error: ERROR:  relation "identities" does not exist
LINE 5:                WHERE a.attrelid = '"identities"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"identities"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
):
  app/models/user.rb:425:in `ldap_user?'
  app/models/user.rb:463:in `requires_ldap_check?'
  app/controllers/application_controller.rb:208:in `ldap_security_check'

我应该注意,我们使用Gitlab进行LDAP身份验证。

0 个答案:

没有答案