error in restart
Recipe: gitlab::sidekiq
-
service[sidekiq] action restart
restart
on resource 'service[sidekiq]'Expected process to exit with [0], but received '1' ---- Begin output of /opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ---- STDOUT: timeout: run: /opt/gitlab/service/sidekiq: (pid 100896) 3032s, got TERM STDERR: ---- End output of /opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq ---- Ran /opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq returned 1
227: service params[:name] do 228: control_cmd = node[:runit][:sv_bin] 229: if params[:owner] 230: control_cmd = "#{node[:runit][:chpst_bin]} -u #{params[:owner]}:#{params[:group]} #{control_cmd}" 231: end 232: provider Chef::Provider::Service::Simple
service("sidekiq") do params {:directory=>"/opt/gitlab/sv", :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>"/opt/gitlab/service", :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"sidekiq", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{:rails_app=>"gitlab-rails", :user=>"git", :groupname=>"git", :shutdown_timeout=>4, :concurrency=>25, :log_directory=>"/var/log/gitlab/sidekiq", :metrics_dir=>"/run/gitlab/sidekiq", :clean_metrics_dir=>true, :directory=>nil, :only_if=>false, :finish_script=>false, :control=>[], :run_restart=>true, :active_directory=>nil, :init_script_template=>nil, :owner=>"root", :group=>"root", :template_name=>"sidekiq", :start_command=>"start", :stop_command=>"stop", :restart_command=>"restart", :status_command=>"status", :options=>{}, :log_options=>{}, :env=>{}, :action=>:enable, :down=>false, :supervisor_owner=>nil, :supervisor_group=>nil}, :log_options=>{"svlogd_size"=>209715200, "svlogd_num"=>30, "svlogd_timeout"=>86400, "svlogd_filter"=>"gzip", "svlogd_udp"=>nil, "svlogd_prefix"=>nil, "udp_log_shipping_host"=>nil, "udp_log_shipping_hostname"=>nil, "udp_log_shipping_port"=>514, "logrotate_frequency"=>"daily", "logrotate_size"=>nil, "logrotate_rotate"=>30, "logrotate_compress"=>"compress", "logrotate_method"=>"copytruncate", "logrotate_postrotate"=>nil, "logrotate_dateformat"=>nil, "enable"=>true, "ha"=>false, "log_directory"=>"/var/log/gitlab/sidekiq", "log_format"=>"default", "shutdown_timeout"=>4, "concurrency"=>25, "metrics_enabled"=>true, "listen_address"=>"127.0.0.1", "listen_port"=>8082}, :env=>{}, :action=>:enable, :down=>false, :supervisor_owner=>nil, :supervisor_group=>nil, :name=>"sidekiq"} provider Chef::Provider::Service::Simple action [:nothing] default_guard_interpreter :default service_name "sidekiq" enabled nil running nil masked nil pattern "sidekiq" start_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv start /opt/gitlab/service/sidekiq" stop_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv stop /opt/gitlab/service/sidekiq" status_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv status /opt/gitlab/service/sidekiq" restart_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/sidekiq" declared_type :service cookbook_name "gitlab" recipe_name "sidekiq" supports {:restart=>true, :status=>true} end
chef_version=13.6.4 platform=centos platform_version=7.5.1804 ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/chef-client executable=/opt/gitlab/embedded/bin/chef-client