Redis setup error: Undefined method `match` for nil:NilClass
On the latest nightly build, I see this:
* ruby_block[warn pending redis restart] action run
================================================================================
Error executing action `run` on resource 'ruby_block[warn pending redis restart]'
================================================================================
NoMethodError
-------------
undefined method `match' for nil:NilClass
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/redis_helper.rb:61:in `running_version'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:92:in `block (3 levels) in from_file'
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb
82: ruby_block 'warn pending redis restart' do
83: block do
84: message = <<~MESSAGE
85: The version of the running redis service is different than what is installed.
86: Please restart redis to start the new version.
87:
88: sudo gitlab-ctl restart redis
89: MESSAGE
90: LoggingHelper.warning(message)
91: end
92: only_if { redis_helper.running_version != redis_helper.installed_version }
93: end
94: end
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:82:in `block in from_file'
ruby_block("warn pending redis restart") do
params {:socket_group=>"git", :name=>nil}
action [:run]
default_guard_interpreter :default
declared_type :ruby_block
cookbook_name "redis"
recipe_name "enable"
block #<Proc:0x00005581cdb65798@/opt/gitlab/embedded/cookbooks/cache/cookbooks/redis/definitions/redis_service.rb:83>
block_name "warn pending redis restart"
only_if { #code block }
end
System Info:
------------
chef_version=14.13.11
* ruby_block[warn pending redis restart] action run [52/1938]
================================================================================
Error executing action `run` on resource 'ruby_block[warn pending redis restart]'
================================================================================
/cc: @balasankarc