Chef cannot fetch gitlab-monitor package
Upon creation of some new nodes in https://gitlab.com/gitlab-com/infrastructure/issues/2408, Chef cannot install gitlab-monitor
because of:
[2017-08-07T12:16:14+00:00] WARN: remote_file[/var/chef/cache/gitlab-monitor.tar.gz] cannot be downloaded from https://dev.gitlab.org/gitlab-org/gitlab-monitor/repository/archive.tar.gz?ref=v1.9.0: 401 "Unauthorized"
================================================================================
Error executing action `create` on resource 'remote_file[/var/chef/cache/gitlab-monitor.tar.gz]'
================================================================================
Net::HTTPServerException
------------------------
401 "Unauthorized"
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/ark/resources/default.rb
139: remote_file new_resource.release_file do
140: source new_resource.url
141: checksum new_resource.checksum if new_resource.checksum
142: action :create
143: notifies :run, "execute[unpack #{new_resource.release_file}]"
144: backup new_resource.backup
145: end
146:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/ark/resources/default.rb:139:in `block in class_from_file'
remote_file("/var/chef/cache/gitlab-monitor.tar.gz") do
provider Chef::Provider::RemoteFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
source ["https://dev.gitlab.org/gitlab-org/gitlab-monitor/repository/archive.tar.gz?ref=v1.9.0"]
use_etag true
use_last_modified true
declared_type :remote_file
cookbook_name "gitlab-monitor"
checksum nil
owner nil
group nil
mode nil
backup 5
path "/var/chef/cache/gitlab-monitor.tar.gz"
verifications []
end
Platform:
---------
x86_64-linux