ubuntu 12.04 升级gitlab后500错误

Feng_Yu 发布于 2014/10/23 11:08
阅读 1K+
收藏 0

刚从7.3.1升级到7.4就挂了,有没有人知道怎么回事?

系统ubuntu 12.04,从官方下载的deb安装包,使用sudo dpkg -i安装升级,然后sudo gitlab-ctl reconfigure之后重启gitlab,但是出现了500错误。

这是gitlab-rails的prodution.log

Processing by DashboardController#show as HTML
PG::Error: ERROR:  relation "members" does not exist
LINE 5:                WHERE a.attrelid = '"members"'::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 = '"members"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum

Completed 500 Internal Server Error in 183ms

ActiveRecord::StatementInvalid (PG::Error: ERROR:  relation "members" does not exist
LINE 5:                WHERE a.attrelid = '"members"'::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 = '"members"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
):
  app/models/user.rb:295:in `authorized_projects'
  app/controllers/dashboard_controller.rb:77:in `load_projects'

这是我的/etc/gitlab/gitlab.rb配置

 
# Change the external_url to the address your users will type in their browser
external_url 'http://*******'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.*****"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "****@****"
gitlab_rails['smtp_password'] = "*****"
gitlab_rails['smtp_domain'] = "****.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
# If your SMTP server does not like the default 'From: gitlab@localhost' you
# can change the 'From' with this setting.
gitlab_rails['gitlab_email_from'] = '****@****.com'
redis['enable'] = false
gitlab_rails['gitlab_shell_ssh_port'] = ****
gitlab_rails['redis_host'] = '127.0.0.1'
gitlab_rails['redis_port'] = 6379 # defaults to 6379
unicorn['port'] = 8001

相关issue已经在github上提出: https://github.com/gitlabhq/gitlabhq/issues/8143

加载中
返回顶部
顶部