# RoR Error When Doing: rake db:schema:load

**URL:** <https://www.ruby-forum.com/t/ror-error-when-doing-rake-dbload/122740>\
**Category:** Rails\
**Created:** [December 11, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/ror-error-when-doing-rake-dbload/122740 "2007-12-11T16:11:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriscole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5fc32e/32.png) [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Post date:** [December 11, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/ror-error-when-doing-rake-dbload/122740/1 "2007-12-11T16:11:17Z")

</div>

Hey, I am new to this and I thought I had finally set up everything  
perfectly after three days of trying to configure it. However I run this  
command:

rake db:schema:load

and I get an error “syntax error on line 23, col 11: `’”. The error  
however is now with the schema it’s with the ruby install itself as you  
can see with the trace I ran:

chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load  
–trace  
(in /Users/Chris/Sites/beast)  
\*\* Invoke db:schema:load (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
rake aborted!  
syntax error on line 23, col 11: `' /usr/local/lib/ruby/1.8/yaml.rb:133:in`load’  
/usr/local/lib/ruby/1.8/yaml.rb:133:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:in`database\_configuration’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:181:in  
`initialize_database' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:84:in`process’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in  
`run' /Users/Chris/Sites/beast/config/../config/environment.rb:13 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/tasks/misc.rake:3 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in`execute’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in  
`execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in`invoke’  
/usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in`invoke’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in  
`invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in`each’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in  
`invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in`invoke’  
/usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in`invoke’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in  
`top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in`top\_level’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in  
`standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in`top\_level’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in`standard\_exception\_handling’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7  
/usr/local/bin/rake:18

Any ideas? Im getting really frustrated!

---

<div class="post-metadata">

**Author:** ![chriscole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5fc32e/32.png) [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Post date:** [December 11, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/ror-error-when-doing-rake-dbload/122740/2 "2007-12-11T16:17:18Z")

</div>

The problem is likely in your database.yml file and not in your Ruby  
install, so I’d start there.

Chris Campbell wrote:

> rake db:schema:load
> 
> and I get an error “syntax error on line 23, col 11: `’”. The error  
> however is now with the schema it’s with the ruby install itself as you  
> can see with the trace I ran:
> 
> chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load  
> –trace  
> (in /Users/Chris/Sites/beast)  
> \*\* Invoke db:schema:load (first\_time)  
> \*\* Invoke environment (first\_time)  
> \*\* Execute environment  
> rake aborted!  
> syntax error on line 23, col 11: `' /usr/local/lib/ruby/1.8/yaml.rb:133:in`load’  
> /usr/local/lib/ruby/1.8/yaml.rb:133:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:in`database\_configuration’

---

<div class="post-metadata">

**Author:** ![chriscole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5fc32e/32.png) [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Post date:** [December 11, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/ror-error-when-doing-rake-dbload/122740/3 "2007-12-11T16:21:47Z")

</div>

Gabriel Gironda wrote:

> The problem is likely in your database.yml file and not in your Ruby  
> install, so I’d start there.
> 
> Chris Campbell wrote:
> 
> > rake db:schema:load
> > 
> > and I get an error “syntax error on line 23, col 11: `'”. The error  
> > however is now with the schema it’s with the ruby install itself as you  
> > can see with the trace I ran:
> > 
> > chris-campbells-computer:~/Sites/beast Chris$ rake db:schema:load  
> > –trace  
> > (in /Users/Chris/Sites/beast)  
> > \*\* Invoke db:schema:load (first\_time)  
> > \*\* Invoke environment (first\_time)  
> > \*\* Execute environment  
> > rake aborted!  
> > syntax error on line 23, col 11: `' /usr/local/lib/ruby/1.8/yaml.rb:133:in `load’  
> > /usr/local/lib/ruby/1.8/yaml.rb:133:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:in `database\_configuration’

Yes, that is what I thought at first, but the referenced lines and  
surrounding areas is fine. The database.yml is actually from the ruby  
forum called “Beast”. I got it from the SNV.  
[http://svn.techno-weenie.net/projects/beast/branches/stable-1.0/README](http://svn.techno-weenie.net/projects/beast/branches/stable-1.0/README)
