Problem installing foreman - uninitialized constant Puppet::Rails

Hi there,

I am having troubles installing foreman.
When I try to set up the database I get the following error:

root@sxxx6:~/foreman# cat VERSION
0.1-5
root@sxxx6:~/foreman# RAILS_ENV=production rake db:migrate
(in /home/user/foreman)
rake aborted!
uninitialized constant Puppet::Rails

(See full trace by running task with --trace)

What am I missing? I have puppet up and running.
Do I need to install the Puppet Module as suggested in the
installation instructions?

http://theforeman.org/projects/foreman/wiki/Installation_instructions

Thanks in advance!

Which version of puppet are you using? there is a slight chance it breaks on
the 2.6 release.

Ohad

··· On Mon, Aug 9, 2010 at 3:43 PM, PowerPaul86 wrote:

Hi there,

I am having troubles installing foreman.
When I try to set up the database I get the following error:

root@sxxx6:~/foreman# cat VERSION
0.1-5
root@sxxx6:~/foreman# RAILS_ENV=production rake db:migrate
(in /home/user/foreman)
rake aborted!
uninitialized constant Puppet::Rails

(See full trace by running task with --trace)

What am I missing? I have puppet up and running.
Do I need to install the Puppet Module as suggested in the
installation instructions?

Installation instructions - Foreman

Thanks in advance!


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I have the same problem after I've upgraded to puppet 2.6. But in my
case I didn't even get foreman up and running at all:

[root@manage1 foreman]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-
noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
[root@manage1 foreman]# rpm -qa | grep puppet
puppet-server-2.6.0-0.7.el5
puppet-2.6.0-0.7.el5
[root@manage1 foreman]# rpm -qa | grep foreman
foreman-0.1.5-1
[root@manage1 foreman]# rake puppet:migrate:populate_hosts
RAILS_ENV=production
(in /usr/share/foreman)
rake aborted!
uninitialized constant Puppet::Rails

(See full trace by running task with --trace)
[root@manage1 foreman]# runuser -s /bin/bash - foreman -c 'ulimit -S -
c 0 >/dev/null 2>&1 ; /usr/bin/ruby /usr/share/foreman/script/server -
p 3000 -e production'
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:443:in old_load_missing_constant': uninitialized constant Puppet::Rails (NameError) from /usr/share/foreman/config/initializers/ fix_already_loading_missing_dependencies.rb:9:inload_missing_constant'
from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:80:in const_missing' from /usr/share/foreman/config/initializers/puppet.rb:1 from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:147:inload_without_new_constant_marking'
from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:147:in load' from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ initializer.rb:622:inload_application_initializers'
from /usr/share/foreman/script/…/config/…/vendor/rails/railties/lib/
initializer.rb:621:in each' from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ initializer.rb:621:inload_application_initializers'
… 9 levels…
from /usr/share/foreman/vendor/rails/railties/lib/commands/server.rb:
84
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /usr/share/foreman/script/server:3
[root@manage1 foreman]#

Kind regards, Thomas

··· On 9 Aug., 14:53, Ohad Levy wrote: > Which version of puppet are you using? there is a slight chance it breaks on > the 2.6 release. > [...]

Yes, I am also running the 2.6.0 puppet version.
I am still very inexperienced with ruby, what does the error message
mean?

uninitialized constant Puppet::Rails

Is there a variable missing or is that an indication for a missing
ruby module?

··· On Aug 10, 6:09 pm, thbe wrote: > On 9 Aug., 14:53, Ohad Levy wrote: > > > Which version of puppet are you using? there is a slight chance it breaks on > > the 2.6 release. > > [...] > > I have the same problem after I've upgraded to puppet 2.6. But in my > case I didn't even get foreman up and running at all: > > [root@manage1 foreman]# lsb_release -a > LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1- > noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch > Distributor ID: CentOS > Description: CentOS release 5.5 (Final) > Release: 5.5 > Codename: Final > [root@manage1 foreman]# rpm -qa | grep puppet > puppet-server-2.6.0-0.7.el5 > puppet-2.6.0-0.7.el5 > [root@manage1 foreman]# rpm -qa | grep foreman > foreman-0.1.5-1 > [root@manage1 foreman]# rake puppet:migrate:populate_hosts > RAILS_ENV=production > (in /usr/share/foreman) > rake aborted! > uninitialized constant Puppet::Rails > > (See full trace by running task with --trace) > [root@manage1 foreman]# runuser -s /bin/bash - foreman -c 'ulimit -S - > c 0 >/dev/null 2>&1 ; /usr/bin/ruby /usr/share/foreman/script/server - > p 3000 -e production' > => Booting WEBrick > => Rails 2.3.5 application starting onhttp://0.0.0.0:3000/usr/share/foreman/vendor/rails/activesupport/lib/... > dependencies.rb:443:in `old_load_missing_constant': uninitialized > constant Puppet::Rails (NameError) > from /usr/share/foreman/config/initializers/ > fix_already_loading_missing_dependencies.rb:9:in > `load_missing_constant' > from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:80:in `const_missing' > from /usr/share/foreman/config/initializers/puppet.rb:1 > from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:147:in `load_without_new_constant_marking' > from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:147:in `load' > from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > initializer.rb:622:in `load_application_initializers' > from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > initializer.rb:621:in `each' > from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > initializer.rb:621:in `load_application_initializers' > ... 9 levels... > from /usr/share/foreman/vendor/rails/railties/lib/commands/server.rb: > 84 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > from /usr/share/foreman/script/server:3 > [root@manage1 foreman]# > > Kind regards, Thomas

Foreman relay on puppet internals for some of its parts, as the reporting
system changed in the 2.6.x series, you see a couple of different errors.

Due to personal reasons, I did not have the time to align it yet, sorry for
the problem caused… hopefully next week.

Ohad

··· On Tue, Aug 10, 2010 at 8:40 PM, PowerPaul86 wrote:

Yes, I am also running the 2.6.0 puppet version.
I am still very inexperienced with ruby, what does the error message
mean?

uninitialized constant Puppet::Rails

Is there a variable missing or is that an indication for a missing
ruby module?

On Aug 10, 6:09 pm, thbe thomas.bend...@gmail.com wrote:

On 9 Aug., 14:53, Ohad Levy ohadl...@gmail.com wrote:

Which version of puppet are you using? there is a slight chance it
breaks on

the 2.6 release.
[…]

I have the same problem after I’ve upgraded to puppet 2.6. But in my
case I didn’t even get foreman up and running at all:

[root@manage1 foreman]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-
noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
[root@manage1 foreman]# rpm -qa | grep puppet
puppet-server-2.6.0-0.7.el5
puppet-2.6.0-0.7.el5
[root@manage1 foreman]# rpm -qa | grep foreman
foreman-0.1.5-1
[root@manage1 foreman]# rake puppet:migrate:populate_hosts
RAILS_ENV=production
(in /usr/share/foreman)
rake aborted!
uninitialized constant Puppet::Rails

(See full trace by running task with --trace)
[root@manage1 foreman]# runuser -s /bin/bash - foreman -c ‘ulimit -S -
c 0 >/dev/null 2>&1 ; /usr/bin/ruby /usr/share/foreman/script/server -
p 3000 -e production’
=> Booting WEBrick
=> Rails 2.3.5 application starting onhttp://
0.0.0.0:3000/usr/share/foreman/vendor/rails/activesupport/lib/…
dependencies.rb:443:in old_load_missing_constant': uninitialized constant Puppet::Rails (NameError) from /usr/share/foreman/config/initializers/ fix_already_loading_missing_dependencies.rb:9:inload_missing_constant’
from
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:80:in const_missing' from /usr/share/foreman/config/initializers/puppet.rb:1 from /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:147:inload_without_new_constant_marking’
from
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:147:in load' from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ initializer.rb:622:inload_application_initializers’
from
/usr/share/foreman/script/…/config/…/vendor/rails/railties/lib/
initializer.rb:621:in each' from /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ initializer.rb:621:inload_application_initializers’
… 9 levels…
from
/usr/share/foreman/vendor/rails/railties/lib/commands/server.rb:
84
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from /usr/share/foreman/script/server:3
[root@manage1 foreman]#

Kind regards, Thomas


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

No problem at all. I am not in a hurry :slight_smile:
I just wish I had more experience with ruby to investigate and maybe
support you.

··· On Aug 10, 8:35 pm, Ohad Levy wrote: > Foreman relay on puppet internals for some of its parts, as the reporting > system changed in the 2.6.x series, you see a couple of different errors. > > Due to personal reasons, I did not have the time to align it yet, sorry for > the problem caused... hopefully next week. > > Ohad > > On Tue, Aug 10, 2010 at 8:40 PM, PowerPaul86 wrote: > > > Yes, I am also running the 2.6.0 puppet version. > > I am still very inexperienced with ruby, what does the error message > > mean? > > > uninitialized constant Puppet::Rails > > > Is there a variable missing or is that an indication for a missing > > ruby module? > > > On Aug 10, 6:09 pm, thbe wrote: > > > On 9 Aug., 14:53, Ohad Levy wrote: > > > > > Which version of puppet are you using? there is a slight chance it > > breaks on > > > > the 2.6 release. > > > > [...] > > > > I have the same problem after I've upgraded to puppet 2.6. But in my > > > case I didn't even get foreman up and running at all: > > > > [root@manage1 foreman]# lsb_release -a > > > LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1- > > > noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch > > > Distributor ID: CentOS > > > Description: CentOS release 5.5 (Final) > > > Release: 5.5 > > > Codename: Final > > > [root@manage1 foreman]# rpm -qa | grep puppet > > > puppet-server-2.6.0-0.7.el5 > > > puppet-2.6.0-0.7.el5 > > > [root@manage1 foreman]# rpm -qa | grep foreman > > > foreman-0.1.5-1 > > > [root@manage1 foreman]# rake puppet:migrate:populate_hosts > > > RAILS_ENV=production > > > (in /usr/share/foreman) > > > rake aborted! > > > uninitialized constant Puppet::Rails > > > > (See full trace by running task with --trace) > > > [root@manage1 foreman]# runuser -s /bin/bash - foreman -c 'ulimit -S - > > > c 0 >/dev/null 2>&1 ; /usr/bin/ruby /usr/share/foreman/script/server - > > > p 3000 -e production' > > > => Booting WEBrick > > > => Rails 2.3.5 application starting onhttp:// > > 0.0.0.0:3000/usr/share/foreman/vendor/rails/activesupport/lib/... > > > dependencies.rb:443:in `old_load_missing_constant': uninitialized > > > constant Puppet::Rails (NameError) > > > from /usr/share/foreman/config/initializers/ > > > fix_already_loading_missing_dependencies.rb:9:in > > > `load_missing_constant' > > > from > > /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:80:in `const_missing' > > > from /usr/share/foreman/config/initializers/puppet.rb:1 > > > from > > /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:147:in `load_without_new_constant_marking' > > > from > > /usr/share/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:147:in `load' > > > from > > /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > > > initializer.rb:622:in `load_application_initializers' > > > from > > /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > > > initializer.rb:621:in `each' > > > from > > /usr/share/foreman/script/../config/../vendor/rails/railties/lib/ > > > initializer.rb:621:in `load_application_initializers' > > > ... 9 levels... > > > from > > /usr/share/foreman/vendor/rails/railties/lib/commands/server.rb: > > > 84 > > > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require' > > > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `require' > > > from /usr/share/foreman/script/server:3 > > > [root@manage1 foreman]# > > > > Kind regards, Thomas > > > -- > > You received this message because you are subscribed to the Google Groups > > "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to > > foreman-users+unsubscribe@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/foreman-users?hl=en.

Hello there,
I saw that you made some changes to the source code and I am happy to
report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {"action"=>"show", "id"=>"149", "controller"=>"reports"}
Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision' for
nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29: <td> <%= h value.round_with_precision(4) %> </td>
30: </tr>
31: <% end %>
32: <tr><td class="last_row">Total</td><td class="last_row"><
%= h @totaltime.round_with_precision(4) %></td></tr>
33: </table>
34: </td>
35: </tr>

app/views/reports/show.rhtml:32:in

_run_rhtml_app47views47reports47show46rhtml&#39; passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request'
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop&#39; passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler'
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application&#39; passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork'
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in handle_spawn_application&#39; passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
main_loop&#39; passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in
start&#39; passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application&#39; passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application&#39; passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize'
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize&#39; passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application&#39; passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
__send__&#39; passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only fails
on this specific host.

Yes, I'm aware of this problem :slight_smile: i guess it depends on the version of the
client.

I hope to address it in the near future once I'll get enough time :slight_smile: any
help appreciated :wink:

Ohad

··· On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 wrote:

