Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Tracks on a web host  >  Thread
   
 
(1.7) Installation on Eleven2
 
dmd.
Posted: 01 May 2009 11:27 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

hi,

i am having trouble getting to install tracks on my shared server at eleven2 in an apache environment.
i have never, _ever_ used ror and would really appreciate if you guys could help me out…


i uploaded all the files, created a database, configured config/database.yml and /site.yml, created the app under ruby on rails in cpanel and tried to get it installed via terminal with ‘rake db:migrate RAILS_ENV=production’. which did not work.

‘—trace’ yields the following:

======
.(JavaScript must be enabled to view this email address) [~/public_html/tools/track]# rake db:migrate RAILS_ENV=production—
trace
(in /home/user/public_html/tools/track)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `cache_template_loading=’ for ActionView::Base:Class
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:530:in `send’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:530:in `initialize_framework_settings’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:529:in `each’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:529:in `initialize_framework_settings’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:526:in `each’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:526:in `initialize_framework_settings’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:154:in `process’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:112:in `send’
/home/user/public_html/tools/track/config/../vendor/rails/railties/lib/initializer.rb
:112:in `run’
/home/user/public_html/tools/track/config/environment.rb:9
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
/home/user/public_html/tools/track/vendor/rails/activesupport/lib/active_support/depe
ndencies.rb:153:in `require’
/home/user/public_html/tools/track/vendor/rails/activesupport/lib/active_support/depe
ndencies.rb:521:in `new_constants_in’
/home/user/public_html/tools/track/vendor/rails/activesupport/lib/active_support/depe
ndencies.rb:153:in `require’
/home/user/public_html/tools/track/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578: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.4/lib/rake.rb:571:in `invoke_with_call_chain’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisites’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisites’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577: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.4/lib/rake.rb:571:in `invoke_with_call_chain’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
/usr/bin/rake:19:in `load’
/usr/bin/rake:19
==============================


cheers,

dmd.

Profile
 
dmd.
Posted: 03 May 2009 01:44 AM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

please?

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

afaics, this is a problem with the startup of rails. The startup didn’t reach the Tracks specific code yet.

So, several options:
* what versions of ruby and rubygems are you running?
* are you sure all the files from the download were extracted?
* I assume you put a space between production and—trace in rake db:migrate RAILS_ENV=production—trace

Profile
 
dmd.
Posted: 04 May 2009 08:30 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

thank you very much for taking the time and helping me :)

* what versions of ruby and rubygems are you running?
rubygems are several files, so i have no idea how to get the version number. ruby is 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]

* are you sure all the files from the download were extracted?
yes.

* I assume you put a space between production and—trace in rake db:migrate RAILS_ENV=production—trace
yes. and i tried it w/o—trace as well, but then it basically just stops…

Profile
 
Reinier Balt
Posted: 04 May 2009 08:35 AM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

gem list—local
will give you all the gems with their versions

rubygems is a gem itself grin

Profile
 
dmd.
Posted: 04 May 2009 08:38 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

aahhh i see…

gem_plugin     0.2.3
rubygems-update     1.3.2

is that what you’re after?

Profile
 
Reinier Balt
Posted: 04 May 2009 08:42 AM   [ Ignore ]   [ # 6 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

yes, I am. There are some issues with rubygems 1.3.2. Any change you can try downgrading to 1.3.1?

Profile
 
dmd.
Posted: 04 May 2009 08:43 AM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

i guess i would have to try customer support. wait a second, i’ll be back next week :P

Profile
 
Reinier Balt
Posted: 04 May 2009 09:05 AM   [ Ignore ]   [ # 8 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I’ve just tested with 1.7, 1.7.1dev and 1.8dev and I get no error on rake db:migrate with rubygems 1.3.2, so I think that is not the problem.

did you change environment.rb? or copy it over from a previous install?

Profile
 
dmd.
Posted: 04 May 2009 09:06 AM   [ Ignore ]   [ # 9 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = ‘2.3.2’ unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), ‘boot’)

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  #—all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  # config.load_paths += %W( #{RAILS_ROOT}/extras )

  # Specify gems that this application depends on and have them installed with rake gems:install
  # config.gem “bj”
  # config.gem “hpricot”, :version => ‘0.6’, :source => “http://code.whytheluckystiff.net”
  # config.gem “sqlite3-ruby”, :lib => “sqlite3”
  # config.gem “aws-s3”, :lib => “aws/s3”

  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

  # Skip frameworks you’re not going to use. To use Rails without a database,
  # you must remove the Active Record framework.
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

  # Activate observers that should always be running
  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run “rake -D time” for a list of tasks for finding time zone names.
  config.time_zone = ‘UTC’

  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join(‘my’, ‘locales’, ‘*.{rb,yml}’)]
  # config.i18n.default_locale = :de
end

i haven’t changed a thing, at least not to my knowledge…

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

this is not the environment.rb that we shipped with 1.7
The production.rb in /config/environments is probably different too, because old versions of rails used to have cache_template_loading in there which is removed since rails 2.2.1 (we ship with rails 2.2.2)

So I guess you need to get a fresh copy of tracks 1.7 and extract it into an empty directory…

Profile
 
dmd.
Posted: 04 May 2009 09:12 AM   [ Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

swell -_-

i’ll get back to you soon wink

Profile
 
dmd.
Posted: 04 May 2009 09:23 AM   [ Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

reuploaded everything and it says

“rake aborted!
undefined method `cache_template_loading=’ for ActionView::Base:Class

(See full trace by running task with—trace)”

any suggestions?

Profile
 
dmd.
Posted: 07 May 2009 02:28 AM   [ Ignore ]   [ # 13 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-01

google turned up this http://railsforum.com/viewtopic.php?id=23648

problem is it’s still not working…

user@domain.ch [~/public_html/tools/tracks]# rake db:migrate RAILS_ENV=production
(in /home/user/public_html/tools/tracks)
rake aborted!
uninitialized constant ApplicationController::SITE_CONFIG

(See full trace by running task with --trace) 
Profile
 
   
 
 
‹‹ Tracks using a lot of memory?      No style ››

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

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

Atom Feed
RSS 2.0