在Suse SLES 11上安装Gitlab - 无法登录Gitlab GUI

时间:2015-08-28 04:01:10

标签: gitlab suse

完成成功安装后,我仍然无法登录gitlab GUI。它继续投掷" 无效的电子邮件或密码"

以下是其他人建议的推荐解决方案的输出:

sudo -u git -H bundle exec rake gitlab:check RAI                                                                             LS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.1 ? ... OK (1.7.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... can't check, you have no projects

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... can't check, you have no projects
Projects have satellites? ... can't check, you have no projects
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.12)

Checking GitLab ... Finished

bundle exec rake db:seed_fu RAILS_ENV=production                                                                             
== Seed from /home/git/gitlab/db/fixtures/production/001_admin.rb
INFO: Sidekiq client using redis://localhost:6379 with options {:namespace=>"resque:gitlab"}

Administrator account created:

login.........admin@local.host
password......5iveL!fe

现在问题是我触发了网址并且我获得了登录屏幕但不幸的是,当我输入上面生成的凭据时,我一直收到有关无效电子邮件/密码的错误。

您建议您通过该错误消息?

1 个答案:

答案 0 :(得分:1)

这似乎是一个反复出现的问题,紧随其后的是issue 7226

建议的一些解决方法是:

  

命令gitlab-rake gitlab:setup RAILS_ENV=production解决了这个问题。

     

无法以root身份登录,但可以登录新的标准用户,他们登录就可以了;当发生这种情况时,命令gitlab-rake gitlab:setup RAILS_ENV=production修复root登录(可能会删除数据库中的其他所有内容,我猜)。

OP KronnorK确认in the comments这是一个设置问题(AD设置有错误的用户和密码),一旦修复,setup命令恢复了系统。