Hello there,
I saw that you made some changes to the source code and I am happy to
report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”, “controller”=>“reports”}
Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’ for
nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total <
%= h @totaltime.round_with_precision(4) %>
33:
34:
35:

app/views/reports/show.rhtml:32:in
_run_rhtml_app47views47reports47show46rhtml' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request’
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in
start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only fails
on this specific host.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

··· On Aug 31, 4:02 pm, Ohad Levy wrote: > Yes, I'm aware of this problem :-) i guess it depends on the version of the > client. > > I hope to address it in the near future once I'll get enough time :) any > help appreciated ;) > > Ohad > On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 wrote: > > > Hello there, > > I saw that you made some changes to the source code and I am happy to > > report that it worked! > > I now have foreman working with puppet 2.6.0. > > > I only came across one bug when I tried to call the report of a > > certain machine of mine: > > > Processing ReportsController#show (for 10.250.1.157 at 2010-08-31 > > 15:28:01) [GET] > > Parameters: {"action"=>"show", "id"=>"149", "controller"=>"reports"} > > Rendering template within layouts/standard > > Rendering reports/show > > > ActionView::TemplateError (undefined method `round_with_precision' for > > nil:NilClass) on line #32 of app/views/reports/show.rhtml: > > 29: <%= h value.round_with_precision(4) %> > > 30: > > 31: <% end %> > > 32: Total < > > %= h @totaltime.round_with_precision(4) %> > > 33: > > 34: > > 35: > > > app/views/reports/show.rhtml:32:in > > `_run_rhtml_app47views47reports47show46rhtml' > > passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: > > 92:in `process_request' > > passenger (2.2.15) lib/phusion_passenger/ > > abstract_request_handler.rb:207:in `main_loop' > > passenger (2.2.15) lib/phusion_passenger/railz/ > > application_spawner.rb:441:in `start_request_handler' > > passenger (2.2.15) lib/phusion_passenger/railz/ > > application_spawner.rb:381:in `handle_spawn_application' > > passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in > > `safe_fork' > > passenger (2.2.15) lib/phusion_passenger/railz/ > > application_spawner.rb:377:in `handle_spawn_application' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in > > `__send__' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in > > `main_loop' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in > > `start_synchronously' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in > > `start' > > passenger (2.2.15) lib/phusion_passenger/railz/ > > application_spawner.rb:222:in `start' > > passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in > > `spawn_rails_application' > > passenger (2.2.15) lib/phusion_passenger/ > > abstract_server_collection.rb:126:in `lookup_or_add' > > passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in > > `spawn_rails_application' > > passenger (2.2.15) lib/phusion_passenger/ > > abstract_server_collection.rb:80:in `synchronize' > > passenger (2.2.15) lib/phusion_passenger/ > > abstract_server_collection.rb:79:in `synchronize' > > passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in > > `spawn_rails_application' > > passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in > > `spawn_application' > > passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in > > `handle_spawn_application' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in > > `__send__' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in > > `main_loop' > > passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in > > `start_synchronously' > > > Rendering /opt/foreman/public/500.html (500 Internal Server Error) > > > I can look at the reports of the other nodes just fine. It only fails > > on this specific host. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Foreman users" group. > > To post to this group, send email to foreman-users@googlegroups.com. > > To unsubscribe from this group, send email to > > foreman-users+unsubscribe@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/foreman-users?hl=en. > >

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.

Ohad

··· On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 wrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version of
the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile: any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 <powerpau...@googlemail.com > >wrote:

Hello there,
I saw that you made some changes to the source code and I am happy to
report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”, “controller”=>“reports”}
Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’ for
nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total <
%= h @totaltime.round_with_precision(4) %>
33:
34:
35:

app/views/reports/show.rhtml:32:in
_run_rhtml_app47views47reports47show46rhtml' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request’
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in
start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only fails
on this specific host.


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<foreman-users%2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com

.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Paul,
I've "fixed" it yesterday on my foreman installation based on the post
http://theforeman.org/boards/2/topics/144 :slight_smile:

··· 2010/10/12 Ohad Levy

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.

Ohad

On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 powerpaul86@googlemail.comwrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version of
the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile: any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < >> powerpau...@googlemail.com>wrote:

Hello there,
I saw that you made some changes to the source code and I am happy to
report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”, “controller”=>“reports”}
Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’ for
nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total<

%= h @totaltime.round_with_precision(4) %>


33:
34:
35:

app/views/reports/show.rhtml:32:in
_run_rhtml_app47views47reports47show46rhtml' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request’
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in
start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only fails
on this specific host.


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<foreman-users%2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com

.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@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 < scarpellini@gmail.com> wrote:

Paul,
I’ve “fixed” it yesterday on my foreman installation based on the post
http://theforeman.org/boards/2/topics/144 :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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.

Ohad

On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 powerpaul86@googlemail.comwrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version of
the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile:
any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < >>> powerpau...@googlemail.com>wrote:

Hello there,
I saw that you made some changes to the source code and I am happy to
report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”, “controller”=>“reports”}
Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’
for

nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total<

%= h @totaltime.round_with_precision(4) %>


33:
34:
35:

app/views/reports/show.rhtml:32:in
_run_rhtml_app47views47reports47show46rhtml' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request’
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in
start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in
__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop’
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only fails
on this specific host.


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<foreman-users%2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com

.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@gmail.com


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Ohad,
I'm interested. :slight_smile:

··· 2010/10/12 Ohad Levy

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 < > scarpellini@gmail.com> wrote:

Paul,
I’ve “fixed” it yesterday on my foreman installation based on the post
http://theforeman.org/boards/2/topics/144 :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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.

Ohad

On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 <powerpaul86@googlemail.com >>> > wrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version
of the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile:
any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < >>>> powerpau...@googlemail.com>wrote:

Hello there,
I saw that you made some changes to the source code and I am happy
to

report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”,
“controller”=>“reports”}

Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’
for

nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total<

%= h @totaltime.round_with_precision(4) %>


33:
34:
35:

app/views/reports/show.rhtml:32:in
_run_rhtml_app47views47reports47show46rhtml' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: 92:inprocess_request’
passenger (2.2.15) lib/phusion_passenger/
abstract_request_handler.rb:207:in main_loop' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:441:instart_request_handler’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:381:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:insafe_fork’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:377:in `handle_spawn_application’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`send
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`main_loop’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:196:in

`start_synchronously’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:163:in

start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`send
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`main_loop’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:196:in

`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only
fails

on this specific host.


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com
.

To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<foreman-users%2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com

.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@gmail.com


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@gmail.com

Here you go :slight_smile:

http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm

Ohad

··· On Tue, Oct 12, 2010 at 4:38 PM, Eduardo S. Scarpellini < scarpellini@gmail.com> wrote:

Ohad,
I’m interested. :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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 < >> scarpellini@gmail.com> wrote:

Paul,
I’ve “fixed” it yesterday on my foreman installation based on the post
http://theforeman.org/boards/2/topics/144 :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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.

Ohad

On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 < >>>> powerpaul86@googlemail.com> wrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version
of the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile:
any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < >>>>> powerpau...@googlemail.com>wrote:

Hello there,
I saw that you made some changes to the source code and I am happy
to

report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”,
“controller”=>“reports”}

Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’
for

nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %>
30:
31: <% end %>
32: Total<

%= h @totaltime.round_with_precision(4) %>


33:
34:
35:

app/views/reports/show.rhtml:32:in
`_run_rhtml_app47views47reports47show46rhtml’
passenger (2.2.15)
lib/phusion_passenger/rack/request_handler.rb:

92:in process_request' passenger (2.2.15) lib/phusion_passenger/ abstract_request_handler.rb:207:inmain_loop’
passenger (2.2.15) lib/phusion_passenger/railz/
application_spawner.rb:441:in start_request_handler' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:381:inhandle_spawn_application’
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in
safe_fork' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:377:inhandle_spawn_application’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`send
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`main_loop’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:196:in

`start_synchronously’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:163:in

start' passenger (2.2.15) lib/phusion_passenger/railz/ application_spawner.rb:222:instart’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:126:inlookup_or_add’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in
spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/ abstract_server_collection.rb:80:insynchronize’
passenger (2.2.15) lib/phusion_passenger/
abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application’
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in
spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`send
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:352:in

`main_loop’
passenger (2.2.15)
lib/phusion_passenger/abstract_server.rb:196:in

