Configuring object store for artifacts fails
ZD: https://gitlab.zendesk.com/agent/tickets/80678
If you add the lines, reconfigure fails:
gitlab_rails['artifacts_enabled'] = true
gitlab_rails['artifacts']['object_store_enabled'] = true
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]=' for nil:NilClass
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:21:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb:18:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:
14: # See the License for the specific language governing permissions and
15: # limitations under the License.
16: #
17:
18: Gitlab[:node] = node
19:
20: if File.exists?('/etc/gitlab/gitlab.rb')
21>> Gitlab.from_file('/etc/gitlab/gitlab.rb')
22: end
23:
24: node.consume_attributes(Gitlab.generate_config(node['fqdn']))
25:
26: # If is EE package, load EE config
27: if defined?(GitlabEE) == 'constant'
28: node.consume_attributes(GitlabEE.generate_config)
29: end
30:
Platform:
---------
x86_64-linux
I also noticed a possible typo in https://docs.gitlab.com/ee/administration/job_artifacts.html#using-object-storage: should it be object_store_remote_directory
instead of object_store_directory
?