Até hoje à noite tudo estava funcionando bem. Eu não sei como servidor cai, alguém teria desligado mas depois eu reinicie servidor e lxc container onde gitlab é usado para rodar, eu tentei acessar gitlab pelo IP do servidor: 192.168.2.9 (container IP) no navegador I obtenha resposta como Oops! Google Chrome could not connect to 192.168.2.9 . Eu faço check-in no servidor, pois service gitlab status mostra que o gitlab está ativo e em execução.
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
Git configured for git user? ... no
Try fixing it:
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "[email protected]"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Então eu verifiquei o arquivo doc/install/installation.md eu encontrei essas duas linhas
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "gitlab@localhost"
então eu mudei para
sudo -u git -H git config --global user.name "git"
sudo -u git -H git config --global user.email "[email protected]"
e marcado config/gitlab.yml o e-mail_de já definido como [email protected] e o usuário padrão como git . execute novamente a mesma linha e obtenha o mesmo erro novamente
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
Git configured for git user? ... no
Try fixing it:
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "[email protected]"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Então eu fiz sudo su -git e fiz git config --list
user.name = GitLab
user.email=gitlab@localhost
core.autcrlf = entrada
Eu tentei encontrar qualquer ocorrência de gitlab@localhost dentro de home / git / gitlab, eu não encontrei nenhuma ocorrência de gitlab@localhost exceto alguns logs finos e gitlab.yml.example .
Eu tentei encontrar qualquer ocorrência de gitlab@localhost dentro de home / git / aqui eu encontrei gitlab@localhost em /home/git/.gitconfig . No .gitconfig eu vejo
[usuário]
name = GitLab
email = gitlab @ localhost
[testemunho]
autocrlg = entrada
e alterado para
[usuário]
name = git
email = [email protected]
[testemunho]
autocrlg = entrada
Agora, quando eu corro git config --list
user.name = git
[email protected]
core.autcrlf = entrada
mas quando eu corro
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
Eu recebo o mesmo erro novamente
Git configured for git user? ... no
Try fixing it:
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "[email protected]"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Eu verifiquei todas as vezes com reiniciar o gitlab novamente e novamente. Eu tenho agora a idéia do que acontece de repente. O que eu fiz quando iniciei o servidor foi iniciado o container git de LXC Web panel . Alguma ajuda?
UPATE
Encontrei a ocorrência do user.name GitLab no arquivo howe/git/gitlab/lib/tasks/gitlab/check.rake e chanded GitLab to git . agora quando eu corro sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
Eu vejo o resultado é
Git configured for git user? ... yes
mas ainda não consigo o gitlab quando tento acessar pelo navegador. qual seria o problema?