Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #976

Closed
Open
Created Jun 25, 2012 by Administrator@rootOwner

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

Assignee
Assign to
Time tracking