Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
rake failing in 1.7 final upgrade
 
Chris K
Posted: 02 March 2009 04:30 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  7
Joined  2009-02-23

Hi everyone.  I am upgrading from 1.6 on a windows box with mysql.  When following the detailed upgrade instructions I am getting this error and wondering if I have to do anything with ruby first.  Cheers, —chris


C:\gtd\tracks-1.7\tracks-1.7>rake db:migrate RAILS_ENV=production—trace
(in C:/gtd/tracks-1.7/tracks-1.7)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `collect’ for #<Gem::Version::Requirement:0x467f878>
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:237:in `initialize’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:29:in `new’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:29:in `initialize’
[30 more lines like this clipped]

Profile
 
Chris K
Posted: 02 March 2009 06:06 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-02-23

Ruby version is 1.8.6 FWIW.

Profile
 
Reinier Balt
Posted: 03 March 2009 08:11 AM   [ Ignore ]   [ # 2 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

The error is not related to tracks, but to ruby gems.

This version of tracks is using rails2.2.2. You need to upgrade your gems and most important your rubygems package to 1.3.1. The later is not straightforward, you first need to install rubygems-update and then update rubygems.

Profile
 
Chris K
Posted: 03 March 2009 03:09 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-02-23

Thanks Reinier.  I did the updates and am now getting a different error, which I guess is progress.  Thanks much.

C:\gtd\tracks-1.7\tracks-1.7>rake db:migrate RAILS_ENV=production—trace
(in C:/gtd/tracks-1.7/tracks-1.7)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant ApplicationController::SITE_CONFIG
C:/gtd/tracks-1.7/tracks-1.7/vendor/rails/activesupport/lib/active_support/depen
dencies.rb:102:in `const_missing’
C:/gtd/tracks-1.7/tracks-1.7/app/controllers/application.rb:23
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_re
quire’

Profile
 
Reinier Balt
Posted: 03 March 2009 07:20 PM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Did you create the site.yml from the template?

Profile
 
Chris K
Posted: 03 March 2009 07:28 PM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-02-23

Yes, salt is set to the same as what I am upgrading from.  Upgraded all gems by now, did the rubygems-update and update rubygems things.  If you think that this is important to figure out for developer knowledge let me know, otherwise I am on the verge of uninstalling and reinstalling ruby.  c

Profile
 
Reinier Balt
Posted: 03 March 2009 07:41 PM   [ Ignore ]   [ # 6 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

hm, are you using the new environment.rb from the download or are you using your old environment.rb?

I do not think this error has anything to do with your ruby/rails/gems install, so reinstallation will not help I think

Profile
 
Chris K
Posted: 03 March 2009 08:02 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-02-23

That did the trick, thanks for the attention.  I think that the upgrade options at http://www.getontracks.org/doc/chapter/3-upgrading.html is a little unclear, I glossed over the verbiage and just followed the numbered steps which seemed to tell me to copy over all of the config files from my old install.

Anyway, I promise to be a better reader in the future, thanks again for all of the help with this. —chris

Profile
 
Reinier Balt
Posted: 03 March 2009 08:33 PM   [ Ignore ]   [ # 8 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

great that the upgrade turned out to be a success. I will check the upgrading instructions.

Profile
 
   
 
 
‹‹ Regional symbols don’t work as expected (Tracks 1.7, Apache, MySQL)      1.7 Upgrade -- Uninitialized constant Mime::M ››

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

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

Atom Feed
RSS 2.0