script/server problem/...

root@essc-openvpn:/websites/teambox.mydomain.com/teambox# sudo script/ server -e development /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb: 132: warning: Insecure world writable dir /usr/bin in PATH, mode 040777 => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 6, col 2: ` database: teambox2' (ArgumentError)   from /usr/lib/ruby/1.8/yaml.rb:133:in `load'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 902:in `database_configuration'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 437:in `initialize_database'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 141:in `process'   from /websites/teambox.mydomain.com/teambox/lib/teambox.rb:14:in `process'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 113:in `send'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 113:in `run'   from /websites/teambox.mydomain.com/teambox/lib/teambox.rb:8:in `run'   from /websites/teambox.mydomain.com/teambox/config/environment.rb:6   from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/ active_support/dependencies.rb:156:in `require'   from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/ active_support/dependencies.rb:156:in `require'   from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/ active_support/dependencies.rb:521:in `new_constants_in'   from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/ active_support/dependencies.rb:156:in `require'   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb: 84   from script/server:3:in `require'   from script/server:3

can any one help me out...

root@essc-openvpn:/websites/teambox.mydomain.com/teambox# sudo script/ server -e development /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb: 132: warning: Insecure world writable dir /usr/bin in PATH, mode 040777 => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 6, col 2: ` database: teambox2' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 902:in `database_configuration' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 437:in `initialize_database' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 141:in `process' from /websites/teambox.mydomain.com/teambox/lib/teambox.rb:14:in `process'

So what does this line look like? Also the lines around it.

   from /usr/lib/ruby/gems/1\.8/gems/rails\-2\.3\.8/lib/initializer\.rb:

113:in `send' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb: 113:in `run' from /websites/teambox.mydomain.com/teambox/lib/teambox.rb:8:in `run' from /websites/teambox.mydomain.com/teambox/config/environment.rb:6

And this one (probably best to show the whole file).

Colin

When you get an error, the first line of the stack trace is usually the first place to look. In this case, the yaml library is complaining about bad syntax in " database: teambox2", which is most likely in your config/database.yml file.

YAML is pretty strict about indentation, and consistent use of tabs or spaces. I would check line 6 of database.yml to make sure it is indented in the same way as the lines around it (for example, perhaps it is using a tab where the rest of the lines use two spaces, or vice versa).

Chris

thx,…