DURP! I looked at the wrong git repository (Ohad’s puppet-foreman) and
thought there were no updates. 
@Eduardo: Did you run ‘rake RAILS_ENV=production db:migrate’ in the
foreman directory and restarted your webserver?
I checked out Ohad’s git repository and replaced my original foreman
directory with the new one, copied my database.yml to the new config
dir and ran ‘rake RAILS_ENV=production db:migrate && /etc/init.d/
apache2 restart’.
Without the last two commands, I also did get the 500 message, but
with another reason:
ActionView::TemplateError (Mysql::Error: Table
’puppet_foreman.user_notices’ doesn’t exist: SHOW FIELDS FROM
user_notices
) on line #20 of app/views/layouts/standard.rhtml:
Now I only need puppetrun to work from wthin foreman, but I’ll open
another discussion.
Thank you very much Ohad!
On Oct 12, 11:28 pm, “Eduardo S. Scarpellini” scarpell...@gmail.com > wrote:
Ohad,
using the same configuration, I get ERROR500 (We’re sorry, but something
went wrong):
/usr/share/foreman/vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprecated and will be removed on
or
after August 2010. Use #requirement
The {{key}} interpolation syntax in I18n messages is deprecated. Please
use
%{key} instead.
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:162:in
`interpolate_without_deprecated_syntax’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:157:in
`gsub’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:157:in
`interpolate_without_deprecated_syntax’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:197:in
`preserve_encoding’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:156:in
`interpolate_without_deprecated_syntax’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:21:in
`interpolate’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:49:in
`translate’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n.rb:152:in
`t’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/option_merger.rb:20:in
`send’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/option_merger.rb:20:in
`method_missing’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:84:in
`distance_of_time_in_words’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb:78:in
`with_options’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:68:in
`distance_of_time_in_words’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:115:in
time_ago_in_words' /usr/share/foreman/app/helpers/hosts_helper.rb:4:in
last_report_column’
/usr/share/foreman/app/views/hosts/_minilist.html.erb:24:in
`_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object’
/usr/share/foreman/app/views/hosts/_minilist.html.erb:14:in `each’
/usr/share/foreman/app/views/hosts/_minilist.html.erb:14:in
`_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`capture’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:129:in
`with_output_buffer’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in
`capture’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:466:in
`form_tag_in_block’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:39:in
`form_tag’
/usr/share/foreman/app/views/hosts/_minilist.html.erb:2:in
`_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
`send’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
render' /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:306:in
with_template’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
`render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in
`render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in
`benchmark’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:in
`render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/template.rb:205:in
`render_template’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:44:in
`render_partial’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/partials.rb:184:in
render_partial' /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:276:in
render’
/usr/share/foreman/app/views/hosts/index.html.erb:2:in
`_run_erb_app47views47hosts47index46html46erb’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
`send’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
render' /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:306:in
with_template’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
`render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/template.rb:205:in
render_template' /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:265:in
render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:348:in
_render_with_layout' /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:262:in
render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1250:in
`render_for_file’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:945:in
`render_without_benchmark’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms' /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/benchmark.rb:308:in
realtime’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
`ms’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1326:in
`default_render’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1332:in
`perform_action_without_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
`run_before_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in
`around_proc’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in
`call’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in
`evaluate_method’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:184:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
`run_before_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in
`call_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms' /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/benchmark.rb:308:in
realtime’
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
`ms’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
`perform_action’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`send’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
`process_without_filters’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:391:in
`process’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:386:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in
`dispatch’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in
`_call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in
call' /usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/head.rb:9:in
call’
/usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:122:in
`call’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
`call’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
`cache’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in
`call’
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in
call' /usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:in
call’
/usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:in
synchronize' /usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:in
call’
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
`call’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_request_handler.rb:207:in
`main_loop’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/railz/application_spawner.rb:441:in
`start_request_handler’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/railz/application_spawner.rb:381:in
`handle_spawn_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/utils.rb:252:in
`safe_fork’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/railz/application_spawner.rb:377:in
`handle_spawn_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:352:in
`send’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:352:in
`main_loop’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:163:in
`start’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/railz/application_spawner.rb:222:in
`start’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb:253:in
`spawn_rails_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server_collection.rb:126:in
`lookup_or_add’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb:247:in
`spawn_rails_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server_collection.rb:80:in
`synchronize’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb:246:in
`spawn_rails_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb:145:in
`spawn_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/spawn_manager.rb:278:in
`handle_spawn_application’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:352:in
`send’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:352:in
`main_loop’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15/bin/passenger-spawn-server:61
2010/10/12 Ohad Levy ohadl...@gmail.com
Here you go 
http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm
Ohad
On Tue, Oct 12, 2010 at 4:38 PM, Eduardo S. Scarpellini < > > > scarpell...@gmail.com> wrote:
Ohad,
I’m interested. 
2010/10/12 Ohad Levy ohadl...@gmail.com
there are a few reports related issues as well… your best bet is to
rebuild the rpm (or deb) if want the latest,
if anyone is interested, I can make a RC like rpm for you guys to
try.
Ohad
On Tue, Oct 12, 2010 at 4:28 PM, Eduardo S. Scarpellini < > > >>> scarpell...@gmail.com> wrote:
Paul,
I’ve “fixed” it yesterday on my foreman installation based on the
post
http://theforeman.org/boards/2/topics/144:)
2010/10/12 Ohad Levy ohadl...@gmail.com
Sure, this was fixed in the latest git version (or nightly
version).
It would be included in the next Foreman release, if you installed
via
a package, you can probably rebuild the package via the extras
directory.