What kind of output did you get from the "rake install" command? If you were
starting from an empty database, you should have seen the full migration.
Could you email me (not post on the group) your config/database.yml and
db/schema.rb? And for good measure app/models/photo.rb?
I've got a couple ideas about what to do but I can't tell you which one you
should try without this info.
Long
On Sat, Jun 21, 2008 at 1:43 AM, Eiso <[EMAIL PROTECTED]> wrote:
>
> MySQL
>
> Thank you,
>
> Eiso
>
> On Jun 21, 1:38 am, "Long Nguyen" <[EMAIL PROTECTED]> wrote:
> > We'll have to take a look to see what's going on.
> >
> > It didn't sound like you ran into this in the development runtime. Also,
> > what database are you using?
> >
> > Long
> >
> > On Fri, Jun 20, 2008 at 10:33 AM, Eiso <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Long,
> >
> > > Thank you for your reply. Again half good news, half bad news.
> >
> > > The first install command worked without errors, the second gave me
> > > the following:
> >
> > > [EMAIL PROTECTED]:/home/44618/containers/rails/socialnetwork$ rake
> > > db:sample_data:load RAILS_ENV=production
> > > (in /nfs/c01/h04/mnt/44618/containers/rails/socialnetwork)
> > > rake aborted!
> > > /nfs/c01/h04/mnt/44618/containers/rails/socialnetwork/app/models/
> > > photo.rb:26: syntax error, unexpected tASSOC, expecting kEND
> > > :content_type => :image,
> > > ^
> > > /nfs/c01/h04/mnt/44618/containers/rails/socialnetwork/app/models/
> > > photo.rb:29: syntax error, unexpected tASSOC, expecting tCOLON2 or '['
> > > or '.'
> > > :min_size => 1,
> > > ^
> > > /nfs/c01/h04/mnt/44618/containers/rails/socialnetwork/app/models/
> > > photo.rb:30: syntax error, unexpected ',', expecting kEND
> >
> > > (See full trace by running task with --trace)
> >
> > > Thank you,
> >
> > > Eiso
> >
> > > On Jun 20, 7:16 pm, "Long Nguyen" <[EMAIL PROTECTED]> wrote:
> > > > It looks like the production database isn't there.
> >
> > > > When you ran the migrations and data load, rake defaults to the
> > > development
> > > > environment while the MT commands for starting up the application
> default
> > > to
> > > > the production.
> >
> > > > You should run:
> >
> > > > rake install RAILS_ENV=production
> > > > rake db:sample_data:load RAILS_ENV=production
> >
> > > > to set up and load the production database.
> >
> > > > The reason you didn't see this earlier was because the ferret library
> > > error
> > > > came up first.
> >
> > > > Long
> >
> > > > On Fri, Jun 20, 2008 at 10:03 AM, Eiso <[EMAIL PROTECTED]> wrote:
> >
> > > > > I am a step closer! The guys over at MediaTemple really went the
> extra
> > > > > mile and after lots of back and forth communication they got the
> right
> > > > > Ferret gem installed and running.
> >
> > > > > I can now start my application and Mongrel log file looks fine.
> Also
> > > > > the application now ports to the subdomain I want it to port to:
> > > > > s.domainname.com
> >
> > > > > Though the application is still not running, I atleast see an
> Inoshi
> > > > > page ("500.html"). Below is the production.log file and I hope
> someone
> > > > > can help me out again to get one step closer to running Inoshi.
> >
> > > > > -------
> >
> > > > > Processing HomeController#index (for 82.215.1.136 at 2008-06-20
> > > > > 09:50:32) [GET]
> > > > > Session ID: 83a804af1430ff3fabd82adcbffe9a4c
> > > > > Parameters: {"action"=>"index", "controller"=>"home"}
> >
> > > > > ActiveRecord::StatementInvalid (Mysql::Error: Table
> > > > > 'db44618_production.page_views' doesn't exist: SHOW FIELDS FROM
> > > > > `page_views`):
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > abstract_adapter.rb:150:in `log'
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > mysql_adapter.rb:281:in `execute'
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > mysql_adapter.rb:411:in `columns'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1080:in
> > > > > `columns'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:2363:in
> > > > > `attributes_from_column_definition_without_lock'
> > > > >
> /vendor/rails/activerecord/lib/active_record/locking/optimistic.rb:
> > > > > 55:in `attributes_from_column_definition'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1922:in
> > > > > `initialize'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:571:in
> `new'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:571:in
> > > > > `create'
> > > > > /app/controllers/application.rb:29:in `create_page_view'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in
> > > > > `send!'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in
> > > > > `call'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:441:in
> > > > > `run'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:716:in
> > > > > `run_before_filters'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:695:in
> > > > > `call_filters'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
> > > > > `perform_action_without_benchmark'
> > > > > /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
> > > > > 68:in `perform_action_without_rescue'
> > > > > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> > > > > /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
> > > > > 68:in `perform_action_without_rescue'
> > > > > /vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
> > > > > `perform_action_without_caching'
> > > > > /vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
> > > > > `perform_action'
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > abstract/query_cache.rb:33:in `cache'
> > > > > /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
> > > > > `cache'
> > > > > /vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
> > > > > `perform_action'
> > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:524:in
> > > > > `send'
> > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:524:in
> > > > > `process_without_filters'
> > > > > /vendor/rails/actionpack/lib/action_controller/filters.rb:685:in
> > > > > `process_without_session_management_support'
> > > > > /vendor/rails/actionpack/lib/action_controller/
> > > > > session_management.rb:123:in `process'
> > > > > /vendor/rails/actionpack/lib/action_controller/base.rb:388:in
> > > > > `process'
> > > > > /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > > > > 171:in `handle_request'
> > > > > /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > > > > 115:in `dispatch'
> > > > > /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > > > > 126:in `dispatch_cgi'
> > > > >
> /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
> > > > > `dispatch'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/rails.rb:76:in `process'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/rails.rb:74:in `synchronize'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/rails.rb:74:in `process'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:159:in `process_client'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:158:in `each'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:158:in `process_client'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:285:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:285:in `initialize'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:285:in `new'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:285:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:268:in `initialize'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:268:in `new'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel.rb:268:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/configurator.rb:282:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/configurator.rb:281:in `each'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/configurator.rb:281:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/
> > > > > mongrel_rails:128:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../
> > > > > lib/mongrel/command.rb:212:in `run'
> > > > >
> /home/44618/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/
> > > > > mongrel_rails:281
> > > > > /home/44618/data/rubygems/gems/bin/mongrel_rails:19:in `load'
> > > > > /home/44618/data/rubygems/gems/bin/mongrel_rails:19
> >
> > > > > Rendering
> /home/44618/containers/rails/socialnetwork/public/500.html
> > > > > (500 Internal Server Error)
> >
> > > > > Processing HomeController#index (for 82.215.1.136 at 2008-06-20
> > > > > 09:50:48) [GET]
> > > > > Session ID:
> > > > > BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
> > > > > %0ASGFzaHsABjoKQHVzZWR7AA%3D
> > > > > %3D--9727059e619fb4019605736a0465bf05c8231391
> > > > > Parameters: {"action"=>"index", "controller"=>"home"}
> >
> > > > > ActiveRecord::StatementInvalid (Mysql::Error: Table
> > > > > 'db44618_production.page_views' doesn't exist: SHOW FIELDS FROM
> > > > > `page_views`):
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > abstract_adapter.rb:150:in `log'
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > mysql_adapter.rb:281:in `execute'
> > > > >
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> > > > > mysql_adapter.rb:411:in `columns'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1080:in
> > > > > `columns'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:2363:in
> > > > > `attributes_from_column_definition_without_lock'
> > > > >
> /vendor/rails/activerecord/lib/active_record/locking/optimistic.rb:
> > > > > 55:in `attributes_from_column_definition'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:1922:in
> > > > > `initialize'
> > > > > /vendor/rails/activerecord/lib/active_record/base.rb:571:in
> `new'
> >
> > ...
> >
> > read more ยป
> >
>
--
Long Nguyen
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---