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
   
 
Tracks on a hostgator
 
borik
Posted: 03 February 2009 07:20 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2009-02-03

Hi,

I have tried to install Tracks on Hostgator. There is Ruby: 1.8.7 and Rails: 2.2.2 installed there. I have created a Ruby on Rails Application using cPanel, populated the database, unzipped tracks in the appropriate folder and configured the DB etc.

Then I tried to start tracks using cPanel but it did not (while Ruby on Rails App starts before unzipping tracks).

Thanks a lot if you could help me to get it running - I do not know much about Ruby on Rails…

Profile
 
Reinier Balt
Posted: 04 February 2009 01:18 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

do you have any errors? can you get to your logfile? it is in /path/to/tracks/log

Profile
 
borik
Posted: 08 February 2009 06:50 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-02-03

Below is the log - it says there is a problem with MySQL but I can not figure out what this means… many thanks for help!

————————

** Daemonized, any open files are closed.  Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:12003
** Starting Rails with production environment…
config.gem: Unpacked gem highline-1.5.0 in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this.
/home/borik/etc/rails_apps/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:188:in `log’: Mysql::Error: Table ‘borik_tracks.recurring_todos’ doesn’t exist: SHOW FIELDS FROM `recurring_todos` (ActiveRecord::StatementInvalid)
  from /home/borik/etc/rails_apps/test/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:309:in `execute’
  from /home/borik/etc/rails_apps/test/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:440:in `columns’
  from /home/borik/etc/rails_apps/test/vendor/rails/activerecord/lib/active_record/base.rb:1220:in `columns’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:365:in `build_table_aliases’
  from /home/borik/etc/rails_apps/test/app/models/tag.rb:11:in `each_with_index’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:359:in `each’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:359:in `each_with_index’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:359:in `build_table_aliases’
  from /home/borik/etc/rails_apps/test/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb:39:in `returning’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:358:in `build_table_aliases’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:332:in `create_has_many_polymorphs_reflection’
  from /home/borik/etc/rails_apps/test/vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/class_methods.rb:243:in `has_many_polymorphs’
  from /home/borik/etc/rails_apps/test/app/models/tag.rb:2
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
  from /home/borik/etc/rails_apps/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:155:in `require’
  from /home/borik/etc/rails_apps/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:262:in `require_or_load’
  from /home/borik/etc/rails_apps/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:221:in `depend_on’
  from /home/borik/etc/rails_apps/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:133:in `require_dependency’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:368:in `load_application_classes’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:367:in `each’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:367:in `load_application_classes’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:365:in `each’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:365:in `load_application_classes’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:185:in `process’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:112:in `send’
  from /home/borik/etc/rails_apps/test/config/../vendor/rails/railties/lib/initializer.rb:112:in `run’
  from /home/borik/etc/rails_apps/test/config/environment.rb:22
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
  from /usr/bin/mongrel_rails:19:in `load’
  from /usr/bin/mongrel_rails:19

Profile
 
Reinier Balt
Posted: 08 February 2009 06:56 PM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I think that you either didn’t run rake db:migrate during installation or you had error messages while executing rake db:migrate.

If the latter is the case, you hit a known bug in 1.7RC1. We are going to do a RC2 soon which has a fix for this bug. Or you can download the current master tree from github and try that.

Profile
 
borik
Posted: 13 February 2009 10:02 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-02-03

I got a step further but having now the following problem:

Starting Rails leads to the following message:

—-
** Starting Rails with production environment…
config.gem: Unpacked gem highline-1.5.0 in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this.
—-
and running “rake gems:refresh_specs” leads again to the same message:
—-
config.gem: Unpacked gem highline-1.5.0 in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this.
Gem ruby-openid not loaded locally - writing out current spec.
—-
I guess I have not configured something properly but can not find out what…

Thanks a lot for help!

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

That warning is harmless. Just ignore it.

This is fixed though in the just released Tracks1.7RC2

Profile
 
borik
Posted: 28 February 2009 07:55 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-02-03

Hi,

I tried to install the new 1.7 stable but again without success. I kept sqlite, I run rake db:migrate RAILS_ENV=production. Then I tried to start the server but it does not start running properly…

Many many thanks for any help!

===
The log:


** Daemonized, any open files are closed.  Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:12003
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/tcphack.rb:12:in `initialize_without_backlog’: Address already in use - bind(2) (Errno::EADDRINUSE)
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/tcphack.rb:12:in `initialize’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:93:in `new’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:93:in `initialize’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:139:in `new’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:139:in `listener’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run’
  from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
  from /usr/bin/mongrel_rails:19:in `load’
  from /usr/bin/mongrel_rails:19

Profile
 
borik
Posted: 01 March 2009 07:48 AM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-02-03

Problem solved… the server of the web host was not cofigured correctly.

Thanks for a great application - I am now on track(s)!

smile

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

cool. btw, the error referred to a running app on port 12003, probably the old instance of tracks that was still running…

Profile
 
   
 
 
‹‹ Installs fine on Dreamhost but won’t run      Need a bit more infor for installing on webhost ››

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

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

Atom Feed
RSS 2.0