New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment Problem #122

Closed
MrKeiKun opened this Issue Sep 3, 2013 · 1 comment

Comments

1 participant
@MrKeiKun

MrKeiKun commented Sep 3, 2013

ScreenShot
rawr101

/etc/httpd/conf.d/gitlab.conf

Forbidden

You don't have permission to access /uploads/note/attachment/108/item_description.jpg on this server.

Apache/2.2.15 (CentOS) Server at git.example.com Port 80
## GitLab
<VirtualHost *:80>
        ServerAdmin webmaster@example.com
        ServerName git.example.com

        ProxyPass /uploads !
        ProxyPass /error !

        # Changed default 8080 to 9292 on unicorn.rb
        # Timeout due to Building Graph (Still Failing)
        ProxyPass / http://127.0.0.1:9292/ timeout=300
        ProxyPassReverse / http://127.0.0.1:9292/ timeout=300
        ProxyPreserveHost On

        CustomLog /var/log/git_access.log combined
        ErrorLog /var/log/git_error.log

        DocumentRoot /home/git/gitlab/public

        <Location />
                Order allow,deny
                Allow from all
        </Location>
</VirtualHost>
[git@Example public]$ pwd
/home/git/gitlab/public
[git@Example public]$ ls -l
total 60
-rw-rw-r-- 1 git git   357 Aug 21 00:39 404.html
-rw-rw-r-- 1 git git   399 Aug 21 00:39 422.html
-rw-rw-r-- 1 git git   356 Aug 21 00:39 500.html
drwxrwxr-x 5 git git  8192 Sep  1 09:38 assets
-rw-rw-r-- 1 git git   374 Aug 21 00:39 deploy.html
-rw-rw-r-- 1 git git  1150 Aug 21 00:39 favicon.ico
-rw-rw-r-- 1 git git 17388 Aug 21 00:39 gitlab_logo.png
-rw-rw-r-- 1 git git   204 Aug 21 00:39 robots.txt
-rw-rw-r-- 1 git git   518 Aug 21 00:39 static.css
drwxrwxr-x 4 git git  4096 Sep  3 12:08 uploads
[git@Example gitlab]$ bundle exec rake gitlab:env:info RAILS_ENV=production && bundle exec rake gitlab:check RAILS_ENV=production

System information
System:         CentOS release 6.4 (Final)
Current User:   git
Using RVM:      no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:        6.1.0.pre
Revision:       54faf78
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            http://git.example.com
HTTP Clone URL: http://git.example.com/some-project.git
SSH Clone URL:  git@git.example.com:some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        1.7.1
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git
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.0 ? ... 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: ...
Group / Project ... ok

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? ...
Group / Project ... yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.11)

Checking GitLab ... Finished
@MrKeiKun

This comment has been minimized.

Show comment
Hide comment
@MrKeiKun

MrKeiKun Sep 3, 2013

i fixed the problem
via chmod 755 /home/git

MrKeiKun commented Sep 3, 2013

i fixed the problem
via chmod 755 /home/git

@MrKeiKun MrKeiKun closed this Sep 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment