Error running gitlab on virtual mashine

Created by: ghost

Hi all. Please do not curse much, please. My problem is this: gitlab has been installed on KVM virtual machine which debian squeeze. The virtual machine is behind a nat. To access the web interface has been installed nginx on the host system. But when trying to create a repository, I get:

Gitolite Error Application cant get access to your gitolite system. Check 'config/gitlab.yml' for correct settings. Make sure web server user has access to gitolite. Setup tutorial Try: sudo chmod -R 770 /home/git/repositories/ sudo chown -R git:git /home/git/repositories/

chmod to the specified directory are correct.

In config/gitlab.yml:

Gitlab application config file

Email used for notification

about new issues, comments

email: from: git@mydomain.com host: mydomain.com

Protocol used for links in email letters

Value can be http or https

protocol: http # or https

Git Hosting configuration

git_host: system: gitolite admin_uri: git@git.mydomain.com:gitolite-admin base_path: /home/git/repositories/ host: git.mydomain.com git_user: git

port: 22

Git settings

Use default values unless you understand it

git:

Max size of git object like commit, in bytes

This value can be increased if you have a very large commits

git_max_size: 5242880 # 5.megabytes

Git timeout to read commit, in seconds

git_timeout: 10

nginx config:

server { listen 80; server_name git.mydomain.com; root /home/gitlab/gitlab/public;

# individual nginx logs for this gitlab vhost
access_log  /var/log/nginx/gitlab_access.log;
error_log   /var/log/nginx/gitlab_error.log;

location / {
# serve static files from defined root folder;.
# @gitlab is a named location for the upstream fallback, see below
try_files $uri $uri/index.html $uri.html @gitlab;
}

# if a file, which is not found in the root folder is requested,
# then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {
    proxy_set_header   X-FORWARDED_PROTO http;
        proxy_pass http://192.168.56.103:8080;

        proxy_redirect     off;

        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

        client_max_body_size       10m;
        client_body_buffer_size    128k;

        proxy_connect_timeout      90;
        proxy_send_timeout         90;
        proxy_read_timeout         90;

        proxy_buffer_size          4k;
        proxy_buffers              4 32k;
        proxy_busy_buffers_size    64k;
        proxy_temp_file_write_size 64k;
}

}

Tell me, please. In what may be the problem?