Permission error when "gitlab-ctl reconfigure"

Summary

Error when run “gitlab-ctl reconfigure”

Steps to reproduce

gitlab-ctl reconfigure

What is the current bug behavior?

Running handlers:
There was an error running gitlab-ctl reconfigure:

storage_directory[/home/gitlab/.ssh] (gitlab::gitlab-shell line 34) had an error: Errno::EACCES: ruby_block[directory resource: /home/gitlab/.ssh] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 34) had an error: Errno::EACCES: Permission denied - set -x && [ -d "/home/gitlab/.ssh" ]

Relevant logs

path : /var/log/gitlab/reconfigure

[2020-01-10T17:46:49+09:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded
  One version per cookbook

[2020-01-10T17:46:49+09:00] INFO: *** Chef 14.13.11 ***
[2020-01-10T17:46:49+09:00] INFO: Platform: x86_64-linux
[2020-01-10T17:46:49+09:00] INFO: Chef-client pid: 29121
[2020-01-10T17:46:49+09:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2020-01-10T17:46:52+09:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2020-01-10T17:46:52+09:00] INFO: Run List is [recipe[gitlab]]
[2020-01-10T17:46:52+09:00] INFO: Run List expands to [gitlab]
[2020-01-10T17:46:52+09:00] INFO: Starting Chef Run for SI3867-30
[2020-01-10T17:46:52+09:00] INFO: Running start handlers
[2020-01-10T17:46:52+09:00] INFO: Start handlers complete.
[2020-01-10T17:46:53+09:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@4.3.0, acme@4.0.0, crond@0.1.0]
[2020-01-10T17:46:59+09:00] WARN: Selected upstart because /sbin/init --version is showing upstart.
[2020-01-10T17:46:59+09:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2020-01-10T17:47:00+09:00] INFO: linux_user[GitLab user and group] altered
[2020-01-10T17:47:00+09:00] INFO: template[/var/opt/gitlab/.gitconfig] group changed to 496
[2020-01-10T17:47:00+09:00] INFO: directory[/var/opt/gitlab/.bundle] group changed to 496
[2020-01-10T17:47:03+09:00] INFO: Running queued delayed notifications before re-raising exception
[2020-01-10T17:47:03+09:00] INFO: Running queued delayed notifications before re-raising exception
[2020-01-10T17:47:03+09:00] ERROR: Running exception handlers
[2020-01-10T17:47:03+09:00] ERROR: Exception handlers complete
[2020-01-10T17:47:03+09:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2020-01-10T17:47:03+09:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-01-10T17:47:03+09:00] FATAL: Errno::EACCES: storage_directory[/var/opt/gitlab/.ssh] (gitlab::gitlab-shell line 34) had an error: Errno::EACCES: ruby_block[directory resource: /var/opt/gitlab/.ssh] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 34) had an error: Errno::EACCES: Permission denied - set -x && [ -d "/var/opt/gitlab/.ssh" ]

Details of package version

gitlab-ce-12.6.3-ce.0.el6.x86_64

Environment details

  • Operating System: CentOS release 6.5 (Final)
  • Installation Target, remove incorrect values:
    • Bare Metal Machine
  • Installation Type, remove incorrect values:
    • New Installation
  • Is there any other software running on the machine: No
  • Is this a single or multiple node installation? single
  • Resources
    • CPU: 16core
    • Memory total: 32G

Configuration details

No setting