Reconfigure fails due to Psych::SyntaxError

Hey all,

I am having the following issue, which I cant figure out.

 gitlab-ctl upgrade
Shutting down all GitLab services except those needed for migrations
ok: down: gitlab-workhorse: 1048s, normally up
ok: down: logrotate: 1048s, normally up
ok: down: mattermost: 1048s, normally up
ok: down: nginx: 1047s, normally up
ok: down: postgresql: 0s, normally up
ok: down: redis: 1s, normally up
ok: down: sidekiq: 1046s, normally up
ok: down: unicorn: 1045s, normally up
ok: run: postgresql: (pid 19365) 0s
ok: run: redis: (pid 19373) 1s
run: postgresql: (pid 19365) 1s; run: log: (pid 611) 911556s
run: redis: (pid 19373) 1s; run: log: (pid 619) 911556s
Reconfiguring GitLab to apply migrations
[2016-01-26T10:57:20+01:00] WARN: Ohai::Config[:disabled_plugins] is set. Ohai::Config[:disabled_plugins] is deprecated and will be removed in future releases of ohai. Use ohai.disabled_plugins in your configuration file to configure :disabled_plugins for ohai.
Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
  - runit (0.14.2)
  - package (0.0.0)
  - gitlab (0.0.1)
Compiling Cookbooks...
Recipe: gitlab::default
  * directory[/etc/gitlab] action create (up to date)

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

  (<unknown>): could not find expected ':' while scanning a simple key at line 4 column 6

  Cookbook Trace:
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:35:in `from_file'

  Relevant File Content:

   28:    group "root"
   29:    mode "0775"
   30:    action :nothing
   31:  end.run_action(:create)
   33:  Gitlab[:node] = node
   34:  if File.exists?("/etc/gitlab/gitlab.rb")
   35>>   Gitlab.from_file("/etc/gitlab/gitlab.rb")
   36:  end
   37:  node.consume_attributes(Gitlab.generate_config(node['fqdn']))
   39:  if File.exists?("/var/opt/gitlab/bootstrapped")
   40:          node.set['gitlab']['bootstrap']['enable'] = false
   41:  end
   43:  directory "/var/opt/gitlab" do
   44:    owner "root"

  Running handlers:
[2016-01-26T10:58:31+01:00] ERROR: Running exception handlers
  Running handlers complete
[2016-01-26T10:58:31+01:00] ERROR: Exception handlers complete
  Chef Client failed. 0 resources updated in 01 minutes 10 seconds
[2016-01-26T10:58:31+01:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2016-01-26T10:58:31+01:00] ERROR: (<unknown>): could not find expected ':' while scanning a simple key at line 4 column 6
[2016-01-26T10:58:31+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Anyone any ideas?


further debugging leaded to the error.
I am using a gitlab.rb, and in the ldap_server block I had reconfigured something like
host:'ldap-host' which is missing a space between ‘:’ and ‘ldap…’.
So changing this to host: 'ldap-host' fixed the issue.
Maybe if someone more experienced encounters this, it is a trivial error message. I think this should throw a better error message, or at least be in the faq troubleshooting guide.