title: Gitlab docker-compose error: Error executing action `enable` on resource 'runit_service[redis]'
body: <p>I update my gitlab from 12.8 to 12.9 through docker compose.</p>
  <p>But after updating i face this error: <code>Error executing action </code>enable<code> on resource 'runit_service[redis]'</code>.</p>
  <p>docker-compose logs -f --tail 100:</p>
  <pre><code>gitlab_1  | There was an error running gitlab-ctl reconfigure:
  gitlab_1  | 
  gitlab_1  | runit_service[redis] (redis::enable line 66) had an error: Errno::ENOENT: template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Errno::ENOENT: No such file or directory @ realpath_rec - /opt/gitlab/sv/redis/log/config
  gitlab_1  | 
  gitlab_1  |         verifications []
  gitlab_1  |         cookbook &quot;redis&quot;
  gitlab_1  |       end
  gitlab_1  |       
  gitlab_1  |       System Info:
  gitlab_1  |       ------------
  gitlab_1  |       chef_version=14.14.29
  gitlab_1  |       platform=ubuntu
  gitlab_1  |       platform_version=16.04
  gitlab_1  |       ruby=ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
  gitlab_1  |       program_name=/opt/gitlab/embedded/bin/chef-client
  gitlab_1  |       executable=/opt/gitlab/embedded/bin/chef-client
  gitlab_1  |       
  gitlab_1  |     
  gitlab_1  |     ================================================================================
  gitlab_1  |     Error executing action `enable` on resource 'runit_service[redis]'
  gitlab_1  |     ================================================================================
  gitlab_1  |     
  gitlab_1  |     Errno::ENOENT
  gitlab_1  |     -------------
  gitlab_1  |     template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Errno::ENOENT: No such file or directory @ realpath_rec - /opt/gitlab/sv/redis/log/config
  gitlab_1  |     
  gitlab_1  |     Cookbook Trace:
  gitlab_1  |     ---------------
  gitlab_1  |     /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:255:in `block in &lt;class:RunitService&gt;'
  gitlab_1  |     
  gitlab_1  |     Resource Declaration:
  gitlab_1  |     ---------------------
  gitlab_1  |     # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb
  gitlab_1  |     
  gitlab_1  |      66:   runit_service 'redis' do
  gitlab_1  |      67:     down node['redis']['ha']
  gitlab_1  |      68:     template_name 'redis'
  gitlab_1  |      69:     options({
  gitlab_1  |      70:       service: 'redis',
  gitlab_1  |      71:       log_directory: redis_log_dir
  gitlab_1  |      72:     }.merge(params))
  gitlab_1  |      73:     log_options node['gitlab']['logging'].to_hash.merge(node['redis'].to_hash)
  gitlab_1  |      74:   end
  gitlab_1  |      75: 
  gitlab_1  |      76:   if node['gitlab']['bootstrap']['enable']
  gitlab_1  |      77:     execute &quot;/opt/gitlab/bin/gitlab-ctl start redis&quot; do
  gitlab_1  |      78:       retries 20
  gitlab_1  |      79:     end
  gitlab_1  |      80:   end
  gitlab_1  |      81: 
  gitlab_1  |     
  gitlab_1  |     Compiled Resource:
  gitlab_1  |     ------------------
  gitlab_1  |     # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:66:in `block in from_file'
  gitlab_1  |     
  gitlab_1  |     runit_service(&quot;redis&quot;) do
  gitlab_1  |       params {:socket_group=&gt;&quot;git&quot;, :name=&gt;nil}
  gitlab_1  |       provider Chef::Provider::RunitService
  gitlab_1  |       action :enable
  gitlab_1  |       default_guard_interpreter :default
  gitlab_1  |       service_name &quot;redis&quot;
  gitlab_1  |       enabled false
  gitlab_1  |       running false
  gitlab_1  |       masked nil
  gitlab_1  |       options {:service=&gt;&quot;redis&quot;, :log_directory=&gt;&quot;/var/log/gitlab/redis&quot;, :socket_group=&gt;&quot;git&quot;, :name=&gt;nil}
  gitlab_1  |       pattern &quot;redis&quot;
  gitlab_1  |       start_command &quot;start&quot;
  gitlab_1  |       stop_command &quot;stop&quot;
  gitlab_1  |       status_command &quot;status&quot;
  gitlab_1  |       restart_command &quot;restart&quot;
  gitlab_1  |       supports {:restart=&gt;true, :reload=&gt;true, :status=&gt;true}
  gitlab_1  |       sv_bin &quot;/opt/gitlab/embedded/bin/sv&quot;
  gitlab_1  |       sv_dir &quot;/opt/gitlab/sv&quot;
  gitlab_1  |       service_dir &quot;/opt/gitlab/service&quot;
  gitlab_1  |       lsb_init_dir &quot;/opt/gitlab/init&quot;
  gitlab_1  |       log true
  gitlab_1  |       owner &quot;root&quot;
  gitlab_1  |       group &quot;root&quot;
  gitlab_1  |       restart_on_update true
  gitlab_1  |       run_template_name &quot;redis&quot;
  gitlab_1  |       log_template_name &quot;redis&quot;
  gitlab_1  |       check_script_template_name &quot;redis&quot;
  gitlab_1  |       finish_script_template_name &quot;redis&quot;
  gitlab_1  |       sv_templates true
  gitlab_1  |       log_options {&quot;svlogd_size&quot;=&gt;209715200, &quot;svlogd_num&quot;=&gt;30, &quot;svlogd_timeout&quot;=&gt;86400, &quot;svlogd_filter&quot;=&gt;&quot;gzip&quot;, &quot;svlogd_udp&quot;=&gt;nil, &quot;svlogd_prefix&quot;=&gt;nil, &quot;udp_log_shipping_host&quot;=&gt;nil, &quot;udp_log_shipping_hostname&quot;=&gt;nil, &quot;udp_log_shipping_port&quot;=&gt;514, &quot;logrotate_frequency&quot;=&gt;&quot;daily&quot;, &quot;logrotate_maxsize&quot;=&gt;nil, &quot;logrotate_size&quot;=&gt;nil, &quot;logrotate_rotate&quot;=&gt;30, &quot;logrotate_compress&quot;=&gt;&quot;compress&quot;, &quot;logrotate_method&quot;=&gt;&quot;copytruncate&quot;, &quot;logrotate_postrotate&quot;=&gt;nil, &quot;logrotate_dateformat&quot;=&gt;nil, &quot;enable&quot;=&gt;true, &quot;ha&quot;=&gt;false, &quot;hz&quot;=&gt;10, &quot;dir&quot;=&gt;&quot;/var/opt/gitlab/redis&quot;, &quot;log_directory&quot;=&gt;&quot;/var/log/gitlab/redis&quot;, &quot;username&quot;=&gt;&quot;gitlab-redis&quot;, &quot;group&quot;=&gt;&quot;gitlab-redis&quot;, &quot;uid&quot;=&gt;nil, &quot;gid&quot;=&gt;nil, &quot;shell&quot;=&gt;&quot;/bin/false&quot;, &quot;home&quot;=&gt;&quot;/var/opt/gitlab/redis&quot;, &quot;bind&quot;=&gt;&quot;127.0.0.1&quot;, &quot;port&quot;=&gt;0, &quot;maxclients&quot;=&gt;&quot;10000&quot;, &quot;maxmemory&quot;=&gt;&quot;0&quot;, &quot;maxmemory_policy&quot;=&gt;&quot;noeviction&quot;, &quot;maxmemory_samples&quot;=&gt;5, &quot;tcp_backlog&quot;=&gt;511, &quot;tcp_timeout&quot;=&gt;60, &quot;tcp_keepalive&quot;=&gt;300, &quot;password&quot;=&gt;nil, &quot;unixsocket&quot;=&gt;&quot;/var/opt/gitlab/redis/redis.socket&quot;, &quot;unixsocketperm&quot;=&gt;&quot;777&quot;, &quot;master&quot;=&gt;true, &quot;master_name&quot;=&gt;&quot;gitlab-redis&quot;, &quot;master_ip&quot;=&gt;nil, &quot;master_port&quot;=&gt;6379, &quot;master_password&quot;=&gt;nil, &quot;client_output_buffer_limit_normal&quot;=&gt;&quot;0 0 0&quot;, &quot;client_output_buffer_limit_slave&quot;=&gt;&quot;256mb 64mb 60&quot;, &quot;client_output_buffer_limit_pubsub&quot;=&gt;&quot;32mb 8mb 60&quot;, &quot;save&quot;=&gt;[&quot;900 1&quot;, &quot;300 10&quot;, &quot;60 10000&quot;], &quot;rename_commands&quot;=&gt;{&quot;KEYS&quot;=&gt;&quot;&quot;}, &quot;announce_ip&quot;=&gt;nil, &quot;announce_port&quot;=&gt;nil}
  gitlab_1  |       declared_type :runit_service
  gitlab_1  |       cookbook_name &quot;redis&quot;
  gitlab_1  |       recipe_name &quot;enable&quot;
  gitlab_1  |       service_mirror # Declared in 
  gitlab_1  |     
  gitlab_1  |     service(&quot;redis&quot;) do
  gitlab_1  |       provider Chef::Provider::Service::Simple
  gitlab_1  |       action [:nothing]
  gitlab_1  |       default_guard_interpreter :default
  gitlab_1  |       service_name &quot;redis&quot;
  gitlab_1  |       enabled nil
  gitlab_1  |       running nil
  gitlab_1  |       masked nil
  gitlab_1  |       pattern &quot;redis&quot;
  gitlab_1  |       start_command &quot;/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv start /opt/gitlab/service/redis&quot;
  gitlab_1  |       stop_command &quot;/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv stop /opt/gitlab/service/redis&quot;
  gitlab_1  |       status_command &quot;/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv status /opt/gitlab/service/redis&quot;
  gitlab_1  |       restart_command &quot;/opt/gitlab/embedded/bin/chpst -u root:root /opt/gitlab/embedded/bin/sv restart /opt/gitlab/service/redis&quot;
  gitlab_1  |       supports {:restart=&gt;true, :reload=&gt;true, :status=&gt;true}
  gitlab_1  |     end
  gitlab_1  |     
  gitlab_1  |     end
  gitlab_1  |     
  gitlab_1  |     System Info:
  gitlab_1  |     ------------
  gitlab_1  |     chef_version=14.14.29
  gitlab_1  |     platform=ubuntu
  gitlab_1  |     platform_version=16.04
  gitlab_1  |     ruby=ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
  gitlab_1  |     program_name=/opt/gitlab/embedded/bin/chef-client
  gitlab_1  |     executable=/opt/gitlab/embedded/bin/chef-client
  gitlab_1  |     
  gitlab_1  | 
  gitlab_1  | Running handlers:
  gitlab_1  | Running handlers complete
  gitlab_1  | Chef Client failed. 0 resources updated in 10 seconds
  gitlabdpsoftservercom_gitlab_1 exited with code 1
  
  </code></pre>
  <p>And my docker-compose.yml file:</p>
  <pre><code>
  version: '3'
  
  services:
    gitlab:
      image: gitlab/gitlab-ce:12.10.8-ce.0
      hostname: mygitlab.ir
      environment:
        GITLAB_OMNIBUS_CONFIG: |
          external_url 'https://sample.ir'
          gitlab_rails['gitlab_shell_ssh_port'] = 8822
  
      ports:
        - &quot;8880:80&quot;
        - &quot;8822:22&quot;
      volumes:
        - ./gitlab-config:/etc/gitlab
        - ./gitlab-data:/var/opt/gitlab
        - ./logs:/var/log/gitlab
      restart: always
  </code></pre>