daitss/core — Issue #594: undefined method `find_first' for nil:NilClass
Author: childree
Created: 2011-12-02 22:49:46+00:00
State: open
Labels: d1refresh

snafu
time	Fri Dec 02 17:27:30 -0500 2011
message

undefined method `find_first' for nil:NilClass

trace

/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/datafile/describe.rb:52:in `augment_fixity'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/datafile/describe.rb:17:in `describe!'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/preserve.rb:21:in `preserve'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/journal.rb:16:in `step'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/preserve.rb:20:in `preserve'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/preserve.rb:18:in `each'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/preserve.rb:18:in `preserve'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/d1_refresh.rb:18:in `d1refresh'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/process.rb:82:in `send'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/process.rb:82:in `spawn'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/process.rb:66:in `fork'
/opt/web-services/sites/core/releases/20111201200246/lib/daitss/proc/wip/process.rb:66:in `spawn'
./bin/pulse:161:in `start_wips'
./bin/pulse:158:in `each'
./bin/pulse:158:in `start_wips'
./bin/pulse:188
./bin/pulse:186:in `loop'
./bin/pulse:186

After reset, the package fails again with a longer stacktrace:

d1refresh of E20051014_AAAAAM ( error )
snafu
time	Fri Dec 02 17:47:38 -0500 2011
message

undefined method `find_first' for nil:NilClass

trace

./lib/daitss/proc/datafile/describe.rb:52:in `augment_fixity'
./lib/daitss/proc/datafile/describe.rb:17:in `describe!'
./lib/daitss/proc/wip/preserve.rb:21:in `preserve'
./lib/daitss/proc/wip/journal.rb:16:in `step'
./lib/daitss/proc/wip/preserve.rb:20:in `preserve'
./lib/daitss/proc/wip/preserve.rb:18:in `each'
./lib/daitss/proc/wip/preserve.rb:18:in `preserve'
./lib/daitss/proc/wip/d1_refresh.rb:18:in `d1refresh'
./lib/daitss/proc/wip/process.rb:82:in `send'
./lib/daitss/proc/wip/process.rb:82:in `spawn'
./lib/daitss/proc/wip/process.rb:66:in `fork'
./lib/daitss/proc/wip/process.rb:66:in `spawn'
./app.rb:765:in `POST /workspace/:id'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/commonlogger.rb:20:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:753:in `forward'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:835:in `route_missing'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:783:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:779:in `route!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize'
/opt/web-services/sites/core/shared/bundle/ruby/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:205:in `start_request_handler'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:170:in `send'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:170:in `handle_spawn_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:165:in `handle_spawn_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:180:in `start'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:128:in `start'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rack_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rack_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/opt/ruby/gem-repos/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/opt/ruby/gem-repos/gems/passenger-3.0.7/helper-scripts/passenger-spawn-server:99