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... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 August 2010 09:14, sam <ntnehatomar2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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:6And this one (probably best to show the whole file). Colin> 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 >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 August 2010 09:14, sam <ntnehatomar2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 6, col > 2: ` database: teambox2'' (ArgumentError)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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thx,... On Fri, Aug 13, 2010 at 12:05 AM, Chris Mear <chrismear-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 12 August 2010 09:14, sam <ntnehatomar2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 6, col > > 2: ` database: teambox2'' (ArgumentError) > > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.