Store configuration problem (mysql)

94 views
Skip to first unread message

mike

unread,
Mar 19, 2013, 3:31:07 PM3/19/13
to puppet...@googlegroups.com
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

尹川

unread,
Mar 19, 2013, 9:13:04 PM3/19/13
to puppet...@googlegroups.com
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.


--
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...@googlegroups.com.
To post to this group, send email to puppet...@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

unread,
Mar 19, 2013, 10:30:34 PM3/19/13
to puppet...@googlegroups.com
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

Ellison Marks

unread,
Mar 19, 2013, 11:52:40 PM3/19/13
to puppet...@googlegroups.com
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.

Miguel Angel Coa M.

unread,
Mar 20, 2013, 4:52:27 PM3/20/13
to puppet...@googlegroups.com

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.

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages