关于OSX Mavericks的Gitlab 6.3

时间:2014-01-09 10:33:31

标签: macos gitlab

OS X Mavericks 10.9.1 MBP 8Go Mem

您好,

我在尝试打开页面/ users / sign_in时面临以下问题,它正在为页面充电,但几秒钟后页面仍然是白色的......

我按照安装程序执行:https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X。 DNS是定义的,可以ping ...错过任何东西,欢迎任何帮助。

一切都很好,所有检查都给我绿色,当我启动服务器时,它给了我

"Gitlab and all its components are up and running.
The GitLab Unicorn web server with pid 3262 is running.
The GitLab Sidekiq job dispatcher with pid 3269 is running.
Results for the checks ...

1. sudo -u git -H bash -l -c 'bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     Mac OS X 10.9.1
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.5.1
Rake Version:   10.1.0

GitLab information
Version:    6.3.1
Revision:   779b4dc
Directory:  /Users/git/gitlab
DB Adapter: mysql2
URL:        http://server.gitlab.private:8080
HTTP Clone URL: http://server.gitlab.private:8080/some-project.git
SSH Clone URL:  git@server.gitlab.private:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.7.9
Repositories:   /Users/git/repositories/
Hooks:      /Users/git/gitlab-shell/hooks/
Git:        /usr/local/bin/git
  1. sudo -u git -H bash -l -c'bund exec rake gitlab:check RAILS_ENV = production'
  2. 检查环境......

    Git configured for git user? ... no
    Try fixing it:
    sudo -u git -H git config --global user.name  "GitLab"
    sudo -u git -H git config --global user.email "gitlab@server.gitlab.private:8080"
    For more information see:
    doc/install/installation.md in section "GitLab"
    Please fix the error above and rerun the checks.
    Has python2? ... yes
    python2 is supported version? ... yes
    
    Checking Environment ... Finished
    
    Checking GitLab Shell ...
    
    GitLab Shell version >= 1.7.9 ? ... OK (1.7.9)
    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
    Running /Users/git/gitlab-shell/bin/check
    Check GitLab API access: OK
    Check directories and files: 
    /Users/git/repositories: OK
    /Users/git/.ssh/authorized_keys: OK
    /usr/local/bin/redis-cli: OK
    gitlab-shell self-check successful
    
    Checking GitLab Shell ... Finished
    
    Checking Sidekiq ...
    
    Running? ... yes
    Number of Sidekiq processes ... 1
    
    Checking Sidekiq ... Finished
    

    检查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 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/local/bin/git"
    Git version >= 1.7.10 ? ... yes (1.8.5)
    
    Checking GitLab ... Finished`
    

    THK

1 个答案:

答案 0 :(得分:0)

您的问题可能与独角兽有关。请检查下一个日志文件:

/Users/git/gitlab/log/unicorn.stderr.log

如果您看到以下错误:

E, [2014-05-03T22:00:00.840089 #12548] ERROR -- : worker=1 PID:14239 timeout (31s > 30s), killing
E, [2014-05-03T22:00:00.862906 #12548] ERROR -- : reaped #<Process::Status: pid 14239 SIGKILL (signal 9)> worker=1

可能它与麒麟的超时有关。在下一个文件中增加超时

/Users/git/gitlab/config/unicorn.rb

并将超时修改为60或更高(如下所示):

# nuke workers after 30 seconds instead of 60 seconds (the default)
timeout 60

保存文件,现在你应该重启git。按照本教程(https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X)后,我没有获得Init脚本(我一定做错了)所以我去了,我通过launchctl做到了:

sudo launchctl unload /Library/LaunchDaemons/gitlab.web.plist
sudo launchctl unload /Library/LaunchDaemons/gitlab.background_jobs.plist

sudo launchctl load /Library/LaunchDaemons/gitlab.web.plist
sudo launchctl load /Library/LaunchDaemons/gitlab.background_jobs.plist

现在,不要尝试打开 / users / sign_in 页面,而是打开已配置的 gitlab_url 页面(在我的情况下,只是一个虚假的域名,例如my-domain.com,所以请转到http://my-domain.comhttps://my-domain.com,如果您已配置https,并加载它。

您现在应该看到GitLab的问候页面:)

如果仍然出现空白页或代理错误,请检查下一个路径中的日志文件:

/Users/git/gitlab/log/

/var/log/apache2/

这可能会让你知道出了什么问题。

干杯,