Hi,
Just started experiencing some problems with application startup on Heroku, it throws the following error:
2012-05-18T12:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/riddle-1.5.2/lib/riddle/0.9.9.rb:1:in `<top (required)>': uninitialized constant Object::Riddle (NameError)
I did upgrade my flying sphinx gem to 0.6.5, but I'm getting the same errors even after downgrading to 0.6.2 again. Any idea what might be causing this? I've attached my current Gemfile.lock in case that is of any help.
Cheers,
Roger
The full error below:
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.2/lib/flying_sphinx.rb:6:in
require' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.2/lib/flying_sphinx.rb:6:in'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.2/lib/flying-sphinx.rb:1:in
require' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/flying-sphinx-0.6.2/lib/flying-sphinx.rb:1:in'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:68:in
require' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:68:inblock
(2 levels) in require'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:66:in
each' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:66:inblock
in require'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:55:in
each' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler/runtime.rb:55:inrequire'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/bundler-1.2.0.pre/lib/bundler.rb:126:in
require' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/config/application.rb:7:in'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/config/environment.rb:2:in require'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/config/environment.rb:2:in'
2012-05-18T12:01:32+00:00 app[web.1]: from config.ru:3:in
require' 2012-05-18T12:01:32+00:00 app[web.1]: from
config.ru:3:inblock in '
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in
instance_eval' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:ininitialize'
2012-05-18T12:01:32+00:00 app[web.1]: from config.ru:1:in
new' 2012-05-18T12:01:32+00:00 app[web.1]: from
config.ru:1:in'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in
eval' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:inload'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:in
load_rackup_config' 2012-05-18T12:01:32+00:00 app[web.1]:
from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:instart'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in
run_command' 2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:inrun!'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in
<top (required)>' 2012-05-18T12:01:32+00:00 app[web.1]:
from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:inload'
2012-05-18T12:01:32+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `'
2012-05-18T12:01:33+00:00 heroku[web.1]: Process exited with status
1
2012-05-18T12:01:33+00:00 heroku[web.1]: State changed from
starting to crashed
- Gemfile.lock 5.37 KB
#1 Posted by Pat Allan Support staff on 18 May, 2012 04:57 PM
Hi Roger
Can you confirm that thinking-sphinx is listed before flying-sphinx in your Gemfile? The order does matter, I'm afraid - it's the order Bundler will load the gems.
Cheers
Pat
#2 Posted by Roger K. Kristi... on 18 May, 2012 05:28 PM
Pat, that was indeed the problem. I'd restructured my Gemfile slightly as well. Works perfectly now.
Thanks for your nice work and always quick support!
Cheers,
Roger
#3 Posted by Pat Allan Support staff on 19 May, 2012 02:19 AM
Ah, great to hear Roger. Any further questions, just let me know :)
Cheers
Pat
Pat Allan closed this discussion on 19 May, 2012 02:19 AM.