Until today evening everything was working fine. I don't how server goes down, some one would have turned off but after I restart server and lxc container where gitlab is used to run, I tried to access gitlab by the server IP:192.168.2.9(container IP) in browser I get response as Oops! Google Chrome could not connect to 192.168.2.9
. I check in server as service gitlab status
it shows gitlab is up and running.
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 "gitbum@xxxx.xx"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Then I checked doc/install/installation.md
file I find these two line
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "gitlab@localhost"
then I changed it to
sudo -u git -H git config --global user.name "git"
sudo -u git -H git config --global user.email "gitbum@xxxx.xx"
and checked config/gitlab.yml
there the email_from already set as gitbum@xxxx.xx
and default user as git
. run again same line and get same error again
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 "gitbum@xxxx.xx"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Then I did sudo su -git
and did git config --list
user.name=GitLab user.email=gitlab@localhost core.autcrlf = input
I tried to find any occurrence of gitlab@localhost
inside home/git/gitlab, I don't find andy occurrence of gitlab@localhost
except some logs fine and gitlab.yml.example
.
I tried to find any occurrence of gitlab@localhost
inside home/git/ here I found gitlab@localhost
in /home/git/.gitconfig
. In .gitconfig I see
[user] name = GitLab email = gitlab@localhost [core] autocrlg = input
and changed to
[user] name = git email = gitbum@xxxx.xx [core] autocrlg = input
Now when I run git config --list
user.name=git user.email=gitbum@xxxx.xx core.autcrlf = input
but when I run
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
I get same error again
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 "gitbum@xxxx.xx"
For more information see: doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
I checked every time with restart the gitlab again and again. I have now I idea whats happen suddenly. What I did when I start the server was started the git container from LXC Web panel
. Any help?
UPATE
I found the occurrence of user.name GitLab
in howe/git/gitlab/lib/tasks/gitlab/check.rake
file and chanded GitLab
to git
. now when I run sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
I see the result is
Git configured for git user? ... yes
but still I don't get gitlab up when I try to access from browser. what would be the problem?