Installation problems

36 views
Skip to first unread message

uns...@gmail.com

unread,
Jan 23, 2010, 2:43:14 PM1/23/10
to Insoshi
Hi I'm trying to install Insoshi via the git hub repository. I am
using ubuntu 9.10 and mysql. The installation goes well until the rake
spec step where all tests fail.

At first they failed because it was looking for rsa_key.pub. I
supplied this, then it failed all tests because:


The exact error was:
OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:: nested asn1
error

on all tests.

What is wrong?

Thanks,

Paul

Evan Dorn

unread,
Jan 24, 2010, 2:04:54 PM1/24/10
to Insoshi
I'm not sure: I haven't seen this error before. I just did a clean
install of insoshi on my mac and wasn't able to reproduce it.

I'm a little surprised that you needed to supply an rsa_key.pub; the
repository should create a default key pair that should be sufficient
to get the application running. (Though of course you should
generate your own pair before launching a production site).

Does this error affect only the specs? What happens if you install
and launch the application in development mode with this:

$ rake db:sample_data:reload
$ script/server

Can you load the site at http://localhost:3000, and can you log in
with the default admin user (password: admin)?

Evan

Paul Dumais

unread,
Jan 25, 2010, 11:12:08 PM1/25/10
to ins...@googlegroups.com
Hmm... Interesting. It all seems to work now. Also, re-running rake
spec only give 16 errors instead of the usual (> 300).

Here are the first 4:

1)
NoMethodError in 'SearchesController Forum post searches should search
by post body'
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
./spec/models/../matchers/custom_model_matchers.rb:134:in `matches?'
./spec/controllers/searches_controller_spec.rb:148:

2)
NoMethodError in 'SearchesController Forum post searches should search
by topic name'
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
./spec/models/../matchers/custom_model_matchers.rb:134:in `matches?'
./spec/controllers/searches_controller_spec.rb:162:

3)
'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:

4)
'SearchesController Forum post searches should render with a topic link' FAILED
Expected at least 1 element matching
"a[href='/forums/953125641/topics/953125641#post_119261968']", found
0.
<false> is not true.
./spec/controllers/searches_controller_spec.rb:174:

Maybe rake spec needs the sample data before running?

Thanks,

Paul

> --
> You received this message because you are subscribed to the Google Groups "Insoshi" group.
> To post to this group, send email to ins...@googlegroups.com.
> To unsubscribe from this group, send email to insoshi+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/insoshi?hl=en.
>
>

Evan Dorn

unread,
Jan 25, 2010, 11:46:13 PM1/25/10
to ins...@googlegroups.com
Glad your main problem got worked out.

These search errors look to me like the system is running the search specs but can't connect to a copy of the sphinx daemon (searchd).

Before it runs tests on sphinx, the insoshi specs code checks to see whether a searchd process is running on your machine.  If it is, it assumes it's a test instance of sphinx and will run the tests.   So, if you're running only a development instance of searchd, the tests will run but fail to connect to sphinx and you'll see errors like the ones below.  It's not generally a problem and doesn't interfere with the function of the site.

This can happen if you haven't configured and started up sphinx in the test environment (i.e.  rake ultrasphinx:configure RAILS_ENV=test; rake ultrasphinx:start RAILS_ENV=test), but you *have* started sphinx in the development or production environment.

(I've also had this happen if, for example, I have another Rails application on my machine that is running sphinx - insoshi's tests will detect that copy of searchd, try to run, and fail.)

I may have to migrate the search module from ultrasphinx to thinking_sphinx  one of these days.  Thinking_sphinx has a nice test module that allows automatic starting and stopping of the correct daemon from inside the spec files, it's very handy.

Evan Dorn,
Insoshi Maintainer

On Jan 25, 2010, at 8:12 PM, Paul Dumais wrote:
Hmm... Interesting. It all seems to work now. Also, re-running rake
spec only give 16 errors instead of the usual (> 300).


Evan Dorn, Ph.D.,  Owner and Lead Developer
Logical Reality Design     http://LRDesign.com

Reply all
Reply to author
Forward
0 new messages