Couldn't parse YAML at line 17 column 14

After an update…
do you have a idea?

/home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:148:in
parse' /home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:148:inparse_stream’
/home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:119:in
parse' /home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:106:inload’
/home/dhe/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/psych.rb:205:in
load_file' i18n (0.5.0) lib/i18n/backend/base.rb:170:inload_yml’
i18n (0.5.0) lib/i18n/backend/base.rb:156:in load_file' i18n (0.5.0) lib/i18n/backend/base.rb:15:inblock in load_translations’
i18n (0.5.0) lib/i18n/backend/base.rb:15:in each' i18n (0.5.0) lib/i18n/backend/base.rb:15:inload_translations’
i18n (0.5.0) lib/i18n/backend/simple.rb:55:in init_translations' i18n (0.5.0) lib/i18n/backend/simple.rb:69:inlookup’
i18n (0.5.0) lib/i18n/backend/base.rb:26:in translate' i18n (0.5.0) lib/i18n.rb:155:intranslate’
devise (1.1.5) lib/devise/controllers/internal_helpers.rb:89:in
set_flash_message' devise (1.1.5) app/controllers/devise/sessions_controller.rb:14:increate’
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in
send_action' actionpack (3.0.3) lib/abstract_controller/base.rb:151:inprocess_action’
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in
process_action' actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:inblock in
process_action’
activesupport (3.0.3) lib/active_support/callbacks.rb:445:in
_run__1729441892109748571__process_action__94192459520562294__callbacks' activesupport (3.0.3) lib/active_support/callbacks.rb:409:in_run_process_action_callbacks’
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in
run_callbacks' actionpack (3.0.3) lib/abstract_controller/callbacks.rb:17:inprocess_action’
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' activesupport (3.0.3) lib/active_support/notifications.rb:52:inblock
in instrument’
activesupport (3.0.3)
lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.0.3) lib/active_support/notifications.rb:52:ininstrument’
actionpack (3.0.3) lib/action_controller/metal/instrumentation.rb:29:in
process_action' actionpack (3.0.3) lib/action_controller/metal/rescue.rb:17:inprocess_action’
actionpack (3.0.3) lib/abstract_controller/base.rb:120:in process' actionpack (3.0.3) lib/abstract_controller/rendering.rb:40:inprocess’
actionpack (3.0.3) lib/action_controller/metal.rb:138:in dispatch' actionpack (3.0.3) lib/action_controller/metal/rack_delegation.rb:14:indispatch’
actionpack (3.0.3) lib/action_controller/metal.rb:178:in block in action' actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:incall’
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:in
dispatch' actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:27:incall’
actionpack (3.0.3) lib/action_dispatch/routing/mapper.rb:35:in call' rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:inblock in call’
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in block in recognize' rack-mount (0.6.13) lib/rack/mount/code_generation.rb:68:inoptimized_each’
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in recognize' rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall’
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:492:in
call' warden (1.0.3) lib/warden/manager.rb:35:inblock in call’
warden (1.0.3) lib/warden/manager.rb:34:in catch' warden (1.0.3) lib/warden/manager.rb:34:incall’
actionpack (3.0.3)
lib/action_dispatch/middleware/best_standards_support.rb:17:in call' actionpack (3.0.3) lib/action_dispatch/middleware/head.rb:14:incall’
rack (1.2.1) lib/rack/methodoverride.rb:24:in call' actionpack (3.0.3) lib/action_dispatch/middleware/params_parser.rb:21:incall’
actionpack (3.0.3) lib/action_dispatch/middleware/flash.rb:182:in call' actionpack (3.0.3) lib/action_dispatch/middleware/session/abstract_store.rb:149:incall’
actionpack (3.0.3) lib/action_dispatch/middleware/cookies.rb:295:in
call' activerecord (3.0.3) lib/active_record/query_cache.rb:32:inblock in
call’
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
cache' activerecord (3.0.3) lib/active_record/query_cache.rb:12:incache’
activerecord (3.0.3) lib/active_record/query_cache.rb:31:in call' activerecord (3.0.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:353:incall’
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:46:in
block in call' activesupport (3.0.3) lib/active_support/callbacks.rb:415:in_run_call_callbacks’
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in
call' rack (1.2.1) lib/rack/sendfile.rb:107:incall’
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in
call' actionpack (3.0.3) lib/action_dispatch/middleware/show_exceptions.rb:46:incall’
railties (3.0.3) lib/rails/rack/logger.rb:13:in call' rack (1.2.1) lib/rack/runtime.rb:17:incall’
activesupport (3.0.3)
lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.2.1) lib/rack/lock.rb:11:inblock in call’
internal:prelude:10:in synchronize' rack (1.2.1) lib/rack/lock.rb:11:incall’
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in call' railties (3.0.3) lib/rails/application.rb:168:incall’
railties (3.0.3) lib/rails/application.rb:77:in method_missing' passenger (3.0.2) lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request’
passenger (3.0.2)
lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request' passenger (3.0.2) lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop’
passenger (3.0.2)
lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
start_request_handler' passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:275:inblock
in handle_spawn_application’
passenger (3.0.2) lib/phusion_passenger/utils.rb:479:in safe_fork' passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application’
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop' passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously’
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:180:in
start' passenger (3.0.2) lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart’
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:219:in block (2 levels) in spawn_rails_application' passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add’
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:214:in block in spawn_rails_application' passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:82:inblock in
synchronize’
internal:prelude:10:in synchronize' passenger (3.0.2) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize’
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:213:in
spawn_rails_application' passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:132:inspawn_application’
passenger (3.0.2) lib/phusion_passenger/spawn_manager.rb:275:in
handle_spawn_application' passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop’
passenger (3.0.2) lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously' passenger (3.0.2) helper-scripts/passenger-spawn-server:99:in

On Feb 2, 10:55am, Solrac C. [email protected] wrote:

After an update…
do you have a idea?

I’d check your yaml translaction files.

Fred

there is a post there about my problem:
http://blog.segment7.net/2011/01/31/rubygems-1-5

RubyGems 1.5.0 seems to force use of the psych yaml parser if you

have it in your system. If you are having trouble parsing some yaml
files, or if you have yaml files which use merge keys (
http://redmine.ruby-lang.org/issues/show/4300 ), then you might need to
revert to using syck instead of psych.

I have libyaml installed, rvm builds 1.9.2 with libyaml, so its part

of my system. But ruby 1.9.2 doesn’t make it the default yet. All worked
fine till 1.5.0, which by directly requiring ‘psych’ cause it to get
loaded first and set as system yaml parser.

My workaround was to do the following early in the rails boot

sequence:

require ‘yaml’
YAML::ENGINE.yamler= ‘syck’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs