"Undefined local variable or method `repo'" when Dependabot Configuration file is missing
I setup up dependabot-standalone in a schedule of a private instance.
Error occures in https://gitlab.com/dependabot-gitlab/dependabot/-/blob/master/app/services/gitlab/config_fetcher.rb#L20
Executing "step_script" stage of the job script
$ cd /home/dependabot
$ bundle exec rake "dependabot:update[$PROJECT_PATH,$PACKAGE_MANAGER,$DIRECTORY]"
rake aborted!
NameError: undefined local variable or method `repo' for #<Gitlab::ConfigFetcher:0x0000561f9ec9b5d0>
/home/dependabot/app/services/gitlab/config_fetcher.rb:20:in `rescue in call'
/home/dependabot/app/services/gitlab/config_fetcher.rb:16:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/services/dependabot/config.rb:19:in `block in call'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:332:in `block in fetch'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:717:in `block in save_block_result_to_cache'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:686:in `block in instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:686:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:716:in `save_block_result_to_cache'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:332:in `fetch'
/home/dependabot/app/services/dependabot/config.rb:18:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/services/dependency_updater.rb:28:in `config'
/home/dependabot/app/services/dependency_updater.rb:48:in `package_manager'
/home/dependabot/app/services/dependency_updater.rb:63:in `fetcher'
/home/dependabot/app/services/dependency_updater.rb:114:in `block in dependencies'
/home/dependabot/app/services/semaphore.rb:5:in `synchronize'
/home/dependabot/app/services/semaphore.rb:5:in `synchronize'
/home/dependabot/app/services/dependency_updater.rb:112:in `dependencies'
/home/dependabot/app/services/dependency_updater.rb:105:in `all_updated_dependencies'
/home/dependabot/app/services/dependency_updater.rb:98:in `all_vulnerable_dependencies'
/home/dependabot/app/services/dependency_updater.rb:76:in `update_security_vulnerabilities'
/home/dependabot/app/services/dependency_updater.rb:13:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/jobs/dependency_update_job.rb:17:in `perform'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:40:in `block in perform_now'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/i18n-1.8.5/lib/i18n.rb:308:in `with_locale'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:25:in `block (4 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:24:in `block (3 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:47:in `tag_logger'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:21:in `block (2 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:39:in `perform_now'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:18:in `perform_now'
/home/dependabot/lib/tasks/dependabot.rake:6:in `block (2 levels) in <main>'
/home/dependabot/vendor/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Caused by:
Gitlab::Error::NotFound: Server responded with code 404, message: {"message"=>"404 File Not Found"}. Request URI: https://gitlab.my-private-instance.de/api/v4/projects/lstoetzel%2Fproject/repository/files/.gitlab%2Fdependabot.yml/raw
/home/dependabot/vendor/bundle/gems/gitlab-4.17.0/lib/gitlab/request.rb:59:in `validate'
/home/dependabot/vendor/bundle/gems/gitlab-4.17.0/lib/gitlab/request.rb:51:in `block (2 levels) in <class:Request>'
/home/dependabot/vendor/bundle/gems/gitlab-4.17.0/lib/gitlab/client/repository_files.rb:20:in `file_contents'
/home/dependabot/app/services/gitlab/config_fetcher.rb:18:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/services/dependabot/config.rb:19:in `block in call'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:332:in `block in fetch'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:717:in `block in save_block_result_to_cache'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:686:in `block in instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:686:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:716:in `save_block_result_to_cache'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/cache.rb:332:in `fetch'
/home/dependabot/app/services/dependabot/config.rb:18:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/services/dependency_updater.rb:28:in `config'
/home/dependabot/app/services/dependency_updater.rb:48:in `package_manager'
/home/dependabot/app/services/dependency_updater.rb:63:in `fetcher'
/home/dependabot/app/services/dependency_updater.rb:114:in `block in dependencies'
/home/dependabot/app/services/semaphore.rb:5:in `synchronize'
/home/dependabot/app/services/semaphore.rb:5:in `synchronize'
/home/dependabot/app/services/dependency_updater.rb:112:in `dependencies'
/home/dependabot/app/services/dependency_updater.rb:105:in `all_updated_dependencies'
/home/dependabot/app/services/dependency_updater.rb:98:in `all_vulnerable_dependencies'
/home/dependabot/app/services/dependency_updater.rb:76:in `update_security_vulnerabilities'
/home/dependabot/app/services/dependency_updater.rb:13:in `call'
/home/dependabot/app/services/application_service.rb:7:in `call'
/home/dependabot/app/jobs/dependency_update_job.rb:17:in `perform'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:40:in `block in perform_now'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/i18n-1.8.5/lib/i18n.rb:308:in `with_locale'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:25:in `block (4 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:24:in `block (3 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:47:in `tag_logger'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/logging.rb:21:in `block (2 levels) in <module:Logging>'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `instance_exec'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/home/dependabot/vendor/bundle/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:39:in `perform_now'
/home/dependabot/vendor/bundle/gems/activejob-6.0.3.4/lib/active_job/execution.rb:18:in `perform_now'
/home/dependabot/lib/tasks/dependabot.rake:6:in `block (2 levels) in <main>'
/home/dependabot/vendor/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => dependabot:update
(See full trace by running task with --trace)
[2021-01-04 14:17:18 +0000 tid=gs6uoez4m] INFO: Raven 3.1.1 configured not to capture errors: DSN not set
[2021-01-04 14:17:18 +0000 tid=gs6uoez4m] INFO: [lstoetzel/project=>composer] Fetching configuration for lstoetzel/project from master