2013-02-11 122 views
1

我終於得到了在Mountain Lion Server上運行的Gitlab。關於提交文件的Gitlab 404

除了文件和提交頁面,一切似乎都正常,我總是得到「404 您正在查找的資源不存在。」

但是Repository存在並且不是空的,我可以用Git Tower來推動它並且沒有問題。

而另一個奇怪的行爲是網絡選項卡的作用就像一個魅力。

束EXEC耙gitlab:檢查RAILS_ENV =生產看起來也蠻好

Checking Environment ... 

gitlab user is in gitg group? ... yes 
Has no "-e" in ~gitolite/.profile ... yes 
Git configured for gitlab user? ... yes 
Has python2? ... yes 
python2 is supported version? ... yes 

Checking Environment ... Finished 

Checking Gitolite ... 

Using recommended version ... no 
    Try fixing it: 
    We strongly recommend using the version pointed out in the installation guide. 
    For more information see: 
    doc/install/installation.md in section "Gitolite" 
Repo umask is 0007 in .gitolite.rc? ... yes 
Allow all Git config keys in .gitolite.rc ... yes 
Config directory exists? ... yes 
Config directory owned by gitolite:gitg ... yes 
Config directory access is drwxr-x---? ... yes 
Repo base directory exists? ... yes 
Repo base directory is a symlink? ... no 
Repo base owned by gitolite:gitg? ... yes 
Repo base access is drwsrws---? ... yes 
Can clone gitolite-admin? ... yes 
Can commit to gitolite-admin? ... yes 
post-receive hook exists? ... yes 
post-receive hook up-to-date? ... yes 
post-receive hooks in repos are links: ... 
Groz Beckert Company Presentation Standalone App ... ok 
Git config in repos: ... 
Groz Beckert Company Presentation Standalone App ... ok 

Checking Gitolite ... 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? ... no 
    Try fixing it: 
    Install 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. 
Init script up-to-date? ... can't check because of previous errors 
Projects have satellites? ... 
Groz Beckert Company Presentation Standalone App ... yes 

Checking GitLab ... Finished 

任何人都得到了線索?

回答

0

這可能取決於其GitLab的準確版本正在運行:

Issue 2698,解決了僅僅20天前Issue 2602,似乎一個子域使用gitlab時,表示有任何問題,與相對地址鏈接:

http://dev.mysite.com:81/gitlab/ 
+0

再次感謝提示! 我認爲這足以在我的Apache conf中定義RailsBaseURI,但事實證明,我必須在配置/ environments/production.conf中添加'ENV ['RAILS_RELATIVE_URL_ROOT']'並在配置中取消註釋'relative_url_root:' /gitlab.yml – zentur 2013-02-11 13:54:30