Hi all. I''m have question with sotred configuration for mysql on puppet master. I am reading the documentation in puppetlabs (http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration ) and when starts "standalone puppet master" i have the next message: [............] [root@puppet puppet]# puppet master --verbose --no-daemonize --masterport 8141 Notice: Starting Puppet master version 3.1.1 Error: Could not run: Could not create PID file: /var/run/puppet/master.pid [............] Something similar is from node [............] [root@lab ~]# puppet agent --test --masterport 8141 info: Loading facts in rvm_installed info: Loading facts in rvm_installed err: Could not retrieve catalog from remote server: Connection refused - connect(2) warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run [root@lab ~]# [............] thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
please check whether the puppetmaster service is running. and, Puppet recommend to use puppetdb with stored config. the support for mysql backend will be deprecated. On Wed, Mar 20, 2013 at 3:31 AM, mike <miguelcoam@gmail.com> wrote:> Hi all. > I''m have question with sotred configuration for mysql on puppet master. I > am reading the documentation in puppetlabs ( > http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration) and when starts "standalone puppet master" i have the next message: > > [............] > [root@puppet puppet]# puppet master --verbose --no-daemonize --masterport > 8141 > Notice: Starting Puppet master version 3.1.1 > Error: Could not run: Could not create PID file: /var/run/puppet/master.pid > [............] > > Something similar is from node > > [............] > [root@lab ~]# puppet agent --test --masterport 8141 > info: Loading facts in rvm_installed > info: Loading facts in rvm_installed > err: Could not retrieve catalog from remote server: Connection refused - > connect(2) > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > [root@lab ~]# > [............] > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 一片树林里分出两条路—— 而我选择了人迹更少的一条, 从此决定了我一生的道路。 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Miguel Angel Coa Morales
2013-Mar-20 02:30 UTC
Re: [Puppet Users] Store configuration problem (mysql)
I don''t have idea of mysql and backed becoming obsolete. My guide is the book: Pro Puppet, but within the section "stored configuration" speak about: mysql, postgres, sqlite and oracle and never puppetdb. (Thanks for this tips). Respect whether puppet master is running, yes is ok and the ports is 8140 is available . [………………...] [root@puppet ~]# netstat -tlpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 8288/mysqld tcp 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN 15436/ruby tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1120/sshd tcp 0 0 :::22 :::* LISTEN 1120/sshd [root@puppet ~]# [root@puppet ~]# service puppetmaster status puppet (pid 15436) is running… [………………...] Thanks!! El 19-03-2013, a las 22:13, 尹川 <yinchuan.blue@gmail.com> escribió:> backend-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ellison Marks
2013-Mar-20 03:52 UTC
Re: [Puppet Users] Store configuration problem (mysql)
Pro Puppet wouldn''t mention puppetdb, as it was written before puppetdb came out. As to your original question, if the puppetmaster service is running, that would probably inhibit you from starting a second one, as the PID file would already be in use. For the client not being able to connect, you need to make sure that the master is listening on the correct port and that your firewall isn''t blocking on that port. On Tuesday, March 19, 2013 7:30:34 PM UTC-7, mike wrote:> > I don''t have idea of mysql and backed becoming obsolete. My guide is the > book: Pro Puppet, but within the section "stored configuration" speak > about: mysql, postgres, sqlite and oracle and never puppetdb. (Thanks for > this tips). > Respect whether puppet master is running, yes is ok and the ports is 8140 > is available . > > [………………...] > [root@puppet ~]# netstat -tlpn > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 0.0.0.0:3306 0.0.0.0:* > LISTEN 8288/mysqld > tcp 0 0 0.0.0.0:8140 0.0.0.0:* > LISTEN 15436/ruby > tcp 0 0 0.0.0.0:22 0.0.0.0:* > LISTEN 1120/sshd > tcp 0 0 :::22 :::* > LISTEN 1120/sshd > [root@puppet ~]# > [root@puppet ~]# service puppetmaster status > puppet (pid 15436) is running… > [………………...] > > > Thanks!! > > El 19-03-2013, a las 22:13, 尹川 <yinchu...@gmail.com <javascript:>> > escribió: > > backend > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Miguel Angel Coa M.
2013-Mar-20 20:52 UTC
Re: [Puppet Users] Store configuration problem (mysql)
Is strange because the problem began only when I configured the stored with mysql. Before I had configure my puppet master and puppet nodes and the community from these was good (the node applied the class definition on master without ptoblem) I dont have any firewall, selinux or iptables active. From node run telnet to port 8140 and is ok but 8141 sheds error. Thanks. El 20/03/2013 00:52, "Ellison Marks" <gtyaoi@gmail.com> escribió:> Pro Puppet wouldn''t mention puppetdb, as it was written before puppetdb > came out. As to your original question, if the puppetmaster service is > running, that would probably inhibit you from starting a second one, as the > PID file would already be in use. For the client not being able to connect, > you need to make sure that the master is listening on the correct port and > that your firewall isn''t blocking on that port. > > On Tuesday, March 19, 2013 7:30:34 PM UTC-7, mike wrote: >> >> I don''t have idea of mysql and backed becoming obsolete. My guide is the >> book: Pro Puppet, but within the section "stored configuration" speak >> about: mysql, postgres, sqlite and oracle and never puppetdb. (Thanks for >> this tips). >> Respect whether puppet master is running, yes is ok and the ports is >> 8140 is available . >> >> [………………...] >> [root@puppet ~]# netstat -tlpn >> Active Internet connections (only servers) >> Proto Recv-Q Send-Q Local Address Foreign Address >> State PID/Program name >> tcp 0 0 0.0.0.0:3306 0.0.0.0:* >> LISTEN 8288/mysqld >> tcp 0 0 0.0.0.0:8140 0.0.0.0:* >> LISTEN 15436/ruby >> tcp 0 0 0.0.0.0:22 0.0.0.0:* >> LISTEN 1120/sshd >> tcp 0 0 :::22 :::* >> LISTEN 1120/sshd >> [root@puppet ~]# >> [root@puppet ~]# service puppetmaster status >> puppet (pid 15436) is running… >> [………………...] >> >> >> Thanks!! >> >> El 19-03-2013, a las 22:13, 尹川 <yinchu...@gmail.com> escribió: >> >> backend >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/oqX3Jr4F_cQ/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.