LoginSignup
9
7

More than 5 years have passed since last update.

GitLabにプッシュした内容が反映されない場合の対処

Last updated at Posted at 2016-01-15

大体、sidekiqが問題になっているケースが多い。

プッシュが反映されないよ><

パターン1

sidekiqのプロセスが行方不明そう

  • psで本当にプロセスがいないか確認する。

    ~/gitlab/
    ps -ef | grep sidekiq
    
  • sidekiqの起動を行う。

    ~/gitlab/
    bundle exec rake sidekiq:start RAILS_ENV=production
    
  • プロセスが上がったか確認する。

    ~/gitlab/
    ps -ef | grep sidekiq
    
    # こんなん出ればOK
    git      28050     1  0 Jan13 ?        00:05:51 sidekiq 4.0.1 gitlab [0 of 5 busy]
    

パターン2

sidekiqはいるパターン。ただし、仕事しているとは言ってない

  • プロセスは上がっているか確認する。

    ~/gitlab/
    ps -ef | grep sidekiq
    
    # こんなん出ればNG
    git      28050     1  0 Jan13 ?        00:05:51 sidekiq 4.0.1 gitlab [5 of 5 busy]
    
  • GitLabをリロードする&Redisキャッシュのクリア

    ~/gitlab
    # unicornのconfig読みなおし、sidekiq再起動
    /etc/init.d/gitlab reload
    # Redisキャッシュのクリア
    bundle exec rake cache:clear RAILS_ENV=production
    
  • プロセスが上がったか確認する。

    ~/gitlab/
    ps -ef | grep sidekiq
    
    # こんなん出ればOK
    git      28050     1  0 Jan13 ?        00:05:51 sidekiq 4.0.1 gitlab [0 of 5 busy]
    

確認

GitLab管理者画面のBackground jobsから待機状態がなくなればOK

9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7