Fedora 25のgitlabは403で、Nginxは403です。

Fedora 25のgitlabは403で、Nginxは403です。

Fedora 25のソースからgitlabをインストールするためのマニュアルに従いました。これらすべてが正しいようです。

しかし、を実行すると、sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production次のものが返されます。

check GitLab API access: FAILED. code: 403
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /home/git/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

そしてサイトは403です。よりURL

私のサーバーにnginxがある別のサイトがあり、Apache(ポート8000​​)と一緒にnginxも使用します。他のサイトはうまくいきます。バラよりURL

私はそれで何をすべきかわかりません。 gitlabファイルの権限をに変更してみましたが、775何も変更されませんでした。

gitlabをインストールしたときにRedisでエラーや警告が発生しなかったため、Redis設定は正しいようです。

gitlib-shell/config.yml はここにあります:

---
user: git
gitlab_url: https://git.vonfry.name
http_settings:
  self_signed_cert: false
  ca_file: "/letsencrypt/path/fullchain.pem"
auth_file: "/home/git/.ssh/authorized_keys"
redis:
  bin: "/bin/redis-cli"
  namespace: resque:gitlab
  host: localhost
  port: 6379
log_level: INFO
audit_usernames: false

ログファイル/var/log/nginx/gitlab_error.log

2017/02/28 14:43:27 [crit] 3189#0: *1 connect() to unix:/home/git/gitlab/tmp/sockets/gitlab-workhorse.socket failed (13: Permission denied) while connecting to upstream, client: 117.136.45.138, server: git.vonfry.name, request: "GET / HTTP/2.0", upstream: "http://unix:/home/git/gitlab/tmp/sockets/gitlab-workhorse.socket:/", host: "git.vonfry.name"
2017/02/28 14:43:27 [error] 3189#0: *1 open() "/home/git/gitlab/public/502.html" failed (13: Permission denied), client: 117.136.45.138, server: git.vonfry.name, request: "GET / HTTP/2.0", upstream: "http://unix:/home/git/gitlab/tmp/sockets/gitlab-workhorse.socket/", host: "git.vonfry.name"

ベストアンサー1

理由を見つけました。

ubuntuまたはdebineの場合、デフォルトのユーザーディレクトリは755です。しかし、Fedoraでは700です。 755に設定する必要があります。

サイトを見ることができますが、解決する必要がある他の問題があります。

おすすめ記事