Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * template[/var/log/gitlab/redis/config] action create
- * Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- ================================================================================
- Error executing action `create` on resource 'template[/var/log/gitlab/redis/config]'
- ================================================================================
- Chef::Exceptions::InvalidSymlink
- --------------------------------
- Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- Cookbook Trace:
- ---------------
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- Resource Declaration:
- ---------------------
- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb
- 136: template "#{new_resource.options[:log_directory]}/config" do
- 137: owner new_resource.owner unless new_resource.owner.nil?
- 138: group new_resource.group unless new_resource.group.nil?
- 139: mode '0644'
- 140: action :create
- 141: cookbook template_cookbook
- 142: source "sv-#{new_resource.log_template_name}-log-config.erb"
- 143: variables new_resource.log_options
- 144: notifies :create, 'ruby_block[reload_log_service]'
- 145: end
- 146:
- Compiled Resource:
- ------------------
- # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:136:in `block in <class:RunitService>'
- template("/var/log/gitlab/redis/config") do
- action [:create]
- default_guard_interpreter :default
- source "sv-redis-log-config.erb"
- cookbook "redis"
- variables {"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, "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"], "announce_ip"=>nil, "announce_port"=>nil}
- declared_type :template
- cookbook_name "redis"
- mode "0644"
- owner "root"
- group "root"
- path "/var/log/gitlab/redis/config"
- verifications []
- end
- System Info:
- ------------
- chef_version=13.6.4
- platform=ubuntu
- platform_version=16.04
- 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
- * ruby_block[restart_service] action run (skipped due to only_if)
- * ruby_block[restart_log_service] action create
- * 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
- * Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- ================================================================================
- Error executing action `create` on resource 'template[/var/log/gitlab/redis/config]'
- ================================================================================
- Chef::Exceptions::InvalidSymlink
- --------------------------------
- Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- Cookbook Trace:
- ---------------
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:71:in `block (3 levels) in <class:RunitService>'
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- Resource Declaration:
- ---------------------
- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb
- 136: template "#{new_resource.options[:log_directory]}/config" do
- 137: owner new_resource.owner unless new_resource.owner.nil?
- 138: group new_resource.group unless new_resource.group.nil?
- 139: mode '0644'
- 140: action :create
- 141: cookbook template_cookbook
- 142: source "sv-#{new_resource.log_template_name}-log-config.erb"
- 143: variables new_resource.log_options
- 144: notifies :create, 'ruby_block[reload_log_service]'
- 145: end
- 146:
- Compiled Resource:
- ------------------
- # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:136:in `block in <class:RunitService>'
- template("/var/log/gitlab/redis/config") do
- action [:create]
- default_guard_interpreter :default
- source "sv-redis-log-config.erb"
- cookbook "redis"
- variables {"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, "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"], "announce_ip"=>nil, "announce_port"=>nil}
- declared_type :template
- cookbook_name "redis"
- mode "0644"
- owner "root"
- group "root"
- path "/var/log/gitlab/redis/config"
- verifications []
- end
- System Info:
- ------------
- chef_version=13.6.4
- platform=ubuntu
- platform_version=16.04
- 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
- ================================================================================
- Error executing action `create` on resource 'ruby_block[restart_log_service]'
- ================================================================================
- Chef::Exceptions::InvalidSymlink
- --------------------------------
- template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Chef::Exceptions::InvalidSymlink: Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- Cookbook Trace:
- ---------------
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:71:in `block (3 levels) in <class:RunitService>'
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- Resource Declaration:
- ---------------------
- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb
- 69: ruby_block 'restart_log_service' do
- 70: block do
- 71: action_enable
- 72: restart_log_service
- 73: end
- 74: action :nothing
- 75: end
- 76:
- Compiled Resource:
- ------------------
- # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:69:in `block in <class:RunitService>'
- ruby_block("restart_log_service") do
- action [:nothing]
- default_guard_interpreter :default
- block_name "restart_log_service"
- declared_type :ruby_block
- cookbook_name "redis"
- block #<Proc:0x0000000003210d10@/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:70>
- end
- System Info:
- ------------
- chef_version=13.6.4
- platform=ubuntu
- platform_version=16.04
- 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
- ================================================================================
- Error executing action `enable` on resource 'runit_service[redis]'
- ================================================================================
- Chef::Exceptions::MultipleFailures
- ----------------------------------
- Multiple failures occurred:
- * Chef::Exceptions::InvalidSymlink occurred in chef run: template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Chef::Exceptions::InvalidSymlink: Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- * Chef::Exceptions::InvalidSymlink occurred in delayed notification: ruby_block[restart_log_service] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 69) had an error: Chef::Exceptions::InvalidSymlink: template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Chef::Exceptions::InvalidSymlink: Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- Cookbook Trace:
- ---------------
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:242:in `block in <class:RunitService>'
- Resource Declaration:
- ---------------------
- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb
- 65: runit_service 'redis' do
- 66: down node['redis']['ha']
- 67: template_name 'redis'
- 68: options({
- 69: service: 'redis',
- 70: log_directory: redis_log_dir
- 71: }.merge(params))
- 72: log_options node['gitlab']['logging'].to_hash.merge(node['redis'].to_hash)
- 73: end
- 74:
- 75: if node['gitlab']['bootstrap']['enable']
- 76: execute "/opt/gitlab/bin/gitlab-ctl start redis" do
- 77: retries 20
- 78: end
- 79: end
- 80: end
- Compiled Resource:
- ------------------
- # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:65:in `block in from_file'
- runit_service("redis") do
- params {:socket_group=>"git", :name=>nil}
- provider Chef::Provider::RunitService
- action :enable
- updated true
- updated_by_last_action true
- 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_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"], "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=13.6.4
- platform=ubuntu
- platform_version=16.04
- 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
- Recipe: gitlab::gitlab-rails
- * execute[clear the gitlab-rails cache] action run (skipped due to not_if)
- There was an error running gitlab-ctl reconfigure:
- Multiple failures occurred:
- * Chef::Exceptions::InvalidSymlink occurred in chef run: template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Chef::Exceptions::InvalidSymlink: Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- * Chef::Exceptions::InvalidSymlink occurred in delayed notification: ruby_block[restart_log_service] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 69) had an error: Chef::Exceptions::InvalidSymlink: template[/var/log/gitlab/redis/config] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136) had an error: Chef::Exceptions::InvalidSymlink: Symlink at /var/log/gitlab/redis/config (pointing to /opt/gitlab/sv/redis/log/config) exists but attempting to resolve it leads to a nonexistent file
- Running handlers:
- Deprecations:
- == Prometheus ==
- Detected Prometheus version 1.x. Version 1.x has been deprecated and support will be removed in GitLab version 12.0.
- To upgrade to Prometheus 2.x, use `gitlab-ctl prometheus-upgrade` command.
- Running this command will migrate all your existing data to format supported by Prometheus 2.x.
- This can be a time consuming operation. To skip migrating the data, and instead remove and start fresh, run `gitlab-ctl prometheus-upgrade --skip-data-migration`.
- Check https://docs.gitlab.com/omnibus/update/gitlab_11_changes.html#114 for details.
- ---
- Running handlers complete
- Chef Client failed. 58 resources updated in 26 seconds
- Deprecations:
- == Prometheus ==
- Detected Prometheus version 1.x. Version 1.x has been deprecated and support will be removed in GitLab version 12.0.
- To upgrade to Prometheus 2.x, use `gitlab-ctl prometheus-upgrade` command.
- Running this command will migrate all your existing data to format supported by Prometheus 2.x.
- This can be a time consuming operation. To skip migrating the data, and instead remove and start fresh, run `gitlab-ctl prometheus-upgrade --skip-data-migration`.
- Check https://docs.gitlab.com/omnibus/update/gitlab_11_changes.html#114 for details.
- ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement