Fixed by uninstalling mysql gem and installing ruby-mysql using yum.
On Oct 21, 12:37 pm, sysborg <dimecybo...@gmail.com> wrote: > puppet version 2.7.3 > > Change the activerecord and rails versions as per doc. > > rails 2.2.2 > activerecord 2.3.5 > > Now I get the following error > =================== > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: NULL pointer given > ================== > > The database contains the following information for host. > =================== > | id | name | ip | environment | last_compile | > last_freshcheck | last_report | updated_at | source_file_id | > created_at | > +----+----------------+------+-------------+-------------- > +-----------------+-------------+---------------------+---------------- > +---------------------+ > | 1 | testdb | NULL | NULL | NULL | NULL | > NULL | 2011-10-21 02:34:15 | NULL | 2011-10-21 > 02:34:15 | > ==================== > > On Oct 21, 11:15 am, sysborg <dimecybo...@gmail.com> wrote: > > > > > > > > > gem versions > > > activerecord 3.1.1 > > rails 3.0.1 > > > On Oct 21, 9:33 am, sysborg <dimecybo...@gmail.com> wrote: > > > > master log > > > ====================== > > > > err: Could not call: TypeError: unknown buffer_type: 241744256: > > > SELECT `hosts`.* FROM `hosts` WHERE `hosts`.`name` = 'testdb' LIMIT > > > 1 > > > ======================= > > > > Agent log > > > ======================= > > > [root@testdb ~]$ puppetd --test > > > err: Could not retrieve catalog: TypeError: unknown buffer_type: > > > 241744256: SELECT `hosts`.* FROM `hosts` WHERE `hosts`.`name` = > > > 'testdb' LIMIT 1 > > > warning: Not using cache on failed catalog > > > ========================== > > > > On Oct 21, 9:24 am, Scott Smith <sc...@ohlol.net> wrote: > > > > > Run puppet. > > > > > On Thu, Oct 20, 2011 at 8:57 PM, dime cyborgian > > > > <dimecybo...@gmail.com>wrote: > > > > > > I Get the initial table structure. But the tables are not populated > > > > > with > > > > > the data such as hosts, resources... etc. > > > > > > On Thu, Oct 20, 2011 at 5:30 PM, Bernd Adamowicz < > > > > > bernd.adamow...@esailors.de> wrote: > > > > > >> If you really dropped the database you have to recreate it before the > > > > >> first Puppet run: > > > > > >> 05 mysql> create database puppet; > > > > >> 06 Query OK, 1 row affected (0.00 sec) > > > > >> 07 > > > > >> 08 mysql> grant all privileges on puppet.* to > > > > >> puppet@localhostidentified by 'xxx'; > > > > >> 09 Query OK, 0 rows affected (0.00 sec) > > > > > >> The initial table structure will then be done by Puppet. > > > > > >> Bernd > > > > > >> > -----Ursprüngliche Nachricht----- > > > > >> > Von: puppet-users@googlegroups.com [mailto:puppet- > > > > >> > us...@googlegroups.com] Im Auftrag von sysborg > > > > >> > Gesendet: Donnerstag, 20. Oktober 2011 13:19 > > > > >> > An: Puppet Users > > > > >> > Betreff: [Puppet Users] Restore Storconfig Data > > > > > >> > Hi, > > > > > >> > I did a drop database puppet which is used for storing puppet > > > > >> > storconfigs. Now I get the following error. > > > > >> > =============== > > > > >> > err: Could not retrieve catalog: TypeError: unknown buffer_type: > > > > >> > 498322352: SELECT `hosts`.* FROM `hosts` WHERE `hosts`.`name` = > > > > >> > 'testdb' LIMIT 1 > > > > >> > =============== > > > > > >> > Is there a way to repopulate the data. > > > > > >> > I tried reinstalling, removing /var/lib/puppet. None worked. > > > > > >> > -- > > > > >> > 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.