`start_synchronously’

Rendering /opt/foreman/public/500.html (500 Internal Server Error)

I can look at the reports of the other nodes just fine. It only
fails

on this specific host.


You received this message because you are subscribed to the Google
Groups

“Foreman users” group.
To post to this group, send email to
foreman-users@googlegroups.com.

To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<foreman-users%2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com

.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@gmail.com


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.


Eduardo S. Scarpellini
scarpellini@gmail.com


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

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&#39; /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:157:ingsub'
/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&#39; /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:197:inpreserve_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&#39; /usr/share/foreman/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:21:ininterpolate'
/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&#39; /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n.rb:152:int'
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/option_merger.rb:20:in
__send__&#39; /usr/share/foreman/vendor/rails/activesupport/lib/active_support/option_merger.rb:20:inmethod_missing'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:84:in
distance_of_time_in_words&#39; /usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb:78:inwith_options'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:68:in
distance_of_time_in_words&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:115:intime_ago_in_words'
/usr/share/foreman/app/helpers/hosts_helper.rb:4:in last_report_column&#39; /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&#39; /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&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:incapture'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:129:in
with_output_buffer&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:incapture'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:466:in
form_tag_in_block&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb:39:inform_tag'
/usr/share/foreman/app/views/hosts/_minilist.html.erb:2:in
_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:insend'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
render&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:306:inwith_template'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
render&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:inrender'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in
benchmark&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:inrender'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/template.rb:205:in
render_template&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:44:inrender_partial'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/partials.rb:184:in
render_partial&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:276:inrender'
/usr/share/foreman/app/views/hosts/index.html.erb:2:in
_run_erb_app47views47hosts47index46html46erb&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:insend'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in
render&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:306:inwith_template'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in
render&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_view/template.rb:205:inrender_template'
/usr/share/foreman/vendor/rails/actionpack/lib/action_view/base.rb:265:in
render&#39; /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&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1250:inrender_for_file'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:945:in
render_without_benchmark&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:inrender'
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms&#39; /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
ms&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:inrender'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1326:in
default_render&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:1332:inperform_action_without_filters'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
call_filters&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:638:inrun_before_filters'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:206:inaround_proc'
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in
call&#39; /usr/share/foreman/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:inevaluate_method'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:184:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:635:inrun_before_filters'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in
call_filters&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:610:inperform_action_without_benchmark'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue&#39; /usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:inms'
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/1.8/benchmark.rb:308:in
realtime&#39; /usr/share/foreman/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:inms'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:inperform_action_without_flash'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in
perform_action&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:532:insend'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
process_without_filters&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/filters.rb:606:inprocess'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:391:in
process&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/base.rb:386:incall'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:indispatch'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in
_call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:inbuild_middleware_stack'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:incall'
/usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/head.rb:9:in call&#39; /usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:incall'
/usr/share/foreman/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:122:incall'
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in
call&#39; /usr/share/foreman/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:incache'
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in
cache&#39; /usr/share/foreman/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:incall'
/usr/share/foreman/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:incall'
/usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:in call&#39; /usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:insynchronize'
/usr/share/foreman/vendor/gems/rack-1.0.1/lib/rack/lock.rb:11:in call&#39; /usr/share/foreman/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:incall'
/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&#39; /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:inmain_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&#39; /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:inhandle_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&#39; /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:inhandle_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__&#39; /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:inmain_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&#39; /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:instart'
/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&#39; /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:inspawn_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&#39; /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:inspawn_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&#39; /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:insynchronize'
/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&#39; /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:inspawn_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&#39; /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:insend'
/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&#39; /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:instart_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

Here you go :slight_smile:

http://theforeman.org/foreman-0.1.6-rc1.noarch.rpm

Ohad

On Tue, Oct 12, 2010 at 4:38 PM, Eduardo S. Scarpellini < > scarpellini@gmail.com> wrote:

Ohad,
I’m interested. :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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 < >>> scarpellini@gmail.com> wrote:

Paul,
I’ve “fixed” it yesterday on my foreman installation based on the post
http://theforeman.org/boards/2/topics/144 :slight_smile:

2010/10/12 Ohad Levy ohadlevy@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.

Ohad

On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 < >>>>> powerpaul86@googlemail.com> wrote:

I upgraded my puppet clients to 2.6.2 but I still get the above error
message, when I try to call a report of a host.

Any update or probably a workaround for this?

On Aug 31, 4:02 pm, Ohad Levy ohadl...@gmail.com wrote:

Yes, I’m aware of this problem :slight_smile: i guess it depends on the version
of the
client.

I hope to address it in the near future once I’ll get enough time :slight_smile:
any
help appreciated :wink:

Ohad
On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < >>>>>> powerpau...@googlemail.com>wrote:

Hello there,
I saw that you made some changes to the source code and I am happy
to

report that it worked!
I now have foreman working with puppet 2.6.0.

I only came across one bug when I tried to call the report of a
certain machine of mine:

Processing ReportsController#show (for 10.250.1.157 at 2010-08-31
15:28:01) [GET]
Parameters: {“action”=>“show”, “id”=>“149”,
“controller”=>“reports”}

Rendering template within layouts/standard
Rendering reports/show

ActionView::TemplateError (undefined method `round_with_precision’
for

nil:NilClass) on line #32 of app/views/reports/show.rhtml:
29:

<%= h value.round_with_precision(4) %> > > 30: > > 31: <% end %> > > 32: Total< > > %= h @totaltime.round_with_precision(4) %> > > 33: > > 34: > > 35: > > > app/views/reports/show.rhtml:32:in > > `_run_rhtml_app47views47reports47show46rhtml' > > passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb: > > 92:in `process_request' > > passenger (2.2.15) lib/phusion_passenger/ > > abstract_request_handler.rb:207:in `main_loop' > > passenger (2.2.15) lib/phusion_passenger/rail

DURP! I looked at the wrong git repository (Ohad's puppet-foreman) and
thought there were no updates. :confused:

@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" 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 > > > 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 > > >>> 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 > > >>>>> 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. > > >>>>> Ohad > > >>>>> On Tue, Oct 12, 2010 at 2:13 PM, PowerPaul86 < > >>>>> powerpau...@googlemail.com> wrote: > > >>>>>> I upgraded my puppet clients to 2.6.2 but I still get the above error > >>>>>> message, when I try to call a report of a host. > > >>>>>> Any update or probably a workaround for this? > > >>>>>> On Aug 31, 4:02 pm, Ohad Levy wrote: > >>>>>> > Yes, I'm aware of this problem :-) i guess it depends on the version > >>>>>> of the > >>>>>> > client. > > >>>>>> > I hope to address it in the near future once I'll get enough time :) > >>>>>> any > >>>>>> > help appreciated ;) > > >>>>>> > Ohad > >>>>>> > On Tue, Aug 31, 2010 at 4:55 PM, PowerPaul86 < > >>>>>> powerpau...@googlemail.com>wrote: > > >>>>>> > > Hello there, > >>>>>> > > I saw that you made some changes to the source code and I am happy > >>>>>> to > >>>>>> > > report that it worked! > >>>>>> > > I now have foreman working with puppet 2.6.0. > > >>>>>> > > I only came across one bug when I tried to call the report of a > >>>>>> > > certain machine of mine: > > >>>>>> > > Processing ReportsController#show (for 10.250.1.157 at 2010-08-31 > >>>>>> > > 15:28:01) [GET] > >>>>>> > > Parameters: {"action"=>"show", "id"=>"149", > >>>>>> "controller"=>"reports"} > >>>>>> > > Rendering template within layouts/standard > >>>>>> > > Rendering reports/show > > >>>>>> > > ActionView::TemplateError (undefined method `round_with_precision' > >>>>>> for > >>>>>> > > nil:NilClass) on line #32 of app/views/reports/show.rhtml: > >>>>>> > > 29: <%= h value.round_with_precision(4) %> > >>>>>> > >>>>>> > > 30: > >>>>>> > > 31: <% end %> > >>>>>> > > 32: Total >>>>>> class="last_row">< > >>>>>> > > %= h @totaltime.round_with_precision(4) %> > >>>>>> > > 33: > >>>>>> > > 34: > >>>>>

Thaaanks, Paul.
Starts working when I ran db:migrate. :slight_smile:

··· 2010/10/13 PowerPaul86

DURP! I looked at the wrong git repository (Ohad’s puppet-foreman) and
thought there were no updates. :confused:

@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:inlast_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:inwith_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:inrender’
/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:inwith_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:inrender’
/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:inrender’

/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:inrealtime’

/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:inrealtime’

/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:incall’

/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:incall’
/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:incall’

/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 :slight_smile:

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. :slight_smile:

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.