Hi Long & Insoshi contributors/users -

I logged into mysql and dropped all insoshi databases to "start
fresh".
I then proceeded according to your README.rdoc (
http://github.com/insoshi/insoshi/tree/master ) from the script/
install:

script/install
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)
[sudo] password for dreamer:
(in /home/username/public_html/sitename.com/rails/insoshi)
(in /home/username/public_html/sitename.com/rails/insoshi)
rake aborted!
Unknown database 'insoshi_development'

(See full trace by running task with --trace)

At this point I did:

rake db:create:all
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)

Then I repeated script/install:

script/install
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)
(in /home/username/public_html/sitename.com/rails/insoshi)
(in /home/username/public_html/sitename.com/rails/insoshi)
== 1 CreatePeople: migrating

etc with all 28 successful migrations.

Now I moved on to your next instruction:

rake db:test:prepare
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)

Finally, did rake spec

rake spec
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)
...........................................................................................................................................................................................................................................................................................................................................................

Finished in 32.372136 seconds

347 examples, 0 failures

So - seems like everything looks good (except for the rake
db:create:all which I had to add to you instructions)

Now on to the search:

I went through
  $ rake ultrasphinx:configure RAILS_ENV=test
  $ rake ultrasphinx:index RAILS_ENV=test
  $ rake ultrasphinx:daemon:start RAILS_ENV=test

with no errors.

Time for another rake spec:

rake spec
RESULT:
(in /home/username/public_html/sitename.com/rails/insoshi)
.....................................................................................................................................................................................................................................................FFFFFFFFF.F..FF...........................................................................................................

1)
ActiveRecord::RecordNotFound in 'SearchesController Forum post
searches should render with a topic link'
Couldn't find ForumPosts with IDs: 392249925,954479856 (found 0
results, but was looking for 2)
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:308:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `each'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:362:in `run'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:352:in
`perform_action_with_retries'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:342:in `run'
/home/username/public_html/sitename.com/rails/insoshi/app/controllers/
searches_controller.rb:34:in `index'
./spec/controllers/searches_controller_spec.rb:172:

2)
ActiveRecord::RecordNotFound in 'SearchesController Forum post
searches should render with a post div'
Couldn't find ForumPost with ID=954479856
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:308:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `each'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:362:in `run'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:352:in
`perform_action_with_retries'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:342:in `run'
/home/username/public_html/sitename.com/rails/insoshi/app/controllers/
searches_controller.rb:34:in `index'
./spec/controllers/searches_controller_spec.rb:166:

3)
ActiveRecord::RecordNotFound in 'SearchesController Forum post
searches should search by topic name'
Couldn't find ForumPosts with IDs: 392249925,954479856 (found 0
results, but was looking for 2)
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:308:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `each'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:286:in `reify_results'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:362:in `run'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search/internals.rb:352:in
`perform_action_with_retries'
/home/username/public_html/sitename.com/rails/insoshi/vendor/plugins/
ultrasphinx/lib/ultrasphinx/search.rb:342:in `run'
/home/username/public_html/sitename.com/rails/insoshi/app/controllers/
searches_controller.rb:34:in `index'
./spec/controllers/searches_controller_spec.rb:161:

4)
'SearchesController Forum post searches should not raise errors due to
finding blog posts' FAILED
expected no ActiveRecord::RecordNotFound, got
#<ActiveRecord::RecordNotFound: Couldn't find ForumPost with
ID=954479856>
./spec/controllers/searches_controller_spec.rb:155:

===8 more errors like first 3 above above, cut to keep post length
short...======

Finished in 32.183048 seconds

367 examples, 12 failures
rake aborted!
Command /usr/bin/ruby1.8 -I"/home/dreamer/public_html/
willseeyounow.com/rails/insoshi/vendor/plugins/rspec/lib"  "/home/
dreamer/public_html/willseeyounow.com/rails/insoshi/vendor/plugins/
rspec/bin/spec" "spec/views/people/show.html.erb_spec.rb" "spec/views/
layouts/application.html.erb_spec.rb" "spec/controllers/
connections_controller_spec.rb" "spec/controllers/
topics_controller_spec.rb" "spec/controllers/
sessions_controller_spec.rb" "spec/controllers/
activities_controller_spec.rb" "spec/controllers/
forums_controller_spec.rb" "spec/controllers/
comments_controller_spec.rb" "spec/controllers/
messages_controller_spec.rb" "spec/controllers/admin/
forums_controller_spec.rb" "spec/controllers/admin/
preferences_controller_spec.rb" "spec/controllers/admin/
people_controller_spec.rb" "spec/controllers/posts_controller_spec.rb"
"spec/controllers/searches_controller_spec.rb" "spec/controllers/
photos_controller_spec.rb" "spec/controllers/
password_reminders_controller_spec.rb" "spec/controllers/
people_controller_spec.rb" "spec/models/forum_post_spec.rb" "spec/
models/email_verification_spec.rb" "spec/models/connection_spec.rb"
"spec/models/person_spec.rb" "spec/models/conversation_spec.rb" "spec/
models/person_mailer_spec.rb" "spec/models/comment_spec.rb" "spec/
models/forum_spec.rb" "spec/models/photo_spec.rb" "spec/models/
blog_post_spec.rb" "spec/models/feed_spec.rb" "spec/models/
blog_spec.rb" "spec/models/topic_spec.rb" "spec/models/
activity_spec.rb" "spec/models/message_spec.rb" "spec/models/
preference_spec.rb" "spec/helpers/forums_helper_spec.rb" "spec/helpers/
connections_helper_spec.rb" "spec/helpers/posts_helper_spec.rb" "spec/
helpers/communications_helper_spec.rb" "spec/helpers/
activities_helper_spec.rb" "spec/helpers/searches_helper_spec.rb"
"spec/helpers/comments_helper_spec.rb" "spec/helpers/
topics_helper_spec.rb" "spec/helpers/preferences_helper_spec.rb" --
options "/home/dreamer/public_html/willseeyounow.com/rails/insoshi/
spec/spec.opts" failed

Forgetting about my issue of getting insoshi's 500.html error when
using thin (and getting insoshi's homepage normally if I start webrick
on port 3000) - why am I getting rake spec errors above when I follow
Insoshi's installation instructions? Thanks... (I am trying to
eliminate these errors to see if that will fix the thin issue before
move on to the mongrel cluster for my final attempt at setting up
insoshi.

Long - you've mentioned "re-indexing" and "populating the test
database" - which commands would I use to do that and at which point
during the installation instructions should I have done them? Thanks
again.

Victor

