auxesis / visage

Graph collectd metrics in the browser, backed by a JSON API
http://visage-app.com/
Other
381 stars 56 forks source link

psych.rb:203:in `parse` error : visage-app-2.1.0 ruby 1.9.3-p194 #117

Closed F0REacH closed 11 years ago

F0REacH commented 12 years ago

ruby 1.9.3-p194 visage-app-2.1.0

foreach@Ubuntu-1204-precise-32-minimal:~/ruby-1.9.3-p194$ sudo visage-app start /usr/local/lib/ruby/1.9.1/psych.rb:203:in parse': (/usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app/config/profiles.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError) from /usr/local/lib/ruby/1.9.1/psych.rb:203:inparse_stream' from /usr/local/lib/ruby/1.9.1/psych.rb:151:in parse' from /usr/local/lib/ruby/1.9.1/psych.rb:127:inload' from /usr/local/lib/ruby/1.9.1/psych.rb:297:in block in load_file' from /usr/local/lib/ruby/1.9.1/psych.rb:297:inopen' from /usr/local/lib/ruby/1.9.1/psych.rb:297:in load_file' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app/config/file.rb:33:inload' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app/profile.rb:25:in load' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app.rb:38:inblock in class:Application' from /usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1273:in configure' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app.rb:30:inclass:Application' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app.rb:19:in <module:Visage>' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/lib/visage-app.rb:18:in<top (required)>' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/visage-app-2.1.0/bin/visage-app:17:in <top (required)>' from /usr/local/bin/visage-app:23:inload' from /usr/local/bin/visage-app:23:in `

'

FIX: Add following line to /lib/visage-app/config/file.rb

require 'yaml'

YAML::ENGINE.yamler = 'syck'

module Visage class Config class File

PS similar issue is described here : http://stackoverflow.com/questions/4980877/rails-error-couldnt-parse-yaml

ChrisLundquist commented 12 years ago

closed by #118