The promote-to-primary-node command can silently fail while reconfiguring due to some misconfiguration on /etc/gitlab/gitlab.rb.
promote-to-primary-node
/etc/gitlab/gitlab.rb
https://gitlab.com/gitlab-org/gitlab-ee/issues/4395