Team,
Have been playing around with deployed version of Insoshi to make sure
it is all working correctly before I start making too many changes.
(my limited experience of rails suggests this is always a good thing
to do as deployment can be so fiddly!!).
The program works fine on my development environment on my local
computer, but I run into a login error when I deploy. The homepage
for my version of insoshi deploys correctly, (hence database
connection must be working OK), but I run into problems when I try to
sign in using one of the demo accounts. From the inspection of the
log files this looks like its something to do with an RSA_key. Could
someone explain to me what's going on and why its looking for this
file?
Here are my log files:
----------End Log Files------------------------------
Processing HomeController#index (for 69.181.184.138 at 2008-06-12
22:56:06) [GET]
Session ID:
BAh7BzoMY3NyZl9pZCIlZGEzN2E4Y2ZmODA1OTJmZjAxODY3Zjg0OTBhODVj
%0ANzYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh
%0Ac2h7AAY6CkB1c2VkewA%3D--1fd5e4f91a6ce0dcbf0910c0236d7f61dc6f6521
Parameters: {"action"=>"index", "controller"=>"home"}
Rendering template within layouts/application
Rendering home/index
Completed in 0.06661 (15 reqs/sec) | Rendering: 0.05187 (77%) | DB:
0.00000 (0%) | 200 OK [http://www.thestartupexchange.com/]
Processing SessionsController#new (for 69.181.184.138 at 2008-06-12
22:56:15) [GET]
Session ID:
BAh7BzoMY3NyZl9pZCIlZGEzN2E4Y2ZmODA1OTJmZjAxODY3Zjg0OTBhODVj
%0ANzYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh
%0Ac2h7AAY6CkB1c2VkewA%3D--1fd5e4f91a6ce0dcbf0910c0236d7f61dc6f6521
Parameters: {"action"=>"new", "controller"=>"sessions"}
Rendering template within layouts/application
Rendering sessions/new
Completed in 0.00894 (111 reqs/sec) | Rendering: 0.00597 (66%) | DB:
0.00000 (0%) | 200 OK [http://www.thestartupexchange.com/login]
Processing SessionsController#create (for 69.181.184.138 at 2008-06-12
22:56:23) [POST]
Session ID:
BAh7BzoMY3NyZl9pZCIlZGEzN2E4Y2ZmODA1OTJmZjAxODY3Zjg0OTBhODVj
%0ANzYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh
%0Ac2h7AAY6CkB1c2VkewA%3D--1fd5e4f91a6ce0dcbf0910c0236d7f61dc6f6521
Parameters: {"commit"=>"Sign in",
"authenticity_token"=>"1f318eccd811f900db87888d1e816d8f20cd99cc",
"action"=>"create", "controller"=>"sessions", "password"=>"foobar",
"remember_me"=>"1", "email"=>"[EMAIL PROTECTED]"}
Errno::ENOENT (No such file or directory - /home/
thestartupexchange.com/sites/insoshi/rsa_key):
/config/initializers/crypto.rb:19:in `read'
/config/initializers/crypto.rb:19:in `from_file'
/app/models/person.rb:289:in `decrypt'
/app/models/person.rb:298:in `unencrypted_password'
/app/models/person.rb:293:in `authenticated?'
/app/models/person.rb:276:in `authenticate'
/app/controllers/sessions_controller.rb:11:in `create'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:697: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'
/opt/local/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'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
rails.rb:76:in `process'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
rails.rb:74:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
rails.rb:74:in `process'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:159:in `process_client'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:158:in `each'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:158:in `process_client'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:285:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:285:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:285:in `new'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:285:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:268:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:268:in `new'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/
mongrel.rb:268:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
configurator.rb:282:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
configurator.rb:281:in `each'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
configurator.rb:281:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:
128:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/
command.rb:212:in `run'
/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:
281
/opt/local/bin/mongrel_rails:19:in `load'
/opt/local/bin/mongrel_rails:19
Rendering /home/thestartupexchange.com/sites/insoshi/public/500.html
(500 Internal Server Error)
----------End Log Files------------------------------
The error seems to be
Errno::ENOENT (No such file or directory - /home/
thestartupexchange.com/sites/insoshi/rsa_key):
Any thoughts?
Antony
PS if you are using the sample data you will need to upload the photos
separately to the git process as they sample data isn't contained in
the git push for obvious reasons - this caused an issue with the
images not appearing when I initially deployed.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---