Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Following c00i90wn’s guide, problem with rake db_schema_import
 
wizardpc
Posted: 04 June 2009 01:13 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  3
Joined  2009-06-03

I am relatively new at linux, and completely new at ruby, so assume you’re talking to your grandmother when asking me questions :D

Ubuntu 9.04, ruby 1.8.7, mysql 5, tracks 1.7

I’ve gotten to the line in his guide (http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/) that says “sudo rake db_schema_import”

It fails. Badly, I think. The one thing I did differently from the guide is that I downloaded tracks from the main tracks page by clicking on the “Get Tracks 1.7” button, rather than installing subversion and going from there.

This is the output:

user@fatboy:/var/www/tracks$ sudo rake db_schema_import --trace
(in /var/www/tracks)
rake aborted!
Don't know how to build task 'db_schema_import'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in 
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
user@fatboy:/var/www/tracks$ 

I can’t find anything on the forums or on the intertubes that has been remotely helpful for this specific error. I am not even sure what the error is indicating since I dont know how rake works.

Any direction would be extremely helpful.

Profile
 
Reinier Balt
Posted: 04 June 2009 06:52 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

please note that the guide is from dec 2006 and is outdated… But if it works, it works grin

the subversion repository is not current anymore. We’re working with github. You choose well to get the packages tracks 1.7 from the website.

for step 7, call

rake db:migrate

This will create an empty database. Follow the guide further.

Profile
 
wizardpc
Posted: 04 June 2009 12:51 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-06-03

Now I get:

user@fatboy:/var/www/tracks$ sudo rake db:migrate --trace
(in /var/www/tracks)
** 
Invoke db:migrate (first_time)
** 
Invoke environment (first_time)
** 
Execute environment
rake aborted
!
undefined method `length' for nil:NilClass
/var/www/tracks/config/environment.rb:34
/var/www/tracks/config/../vendor/rails/railties/lib/initializer.rb:110:in 
`run'
/var/www/tracks/config/environment.rb:17
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
/var/www/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/tracks/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in 
`call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in 
`execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in 
`invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in 
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
user@fatboy:/var/www/tracks$ 
Profile
 
Reinier Balt
Posted: 04 June 2009 02:05 PM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

hmm, the guide you used asks you to rename environment.rb. This is not the case anymore.

Please restore environment.rb and copy site.yml.tmpl to site.yml and fill it with your preferences.

Profile
 
wizardpc
Posted: 04 June 2009 11:30 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-06-03

I made the changes you suggested, ran it again and got an error about missing file openssl.
The google told me to run this:

sudo apt-get install libopenssl-ruby1.8 

and the the rake db:migrate worked properly

On to the rest of the guide! (unless there is a better one for my setup, but methinksive gotten to all the platform-specific stuff)

Profile
 
Reinier Balt
Posted: 05 June 2009 06:42 AM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

good luck grin

Profile
 
touficjohn
Posted: 05 June 2009 03:53 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-19

I’m writting a guide on how to install tracks 1.7 ith MySQL+Apache+modrails on ubuntu 8.10 it should work fine with 9.04.

I’ll let you know as soon as its done.

EDIT:
It’s done smile
http://www.getontracks.org/forums/viewthread/424/

Profile
 
Reinier Balt
Posted: 08 June 2009 08:12 AM   [ Ignore ]   [ # 7 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

thanks. I’ve put a link to it from the wiki

Profile
 
   
 
 
‹‹ Where is my CSS ??? !!      HOW TO: Install Tracks on Ubuntu with Apache + MySQL ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1265 seconds

Atom Feed
RSS 2.0