bundle exec rake db:initial_setup throwing error - ruby-on-rails

I was setting up canvas-lms on ubuntu and in the end while populating the database with bundle exec rake db:initial_setup I got "rake aborted! Configuration is not a module" error . What should I do to fix this error?
This is the error:
Command : bundle exec rake db:initial_setup --trace
Error :
** Invoke db:initial_setup (first_time)
** Invoke db:generate_security_key (first_time)
** Execute db:generate_security_key
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Configuration is not a module
/usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>'
/usr/lib/ruby/vendor_ruby/rails/configuration.rb:7:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/railtie.rb:2:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/application.rb:4:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails.rb:10:in `<top (required)>'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
/home/knolskape/ror/canvas/canvas/config/boot.rb:53:in `load_gems'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/initializer.rb:167:in `process'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/initializer.rb:114:in `run'
/home/knolskape/ror/canvas/canvas/config/environment.rb:32:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/tasks/misc.rake:4:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:initial_setup => db:migrate => environment

Related

Rails-ERD, Graphviz error. Other answers not working. "Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot"

I am on Rails 5.1, and on a Mac running Sierra. I've already read and tried the solutions listed on other similar questions (1, 2). I have 3 different Rails projects that I'm working on and have rails-erd installed on all of them, but it is not working on one of them.
When I run rails ert --trace:
>rails erd --trace
** Invoke erd (first_time)
** Invoke erd:generate (first_time)
** Invoke erd:check_dependencies (first_time)
** Execute erd:check_dependencies
** Invoke erd:options (first_time)
** Execute erd:options
** Invoke erd:load_models (first_time)
** Execute erd:load_models
Loading application environment...
** Invoke environment (first_time)
** Execute environment
Loading code in search of Active Record models...
** Execute erd:generate
Generating Entity-Relationship Diagram for 13 models...
rails aborted!
Saving diagram failed!
Verify that Graphviz is installed and in your path, or use filetype=dot.
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram/graphviz.rb:211:in `rescue in block in <class:Graphviz>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram/graphviz.rb:202:in `block in <class:Graphviz>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:169:in `instance_eval'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:169:in `save'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:120:in `create'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:74:in `create'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/tasks.rake:55:in `block (2 levels) in <top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command.rb:46:in `invoke'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands.rb:16:in `<top (required)>'
/Users/jaysonwhelpley/Sites/biq/bin/rails:9:in `require'
/Users/jaysonwhelpley/Sites/biq/bin/rails:9:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Users/jaysonwhelpley/Sites/biq/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
NoMethodError: undefined method `zero?' for nil:NilClass
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ruby-graphviz-1.2.3/lib/graphviz/utils.rb:58:in `output_from_command'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ruby-graphviz-1.2.3/lib/graphviz.rb:600:in `output'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram/graphviz.rb:204:in `block in <class:Graphviz>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:169:in `instance_eval'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:169:in `save'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:120:in `create'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/diagram.rb:74:in `create'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rails-erd-1.5.2/lib/rails_erd/tasks.rake:55:in `block (2 levels) in <top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `each'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command.rb:46:in `invoke'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands.rb:16:in `<top (required)>'
/Users/jaysonwhelpley/Sites/biq/bin/rails:9:in `require'
/Users/jaysonwhelpley/Sites/biq/bin/rails:9:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Users/jaysonwhelpley/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Users/jaysonwhelpley/Sites/biq/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => erd => erd:generate
I have already installed graphviz.
The rake erd filetype=dot command works just fine, but trying the option of using:
erd --inheritance --direct --attributes=foreign_keys,content --filetype=dot
dot -Tjpg erd.dot > erd.jpg
It just creates an empty erd.jpg.
Any help?
I was having a similar problem, what I did was the following:
Put the following patch on initializers, you can find the explanation here ERD issue:
require 'rails_erd/domain/relationship'
module RailsERD
class Domain
class Relationship
class << self
private
def association_identity(association)
Set[association_owner(association), association_target(association)]
end
end
end
end
end
Generate the dot file
rake erd filetype=dot --trace
Generate the pdf file
dot -Tpdf -oERD.pdf -v erd.dot

failed to load derailed using mongoid

I have a Rails 5 App (5.1.rc2) which is using mongoid instead of mysql. On my real production server (heroku), the app is running properly. But when I try to load it
env RAILS_ENV=production bundle exec derailed exec perf:allocated_objects
I get this output:
Booting: production
bundler: failed to load command: derailed (/Users/jan/.rbenv/versions/2.4.1/bin/derailed)
URI::InvalidURIError: the scheme mongodb does not accept registry part: <MYURL>
MY URL : mongodb://username.password#HOST1:PORT, HOST2:PORT, HOST3:PORT
What I am doing wrong?
EDIT
here is a more detailed stacktrace:
URI::InvalidURIError: the scheme mongodb does not accept registry part: username:password#cluster-shard-00-00-asdf.mongodb.net:27017,cluster-shard-00-01-asdf.mongodb.net:27017,cluster-shard-00-02-asdf.mongodb.net:27017 (or bad hostname?)
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/uri/generic.rb:206:in `initialize'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/uri/rfc2396_parser.rb:219:in `new'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/uri/rfc2396_parser.rb:219:in `parse'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:38:in `initialize'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:268:in `new'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:268:in `resolve_url_connection'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:256:in `resolve_hash_connection'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:231:in `resolve_connection'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:141:in `resolve'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:161:in `block in resolve_all'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:160:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_adapters/connection_specification.rb:160:in `resolve_all'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/connection_handling.rb:70:in `resolve'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/core.rb:46:in `configurations='
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/core.rb:48:in `block in <module:Core>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0.rc2/lib/active_support/concern.rb:120:in `class_eval'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0.rc2/lib/active_support/concern.rb:120:in `append_features'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/base.rb:291:in `include'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/base.rb:291:in `<class:Base>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/base.rb:275:in `<module:ActiveRecord>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.0.rc2/lib/active_record/base.rb:25:in `<top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter/active_record.rb:18:in `require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter/active_record.rb:18:in `orm_class'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter/base.rb:52:in `loadable?'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter.rb:17:in `block in load_available'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter.rb:15:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex/acts_as_url/adapter.rb:15:in `load_available'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/stringex-2.7.1/lib/stringex.rb:13:in `<top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mongoid-slug-5.3.3/lib/mongoid/slug.rb:2:in `require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mongoid-slug-5.3.3/lib/mongoid/slug.rb:2:in `<top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:105:in `require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:105:in `rescue in block in require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:82:in `block in require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
/Users/jan/RubymineProjects/gn2016/config/application.rb:26:in `<top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/derailed_benchmarks-1.3.2/lib/derailed_benchmarks/tasks.rb:19:in `require'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/derailed_benchmarks-1.3.2/lib/derailed_benchmarks/tasks.rb:19:in `block (2 levels) in <top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/derailed_benchmarks-1.3.2/lib/derailed_benchmarks/tasks.rb:60:in `block (2 levels) in <top (required)>'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `each'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/derailed_benchmarks-1.3.2/bin/derailed:41:in `exec'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
/Users/jan/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/derailed_benchmarks-1.3.2/bin/derailed:92:in `<top (required)>'
/Users/jan/.rbenv/versions/2.4.1/bin/derailed:22:in `load'
/Users/jan/.rbenv/versions/2.4.1/bin/derailed:22:in `<top (required)>'

SQL Server Configuration Error while Installing Redmine using Helicon Zoo Web Installer

I have tried installing Redmine using MS Web Platform and from Helicon Zoo Web installer. I am using Windows 7 machine 64-bit and SQL server 2008. I have configured database.yml to connect to my SQL server DB and I m trying to migrate from SQLLite(default db) to SQLSERVER. Here is my configuration set up
production:
adapter: sqlserver
database: RedMineDB
host: XX.XX.XX.XXX/SQLEXPRESS
username: slquser1234
password: testpwd
Here is the error trace :
C:\inetpub\wwwroot\REDMIN~1>rake db:setup --trace
** Invoke db:setup (first_time)
** Invoke db:schema:load_if_ruby (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:create
** Invoke environment (first_time)
** Execute environment
rake aborted!
Server name not found in configuration files
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds/client.rb:68:in `connect'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds/client.rb:68:in `initialize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:417:in `new'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:417:in `connect'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:204:in `initialize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:40:in `new'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:40:in `sqlserver_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/model_schema.rb:223:in `table_exists?'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:75:in `get_primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:60:in `reset_primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_methods/primary_key.rb:49:in `primary_key'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activerecord-3.2.13/lib/active_record/attribute_assignment.rb:13:in `attributes_protected_by_default'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:216:in `block in protected_attributes_configs'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `yield'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `default'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:188:in `protected_attributes'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:118:in `block in attr_protected'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:117:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:117:in `attr_protected'
C:/inetpub/wwwroot/redmine-test/app/models/issue_relation.rb:73:in `<class:IssueRelation>'
C:/inetpub/wwwroot/redmine-test/app/models/issue_relation.rb:18:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `block in load_file'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:639:in `new_constants_in'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:468:in `load_file'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:353:in `require_or_load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:28:in `<class:Gantt>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:21:in `<module:Helpers>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:19:in `<module:Redmine>'
C:/inetpub/wwwroot/redmine-test/lib/redmine/helpers/gantt.rb:18:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/redmine-test/lib/redmine.rb:51:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/redmine-test/config/initializers/30-redmine.rb:4:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
C:/inetpub/wwwroot/redmine-test/config/environment.rb:14:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/bin/rake:23:in `load'
C:/inetpub/wwwroot/REDMIN~1/GEM_HOME/bin/rake:23:in `<main>'
Tasks: TOP => db:setup => db:schema:load_if_ruby => environment
My first advice is to address this issue to support#helicontech.com.
And please clarify the following points:
the error is "Server name not found in configuration files", which means that Zoo is working but something is wrong with database connection, so
make sure that "rake db:setup --trace" is executed from Zoo console tun from manager.
make sure that in web.config you have
read the docs to tiny_tds https://github.com/rails-sqlserver/tiny_tds
:dataserver - Can be the name for your data server as defined in freetds.conf. Raw hostname or hostname:port will work here too. FreeTDS says that named instance like 'localhost\SQLEXPRESS' work too, but I highly suggest that you use the :host and :port options below. Google how to find your host port if you are using named instances or go here.

Rake tasks keep failing

I'm trying to set up my development environment to work with an existing project that's using Mongoid. I've run bundle install and that worked fine, but I'm now trying to set up the database, and I'm running rake db:setup
Here's the output:
[1] $ rake db:setup --trace ✘
** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango/configuration/registry.rb:31:in `register'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango/configuration/candidate_registry.rb:10:in `register'
/home/chintanparikh/Documents/Work/project_name/config/initializers/cantango.rb:8:in `block in <top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/cantango-36e3ce152717/lib/cantango.rb:23:in `configure'
/home/chintanparikh/Documents/Work/project_name/config/initializers/cantango.rb:2:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `block in load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:234:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:556:in `block (2 levels) in <class:Engine>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:555:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/engine.rb:555:in `block in <class:Engine>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/chintanparikh/Documents/Work/project_name/config/environment.rb:5:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/application.rb:193:in `block (2 levels) in initialize_tasks'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:227:in `call'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:227:in `block in execute'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:222:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:222:in `execute'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:185:in `invoke_prerequisites'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/home/chintanparikh/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/task.rb:152:in `invoke'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:141:in `invoke_task'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `block (2 levels) in top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `each'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:99:in `block in top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:108:in `run_with_threads'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:93:in `top_level'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:71:in `block in run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:158:in `standard_exception_handling'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/lib/rake/application.rb:68:in `run'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/gems/rake-10.0.1/bin/rake:37:in `<top (required)>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/rake:19:in `load'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/rake:19:in `<main>'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/ruby_noexec_wrapper:14:in `eval'
/home/chintanparikh/.rvm/gems/ruby-1.9.3-p0#global/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => db:setup => db:create => environment
Does anyone know how to fix this? It looks like it's failing on the create step.
Cheers.
MongoDB is a schema-less database. You don't need to use any of the rake db:{} functions with it. The only thing you need to do to have mongodb up and running is to install it and then to start the server. You can find more information on installing MongoDB here

Rake aborted - Unable to find platform. How to resolve?

when I try to install my Ruby on Rails App, exactly when I digit:
sudo rake db:migrate
terminal returns to me:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Unable to find Platform
/Users/ladmin/Sites/IkarosGest/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:17
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/ladmin/Sites/IkarosGest/vendor/plugins/wicked_pdf/init.rb:1:in `evaluate_init_rb'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/Users/ladmin/Sites/IkarosGest/config/environment.rb:6
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => db:migrate => environment
Resolved it! The problem was in "wickedpdf.rb" in this piece of code:
if Platform.is_windows?
include Win32PdfRenderer
elsif Platform.is_linux?
include NixPdfRenderer
else
raise "Unable to find Platform"
end
because I'm on Mac :D
Don't use sudo for rake db:migrate.

Resources