Gitlab: Problems with Unicorn, Resque with Passenger / Nginx

I installed Gitlab on a new Ubuntu (10.04) and it works almost correctly. Gitlab is accessible via HTTP, I can push / retrieve data via git to the server. However, there is one thing, but the activity feed is not updated. So I thought something was wrong with git hooks. I completely completed the installation process from Gitlab , except that I would like to use Passenger to run Nginx to deploy multiple applications.

I ran sudo -u gitlab -H bundle exec rake gitlab:env:info RAILS_ENV=production to make sure everything was configured correctly, but he said that Redis not working. ps aux says redis-server up. These are not git hooks. The gitlab document says restart the gitlab service to solve this problem. In this case, I get an error, which, in my opinion, is a problem that I have to solve:

 $ sudo /etc/init.d/gitlab restart Error, unicorn not running! 

My question is: how can I get around this problem? How can I control a unicorn, I thought the gitlab service would start it? I do not use Nginx? Before I start reinstalling everything first without using Passenger, I thought I might ask a question in advance.

+6
source share
2 answers

Like the mentioned OP pabera , nginx and mysql should be running, for the rest of the GitLab components ( redis , unicorn , and now sidekiq ) work fine.

The official /etc/init.d/gitlab here .

I have my own version of gitlabd (here) because I control sidekiq in my own script , and I don't need to run the script as root .

You can see the execution order for all services in this script :

  • Ssh
  • Apache and / or NGiNX
  • MySQL
  • Redis
  • GitLab (which will start the unicorn and sidekiq)
0
source

View of an ax in the dark ...

There are states in GitLab installation.md README:

"

Start your GitLab instance:

 sudo service gitlab start # or sudo /etc/init.d/gitlab restart 

"

I made the first And the second and got this exact error. However, I skipped the β€œor” and continued with the Nginx commands, and it seems to work.

Hope this helps!

0
source

All Articles