Skip to content

Instantly share code, notes, and snippets.

@lgs
Created November 26, 2010 10:42
Show Gist options
  • Save lgs/716546 to your computer and use it in GitHub Desktop.
Save lgs/716546 to your computer and use it in GitHub Desktop.
database name cannot be the empty string (Mongo::InvalidNSName)
lsoave@ubuntu:~/rails/tests/mongoid-rails3-devis-template$ rails s -e production
=> Booting WEBrick
=> Rails 3.0.3 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongo-1.1.2/lib/../lib/mongo/util/support.rb:58:in `validate_db_name': database name cannot be the empty string (Mongo::InvalidNSName)
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongo-1.1.2/lib/../lib/mongo/db.rb:76:in `initialize'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongo-1.1.2/lib/../lib/mongo/connection.rb:312:in `new'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongo-1.1.2/lib/../lib/mongo/connection.rb:312:in `db'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongoid-2.0.0.beta.20/lib/mongoid/config.rb:289:in `_master'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongoid-2.0.0.beta.20/lib/mongoid/config.rb:107:in `master'
from (eval):2:in `send'
from (eval):2:in `master'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/mongoid-2.0.0.beta.20/lib/mongoid/railtie.rb:64
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/lazy_load_hooks.rb:43:in `run_load_hooks'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/application/finisher.rb:46
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
from /home/lsoave/rails/tests/mongoid-rails3-devis-template/config/environment.rb:5
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /home/lsoave/rails/tests/mongoid-rails3-devis-template/config.ru:3
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /home/lsoave/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/lsoave/rails/tests/mongoid-rails3-devis-template/config.ru:1:in `new'
from /home/lsoave/rails/tests/mongoid-rails3-devis-template/config.ru:1
lsoave@ubuntu:~/rails/tests/mongoid-rails3-devis-template$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment