Sean Lerner
2007-Apr-09 22:40 UTC
[Ferret-talk] Errno::EACCES in Controller / Permission denied
Hello, I did a seemingly smooth install of ferret, but when I try to add it to my model, I get an error. My info: My rails site: shelikes (a restaurant review site) My controller: Display My model: Review My only line of code added for ferret is: class Review < ActiveRecord::Base acts_as_ferret ...( more stuff not related )... end Below is the error information. Any thoughts on how to troubleshoot this? thanks, Sean =========================================Errno::EACCES in DisplayController#index Permission denied - /www/shelikes/index RAILS_ROOT: /www/shelikes/public/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `each'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:95:in `ensure_directory'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/act_methods.rb:131:in `acts_as_ferret'' #{RAILS_ROOT}/app/models/review.rb:8 #{RAILS_ROOT}/app/controllers/display_controller.rb:6:in `get_published_reviews'' /usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `each'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:95:in `ensure_directory'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/act_methods.rb:131:in `acts_as_ferret'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `each'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in `process!'' /www/shelikes/public/dispatch.fcgi:24 /usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `each'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:95:in `ensure_directory'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/act_methods.rb:131:in `acts_as_ferret'' #{RAILS_ROOT}/app/models/review.rb:8 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in `require_or_load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in `depend_on'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in `require_dependency'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' #{RAILS_ROOT}/app/controllers/display_controller.rb:6:in `get_published_reviews'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:399:in `call_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `each'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:394:in `call_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:383:in `before_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:365:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:150:in `process_request'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:54:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:53:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/fcgi_handler.rb:23:in `process!'' /www/shelikes/public/dispatch.fcgi:24 This error occured while loading the following files: review.rb Request Parameters: None -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Apr-10 07:16 UTC
[Ferret-talk] Errno::EACCES in Controller / Permission denied
On Tue, Apr 10, 2007 at 12:40:30AM +0200, Sean Lerner wrote:> Hello, > > I did a seemingly smooth install of ferret, but when I try to add it to > my model, I get an error. > > My info: > > My rails site: shelikes (a restaurant review site) > My controller: Display > My model: Review > > My only line of code added for ferret is: > > class Review < ActiveRecord::Base > > acts_as_ferret > > ...( more stuff not related )... > > end > > Below is the error information. Any thoughts on how to troubleshoot > this? > > thanks, > > Sean > =========================================> Errno::EACCES in DisplayController#index > > Permission denied - /www/shelikes/indexthat''s saying acts_as_ferret wants to create the index directory structure, but it can''t because of insufficient access rights. To solve this, create the index directory as root (or some other user with write access to this directory) and chown it to the user your server is running under: # mkdir /www/shelikes/index # chown mongrel_user /www/shelikes/index After that aaf will be able to create it''s index. Jens -- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa