[Gitlab-ce]/[RHEL7][reconfigure]Get stuck on first reconfigure

Hello all,
I’m trying to setup a gitlab-ce server following the instructions found here:

gitlab rpm version: gitlab-ce.x86_64 0:12.9.3-ce.0.el7
then I add the external url in http mode. and whent no further.

Then I execute gitlab-ctl reconfigure

All is ok until it comes to:
* ruby_block[wait for redis service socket] action run

and then it stay stucked there. The only way is to Ctrl-C

I’ve tried to launch it again but it always stay stucked at this point.

[Edit]
I’ve modified
/opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:504:in `run_chef
to make chef always work in debug mode and there is the log I’ve obtained:
ruby_block[wait for redis service socket] action run usage: sv [-v] [-w sec] command service
looks like an error in calling sv script/bin

[EDIT2]
I’ve written a little bash to get cmd args sent to sv utility and discover that the runit block call it without arguments. Here the logs:
svcall_args=‘status’
svcall_args=’’

I think the missing argument should be ‘enable’
I’ve tried to force the missing argument to ‘enable’ (with my script) and obtained more precise info on the values used:
================================================================================
Error executing action enable on resource ‘runit_service[redis]’
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
ruby_block[wait for redis service socket] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 266) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 100], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/sv ----
STDOUT: fail: masked_sv: unable to change to service directory: file does not exist
STDERR:
---- End output of /opt/gitlab/embedded/bin/sv ----
Ran /opt/gitlab/embedded/bin/sv returned 1

Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/helpers.rb:144:in `binary_exists?'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/helpers.rb:79:in `wait_for_service'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:268:in `block (3 levels) in <class:RunitService>'

Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb

 66:   runit_service 'redis' do
 67:     down node['redis']['ha']
 68:     template_name 'redis'
 69:     options({
 70:       service: 'redis',
 71:       log_directory: redis_log_dir
 72:     }.merge(params))
 73:     log_options node['gitlab']['logging'].to_hash.merge(node['redis'].to_hash)
 74:   end
 75:
 76:   if node['gitlab']['bootstrap']['enable']
 77:     execute "/opt/gitlab/bin/gitlab-ctl start redis" do
 78:       retries 20
 79:     end
 80:   end
 81:

Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:66:in `block in from_file'

runit_service("redis") do
  params {:socket_group=>"git", :name=>nil}
  provider Chef::Provider::RunitService
  action :enable
  default_guard_interpreter :default
  service_name "redis"
  enabled false
  running false
  masked nil
  options {:service=>"redis", :log_directory=>"/var/log/gitlab/redis", :socket_group=>"git", :name=>nil}
  pattern "redis"
  start_command "start"
  stop_command "stop"
  status_command "status"
  restart_command "restart"
  supports {:restart=>true, :reload=>true, :status=>true}
  sv_bin "/opt/gitlab/embedded/bin/sv"
  sv_dir "/opt/gitlab/sv"
  service_dir "/opt/gitlab/service"
  lsb_init_dir "/opt/gitlab/init"
  log true
  owner "root"
  group "root"
  restart_on_update true
  run_template_name "redis"
  log_template_name "redis"
  check_script_template_name "redis"
  finish_script_template_name "redis"
  sv_templates true
  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_maxsize"=>nil, "logrotate_size"=>nil, "logrotate_rotate"=>30, "logrotate_compress"=>"compress", "logrotate_method"=>"copytruncate", "logrotate_postrotate"=>nil, "logrotate_dateformat"=>nil, "enable"=>true, "ha"=>false, "hz"=>10, "dir"=>"/var/opt/gitlab/redis", "log_directory"=>"/var/log/gitlab/redis", "username"=>"gitlab-redis", "group"=>"gitlab-redis", "uid"=>nil, "gid"=>nil, "shell"=>"/bin/false", "home"=>"/var/opt/gitlab/redis", "bind"=>"127.0.0.1", "port"=>0, "maxclients"=>"10000", "maxmemory"=>"0", "maxmemory_policy"=>"noeviction", "maxmemory_samples"=>5, "tcp_backlog"=>511, "tcp_timeout"=>60, "tcp_keepalive"=>300, "password"=>nil, "unixsocket"=>"/var/opt/gitlab/redis/redis.socket", "unixsocketperm"=>"777", "master"=>true, "master_name"=>"gitlab-redis", "master_ip"=>nil, "master_port"=>6379, "master_password"=>nil, "client_output_buffer_limit_normal"=>"0 0 0", "client_output_buffer_limit_slave"=>"256mb 64mb 60", "client_output_buffer_limit_pubsub"=>"32mb 8mb 60", "save"=>["900 1", "300 10", "60 10000"], "rename_commands"=>{"KEYS"=>""}, "announce_ip"=>nil, "announce_port"=>nil}
  declared_type :runit_service
  cookbook_name "redis"
  recipe_name "enable"
  service_mirror # Declared in

service("redis") do
  provider Chef::Provider::Service::Simple
  action [:nothing]
  default_guard_interpreter :default
  service_name "redis"
  enabled nil
  running nil
  masked nil
  pattern "redis"
  start_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv start /opt/gitlab/service/redis"
  stop_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv stop /opt/gitlab/service/redis"
  status_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv status /opt/gitlab/service/redis"
  restart_command "/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/redis"
  supports {:restart=>true, :reload=>true, :status=>true}
end

end

System Info:
------------
chef_version=14.14.29
platform=centos
platform_version=7.6.1810
ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client

Running handlers:
There was an error running gitlab-ctl reconfigure:

runit_service[redis] (redis::enable line 66) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[wait for redis service socket] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 266) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 100], but received ‘1’
---- Begin output of /opt/gitlab/embedded/bin/sv ----
STDOUT: fail: masked_sv: unable to change to service directory: file does not exist
STDERR:
---- End output of /opt/gitlab/embedded/bin/sv ----
Ran /opt/gitlab/embedded/bin/sv returned 1

Running handlers complete
Chef Client failed. 0 resources updated in 05 seconds

Full log:

Starting Chef Client, version 14.14.29
resolving cookbooks for run list: [“gitlab”]
Synchronizing Cookbooks:

  • package (0.1.0)
  • redis (0.1.0)
  • gitlab (0.0.1)
  • postgresql (0.1.0)
  • monitoring (0.1.0)
  • gitaly (0.1.0)
  • registry (0.1.0)
  • runit (4.3.0)
  • consul (0.1.0)
  • praefect (0.1.0)
  • nginx (0.1.0)
  • acme (4.1.1)
  • mattermost (0.1.0)
  • crond (0.1.0)
  • letsencrypt (0.1.0)
    Installing Cookbook Gems:
    Compiling Cookbooks…
    Recipe: gitlab::default
  • directory[/etc/gitlab] action create (up to date)
    Converging 276 resources
  • directory[/etc/gitlab] action create (up to date)
  • directory[Create /var/opt/gitlab] action create (up to date)
  • directory[Create /var/log/gitlab] action create (up to date)
  • directory[/opt/gitlab/embedded/etc] action create (up to date)
  • template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
    Recipe: gitlab::web-server
  • account[Webserver user and group] action create
    • group[Webserver user and group] action create (up to date)
    • linux_user[Webserver user and group] action create (up to date)
      (up to date)
      Recipe: gitlab::users
  • directory[/var/opt/gitlab] action create (up to date)
  • account[GitLab user and group] action create
    • group[GitLab user and group] action create (up to date)
    • linux_user[GitLab user and group] action create (up to date)
      (up to date)
  • template[/var/opt/gitlab/.gitconfig] action create (up to date)
  • directory[/var/opt/gitlab/.bundle] action create (up to date)
    Recipe: gitlab::gitlab-shell
  • storage_directory[/var/opt/gitlab/.ssh] action create
    • ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if)
      (up to date)
  • directory[/var/log/gitlab/gitlab-shell/] action create (up to date)
  • directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
  • templatesymlink[Create a config.yml and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
      (up to date)
  • link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
  • file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date)
    Recipe: gitlab::gitlab-rails
  • storage_directory[/var/opt/gitlab/git-data] action create
    • ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/git-data/repositories] action create
    • ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if)
      (up to date)
  • storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
  • storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
    • ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if)
      (up to date)
  • directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
  • directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
  • directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
  • directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
  • directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
  • directory[create /var/log/gitlab/gitlab-rails] action create (up to date)
  • storage_directory[/var/opt/gitlab/backups] action create
    • ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if)
      (up to date)
  • directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
  • directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
  • template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date)
  • file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
  • templatesymlink[Create a database.yml and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
      (up to date)
  • templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
      (up to date)
  • templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
      (up to date)
  • templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
  • file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date)
  • templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
  • file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date)
  • templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
  • file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date)
  • templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
    • file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
    • link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)
      (up to date)
  • templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
      (up to date)
  • templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
      (up to date)
  • templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
      (up to date)
  • templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
      (up to date)
  • templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create
    • template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
    • link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date)
      (up to date)
  • link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
  • file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
  • env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
    • directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
    • file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date)
      (up to date)
  • link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
  • link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
  • link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
  • link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if)
  • file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date)
  • remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
  • remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
  • file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
  • execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
  • file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date)
    Recipe: gitlab::selinux
  • execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-7.2.0-ssh-keygen.pp] action runDisabled
    (skipped due to not_if)
  • execute[semodule -i /opt/gitlab/embedded/selinux/rhel/7/gitlab-10.5.0-ssh-authorized-keys.pp] action runDisabled
    (skipped due to not_if)
  • bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if)
    Recipe: gitlab::add_trusted_certs
  • directory[/etc/gitlab/trusted-certs] action create (up to date)
  • directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
  • file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
  • ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if)
    Recipe: gitlab::default
  • service[create a temporary unicorn service] action nothing (skipped due to action :nothing)
  • service[create a temporary puma service] action nothing (skipped due to action :nothing)
  • service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
  • service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
    Recipe: package::runit_systemd
  • directory[/usr/lib/systemd/system] action create (up to date)
  • template[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
  • file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
  • file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
  • execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
  • execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
  • execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing)
    Recipe: postgresql::bin
  • ruby_block[check_postgresql_version] action run (skipped due to not_if)
  • ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
    Recipe: redis::enable
  • account[user and group for redis] action create
    • group[user and group for redis] action create (up to date)
    • linux_user[user and group for redis] action create (up to date)
      (up to date)
  • group[Socket group] action create (up to date)
  • directory[/var/opt/gitlab/redis] action create (up to date)
  • directory[/var/log/gitlab/redis] action create (up to date)
  • template[/var/opt/gitlab/redis/redis.conf] action create (up to date)
    Recipe:
  • service[redis] action nothing (skipped due to action :nothing)
    Recipe: redis::enable
  • runit_service[redis] action enable
    • ruby_block[restart_service] action nothing (skipped due to action :nothing)
    • ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    • ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    • directory[/opt/gitlab/sv/redis] action create (up to date)
    • template[/opt/gitlab/sv/redis/run] action create (up to date)
    • directory[/opt/gitlab/sv/redis/log] action create (up to date)
    • directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
    • template[/opt/gitlab/sv/redis/log/run] action create (up to date)
    • template[/var/log/gitlab/redis/config] action create (up to date)
    • ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing)
    • directory[/opt/gitlab/sv/redis/env] action create (up to date)
    • ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
    • template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
    • template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
    • directory[/opt/gitlab/sv/redis/control] action create (up to date)
    • link[/opt/gitlab/init/redis] action create (up to date)
    • file[/opt/gitlab/sv/redis/down] action delete (up to date)
    • directory[/opt/gitlab/service] action create (up to date)
    • link[/opt/gitlab/service/redis] action create (up to date)
    • ruby_block[wait for redis service socket] action run

I search the web for the string “ruby_block[wait for redis service socket] action run” but didn’t find any meaningfull informations.

Any idea?
Thanks for help

I don’t know if you already solved this issue, but I will comment with what helped me in a similar situation.

During the first run of a gitlab-ctl reconfigure command, GitLab CLI tool needs to figure out how it will install and later run gitlab-runsvdir service. If it gets this wrong - the reconfiguring process might hang in several places.
ruby_block[wait for redis service socket] action run or ruby_block[supervise_redis_sleep] action run just to mention a few.

To fix this try running

systemctl restart gitlab-runsvdir.service

It helped in my case!
Good luck.

1 Like