diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-28 18:12:34 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-30 08:12:45 -0700 |
commit | 820923664ddf353533892f0af21ed3822508a655 (patch) | |
tree | 6d9d02057c17bd9e4655bcf5f920543413a56365 /doc/administration | |
parent | 036c6db81362e3eff84eefcdb8c1e72bb79ab77c (diff) | |
download | gitlab-ce-820923664ddf353533892f0af21ed3822508a655.tar.gz |
Make rbtrace work under unicorn
The Unicorn master resets any signal handlers and prevents rbtrace
from working properly as a result. Move the `require 'rbtrace'` call
to the Unicorn `after_fork` block and keep the initializer only for Sidekiq.
Diffstat (limited to 'doc/administration')
-rw-r--r-- | doc/administration/troubleshooting/debug.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/administration/troubleshooting/debug.md b/doc/administration/troubleshooting/debug.md index 7ae4f7c1515..2902af8c782 100644 --- a/doc/administration/troubleshooting/debug.md +++ b/doc/administration/troubleshooting/debug.md @@ -77,7 +77,12 @@ and more. However, this is not enabled by default. To enable it, define the gitlab_rails['env'] = {"ENABLE_RBTRACE" => "1"} ``` -Then reconfigure the system and restart Unicorn and Sidekiq. +Then reconfigure the system and restart Unicorn and Sidekiq. To run this +in Omnibus, run as root: + +```ruby +/opt/gitlab/embedded/bin/ruby /opt/gitlab/embedded/bin/rbtrace +``` ## Common Problems |