On Aug 20, 1:24 pm, "Long Nguyen" <[EMAIL PROTECTED]> wrote:
> My guess is that there's some weird permission issue between running thin
> under /var/www versus your home directory.  And you did run script/server
> without a sudo (since you mentioned you needed that for the install, etc.)?
>
> As far as the rake spec errors, did you (re-)index after a first run of the
> tests? I've updated the README.rdoc and our install guide a couple days ago
> to state that you needed to run the tests twice to properly test search.
> (The test database needs to be populated first before you'll get results
> from the search index.)
>
> Long
>
> On Wed, Aug 20, 2008 at 12:45 AM, Vict0r <[EMAIL PROTECTED]> wrote:
>
> > Hi Long (and Jesse!) -
>
> > Thanks a lot for replying!
>
> > I moved forward a bit, but am still stuck (production log below) -
> > still getting the 500 error with thin (but webrick on port 3000 works
> > and serves insoshi if i start it with script/server!).
>
> > I gave up and installed insoshi from scratch in my /home/username/
> > public_html/sitename.com/rails/insoshi
>
> > everything went well and i did not have to use sudo.
>
> > rake spec gave 10 errors only in relation to the non-existing posts
> > and users (missing sample data? - i did all the steps in the install
> > instructions... still have those errors)
>
> > here is the production.log portion from a single thin request:
>
> > Processing HomeController#index (for 72.70.67.161 at 2008-08-20
> > 07:35:34) [GET] (pid:4086)
> >  Session ID:
> > BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
> > SGFzaHsABjoKQHVzZWR7AA==--9727059e619fb4019605736a0465bf05c8231391
> > (pid:4086)
> >  Parameters: {"action"=>"index", "controller"=>"home"} (pid:4086)
>
> > NoMethodError (undefined method `person_id=' for #<PageView:
> > 0x7f3cabbde9a0>):
> >    /vendor/rails/activerecord/lib/active_record/attribute_methods.rb:
> > 251:in `method_missing'
> >    /vendor/rails/activerecord/lib/active_record/base.rb:2361:in
> > `send'
> >    /vendor/rails/activerecord/lib/active_record/base.rb:2361:in
> > `attributes='
> >    /vendor/rails/activerecord/lib/active_record/base.rb:2360:in
> > `each'
> >    /vendor/rails/activerecord/lib/active_record/base.rb:2360:in
> > `attributes='
> >    /vendor/rails/activerecord/lib/active_record/base.rb:2130:in
> > `initialize'
> >    /vendor/rails/activerecord/lib/active_record/base.rb:638:in `new'
> >    /vendor/rails/activerecord/lib/active_record/base.rb:638:in
> > `create'
> >    /app/controllers/application.rb:29:in `create_page_view'
> >    /vendor/rails/activerecord/lib/../../activesupport/lib/
> > active_support/callbacks.rb:173:in `send'
> >    /vendor/rails/activerecord/lib/../../activesupport/lib/
> > active_support/callbacks.rb:173:in `evaluate_method'
> >    /vendor/rails/activerecord/lib/../../activesupport/lib/
> > active_support/callbacks.rb:161:in `call'
> >    /vendor/rails/actionpack/lib/action_controller/filters.rb:430:in
> > `call'
> >    /vendor/rails/actionpack/lib/action_controller/filters.rb:592:in
> > `run_before_filters'
> >    /vendor/rails/actionpack/lib/action_controller/filters.rb:578:in
> > `call_filters'
> >    /vendor/rails/actionpack/lib/action_controller/filters.rb:573: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:201:in
> > `perform_action_without_caching'
> >    /vendor/rails/actionpack/lib/action_controller/caching/
> > sql_cache.rb:13: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/
> > sql_cache.rb:12:in `perform_action'
> >    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in
> > `send'
> >    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in
> > `process_without_filters'
> >    /vendor/rails/actionpack/lib/action_controller/filters.rb:569:in
> > `process_without_session_management_support'
> >    /vendor/rails/actionpack/lib/action_controller/
> > session_management.rb:130:in `process'
> >    /vendor/rails/actionpack/lib/action_controller/base.rb:389:in
> > `process'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > 149:in `handle_request'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > 107:in `dispatch'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > 104:in `synchronize'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > 104:in `dispatch'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> > 120:in `dispatch_cgi'
> >    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in
> > `dispatch'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:
> > 54:in `serve_rails'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/rack/adapter/rails.rb:
> > 74:in `call'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:
> > 59:in `pre_process'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:
> > 50:in `process'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/connection.rb:
> > 35:in `receive_data'
> >    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/
> > eventmachine.rb:224:in `run_machine'
> >    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/lib/
> > eventmachine.rb:224:in `run'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/backends/base.rb:
> > 45:in `start'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/server.rb:146:in
> > `start'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/controllers/
> > controller.rb:79:in `start'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in
> > `send'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:166:in
> > `run_command'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/lib/thin/runner.rb:136:in
> > `run!'
> >    /usr/lib/ruby/gems/1.8/gems/thin-0.8.2/bin/thin:6
> >    /usr/bin/thin:19:in `load'
> >    /usr/bin/thin:19
>
> >  (pid:4086)
> > Rendering /home/username/public_html/sitename.com/rails/insoshi/public/
> > 500.html <http://sitename.com/rails/insoshi/public/500.html> (500 Internal
> > Server Error) (pid:4086)
>
> > -----
>
> > And here are the rake spec errors:
>
> > .....FFF.F..FFFF..FF...........................................................................................................
>
> > 1)
> > 'SearchesController Forum post searches should render with a topic
> > link' FAILED
> > Expected at least 1 element matching "a[href='/forums/953125641/topics/
> > 953125641#post_2028221680']", found 0.
> > <false> is not true.
> > ./spec/controllers/searches_controller_spec.rb:174:
>
> > 2)
> > 'SearchesController Forum post searches should render with a post div'
> > FAILED
> > Expected at least 1 element matching "div[class='forum']", found 0.
> > <false> is not true.
> > ./spec/controllers/searches_controller_spec.rb:167:
>
> > 3)
> > 'SearchesController Forum post searches should search by topic name'
> > FAILED
> > Expected array to include #<ForumPost:0x7f0e9ecbbb38>
> > ./spec/controllers/searches_controller_spec.rb:162:
>
> > 4)
> > 'SearchesController Forum post searches should search by post body'
> > FAILED
> > Expected array to include #<ForumPost:0x7f0e9e93a108>
> > ./spec/controllers/searches_controller_spec.rb:148:
>
> > 5)
> > 'SearchesController Message searches should search by content' FAILED
> > Expected array to include #<Message:0x7f0e9c3f1388>
> > ./spec/controllers/searches_controller_spec.rb:123:
>
> > 6)
> > 'SearchesController Message searches should search by subject' FAILED
> > Expected array to include #<Message:0x7f0e9c31c818>
> > ./spec/controllers/searches_controller_spec.rb:118:
>
> > 7)
> > 'SearchesController Person searches as an admin should return email
> > unverified users' FAILED
> > Expected array to include #<Person:0x7f0e9c0b92b0>
> > ./spec/controllers/searches_controller_spec.rb:104:
>
> > 8)
> > 'SearchesController Person searches as an admin should return
> > deactivated users' FAILED
> > Expected array to include #<Person:0x7f0e9c0776a8>
> > ./spec/controllers/searches_controller_spec.rb:96:
>
> > 9)
> > 'SearchesController Person searches should search by description'
> > FAILED
> > expected: [#<Person id: 1402298589, email: "[EMAIL PROTECTED]",
> > name: "Quentin", remember_token: nil, crypted_password:
> > "EaT4yu95UmbhcAsjUkBLSr1uRLopAOROLpbqdfqeI8jbO4h6uBX...", description:
> > "I'm Quentin", remember_token_expires_at: nil, last_contacted_at: nil,
> > last_logged_in_at: "2008-08-20 07:39:27", forum_posts_count: 0,
> > blog_post_comments_count: 0, wall_comments_count: 0, created_at:
> > "2008-08-15 07:39:10", updated_at: "2008-08-20 07:39:27", admin:
> > false, deactivated: false, connection_notifications: true,
> > message_notifications: true, wall_comment_notifications: true,
> > blog_comment_notifications: true, email_verified: true>],
> >     got: [] (using ==)
> > ./spec/controllers/searches_controller_spec.rb:64:
>
> > 10)
> > 'SearchesController Person searches should search by name' FAILED
> > expected: [#<Person id: 1402298589, email: "[EMAIL PROTECTED]",
> > name: "Quentin", remember_token: nil, crypted_password:
> > "EaT4yu95UmbhcAsjUkBLSr1uRLopAOROLpbqdfqeI8jbO4h6uBX...", description:
> > "I'm Quentin", remember_token_expires_at: nil, last_contacted_at: nil,
> > last_logged_in_at: "2008-08-20 07:39:27", forum_posts_count: 0,
> > blog_post_comments_count: 0, wall_comments_count: 0, created_at:
> > "2008-08-15 07:39:10", updated_at: "2008-08-20 07:39:27", admin:
> > false, deactivated: false, connection_notifications: true,
> > message_notifications: true, wall_comment_notifications: true,
> > blog_comment_notifications: true, email_verified: true>],
> >     got: [] (using ==)
> > ./spec/controllers/searches_controller_spec.rb:59:
>
> > Finished in 28.579649 seconds
>
> > 367 examples, 10 failures
>
> > Please let me know what I can do to fix this. This is the second night
> > I am staying up to try and
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to