2

ブラウザから GitLab にアクセスしようとすると、認証のポップアップが表示されるという問題が発生しています。.htaccess 認証ポップアップのように見えますが、nginx 構成で htaccess 認証を構成していません。

認証が必要

    The server at http://git.servername.com:80 requires a username and password.
    The server says: Password Protected.
    Username:
    Password:

この問題のトラブルシューティングを数日間試みましたが、nginx エラー ログまたは GitLab production.log に情報が表示されないため、行き止まりに陥っています。

最近、Ubuntu 12.04 に GitLab のインストールを実行しました (このガイドに従ってください: https://www.digitalocean.com/community/articles/how-to-set-up-gitlab-as-your-very-own-private-github -clone )、OpenVZ で十分なメモリがないといういくつかの問題に遭遇しました。このハードルを乗り越えるためにいくつかの偽のスワップを作成し、GitLab サーバーが実行されていることを確認しました。私の検証および構成情報は次のとおりです。

GitLab 検証

    user@server:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check               RAILS_ENV=production
    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.0)
    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
    post-receive hook up-to-date? ... yes
    post-receive hooks in repos are links: ... can't check, you have no projects

    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? ... yes
    Projects have satellites? ... can't check, you have no projects
    Redis version >= 2.0.0? ... yes
    Your git bin path is "/usr/bin/git"
    Git version >= 1.7.10 ? ... yes (1.9.1)

    Checking GitLab ... Finished

環境情報

    user@server:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:env:info         RAILS_ENV=production

    System information
    System:         Ubuntu 12.04
    Current User:   git
    Using RVM:      no
    Ruby Version:   2.0.0p247
    Gem Version:    2.0.3
    Bundler Version:1.6.0
    Rake Version:   10.1.0

    GitLab information
    Version:        6.0.2
    Revision:       10b0b8f
    Directory:      /home/git/gitlab
    DB Adapter:     mysql2
    URL:            http://git.servername.com
    HTTP Clone URL: http://git.servername.com/some-project.git
    SSH Clone URL:  git@git.servername.com:some-project.git
    Using LDAP:     no
    Using Omniauth: no

    GitLab Shell
    Version:        1.7.0
    Repositories:   /home/git/repositories/
    Hooks:          /home/git/gitlab-shell/hooks/
    Git:            /usr/bin/git

Nginx の設定

私のdefault.confファイルでは:

    server {
            listen 80;
            server_name git.servername.com;

            location / {
             proxy_pass http://git.servername.com:80;
            }
    }

私の個人用マシン(VPSではない)のhostsファイル

 <IP Address of VPS>     git.servername.com
4

0 に答える 0