“GitLab 服务已重新启动。”但事实并非如此 :/

“GitLab 服务已重新启动。”但事实并非如此 :/

我不知道该怎么办,我执行了启动 Gitlab 的脚本,上面显示“GitLab 服务已重新启动。”,但事实并非如此:我无法通过浏览器访问它,调用时端口也没有打开netstat -tuplen | grep 8080(我将端口修改gitlab.yml为 8080,因为 Apache 已经在 80 上运行)。

我查看了日志文件(全部),什么也没有发生。

我通过调用以下命令手动强制启动:

RAILS_ENV=production bundle exec rake sidekiq:stop

然后

RAILS_ENV=production bundle exec rake sidekiq:start

8080 仍然没有开放端口!

如果我调用检查( bundle exec rake gitlab:check RAILS_ENV=production),结果如下:

Checking Environment ...

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

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by gitlab:gitlab? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive 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? ... no
  Try fixing it:
  Redownload the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
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.10)

Checking GitLab ... Finished

详情请见:

  • 关于脚本最新的错误是因为我在没有的情况下完成了所有安装sudo,并且脚本需要sudo,我使用替换了该行sudosu -c "bash -l -c \"$1\"" -s /bin/sh $APP_USER
  • 我已将系统用户更改为gitlab(而不是git),因为该git用户已经存在
  • 我正确地更新了此信息gitlab.yml
  • 我还将主页设置为/home/gitlab而不是/home/git但我相应地更新了配置文件(gitlab.ymlconfig.yml来自gitlab-shell
  • 我还更新了初始化脚本中的更改

  • 我尝试使用 master 和 5-2-stable 运行 Gitlab。

  • 我正在使用 Debian Squeeze
  • 我安装了 Redis 的反向移植版本(针对 >= 2.0.0 的问题)

如果我看一下 sidekiq 日志,似乎没有什么异常:

2013-06-13T11:39:33Z 30287 TID-2nuf0 INFO: Booting Sidekiq 2.11.1 using redis://localhost:6379 with options {:namespace=>"resque:gitlab"}
2013-06-13T11:39:34Z 30287 TID-2nuf0 INFO: Running in ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
2013-06-13T11:39:34Z 30287 TID-2nuf0 INFO: See LICENSE and the LGPL-3.0 for licensing details.
2013-06-13T11:39:34Z 30287 TID-2nuf0 INFO: Starting processing, hit Ctrl-C to stop

我不知道还能展示什么或做什么。感谢您的帮助!

相关内容