gitlab é 403 com Nginx no fedora 25

1

Eu sigo o documento para instalar o gitlab a partir do código-fonte no Fedora 25. Todos eles parecem corretos.

Mas se eu executar sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production , isso retornará.

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.

E o site é 403. veja URL

Eu tenho outro site no servidor com nginx e eu uso o nginx com o apache (porta 8000) também. O outro site pode funcionar corretamente. veja URL

Eu não tenho ideia de lidar com isso. Eu tentei mudar a premissa com arquivos gitlab em 775 , mas nada mudou.

Acho que a configuração de redis é verdadeira, porque não há erro ou aviso para os redis durante a instalação do gitlab.

O gitlib-shell / config.yml está aqui:

---
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

O arquivo de log /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"
    
por Vonfry 28.02.2017 / 16:40

1 resposta

0

Eu encontrei o motivo.

Para o ubuntu ou debine, um diretório de usuário padrão é 755. Mas é 700 no fedora. Eu devo configurá-lo em 755.

E o site pode ser visualizado, mas há outros problemas que preciso corrigir.

    
por 01.03.2017 / 04:20