Skip to content

Error executing action `delete` on resource 'link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb]'

Summary

All jobs under Test stage of pipeline https://gitlab.com/gitlab-org/gitlab-qa-mirror/pipelines/149879849 (master) failed at the same error (see stack trace)

Stack trace

link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb] action delete
     
     ================================================================================
     Error executing action `delete` on resource 'link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb]'
     ================================================================================
     
     TypeError
     ---------
     no implicit conversion of nil into String
     
     Resource Declaration:
     ---------------------
     # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb
     
     314: link File.join(gitlab_rails_source_dir, "config/initializers/rack_attack.rb") do
     315:   action :delete
     316: end
     317: 
     
     Compiled Resource:
     ------------------
     # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:314:in `from_file'
     
     link("/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb") do
       action [:delete]
       default_guard_interpreter :default
       declared_type :link
       cookbook_name "gitlab"
       recipe_name "gitlab-rails"
       target_file "/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb"
     end
     
     System Info:
     ------------
     chef_version=14.14.29
     platform=ubuntu
     platform_version=16.04
     ruby=ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
     program_name=/opt/gitlab/embedded/bin/chef-client
     executable=/opt/gitlab/embedded/bin/chef-client

Screenshot / HTML page

Possible fixes