2014-01-09 53 views
0

OS X 10.9.1小牛MBP 8Go紀念品在OSX小牛Gitlab 6.3

你好,

試圖打開該網頁/用戶/ 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: [email protected]: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 
  • 須藤-u git的-H的bash -l -c「包EXEC耙gitlab:檢查RAILS_ENV =生產」
  • 檢查環境...

    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 "[email protected]: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

    回答

    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 
    

    保存文件,現在你應該重新啓動飯桶。下面這個教程(https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X)我沒有得到一個初始化腳本之後(我一定是做了錯誤的),所以我去了,我做到了通過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 
    

    請勿嘗試打開/用戶/ sign_in頁面,而是你已經配置了gitlab_url頁(在我的情況下,它只是如my-domain.com假的域名,所以去http://my-domain.comhttps://my-domain.com,如果您已配置HTTPS,並讓它加載)。

    您現在應該看到GitLab的歡迎頁:)

    如果仍然得到一個空白頁或代理錯誤,請檢查日誌文件,在未來的路徑:

    /Users/git/gitlab/log/ 
    
    /var/log/apache2/ 
    

    ,可能會給你瞭解哪裏出了問題。

    乾杯,