puppet ruby error psych.rb

20 views
Skip to first unread message

abhishek...@sparkventures.co.nz

unread,
Feb 10, 2015, 4:44:43 PM2/10/15
to rubyonra...@googlegroups.com

Cloud you please help me with the error:

DEBUG: 2015-02-11 10:34:43 +1300: Looking up puppet_master in YAML backend

DEBUG: 2015-02-11 10:34:43 +1300: Looking for data source global

/opt/puppet/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): mapping values are not allowed in this context at line 26 column 50 (Psych::SyntaxError)

from /opt/puppet/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'

from /opt/puppet/lib/ruby/1.9.1/psych.rb:151:in `parse'

from /opt/puppet/lib/ruby/1.9.1/psych.rb:127:in `load'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend/yaml_backend.rb:18:in `block (2 levels) in lookup'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/filecache.rb:53:in `read_file'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend/yaml_backend.rb:17:in `block in lookup'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:104:in `block in datasourcefiles'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:76:in `block in datasources'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:74:in `map'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:74:in `datasources'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:99:in `datasourcefiles'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend/yaml_backend.rb:16:in `lookup'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:206:in `block in lookup'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:203:in `each'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera/backend.rb:203:in `lookup'

from /opt/puppet/lib/ruby/site_ruby/1.9.1/hiera.rb:60:in `lookup'

from /usr/local/bin/hiera:221:in `<main>'

Frederick Cheung

unread,
Feb 11, 2015, 1:46:45 AM2/11/15
to rubyonra...@googlegroups.com


On Tuesday, February 10, 2015 at 9:44:43 PM UTC, abhishek...@sparkventures.co.nz wrote:

Cloud you please help me with the error:

DEBUG: 2015-02-11 10:34:43 +1300: Looking up puppet_master in YAML backend

DEBUG: 2015-02-11 10:34:43 +1300: Looking for data source global

/opt/puppet/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): mapping values are not allowed in this context at line 26 column 50 (Psych::SyntaxError)


Sounds like a syntax error in a yaml file (at line 26) although it's not telling you which file.

Fred
Reply all
Reply to author
Forward
0 new messages