Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8456

Closed
Open
Created Dec 16, 2014 by Administrator@rootOwner

Checking Sidekiq failed but Sidekiq is running

Created by: e11it

OS: FreeBSD. Ruby 2.1 Gitlab 7.5.3

Checking Sidekiq ...
Running? ... no

but

root@gitlab:/home/git/gitlab # sudo -u git -H ps ux | grep -i sidekiq 
git  44052  0.0 17.9 443920 183008  -  SsJ  12:16AM 0:07.18 ruby21: sidekiq 2.17.0 gitlab [0 of 25 busy] (ruby21)

File: gitlab/lib/tasks/gitlab/check.rake(line 650) Value of ps_ux( ps_ux, _ = Gitlab::Popen.popen(%W(ps ux))) is:

USER   PID %CPU %MEM    VSZ    RSS TT  STAT STARTED    TIME COMMAND
git  44419 89.0 16.6 354028 169600  1  S+J  12:34AM 0:05.72 ruby21 /usr/home/gi
git  43801  0.0 10.1 372284 103844  -  IJ   12:06AM 0:06.36 ruby21: unicorn_rai
git  43805  0.0  9.8 390808 100220  -  IJ   12:06AM 0:00.86 ruby21: unicorn_rai
git  43806  0.0 12.0 378540 122468  -  IJ   12:06AM 0:00.39 ruby21: unicorn_rai
git  44052  0.0 17.9 443920 182900  -  SsJ  12:16AM 0:06.74 ruby21: sidekiq 2.1

So line is stripped. As a result pattern not match( /sidekiq \d+\.\d+\.\d+/)

Changing ps_ux to get output from cmd ps ax(lines length are shorter) fix this issue.

Assignee
Assign to
Time tracking