[Kete] Configure kete

Miguel Angel Calvo Lázaro calvolazaro.ma at gmail.com
Mon Jul 27 21:03:10 NZST 2009


hi.
 now i have this problem:

RuntimeError in Index_page#index

Showing *app/views/index_page/_archive_by_type.rhtml* where line *#7*raised:

Database unavailable (109) public

Extracted source (around line *#7*):

4:       <%
5:       location = { :controller_name_for_zoom_class =>
zoom_class_controller(zoom_class) }
6:       @items = Hash.new
7:       @items[:public] = count_items_for(zoom_class).size


8:       @items[:private] = count_private_items_for(zoom_class).size
9:       -%>
10:       <li>

Trace of template inclusion: app/views/index_page/index.rhtml

RAILS_ROOT: /home/kete/apps/kete
 Application Trace <http://debian.local.kete/#> | Framework
Trace<http://debian.local.kete/#>| Full
Trace <http://debian.local.kete/#>

/home/kete/apps/kete/vendor/plugins/acts_as_zoom/lib/zoom_db.rb:40:in `search'
/home/kete/apps/kete/vendor/plugins/acts_as_zoom/lib/zoom_db.rb:40:in
`process_query'
/home/kete/apps/kete/lib/zoom_search.rb:66:in `make_search'


/home/kete/apps/kete/lib/zoom_search.rb:18:in `count_items_for'
(eval):2:in `send'
(eval):2:in `count_items_for'
/home/kete/apps/kete/app/views/index_page/_archive_by_type.rhtml:7:in
`_run_rhtml_app47views47index_page47_archive_by_type46rhtml_locals_archive_by_type_object'


/home/kete/apps/kete/app/views/index_page/_archive_by_type.rhtml:3:in `each'
/home/kete/apps/kete/app/views/index_page/_archive_by_type.rhtml:3:in
`_run_rhtml_app47views47index_page47_archive_by_type46rhtml_locals_archive_by_type_object'


/home/kete/apps/kete/app/views/index_page/index.rhtml:153:in
`_run_rhtml_app47views47index_page47index46rhtml'
....

  Request

*Parameters*:

{"urlified_name"=>"site"}

Show session dump <http://debian.local.kete/#>

............

I don´t know what this error is telling me, because zebra public database is
emty after installation.

what i have to do to resolve it?


Thanks



El 26 de julio de 2009 23:12, Kieran Pilkington <kieran at katipo.co.nz>escribió:

Hey Miguel,
>
> It look like one of the plugins we use is trying to update
> public/blank.html , but the app hasn't got permission to edit that file.
>
> If you run the following, does it fix things?
>
> cd /home/kete/apps/kete
> sudo su
> chown -R kete:kete *
> /etc/init.d/apache2 restart
>
> Regards
> Kieran
>
>
> On 25/07/2009, at 9:10 AM, Miguel Angel Calvo Lázaro wrote:
>
>  hi.
>> I installed kete in debian , and apparently everything was correct.
>> Configured the firsth parameters in en/sites/login ....
>> and i start zebra correctly, but  say:
>>
>>
>> Error message:
>>   Permission denied - /home/kete/apps/kete/public/blank.html
>> Exception class:
>>   Errno::EACCES
>> Application root:
>>   /home/kete/apps/kete
>> Backtrace:
>>   #     File     Line     Location
>>   0     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1262     in `initialize'
>>   1     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1262     in `open'
>>   2     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1262     in `copy_file'
>>   3     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1261     in `open'
>>   4     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1261     in `copy_file'
>>   5     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1231     in `copy'
>>   6     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 451     in `copy_entry'
>>   7     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1324     in `traverse'
>>   8     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 448     in `copy_entry'
>>   9     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 423     in `cp_r'
>>   10     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1395     in `fu_each_src_dest'
>>   11     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1404     in `fu_each_src_dest0'
>>   12     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1402     in `each'
>>   13     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1402     in `fu_each_src_dest0'
>>   14     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 1393     in `fu_each_src_dest'
>>   15     /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/fileutils.rb
>> 422     in `cp_r'
>>   16
>> /home/kete/apps/kete/vendor/plugins/active_scaffold/install_assets.rb
>> 12
>>   in `copy_files'
>>   17
>> /home/kete/apps/kete/vendor/plugins/active_scaffold/install_assets.rb
>> 17
>>
>>   18
>> /home/kete/apps/kete/vendor/plugins/active_scaffold/install_assets.rb
>> 3
>>   in `chdir'
>>   19
>> /home/kete/apps/kete/vendor/plugins/active_scaffold/install_assets.rb
>> 3
>>
>>   20
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
>>   31     in `gem_original_require'
>>   21
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
>>   31     in `require'
>>   22
>>
>> /home/kete/apps/kete/vendor/rails/activesupport/lib/active_support/dependencies.rb
>>   156     in `require'
>>   23
>>
>> /home/kete/apps/kete/vendor/rails/activesupport/lib/active_support/dependencies.rb
>>   521     in `new_constants_in'
>>   24
>>
>> /home/kete/apps/kete/vendor/rails/activesupport/lib/active_support/dependencies.rb
>>   156     in `require'
>>   25     /home/kete/apps/kete/vendor/plugins/active_scaffold/init.rb
>> 15     in `evaluate_init_rb'
>>   26     /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin.rb
>>   146     in `evaluate_init_rb'
>>   27
>>
>> /home/kete/apps/kete/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb
>>   11     in `silence_warnings'
>>   28     /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin.rb
>>   142     in `evaluate_init_rb'
>>   29     /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin.rb
>>   48     in `load'
>>   30
>> /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin/loader.rb
>> 38
>>   in `load_plugins'
>>   31
>> /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin/loader.rb
>> 37
>>   in `each'
>>   32
>> /home/kete/apps/kete/vendor/rails/railties/lib/rails/plugin/loader.rb
>> 37
>>   in `load_plugins'
>>   33     /home/kete/apps/kete/vendor/rails/railties/lib/initializer.rb
>> 369     in `load_plugins'
>>   34     /home/kete/apps/kete/vendor/rails/railties/lib/initializer.rb
>> 165     in `process'
>>   35     /home/kete/apps/kete/vendor/rails/railties/lib/initializer.rb
>> 113     in `send'
>>   36     /home/kete/apps/kete/vendor/rails/railties/lib/initializer.rb
>> 113     in `run'
>>   37     ./config/environment.rb     30
>>   38
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
>>   31     in `gem_original_require'
>>   39
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
>>   31     in `require'
>>   40
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb
>>   303     in `preload_application'
>>   41
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb
>>   252     in `initialize_server'
>>   42
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb
>>   230     in `report_app_init_status'
>>   43
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb
>>   237     in `initialize_server'
>>   44
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb
>>   193     in `start_synchronously'
>>   45
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb
>>   162     in `start'
>>   46
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb
>>   213     in `start'
>>   47
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb
>>   261     in `spawn_rails_application'
>>   48
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb
>>   126     in `lookup_or_add'
>>   49
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb
>>   255     in `spawn_rails_application'
>>   50
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb
>>   80     in `synchronize'
>>   51
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb
>>   79     in `synchronize'
>>   52
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb
>>   254     in `spawn_rails_application'
>>   53
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb
>>   153     in `spawn_application'
>>   54
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb
>>   286     in `handle_spawn_application'
>>   55
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb
>>   351     in `__send__'
>>   56
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb
>>   351     in `main_loop'
>>   57
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb
>>   195     in `start_synchronously'
>>   58
>>
>> /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server
>>
>>
>> Can you help me?
>> Thanks
>> _______________________________________________
>> Kete mailing list
>> Kete at lists.katipo.co.nz
>> http://lists.katipo.co.nz/cgi-bin/mailman/listinfo/kete
>>
>
>


More information about the Kete mailing list