Server crashed mid upgrade


I’m running gitlab-ce on Centos 7.4 via the official rpms.

My server seems to have crashed mid upgrade of gitlab-ce

I tried yum reinstalling, this didn’t seem to work. Running gitlab-ctl tail I can see lots of errors in the log. All seem to be related to this error:

Permission denied @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml

This file exists and is owned by root - is that correct? Running gitlab-ctl reconfigure leads to:

Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
  - package (0.1.0)
  - consul (0.0.0)
  - runit (0.14.2)
  - registry (0.1.0)
  - gitlab (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...

Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb

undefined method `parse_variables' for GitlabWorkhorse:Module
Did you mean?  instance_variables

Cookbook Trace:
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:260:in `generate_config'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:26:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'

Relevant File Content:

253:        end
255:        results
256:      end
258:      def generate_config(node_name)
259:        generate_secrets(node_name)
260>>       GitlabWorkhorse.parse_variables
261:        GitlabShell.parse_variables
262:        GitlabRails.parse_variables
263:        Logging.parse_variables
264:        Redis.parse_variables
265:        Postgresql.parse_variables
266:        Unicorn.parse_variables
267:        IncomingEmail.parse_variables
268:        GitlabMattermost.parse_variables
269:        GitlabPages.parse_variables


Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 14 seconds

Does anyone have any suggestions? Are there files/directories I can safely remove to attempt a semi clean install without losing my repos?