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
  • #4849

Closed
Open
Created Aug 22, 2013 by Administrator@rootOwner

init script restart loses sidekiq

Created by: jaypea

I'm running the 6-0-stable branch and discovered an issue with the init script

whenever i call service gitlab restart or stop and start shortly after one another, the sidekiq service is not coming back.

the reason is the usage of & in the call to execute "mkdir -p $PID_PATH && $START_SIDEKIQ > /dev/null 2>&1 &" this sends both the start and stop rake tasks in background. the stop task takes a while to finish its job. in the meanwhile the start task already finished, maybe because it found the already running process which has not been stopped yet.

solution would be to wait for the stop task to complete before executing the start task.

steps to reproduce:

  • ps ax|grep kiq|grep -v grep should return something to begin with
  • service gitlab restart
  • ps ax|grep kiq|grep -v grep now shows several entries
  • wait 1-2 minutes
  • ps ax|grep kiq|grep -v grep has an empty result
Assignee
Assign to
Time tracking