Hello All, Is there a way that I can store the facter facts in Dashboard ? I noticed that there are some yaml files in /var/lib/puppet/yaml/facts/; are these it? Can I get these to display on Dashboard? I looked around the docs and didn''t find any information on the topic. Thanks, Henry -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-May-31 14:14 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It can be either Dashboard or any other web interface for Puppet. I''d be great for reporting on current inventory. Has any has gotten this piece to work? Is it an intended feature, or wishful thinking on my part? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-May-31 14:16 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
Hi, The Foreman supports inventory and many other features - see http://theforeman.org/projects/foreman/wiki/Features Ohad On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmedina@gmail.com> wrote:> It can be either Dashboard or any other web interface for Puppet. I''d > be great for reporting on current inventory. Has any has gotten this > piece to work? Is it an intended feature, or wishful thinking on my > part? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-May-31 14:29 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
Thanks for the feedback. I''ll look it into it immediately. Cheers, Henry On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote:> Hi, > > The Foreman supports inventory and many other features - seehttp://theforeman.org/projects/foreman/wiki/Features > > Ohad > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> wrote: > > It can be either Dashboard or any other web interface for Puppet. I''d > > be great for reporting on current inventory. Has any has gotten this > > piece to work? Is it an intended feature, or wishful thinking on my > > part? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-May-31 14:31 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
You might want to wait for another day or so, as a new major release is just around the corner :) or you can test the release candidate (which seems to be quite stable at the moment). Ohad On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmedina@gmail.com> wrote:> Thanks for the feedback. I''ll look it into it immediately. > > Cheers, > > Henry > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: > > Hi, > > > > The Foreman supports inventory and many other features - seehttp:// > theforeman.org/projects/foreman/wiki/Features > > > > Ohad > > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > It can be either Dashboard or any other web interface for Puppet. I''d > > > be great for reporting on current inventory. Has any has gotten this > > > piece to work? Is it an intended feature, or wishful thinking on my > > > part? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Puppet Users" group. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > To unsubscribe from this group, send email to > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-02 15:28 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
Sounds great. I''m looking forward to the major release. On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote:> You might want to wait for another day or so, as a new major release is just > around the corner :) or you can test the release candidate (which seems to > be quite stable at the moment). > > Ohad > > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> wrote: > > Thanks for the feedback. I''ll look it into it immediately. > > > Cheers, > > > Henry > > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > Hi, > > > > The Foreman supports inventory and many other features - seehttp:// > > theforeman.org/projects/foreman/wiki/Features > > > > Ohad > > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > It can be either Dashboard or any other web interface for Puppet. I''d > > > > be great for reporting on current inventory. Has any has gotten this > > > > piece to work? Is it an intended feature, or wishful thinking on my > > > > part? > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Puppet Users" group. > > > > To post to this group, send email to puppet-users@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/puppet-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Gustavo Soares
2010-Jun-02 16:25 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
I''ve installed foreman yesterday to play around.. I''ve have used the tar.gz in the "src.rpm" file to install it... is it old? Thanks in advance, Gus On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmedina@gmail.com> wrote:> Sounds great. I''m looking forward to the major release. > > On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: > > You might want to wait for another day or so, as a new major release is > just > > around the corner :) or you can test the release candidate (which seems > to > > be quite stable at the moment). > > > > Ohad > > > > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > Thanks for the feedback. I''ll look it into it immediately. > > > > > Cheers, > > > > > Henry > > > > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > > Hi, > > > > > > The Foreman supports inventory and many other features - seehttp:// > > > theforeman.org/projects/foreman/wiki/Features > > > > > > Ohad > > > > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > > It can be either Dashboard or any other web interface for Puppet. > I''d > > > > > be great for reporting on current inventory. Has any has gotten > this > > > > > piece to work? Is it an intended feature, or wishful thinking on > my > > > > > part? > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Puppet Users" group. > > > > > To post to this group, send email to puppet-users@googlegroups.com > . > > > > > To unsubscribe from this group, send email to > > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Puppet Users" group. > > > To post to this group, send email to puppet-users@googlegroups.com. > > > To unsubscribe from this group, send email to > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-03 03:33 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
yeah, its still the last stable version, You can get the latest development here - http://github.com/ohadlevy/foreman/tarball/develop Note that if you plan to rebuild the rpm, you should also use the latest spec files form the extra/spec directory. Ohad On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares <gustavosoares@gmail.com>wrote:> I''ve installed foreman yesterday to play around.. > > I''ve have used the tar.gz in the "src.rpm" file to install it... is it old? > > Thanks in advance, > Gus > > On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmedina@gmail.com> wrote: > >> Sounds great. I''m looking forward to the major release. >> >> On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: >> > You might want to wait for another day or so, as a new major release is >> just >> > around the corner :) or you can test the release candidate (which seems >> to >> > be quite stable at the moment). >> > >> > Ohad >> > >> > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> >> wrote: >> > > Thanks for the feedback. I''ll look it into it immediately. >> > >> > > Cheers, >> > >> > > Henry >> > >> > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: >> > > > Hi, >> > >> > > > The Foreman supports inventory and many other features - seehttp:// >> > > theforeman.org/projects/foreman/wiki/Features >> > >> > > > Ohad >> > >> > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> >> wrote: >> > > > > It can be either Dashboard or any other web interface for Puppet. >> I''d >> > > > > be great for reporting on current inventory. Has any has gotten >> this >> > > > > piece to work? Is it an intended feature, or wishful thinking on >> my >> > > > > part? >> > >> > > > > -- >> > > > > You received this message because you are subscribed to the Google >> > > Groups >> > > > > "Puppet Users" group. >> > > > > To post to this group, send email to >> puppet-users@googlegroups.com. >> > > > > To unsubscribe from this group, send email to >> > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >> > >> > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >> <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> >> > >> > >> > > > > . >> > > > > For more options, visit this group at >> > > > >http://groups.google.com/group/puppet-users?hl=en. >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Puppet Users" group. >> > > To post to this group, send email to puppet-users@googlegroups.com. >> > > To unsubscribe from this group, send email to >> > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >> > >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/puppet-users?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-03 03:36 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
Hi, Sorry, that tarbar does not include the required libraries, use http://theforeman.org/foreman-nightly.tar.bz2 instead. Ohad On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadlevy@gmail.com> wrote:> yeah, its still the last stable version, > > You can get the latest development here - > http://github.com/ohadlevy/foreman/tarball/develop > Note that if you plan to rebuild the rpm, you should also use the latest > spec files form the extra/spec directory. > > Ohad > > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares <gustavosoares@gmail.com>wrote: > >> I''ve installed foreman yesterday to play around.. >> >> I''ve have used the tar.gz in the "src.rpm" file to install it... is it >> old? >> >> Thanks in advance, >> Gus >> >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmedina@gmail.com> wrote: >> >>> Sounds great. I''m looking forward to the major release. >>> >>> On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: >>> > You might want to wait for another day or so, as a new major release is >>> just >>> > around the corner :) or you can test the release candidate (which seems >>> to >>> > be quite stable at the moment). >>> > >>> > Ohad >>> > >>> > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> >>> wrote: >>> > > Thanks for the feedback. I''ll look it into it immediately. >>> > >>> > > Cheers, >>> > >>> > > Henry >>> > >>> > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: >>> > > > Hi, >>> > >>> > > > The Foreman supports inventory and many other features - seehttp:// >>> > > theforeman.org/projects/foreman/wiki/Features >>> > >>> > > > Ohad >>> > >>> > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> >>> wrote: >>> > > > > It can be either Dashboard or any other web interface for Puppet. >>> I''d >>> > > > > be great for reporting on current inventory. Has any has gotten >>> this >>> > > > > piece to work? Is it an intended feature, or wishful thinking on >>> my >>> > > > > part? >>> > >>> > > > > -- >>> > > > > You received this message because you are subscribed to the >>> Google >>> > > Groups >>> > > > > "Puppet Users" group. >>> > > > > To post to this group, send email to >>> puppet-users@googlegroups.com. >>> > > > > To unsubscribe from this group, send email to >>> > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >>> > >>> > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >>> <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> >>> > >>> > >>> > > > > . >>> > > > > For more options, visit this group at >>> > > > >http://groups.google.com/group/puppet-users?hl=en. >>> > >>> > > -- >>> > > You received this message because you are subscribed to the Google >>> Groups >>> > > "Puppet Users" group. >>> > > To post to this group, send email to puppet-users@googlegroups.com. >>> > > To unsubscribe from this group, send email to >>> > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> >>> > >>> > > . >>> > > For more options, visit this group at >>> > >http://groups.google.com/group/puppet-users?hl=en. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-03 15:05 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
Hello Ohad, From the instructions you have posted, I tried to setup the database via RAILS_ENV=production rake db:migrate, and then I got the following error: rake aborted! NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' This is the trace: ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract_adapter.rb:219:in `log'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:323:in `execute'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:599:in `configure_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:594:in `connect'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:203:in `initialize'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:75:in `new'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:223:in `send'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:223:in `new_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:188:in `checkout'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:184:in `loop'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:184:in `checkout'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:183:in `checkout'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:98:in `connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_specification.rb:115:in `connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: 3113:in `quoted_table_name'' /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: 82:in `acts_as_audited'' /code/foreman/app/models/host.rb:55 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:158:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:265:in `require_or_load'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:425:in `old_load_missing_constant'' /code/foreman/config/initializers/ fix_already_loading_missing_dependencies.rb:9:in `load_missing_constant'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:80:in `const_missing'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:92:in `const_missing'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:361:in `constantize'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:360:in `each'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:360:in `constantize'' /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ string/inflections.rb:162:in `constantize'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 157:in `observed_class'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 183:in `observed_classes'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 166:in `initialize'' /usr/lib/ruby/1.8/singleton.rb:95:in `new'' /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 38:in `instantiate_observers'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 36:in `each'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 36:in `instantiate_observers'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:15:in `define_dispatcher_callbacks'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:182:in `call'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:182:in `evaluate_method'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:166:in `call'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `run'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `each'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `send'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `run'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:276:in `run_callbacks'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:51:in `send'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:51:in `run_prepare_callbacks'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 631:in `prepare_dispatcher'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 185:in `process'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 113:in `send'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 113:in `run'' /code/foreman/config/environment.rb:9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:156:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:521:in `new_constants_in'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:156:in `require'' /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in `invoke_prerequisites'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `invoke_prerequisites'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load'' /usr/bin/rake:19 Any Ideas? Thanks, Henry On Jun 2, 11:36 pm, Ohad Levy <ohadl...@gmail.com> wrote:> Hi, > > Sorry, that tarbar does not include the required libraries, usehttp://theforeman.org/foreman-nightly.tar.bz2instead. > > Ohad > > On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > yeah, its still the last stable version, > > > You can get the latest development here - > >http://github.com/ohadlevy/foreman/tarball/develop > > Note that if you plan to rebuild the rpm, you should also use the latest > > spec files form the extra/spec directory. > > > Ohad > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares <gustavosoa...@gmail.com>wrote: > > >> I''ve installed foreman yesterday to play around.. > > >> I''ve have used the tar.gz in the "src.rpm" file to install it... is it > >> old? > > >> Thanks in advance, > >> Gus > > >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmed...@gmail.com> wrote: > > >>> Sounds great. I''m looking forward to the major release. > > >>> On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: > >>> > You might want to wait for another day or so, as a new major release is > >>> just > >>> > around the corner :) or you can test the release candidate (which seems > >>> to > >>> > be quite stable at the moment). > > >>> > Ohad > > >>> > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> > >>> wrote: > >>> > > Thanks for the feedback. I''ll look it into it immediately. > > >>> > > Cheers, > > >>> > > Henry > > >>> > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: > >>> > > > Hi, > > >>> > > > The Foreman supports inventory and many other features - seehttp:// > >>> > > theforeman.org/projects/foreman/wiki/Features > > >>> > > > Ohad > > >>> > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech <hmmed...@gmail.com> > >>> wrote: > >>> > > > > It can be either Dashboard or any other web interface for Puppet. > >>> I''d > >>> > > > > be great for reporting on current inventory. Has any has gotten > >>> this > >>> > > > > piece to work? Is it an intended feature, or wishful thinking on > >>> my > >>> > > > > part? > > >>> > > > > -- > >>> > > > > You received this message because you are subscribed to the > >>> Google > >>> > > Groups > >>> > > > > "Puppet Users" group. > >>> > > > > To post to this group, send email to > >>> puppet-users@googlegroups.com. > >>> > > > > To unsubscribe from this group, send email to > >>> > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > >>> > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > >>> <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > > >>> > > > > . > >>> > > > > For more options, visit this group at > >>> > > > >http://groups.google.com/group/puppet-users?hl=en. > > >>> > > -- > >>> > > You received this message because you are subscribed to the Google > >>> Groups > >>> > > "Puppet Users" group. > >>> > > To post to this group, send email to puppet-users@googlegroups.com. > >>> > > To unsubscribe from this group, send email to > >>> > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > >>> > > . > >>> > > For more options, visit this group at > >>> > >http://groups.google.com/group/puppet-users?hl=en. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Puppet Users" group. > >>> To post to this group, send email to puppet-users@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > >>> . > >>> For more options, visit this group at > >>>http://groups.google.com/group/puppet-users?hl=en. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Puppet Users" group. > >> To post to this group, send email to puppet-users@googlegroups.com. > >> To unsubscribe from this group, send email to > >> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-03 15:08 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
BTW: This was the latest nightly build. Thanks, Henry On Jun 3, 11:05 am, CraftyTech <hmmed...@gmail.com> wrote:> Hello Ohad, > > From the instructions you have posted, I tried to setup the > database via RAILS_ENV=production rake db:migrate, and then I got the > following error: > > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > This is the trace: > > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract_adapter.rb:219:in `log'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:323:in `execute'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:594:in `connect'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:203:in `initialize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `new'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in `send'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in > `new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:245:in > `checkout_new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:326:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:123:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:115:in > `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > 3113:in `quoted_table_name'' > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > 82:in `acts_as_audited'' > /code/foreman/app/models/host.rb:55 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:158:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:265:in `require_or_load'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:425:in `old_load_missing_constant'' > /code/foreman/config/initializers/ > fix_already_loading_missing_dependencies.rb:9:in > `load_missing_constant'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:80:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:92:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:361:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > string/inflections.rb:162:in `constantize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 157:in `observed_class'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 183:in `observed_classes'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 166:in `initialize'' > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 38:in `instantiate_observers'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `each'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `instantiate_observers'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:15:in `define_dispatcher_callbacks'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `evaluate_method'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:166:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `send'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:276:in `run_callbacks'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `send'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `run_prepare_callbacks'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 631:in `prepare_dispatcher'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 185:in `process'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `send'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `run'' > /code/foreman/config/environment.rb:9 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:521:in `new_constants_in'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > `invoke_task'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > Any Ideas? > > Thanks, > > Henry > > On Jun 2, 11:36 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > Hi, > > > Sorry, that tarbar does not include the required libraries, usehttp://theforeman.org/foreman-nightly.tar.bz2instead. > > > Ohad > > > On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > > yeah, its still the last stable version, > > > > You can get the latest development here - > > >http://github.com/ohadlevy/foreman/tarball/develop > > > Note that if you plan to rebuild the rpm, you should also use the latest > > > spec files form the extra/spec directory. > > > > Ohad > > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares <gustavosoa...@gmail.com>wrote: > > > >> I''ve installed foreman yesterday to play around.. > > > >> I''ve have used the tar.gz in the "src.rpm" file to install it... is it > > >> old? > > > >> Thanks in advance, > > >> Gus > > > >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > >>> Sounds great. I''m looking forward to the major release. > > > >>> On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: > > >>> > You might want to wait for another day or so, as a new major release is > > >>> just > > >>> > around the corner :) or you can test the release candidate (which seems > > >>> to > > >>> > be quite stable at the moment). > > > >>> > Ohad > > > >>> > On Mon, May 31, 2010 at 10:29 PM, > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-03 15:19 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
which db are you using? could it be that you have some error in config/database.yml file? Ohad On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech <hmmedina@gmail.com> wrote:> Hello Ohad, > > From the instructions you have posted, I tried to setup the > database via RAILS_ENV=production rake db:migrate, and then I got the > following error: > > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > This is the trace: > > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract_adapter.rb:219:in `log'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:323:in `execute'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:594:in `connect'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:203:in `initialize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `new'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in `send'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in > `new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:245:in > `checkout_new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:326:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:123:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:115:in > `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > 3113:in `quoted_table_name'' > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > 82:in `acts_as_audited'' > /code/foreman/app/models/host.rb:55 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:158:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:265:in `require_or_load'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:425:in `old_load_missing_constant'' > /code/foreman/config/initializers/ > fix_already_loading_missing_dependencies.rb:9:in > `load_missing_constant'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:80:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:92:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:361:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > string/inflections.rb:162:in `constantize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 157:in `observed_class'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 183:in `observed_classes'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 166:in `initialize'' > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 38:in `instantiate_observers'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `each'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `instantiate_observers'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:15:in `define_dispatcher_callbacks'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `evaluate_method'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:166:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `send'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:276:in `run_callbacks'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `send'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `run_prepare_callbacks'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 631:in `prepare_dispatcher'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 185:in `process'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `send'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `run'' > /code/foreman/config/environment.rb:9 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:521:in `new_constants_in'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > `invoke_task'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > > Any Ideas? > > Thanks, > > Henry > > > On Jun 2, 11:36 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > Hi, > > > > Sorry, that tarbar does not include the required libraries, usehttp:// > theforeman.org/foreman-nightly.tar.bz2instead. > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > > yeah, its still the last stable version, > > > > > You can get the latest development here - > > >http://github.com/ohadlevy/foreman/tarball/develop > > > Note that if you plan to rebuild the rpm, you should also use the > latest > > > spec files form the extra/spec directory. > > > > > Ohad > > > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares < > gustavosoa...@gmail.com>wrote: > > > > >> I''ve installed foreman yesterday to play around.. > > > > >> I''ve have used the tar.gz in the "src.rpm" file to install it... is it > > >> old? > > > > >> Thanks in advance, > > >> Gus > > > > >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > >>> Sounds great. I''m looking forward to the major release. > > > > >>> On May 31, 10:31 am, Ohad Levy <ohadl...@gmail.com> wrote: > > >>> > You might want to wait for another day or so, as a new major > release is > > >>> just > > >>> > around the corner :) or you can test the release candidate (which > seems > > >>> to > > >>> > be quite stable at the moment). > > > > >>> > Ohad > > > > >>> > On Mon, May 31, 2010 at 10:29 PM, CraftyTech <hmmed...@gmail.com> > > >>> wrote: > > >>> > > Thanks for the feedback. I''ll look it into it immediately. > > > > >>> > > Cheers, > > > > >>> > > Henry > > > > >>> > > On May 31, 10:16 am, Ohad Levy <ohadl...@gmail.com> wrote: > > >>> > > > Hi, > > > > >>> > > > The Foreman supports inventory and many other features - > seehttp:// > > >>> > > theforeman.org/projects/foreman/wiki/Features > > > > >>> > > > Ohad > > > > >>> > > > On Mon, May 31, 2010 at 10:14 PM, CraftyTech < > hmmed...@gmail.com> > > >>> wrote: > > >>> > > > > It can be either Dashboard or any other web interface for > Puppet. > > >>> I''d > > >>> > > > > be great for reporting on current inventory. Has any has > gotten > > >>> this > > >>> > > > > piece to work? Is it an intended feature, or wishful > thinking on > > >>> my > > >>> > > > > part? > > > > >>> > > > > -- > > >>> > > > > You received this message because you are subscribed to the > > >>> Google > > >>> > > Groups > > >>> > > > > "Puppet Users" group. > > >>> > > > > To post to this group, send email to > > >>> puppet-users@googlegroups.com. > > >>> > > > > To unsubscribe from this group, send email to > > >>> > > > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > > > > > > >>> > > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > > > > >>> <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > <puppet-users%25252Bunsubscribe@googlegroups.com<puppet-users%2525252Bunsubscribe@googlegroups.com> > > > > > > >>> > > > > . > > >>> > > > > For more options, visit this group at > > >>> > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > >>> > > -- > > >>> > > You received this message because you are subscribed to the > Google > > >>> Groups > > >>> > > "Puppet Users" group. > > >>> > > To post to this group, send email to > puppet-users@googlegroups.com. > > >>> > > To unsubscribe from this group, send email to > > >>> > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > >>> <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > <puppet-users%252Bunsubscribe@googlegroups.com<puppet-users%25252Bunsubscribe@googlegroups.com> > > > > > > >>> > > . > > >>> > > For more options, visit this group at > > >>> > >http://groups.google.com/group/puppet-users?hl=en. > > > > >>> -- > > >>> You received this message because you are subscribed to the Google > Groups > > >>> "Puppet Users" group. > > >>> To post to this group, send email to puppet-users@googlegroups.com. > > >>> To unsubscribe from this group, send email to > > >>> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > >>> . > > >>> For more options, visit this group at > > >>>http://groups.google.com/group/puppet-users?hl=en. > > > > >> -- > > >> You received this message because you are subscribed to the Google > Groups > > >> "Puppet Users" group. > > >> To post to this group, send email to puppet-users@googlegroups.com. > > >> To unsubscribe from this group, send email to > > >> puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > <puppet-users%2Bunsubscribe@googlegroups.com<puppet-users%252Bunsubscribe@googlegroups.com> > > > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-03 15:31 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
I''m using mysql 5.1.44 . I tested the config in the database.yml, by basically using the same credentials and logging in locally. I was able log in fine. Here''s a snippet: production: adapter: mysql database: foreman_prod username: foreman_user password: XXXXXXXXXXX encoding: utf8 I gave the user all access to the database too: GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH GRANT OPTION; I hope I"m not missing something. On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote:> which db are you using? could it be that you have some error in > config/database.yml file? > > Ohad > > On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech <hmmed...@gmail.com> wrote: > > Hello Ohad, > > > From the instructions you have posted, I tried to setup the > > database via RAILS_ENV=production rake db:migrate, and then I got the > > following error: > > > rake aborted! > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > This is the trace: > > > ** Invoke db:migrate (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > rake aborted! > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract_adapter.rb:219:in `log'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:75:in `new'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:223:in > > `new_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:245:in > > `checkout_new_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:326:in > > `retrieve_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:123:in > > `retrieve_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:115:in > > `connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > 3113:in `quoted_table_name'' > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > 82:in `acts_as_audited'' > > /code/foreman/app/models/host.rb:55 > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require'' > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:158:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:265:in `require_or_load'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:425:in `old_load_missing_constant'' > > /code/foreman/config/initializers/ > > fix_already_loading_missing_dependencies.rb:9:in > > `load_missing_constant'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:80:in `const_missing'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:92:in `const_missing'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:361:in `constantize'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:360:in `each'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:360:in `constantize'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > string/inflections.rb:162:in `constantize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 157:in `observed_class'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 183:in `observed_classes'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 166:in `initialize'' > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 38:in `instantiate_observers'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 36:in `each'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 36:in `instantiate_observers'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:182:in `call'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:182:in `evaluate_method'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:166:in `call'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `run'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `each'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `send'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `run'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:276:in `run_callbacks'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:51:in `send'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:51:in `run_prepare_callbacks'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 631:in `prepare_dispatcher'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 185:in `process'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 113:in `send'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 113:in `run'' > > /code/foreman/config/environment.rb:9 > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require'' > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:156:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:521:in `new_constants_in'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:156:in `require'' > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > `invoke_prerequisites'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > `invoke_prerequisites'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > `invoke_task'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > `standard_exception_handling'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > `standard_exception_handling'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > > /usr/bin/rake:19:in `load'' > > /usr/bin/rake:19 > > > Any Ideas? > > > Thanks, > > > Henry > > > On Jun 2, 11:36 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > Hi, > > > > Sorry, that tarbar does not include the required libraries, usehttp:// > > theforeman.org/foreman-nightly.tar.bz2instead. > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadl...@gmail.com> wrote: > > > > yeah, its still the last stable version, > > > > > You can get the latest development here - > > > >http://github.com/ohadlevy/foreman/tarball/develop > > > > Note that if you plan to rebuild the rpm, you should also use the > > latest > > > > spec files form the extra/spec directory. > > > > > Ohad > > > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares < > > gustavosoa...@gmail.com>wrote: > > > > >> I''ve installed foreman yesterday to play around.. > > > > >> I''ve have used the tar.gz in the "src.rpm" file to install it... is it > > > >> old? > > > > >> Thanks in advance, > > > >> Gus > > > > >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmed...@gmail.com> > > wrote: > > > > >>> Sounds great. I''m looking forward to > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-03 15:34 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
try without the encoding line see http://theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQL for a working example. cheers, Ohad On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech <hmmedina@gmail.com> wrote:> I''m using mysql 5.1.44 . I tested the config in the database.yml, by > basically using the same credentials and logging in locally. I was > able log in fine. Here''s a snippet: > > production: > adapter: mysql > database: foreman_prod > username: foreman_user > password: XXXXXXXXXXX > encoding: utf8 > > I gave the user all access to the database too: > > GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH GRANT > OPTION; > > I hope I"m not missing something. > > > > > On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote: > > which db are you using? could it be that you have some error in > > config/database.yml file? > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > Hello Ohad, > > > > > From the instructions you have posted, I tried to setup the > > > database via RAILS_ENV=production rake db:migrate, and then I got the > > > following error: > > > > > rake aborted! > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > > > This is the trace: > > > > > ** Invoke db:migrate (first_time) > > > ** Invoke environment (first_time) > > > ** Execute environment > > > rake aborted! > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:223:in > > > `new_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:245:in > > > `checkout_new_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:326:in > > > `retrieve_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:123:in > > > `retrieve_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:115:in > > > `connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > 3113:in `quoted_table_name'' > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > 82:in `acts_as_audited'' > > > /code/foreman/app/models/host.rb:55 > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require'' > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:158:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:265:in `require_or_load'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:425:in `old_load_missing_constant'' > > > /code/foreman/config/initializers/ > > > fix_already_loading_missing_dependencies.rb:9:in > > > `load_missing_constant'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:80:in `const_missing'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:92:in `const_missing'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:361:in `constantize'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:360:in `each'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:360:in `constantize'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > string/inflections.rb:162:in `constantize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 157:in `observed_class'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 183:in `observed_classes'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 166:in `initialize'' > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 38:in `instantiate_observers'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 36:in `each'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 36:in `instantiate_observers'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:182:in `call'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:182:in `evaluate_method'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:166:in `call'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `run'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `each'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `send'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `run'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:276:in `run_callbacks'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:51:in `send'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 631:in `prepare_dispatcher'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 185:in `process'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 113:in `send'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 113:in `run'' > > > /code/foreman/config/environment.rb:9 > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require'' > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:156:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:521:in `new_constants_in'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:156:in `require'' > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > `invoke_prerequisites'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > `invoke_prerequisites'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > `invoke_task'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > `standard_exception_handling'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > `standard_exception_handling'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > > > /usr/bin/rake:19:in `load'' > > > /usr/bin/rake:19 > > > > > Any Ideas? > > > > > Thanks, > > > > > Henry > > > > > On Jun 2, 11:36 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > > Hi, > > > > > > Sorry, that tarbar does not include the required libraries, > usehttp:// > > > theforeman.org/foreman-nightly.tar.bz2instead. > > > > > > Ohad > > > > > > On Thu, Jun 3, 2010 at 11:33 AM, Ohad Levy <ohadl...@gmail.com> > wrote: > > > > > yeah, its still the last stable version, > > > > > > > You can get the latest development here - > > > > >http://github.com/ohadlevy/foreman/tarball/develop > > > > > Note that if you plan to rebuild the rpm, you should also use the > > > latest > > > > > spec files form the extra/spec directory. > > > > > > > Ohad > > > > > > > On Thu, Jun 3, 2010 at 12:25 AM, Gustavo Soares < > > > gustavosoa...@gmail.com>wrote: > > > > > > >> I''ve installed foreman yesterday to play around.. > > > > > > >> I''ve have used the tar.gz in the "src.rpm" file to install it... > is it > > > > >> old? > > > > > > >> Thanks in advance, > > > > >> Gus > > > > > > >> On Wed, Jun 2, 2010 at 12:28 PM, CraftyTech <hmmed...@gmail.com> > > > wrote: > > > > > > >>> Sounds great. I''m looking forward to > > > > ... > > > > read more » > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-03 15:58 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
Ok, we got a little further now : ) This is the new error: rake aborted! NoMethodError: undefined method `ord'' for 0:Fixnum: SET SQL_AUTO_IS_NULL=0 Here''s the trace: (in /code/foreman) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! NoMethodError: undefined method `ord'' for 0:Fixnum: SET SQL_AUTO_IS_NULL=0 /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract_adapter.rb:219:in `log'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:323:in `execute'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:603:in `configure_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:594:in `connect'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:203:in `initialize'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:75:in `new'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:223:in `send'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:223:in `new_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:188:in `checkout'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:184:in `loop'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:184:in `checkout'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:183:in `checkout'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:98:in `connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_specification.rb:115:in `connection'' /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: 3113:in `quoted_table_name'' /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: 82:in `acts_as_audited'' /code/foreman/app/models/host.rb:55 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:158:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:265:in `require_or_load'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:425:in `old_load_missing_constant'' /code/foreman/config/initializers/ fix_already_loading_missing_dependencies.rb:9:in `load_missing_constant'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:80:in `const_missing'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:92:in `const_missing'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:361:in `constantize'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:360:in `each'' /code/foreman/vendor/rails/activesupport/lib/active_support/ inflector.rb:360:in `constantize'' /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ string/inflections.rb:162:in `constantize'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 157:in `observed_class'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 183:in `observed_classes'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 166:in `initialize'' /usr/lib/ruby/1.8/singleton.rb:95:in `new'' /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 38:in `instantiate_observers'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 36:in `each'' /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: 36:in `instantiate_observers'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:15:in `define_dispatcher_callbacks'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:182:in `call'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:182:in `evaluate_method'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:166:in `call'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `run'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `each'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `send'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:90:in `run'' /code/foreman/vendor/rails/activesupport/lib/active_support/ callbacks.rb:276:in `run_callbacks'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:51:in `send'' /code/foreman/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:51:in `run_prepare_callbacks'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 631:in `prepare_dispatcher'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 185:in `process'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 113:in `send'' /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: 113:in `run'' /code/foreman/config/environment.rb:9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:156:in `require'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:521:in `new_constants_in'' /code/foreman/vendor/rails/activesupport/lib/active_support/ dependencies.rb:156:in `require'' /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in `invoke_prerequisites'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `invoke_prerequisites'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load'' /usr/bin/rake:19 Is there an optimal config that''s required for the /etc/my.cnf ? Thanks, On Jun 3, 11:34 am, Ohad Levy <ohadl...@gmail.com> wrote:> try without the encoding line > seehttp://theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQLfor > a working example. > > cheers, > Ohad > > On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech <hmmed...@gmail.com> wrote: > > I''m using mysql 5.1.44 . I tested the config in the database.yml, by > > basically using the same credentials and logging in locally. I was > > able log in fine. Here''s a snippet: > > > production: > > adapter: mysql > > database: foreman_prod > > username: foreman_user > > password: XXXXXXXXXXX > > encoding: utf8 > > > I gave the user all access to the database too: > > > GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH GRANT > > OPTION; > > > I hope I"m not missing something. > > > On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > which db are you using? could it be that you have some error in > > > config/database.yml file? > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Hello Ohad, > > > > > From the instructions you have posted, I tried to setup the > > > > database via RAILS_ENV=production rake db:migrate, and then I got the > > > > following error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > > > This is the trace: > > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES ''utf8'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-03 16:08 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
interesting, this seems related to your version of ruby (is it 1.8.6?) what do you get when you run the following in a shell? ruby -v -e "puts ''abc''[1].ord" Ohad On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmedina@gmail.com> wrote:> Ok, we got a little further now : ) This is the new error: > > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > SQL_AUTO_IS_NULL=0 > > Here''s the trace: > > (in /code/foreman) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > SQL_AUTO_IS_NULL=0 > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract_adapter.rb:219:in `log'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:323:in `execute'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:594:in `connect'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:203:in `initialize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `new'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in `send'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:223:in > `new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:245:in > `checkout_new_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:326:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:123:in > `retrieve_connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_specification.rb:115:in > `connection'' > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > 3113:in `quoted_table_name'' > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > 82:in `acts_as_audited'' > /code/foreman/app/models/host.rb:55 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:158:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:265:in `require_or_load'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:425:in `old_load_missing_constant'' > /code/foreman/config/initializers/ > fix_already_loading_missing_dependencies.rb:9:in > `load_missing_constant'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:80:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:92:in `const_missing'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:361:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > inflector.rb:360:in `constantize'' > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > string/inflections.rb:162:in `constantize'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 157:in `observed_class'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 183:in `observed_classes'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 166:in `initialize'' > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 38:in `instantiate_observers'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `each'' > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > 36:in `instantiate_observers'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:15:in `define_dispatcher_callbacks'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:182:in `evaluate_method'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:166:in `call'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `each'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `send'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:90:in `run'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:276:in `run_callbacks'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `send'' > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:51:in `run_prepare_callbacks'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 631:in `prepare_dispatcher'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 185:in `process'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `send'' > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > 113:in `run'' > /code/foreman/config/environment.rb:9 > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:521:in `new_constants_in'' > /code/foreman/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require'' > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > `invoke_prerequisites'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > `invoke_with_call_chain'' > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > `invoke_with_call_chain'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > `invoke_task'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > Is there an optimal config that''s required for the /etc/my.cnf ? > > Thanks, > > > On Jun 3, 11:34 am, Ohad Levy <ohadl...@gmail.com> wrote: > > try without the encoding line > > seehttp:// > theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQLfor > > a working example. > > > > cheers, > > Ohad > > > > On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > I''m using mysql 5.1.44 . I tested the config in the database.yml, by > > > basically using the same credentials and logging in locally. I was > > > able log in fine. Here''s a snippet: > > > > > production: > > > adapter: mysql > > > database: foreman_prod > > > username: foreman_user > > > password: XXXXXXXXXXX > > > encoding: utf8 > > > > > I gave the user all access to the database too: > > > > > GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH GRANT > > > OPTION; > > > > > I hope I"m not missing something. > > > > > On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > > which db are you using? could it be that you have some error in > > > > config/database.yml file? > > > > > > Ohad > > > > > > On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > > Hello Ohad, > > > > > > > From the instructions you have posted, I tried to setup the > > > > > database via RAILS_ENV=production rake db:migrate, and then I got > the > > > > > following error: > > > > > > > rake aborted! > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES > ''utf8'' > > > > > > > This is the trace: > > > > > > > ** Invoke db:migrate (first_time) > > > > > ** Invoke environment (first_time) > > > > > ** Execute environment > > > > > rake aborted! > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET NAMES > ''utf8'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:599:in `configure_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > > `new_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > > `checkout_new_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > > `retrieve_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > > `retrieve_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > > `connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > > 3113:in `quoted_table_name'' > > > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > > 82:in `acts_as_audited'' > > > > > /code/foreman/app/models/host.rb:55 > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > `gem_original_require'' > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:158:in `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:265:in `require_or_load'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > > /code/foreman/config/initializers/ > > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > > `load_missing_constant'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:80:in `const_missing'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:92:in `const_missing'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:361:in `constantize'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:360:in `each'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:360:in `constantize'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > > string/inflections.rb:162:in `constantize'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 157:in `observed_class'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 183:in `observed_classes'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 166:in `initialize'' > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 38:in `instantiate_observers'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 36:in `each'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 36:in `instantiate_observers'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:182:in `call'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:182:in `evaluate_method'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:166:in `call'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `run'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `each'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `send'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `run'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:276:in `run_callbacks'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:51:in `send'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 631:in `prepare_dispatcher'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 185:in `process'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 113:in `send'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 113:in `run'' > > > > > /code/foreman/config/environment.rb:9 > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > `gem_original_require'' > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:156:in `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:521:in `new_constants_in'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:156:in `require'' > > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > > `invoke_prerequisites'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > > `invoke_prerequisites'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > > `invoke_task'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in > `top_level'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in > `top_level'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > > `standard_exception_handling'' > > > > ... > > > > read more » > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-03 17:10 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
ruby 1.8.5 (2006-08-25) [i386-linux] -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) 1.8.5... is 1.8.6 a requirement? Thanks, Henry On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote:> interesting, this seems related to your version of ruby (is it 1.8.6?) > > what do you get when you run the following in a shell? > > ruby -v -e "puts ''abc''[1].ord" > > Ohad > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > Ok, we got a little further now : ) This is the new error: > > > rake aborted! > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > SQL_AUTO_IS_NULL=0 > > > Here''s the trace: > > > (in /code/foreman) > > ** Invoke db:migrate (first_time) > > ** Invoke environment (first_time) > > ** Execute environment > > rake aborted! > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > SQL_AUTO_IS_NULL=0 > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract_adapter.rb:219:in `log'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:75:in `new'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:223:in > > `new_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:245:in > > `checkout_new_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_pool.rb:326:in > > `retrieve_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:123:in > > `retrieve_connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > connection_adapters/abstract/connection_specification.rb:115:in > > `connection'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > 3113:in `quoted_table_name'' > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > 82:in `acts_as_audited'' > > /code/foreman/app/models/host.rb:55 > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require'' > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:158:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:265:in `require_or_load'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:425:in `old_load_missing_constant'' > > /code/foreman/config/initializers/ > > fix_already_loading_missing_dependencies.rb:9:in > > `load_missing_constant'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:80:in `const_missing'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:92:in `const_missing'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:361:in `constantize'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:360:in `each'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > inflector.rb:360:in `constantize'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > string/inflections.rb:162:in `constantize'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 157:in `observed_class'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 183:in `observed_classes'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 166:in `initialize'' > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 38:in `instantiate_observers'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 36:in `each'' > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > 36:in `instantiate_observers'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:182:in `call'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:182:in `evaluate_method'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:166:in `call'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `run'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `each'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `send'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:90:in `run'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > callbacks.rb:276:in `run_callbacks'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:51:in `send'' > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > dispatcher.rb:51:in `run_prepare_callbacks'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 631:in `prepare_dispatcher'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 185:in `process'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 113:in `send'' > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > 113:in `run'' > > /code/foreman/config/environment.rb:9 > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require'' > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:156:in `require'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:521:in `new_constants_in'' > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > dependencies.rb:156:in `require'' > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > `invoke_prerequisites'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > `invoke_prerequisites'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > `invoke_with_call_chain'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > `invoke_task'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > `standard_exception_handling'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > `standard_exception_handling'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > > /usr/bin/rake:19:in `load'' > > /usr/bin/rake:19 > > > Is there an optimal config that''s required for the /etc/my.cnf ? > > > Thanks, > > > On Jun 3, 11:34 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > try without the encoding line > > > seehttp:// > > theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQLfor > > > a working example. > > > > cheers, > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > I''m using mysql 5.1.44 . I tested the config in the database.yml, by > > > > basically using the same credentials and logging in locally. I was > > > > able log in fine. Here''s a snippet: > > > > > production: > > > > adapter: mysql > > > > database: foreman_prod > > > > username: foreman_user > > > > password: XXXXXXXXXXX > > > > encoding: utf8 > > > > > I gave the user all access to the database too: > > > > > GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH GRANT > > > > OPTION; > > > > > I hope I"m not missing something. > > > > > On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > > > which db are you using? could it be that you have some > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-04 02:06 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
1.8.6 is not required really, but it seems that your core ruby is missing a method. which distribution is it? did you install from source and never maintained it? (or maybe the package is out of date?) I can provide a monkey patch for this, but It seems like an issue with your ruby installation. Ohad On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmedina@gmail.com> wrote:> ruby 1.8.5 (2006-08-25) [i386-linux] > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > 1.8.5... is 1.8.6 a requirement? > > Thanks, > > Henry > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > ** Invoke db:migrate (first_time) > > > ** Invoke environment (first_time) > > > ** Execute environment > > > rake aborted! > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > SQL_AUTO_IS_NULL=0 > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:223:in > > > `new_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:245:in > > > `checkout_new_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:326:in > > > `retrieve_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:123:in > > > `retrieve_connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > connection_adapters/abstract/connection_specification.rb:115:in > > > `connection'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > 3113:in `quoted_table_name'' > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > 82:in `acts_as_audited'' > > > /code/foreman/app/models/host.rb:55 > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require'' > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:158:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:265:in `require_or_load'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:425:in `old_load_missing_constant'' > > > /code/foreman/config/initializers/ > > > fix_already_loading_missing_dependencies.rb:9:in > > > `load_missing_constant'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:80:in `const_missing'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:92:in `const_missing'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:361:in `constantize'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:360:in `each'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > inflector.rb:360:in `constantize'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > string/inflections.rb:162:in `constantize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 157:in `observed_class'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 183:in `observed_classes'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 166:in `initialize'' > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 38:in `instantiate_observers'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 36:in `each'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > 36:in `instantiate_observers'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:182:in `call'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:182:in `evaluate_method'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:166:in `call'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `run'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `each'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `send'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:90:in `run'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > callbacks.rb:276:in `run_callbacks'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:51:in `send'' > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 631:in `prepare_dispatcher'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 185:in `process'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 113:in `send'' > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > 113:in `run'' > > > /code/foreman/config/environment.rb:9 > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require'' > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:156:in `require'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:521:in `new_constants_in'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > dependencies.rb:156:in `require'' > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > `invoke_prerequisites'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > `invoke_prerequisites'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > `invoke_with_call_chain'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > `invoke_task'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > `standard_exception_handling'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > `standard_exception_handling'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > > > /usr/bin/rake:19:in `load'' > > > /usr/bin/rake:19 > > > > > Is there an optimal config that''s required for the /etc/my.cnf ? > > > > > Thanks, > > > > > On Jun 3, 11:34 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > > try without the encoding line > > > > seehttp:// > > > theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQLfor > > > > a working example. > > > > > > cheers, > > > > Ohad > > > > > > On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > > I''m using mysql 5.1.44 . I tested the config in the database.yml, > by > > > > > basically using the same credentials and logging in locally. I was > > > > > able log in fine. Here''s a snippet: > > > > > > > production: > > > > > adapter: mysql > > > > > database: foreman_prod > > > > > username: foreman_user > > > > > password: XXXXXXXXXXX > > > > > encoding: utf8 > > > > > > > I gave the user all access to the database too: > > > > > > > GRANT ALL PRIVILEGES ON *.* TO ''foreman_user''@''localhost'' WITH > GRANT > > > > > OPTION; > > > > > > > I hope I"m not missing something. > > > > > > > On Jun 3, 11:19 am, Ohad Levy <ohadl...@gmail.com> wrote: > > > > > > which db are you using? could it be that you have some > > > > ... > > > > read more » > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 02:30 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If you can provide a patch, that''d be great. Thanks for the assist. Cheers, Henry On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote:> 1.8.6 is not required really, but it seems that your core ruby is missing a > method. > which distribution is it? did you install from source and never maintained > it? (or maybe the package is out of date?) > > I can provide a monkey patch for this, but It seems like an issue with your > ruby installation. > > Ohad > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > ruby 1.8.5 (2006-08-25) [i386-linux] > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > 1.8.5... is 1.8.6 a requirement? > > > Thanks, > > > Henry > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 02:30 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If you can provide a patch, that''d be great. Thanks for the assist. Cheers, Henry On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote:> 1.8.6 is not required really, but it seems that your core ruby is missing a > method. > which distribution is it? did you install from source and never maintained > it? (or maybe the package is out of date?) > > I can provide a monkey patch for this, but It seems like an issue with your > ruby installation. > > Ohad > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > ruby 1.8.5 (2006-08-25) [i386-linux] > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > 1.8.5... is 1.8.6 a requirement? > > > Thanks, > > > Henry > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 02:30 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If you can provide a patch, that''d be great. Thanks for the assist. Cheers, Henry On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote:> 1.8.6 is not required really, but it seems that your core ruby is missing a > method. > which distribution is it? did you install from source and never maintained > it? (or maybe the package is out of date?) > > I can provide a monkey patch for this, but It seems like an issue with your > ruby installation. > > Ohad > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > ruby 1.8.5 (2006-08-25) [i386-linux] > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > 1.8.5... is 1.8.6 a requirement? > > > Thanks, > > > Henry > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 02:45 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If you can provide a patch, that''d be great. Thanks for the assist. Cheers, Henry On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote:> 1.8.6 is not required really, but it seems that your core ruby is missing a > method. > which distribution is it? did you install from source and never maintained > it? (or maybe the package is out of date?) > > I can provide a monkey patch for this, but It seems like an issue with your > ruby installation. > > Ohad > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > ruby 1.8.5 (2006-08-25) [i386-linux] > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > 1.8.5... is 1.8.6 a requirement? > > > Thanks, > > > Henry > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-04 02:46 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
Henry, can you try with an sqlite db? just to be sure I''m not looking in the wrong direction? additionally, maybe you can join us on irc at #theforeman or #puppet, will probably be much faster :) Ohad On Fri, Jun 4, 2010 at 10:30 AM, CraftyTech <hmmedina@gmail.com> wrote:> It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If > you can provide a patch, that''d be great. Thanks for the assist. > > Cheers, > > Henry > > On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > 1.8.6 is not required really, but it seems that your core ruby is missing > a > > method. > > which distribution is it? did you install from source and never > maintained > > it? (or maybe the package is out of date?) > > > > I can provide a monkey patch for this, but It seems like an issue with > your > > ruby installation. > > > > Ohad > > > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > > > 1.8.5... is 1.8.6 a requirement? > > > > > Thanks, > > > > > Henry > > > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > > interesting, this seems related to your version of ruby (is it > 1.8.6?) > > > > > > what do you get when you run the following in a shell? > > > > > > ruby -v -e "puts ''abc''[1].ord" > > > > > > Ohad > > > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > > Ok, we got a little further now : ) This is the new error: > > > > > > > rake aborted! > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > SQL_AUTO_IS_NULL=0 > > > > > > > Here''s the trace: > > > > > > > (in /code/foreman) > > > > > ** Invoke db:migrate (first_time) > > > > > ** Invoke environment (first_time) > > > > > ** Execute environment > > > > > rake aborted! > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > SQL_AUTO_IS_NULL=0 > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > > `new_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > > `checkout_new_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > > `retrieve_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > > `retrieve_connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > > `connection'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > > 3113:in `quoted_table_name'' > > > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > > 82:in `acts_as_audited'' > > > > > /code/foreman/app/models/host.rb:55 > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > `gem_original_require'' > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:158:in `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:265:in `require_or_load'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > > /code/foreman/config/initializers/ > > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > > `load_missing_constant'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:80:in `const_missing'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:92:in `const_missing'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:361:in `constantize'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:360:in `each'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > inflector.rb:360:in `constantize'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > > string/inflections.rb:162:in `constantize'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 157:in `observed_class'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 183:in `observed_classes'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 166:in `initialize'' > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 38:in `instantiate_observers'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 36:in `each'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > 36:in `instantiate_observers'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:182:in `call'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:182:in `evaluate_method'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:166:in `call'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `run'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `each'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `send'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:90:in `run'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > callbacks.rb:276:in `run_callbacks'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:51:in `send'' > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 631:in `prepare_dispatcher'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 185:in `process'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 113:in `send'' > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > 113:in `run'' > > > > > /code/foreman/config/environment.rb:9 > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > `gem_original_require'' > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:156:in `require'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:521:in `new_constants_in'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > dependencies.rb:156:in `require'' > > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > > `invoke_prerequisites'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > > `invoke_prerequisites'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > > `invoke_with_call_chain'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > > `invoke_task'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in > `top_level'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in > `top_level'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > > `standard_exception_handling'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in > `top_level'' > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > > > ... > > > > read more » > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 02:54 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If you can provide a patch, that''d be great. Thanks for the assist. Cheers, Henry On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote:> 1.8.6 is not required really, but it seems that your core ruby is missing a > method. > which distribution is it? did you install from source and never maintained > it? (or maybe the package is out of date?) > > I can provide a monkey patch for this, but It seems like an issue with your > ruby installation. > > Ohad > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > ruby 1.8.5 (2006-08-25) [i386-linux] > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > 1.8.5... is 1.8.6 a requirement? > > > Thanks, > > > Henry > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > interesting, this seems related to your version of ruby (is it 1.8.6?) > > > > what do you get when you run the following in a shell? > > > > ruby -v -e "puts ''abc''[1].ord" > > > > Ohad > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> wrote: > > > > Ok, we got a little further now : ) This is the new error: > > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > > Here''s the trace: > > > > > (in /code/foreman) > > > > ** Invoke db:migrate (first_time) > > > > ** Invoke environment (first_time) > > > > ** Execute environment > > > > rake aborted! > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > SQL_AUTO_IS_NULL=0 > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > `new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > `checkout_new_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > `retrieve_connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > `connection'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > 3113:in `quoted_table_name'' > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > 82:in `acts_as_audited'' > > > > /code/foreman/app/models/host.rb:55 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:158:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:265:in `require_or_load'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > /code/foreman/config/initializers/ > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > `load_missing_constant'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:80:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:92:in `const_missing'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:361:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > inflector.rb:360:in `constantize'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > string/inflections.rb:162:in `constantize'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 157:in `observed_class'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 183:in `observed_classes'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 166:in `initialize'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 38:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `each'' > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > 36:in `instantiate_observers'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:182:in `evaluate_method'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:166:in `call'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `each'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `send'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:90:in `run'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > callbacks.rb:276:in `run_callbacks'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `send'' > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 631:in `prepare_dispatcher'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 185:in `process'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `send'' > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > 113:in `run'' > > > > /code/foreman/config/environment.rb:9 > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > `gem_original_require'' > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:521:in `new_constants_in'' > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > dependencies.rb:156:in `require'' > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in > > > > `invoke_prerequisites'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in > > > > `invoke_with_call_chain'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in > > > > `invoke_task'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > > > > `standard_exception_handling'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'' > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Jun-04 14:20 UTC
[Puppet Users] Re: storing facter facts in Dashboard.....
Ohad, I''m setting up irc at work (never use it before). What are the details to communicating w/ #theforeman or #puppet? Is there a channel that I''m supposed to go to? Thanks, Henry On Jun 3, 10:46 pm, Ohad Levy <ohadl...@gmail.com> wrote:> Henry, > > can you try with an sqlite db? just to be sure I''m not looking in the wrong > direction? > additionally, maybe you can join us on irc at #theforeman or #puppet, will > probably be much faster :) > > Ohad > > On Fri, Jun 4, 2010 at 10:30 AM, CraftyTech <hmmed...@gmail.com> wrote: > > It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If > > you can provide a patch, that''d be great. Thanks for the assist. > > > Cheers, > > > Henry > > > On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > 1.8.6 is not required really, but it seems that your core ruby is missing > > a > > > method. > > > which distribution is it? did you install from source and never > > maintained > > > it? (or maybe the package is out of date?) > > > > I can provide a monkey patch for this, but It seems like an issue with > > your > > > ruby installation. > > > > Ohad > > > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> wrote: > > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > > > 1.8.5... is 1.8.6 a requirement? > > > > > Thanks, > > > > > Henry > > > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > > > interesting, this seems related to your version of ruby (is it > > 1.8.6?) > > > > > > what do you get when you run the following in a shell? > > > > > > ruby -v -e "puts ''abc''[1].ord" > > > > > > Ohad > > > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> > > wrote: > > > > > > Ok, we got a little further now : ) This is the new error: > > > > > > > rake aborted! > > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > > SQL_AUTO_IS_NULL=0 > > > > > > > Here''s the trace: > > > > > > > (in /code/foreman) > > > > > > ** Invoke db:migrate (first_time) > > > > > > ** Invoke environment (first_time) > > > > > > ** Execute environment > > > > > > rake aborted! > > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > > SQL_AUTO_IS_NULL=0 > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > > > `new_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > > > `checkout_new_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'' > > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > > > `retrieve_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > > > `retrieve_connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > > > `connection'' > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > > > 3113:in `quoted_table_name'' > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > > > 82:in `acts_as_audited'' > > > > > > /code/foreman/app/models/host.rb:55 > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > > `gem_original_require'' > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:158:in `require'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:265:in `require_or_load'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > > > /code/foreman/config/initializers/ > > > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > > > `load_missing_constant'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:80:in `const_missing'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:92:in `const_missing'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > inflector.rb:361:in `constantize'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > inflector.rb:360:in `each'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > inflector.rb:360:in `constantize'' > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > > > string/inflections.rb:162:in `constantize'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 157:in `observed_class'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 183:in `observed_classes'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 166:in `initialize'' > > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 38:in `instantiate_observers'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 36:in `each'' > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > 36:in `instantiate_observers'' > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:182:in `call'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:182:in `evaluate_method'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:166:in `call'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:90:in `run'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:90:in `each'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:90:in `send'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:90:in `run'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > callbacks.rb:276:in `run_callbacks'' > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > dispatcher.rb:51:in `send'' > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > 631:in `prepare_dispatcher'' > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > 185:in `process'' > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > 113:in `send'' > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > 113:in `run'' > > > > > > /code/foreman/config/environment.rb:9 > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > > `gem_original_require'' > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:156:in `require'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:521:in `new_constants_in'' > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > dependencies.rb:156:in `require'' > > > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'' > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'' > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'' > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'' > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > > > `invoke_with_call_chain'' > > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > ... > > read more »-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Jun-04 14:57 UTC
Re: [Puppet Users] Re: storing facter facts in Dashboard.....
http://projects.puppetlabs.com/projects/puppet/wiki/IRC_Channel On Fri, Jun 4, 2010 at 10:20 PM, CraftyTech <hmmedina@gmail.com> wrote:> Ohad, > > I''m setting up irc at work (never use it before). What are the > details to communicating w/ #theforeman or #puppet? Is there a > channel that I''m supposed to go to? > > Thanks, > > Henry > > On Jun 3, 10:46 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > Henry, > > > > can you try with an sqlite db? just to be sure I''m not looking in the > wrong > > direction? > > additionally, maybe you can join us on irc at #theforeman or #puppet, > will > > probably be much faster :) > > > > Ohad > > > > On Fri, Jun 4, 2010 at 10:30 AM, CraftyTech <hmmed...@gmail.com> wrote: > > > It''s centos 5.4 x86 which default ruby install is 1.8.5 (RPM). If > > > you can provide a patch, that''d be great. Thanks for the assist. > > > > > Cheers, > > > > > Henry > > > > > On Jun 3, 10:06 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > > 1.8.6 is not required really, but it seems that your core ruby is > missing > > > a > > > > method. > > > > which distribution is it? did you install from source and never > > > maintained > > > > it? (or maybe the package is out of date?) > > > > > > I can provide a monkey patch for this, but It seems like an issue > with > > > your > > > > ruby installation. > > > > > > Ohad > > > > > > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech <hmmed...@gmail.com> > wrote: > > > > > ruby 1.8.5 (2006-08-25) [i386-linux] > > > > > -e:1: undefined method `ord'' for 98:Fixnum (NoMethodError) > > > > > > > 1.8.5... is 1.8.6 a requirement? > > > > > > > Thanks, > > > > > > > Henry > > > > > > > On Jun 3, 12:08 pm, Ohad Levy <ohadl...@gmail.com> wrote: > > > > > > interesting, this seems related to your version of ruby (is it > > > 1.8.6?) > > > > > > > > what do you get when you run the following in a shell? > > > > > > > > ruby -v -e "puts ''abc''[1].ord" > > > > > > > > Ohad > > > > > > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech <hmmed...@gmail.com> > > > wrote: > > > > > > > Ok, we got a little further now : ) This is the new error: > > > > > > > > > rake aborted! > > > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > > > SQL_AUTO_IS_NULL=0 > > > > > > > > > Here''s the trace: > > > > > > > > > (in /code/foreman) > > > > > > > ** Invoke db:migrate (first_time) > > > > > > > ** Invoke environment (first_time) > > > > > > > ** Execute environment > > > > > > > rake aborted! > > > > > > > NoMethodError: undefined method `ord'' for 0:Fixnum: SET > > > > > > > SQL_AUTO_IS_NULL=0 > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract_adapter.rb:219:in `log'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:323:in `execute'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:603:in > `configure_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:594:in `connect'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:75:in `new'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:223:in > > > > > > > `new_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:245:in > > > > > > > `checkout_new_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:188:in > `checkout'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:184:in > `checkout'' > > > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:183:in > `checkout'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:98:in > `connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_pool.rb:326:in > > > > > > > `retrieve_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_specification.rb:123:in > > > > > > > `retrieve_connection'' > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/ > > > > > > > connection_adapters/abstract/connection_specification.rb:115:in > > > > > > > `connection'' > > > > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb: > > > > > > > 3113:in `quoted_table_name'' > > > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb: > > > > > > > 82:in `acts_as_audited'' > > > > > > > /code/foreman/app/models/host.rb:55 > > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > > > `gem_original_require'' > > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `require'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:158:in `require'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:265:in `require_or_load'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:425:in `old_load_missing_constant'' > > > > > > > /code/foreman/config/initializers/ > > > > > > > fix_already_loading_missing_dependencies.rb:9:in > > > > > > > `load_missing_constant'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:80:in `const_missing'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:92:in `const_missing'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > inflector.rb:361:in `constantize'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > inflector.rb:360:in `each'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > inflector.rb:360:in `constantize'' > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/ > > > > > > > string/inflections.rb:162:in `constantize'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 157:in `observed_class'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 183:in `observed_classes'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 166:in `initialize'' > > > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `new'' > > > > > > > /usr/lib/ruby/1.8/singleton.rb:95:in `instance'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 38:in `instantiate_observers'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 36:in `each'' > > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb: > > > > > > > 36:in `instantiate_observers'' > > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > > dispatcher.rb:15:in `define_dispatcher_callbacks'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:182:in `call'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:182:in `evaluate_method'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:166:in `call'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:90:in `run'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:90:in `each'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:90:in `send'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:90:in `run'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > callbacks.rb:276:in `run_callbacks'' > > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > > dispatcher.rb:51:in `send'' > > > > > > > /code/foreman/vendor/rails/actionpack/lib/action_controller/ > > > > > > > dispatcher.rb:51:in `run_prepare_callbacks'' > > > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > > 631:in `prepare_dispatcher'' > > > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > > 185:in `process'' > > > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > > 113:in `send'' > > > > > > > > /code/foreman/config/../vendor/rails/railties/lib/initializer.rb: > > > > > > > 113:in `run'' > > > > > > > /code/foreman/config/environment.rb:9 > > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > > > > > `gem_original_require'' > > > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `require'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:156:in `require'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:521:in `new_constants_in'' > > > > > > > /code/foreman/vendor/rails/activesupport/lib/active_support/ > > > > > > > dependencies.rb:156:in `require'' > > > > > > > /code/foreman/vendor/rails/railties/lib/tasks/misc.rake:4 > > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in > `call'' > > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in > `execute'' > > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in > `each'' > > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in > `execute'' > > > > > > > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in > > > > > > > `invoke_with_call_chain'' > > > > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'' > > > > ... > > > > read more » > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.