Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Vikas Kumar
Thanks Flamarion for the reply, my issue is resolved now.

Regards,
Vikas

On Tuesday, 19 August 2014 07:35:05 UTC+10, Flamarion Jorge wrote:
>
> Did you setup route.yml ?
>
> Flamarion Jorge
> Sent from my mobile
> Em 18/08/2014 02:05, "Vikas Kumar" > 
> escreveu:
>
>> Hello everyone,
>>
>> I have a puppetmaster v3.6.2-1 installed on Ubuntu 14.04 x86_64 server. I 
>> am using passenger (apache2) instead of Webrick.
>>
>> root@puppet:~# /etc/init.d/puppetmaster status
>>  * master is not running
>> root@puppet:~#
>> root@puppet:~# /etc/init.d/apache2 status
>>  * apache2 is running
>> root@puppet:~#
>>
>>
>> I am trying to install puppetdb via a module 
>> , but 
>> after installing the module I ran 'puppet agent -t' command and encountered 
>> below errors. 
>>
>> root@puppet:~# puppet agent -t
>> Info: Retrieving pluginfacts
>> Info: Retrieving plugin
>> ...
>> ...
>> Info: Caching catalog for puppet.test.com
>> Info: Applying configuration version '1408337383'
>> Notice: Unable to connect to puppetdb server (puppet.test.com:8081): 
>> Connection refused - connect(2)
>> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
>> Notice: Unable to connect to puppetdb server (puppet.test.com:8081): 
>> Connection refused - connect(2)
>> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
>> Notice: Unable to connect to puppetdb server (puppet.test.com:8081): 
>> Connection refused - connect(2)
>> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
>> ^CNotice: Caught INT; calling stop
>> root@puppet:~#
>>
>> I checked that port 8081 is not being used by any daemon.
>>
>> root@puppet:~# netstat -an | grep 8081
>> root@puppet:~# telnet 192.168.1.99 8081
>> Trying 192.168.1.99...
>> telnet: Unable to connect to remote host: Connection refused
>> root@puppet:~#
>>
>> Please help me out to troubleshoot this.
>>
>> Regards,
>> Vikas
>>
>>  -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/0fb35b85-6b24-47d5-a8a3-c632c0869956%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9339c2c6-adaa-4f9c-8d4c-e93f0f8ec2e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Flamarion Jorge
Did you setup route.yml ?

Flamarion Jorge
Sent from my mobile
Em 18/08/2014 02:05, "Vikas Kumar"  escreveu:

> Hello everyone,
>
> I have a puppetmaster v3.6.2-1 installed on Ubuntu 14.04 x86_64 server. I
> am using passenger (apache2) instead of Webrick.
>
> root@puppet:~# /etc/init.d/puppetmaster status
>  * master is not running
> root@puppet:~#
> root@puppet:~# /etc/init.d/apache2 status
>  * apache2 is running
> root@puppet:~#
>
>
> I am trying to install puppetdb via a module
> , but
> after installing the module I ran 'puppet agent -t' command and encountered
> below errors.
>
> root@puppet:~# puppet agent -t
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> ...
> ...
> Info: Caching catalog for puppet.test.com
> Info: Applying configuration version '1408337383'
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> ^CNotice: Caught INT; calling stop
> root@puppet:~#
>
> I checked that port 8081 is not being used by any daemon.
>
> root@puppet:~# netstat -an | grep 8081
> root@puppet:~# telnet 192.168.1.99 8081
> Trying 192.168.1.99...
> telnet: Unable to connect to remote host: Connection refused
> root@puppet:~#
>
> Please help me out to troubleshoot this.
>
> Regards,
> Vikas
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/0fb35b85-6b24-47d5-a8a3-c632c0869956%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bx2bU17LE5YLKsyTK2fihRq46XW6MHx9OVQgM9wZtLimfm7eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Vikas Kumar
I just installed the puppetdbquery module from forge, and ran the below 
commands. I think I am good :)

root@puppet:~# puppet query nodes '(architecture=amd64)'
box30.test.com
puppet.test.com
root@puppet:~#

root@puppet:~# curl -s 'http://puppet.test.com:8080/v3/nodes' | jq -r 
'.[].name'
box30.test.com
puppet.test.com
root@puppet:~#

Regards,
Vikas

On Monday, 18 August 2014 21:41:05 UTC+10, Vikas Kumar wrote:
>
> Hi Juan,
>
> Thanks a ton, it did the magic. I was under an impression that puppetdb 
> forge module will install puppetdb too.
>
> Now, *puppet agent --test* command is working fine. But, I need to ensure 
> that is working as desired. I am new to puppetdb, will google out something 
> or write a small class to confirm it is working fine. 
>
> Regards,
> Vikas
>
> On Monday, 18 August 2014 20:40:22 UTC+10, Juan Sierra Pons wrote:
>>
>> Hi, 
>>
>> I am using puppetlabs-puppetdb module too. 
>> Can you install puppetdb manually using your os package tool (apt/yum)? 
>>
>> Regards 
>>
>> --
>>  
>>
>> Juan Sierra Pons ju...@elsotanillo.net 
>> Linux User Registered: #257202 
>> Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo 
>> GPG key = 0xA110F4FE 
>> Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE 
>> --
>>  
>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/612214c0-9b34-4131-9993-617e8df9e8c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Juan Sierra Pons
Hi,

Check again your config as puppetlabs-puppetdb should install the
binary and then configure it.

Best Regards
--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CABS%3Dy9um2mWrenMbUx%2BF3oj-EwMfuJxrzAyc3siZi3MN3RgJUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Vikas Kumar
Hi Juan,

Thanks a ton, it did the magic. I was under an impression that puppetdb 
forge module will install puppetdb too.

Now, *puppet agent --test* command is working fine. But, I need to ensure 
that is working as desired. I am new to puppetdb, will google out something 
or write a small class to confirm it is working fine. 

Regards,
Vikas

On Monday, 18 August 2014 20:40:22 UTC+10, Juan Sierra Pons wrote:
>
> Hi, 
>
> I am using puppetlabs-puppetdb module too. 
> Can you install puppetdb manually using your os package tool (apt/yum)? 
>
> Regards 
>
> --
>  
>
> Juan Sierra Pons ju...@elsotanillo.net 
>  
> Linux User Registered: #257202 
> Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo 
> GPG key = 0xA110F4FE 
> Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE 
> --
>  
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/277b9eb6-3b58-4ac3-99d4-06b5097377c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Juan Sierra Pons
Hi,

I am using puppetlabs-puppetdb module too.
Can you install puppetdb manually using your os package tool (apt/yum)?

Regards

--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CABS%3Dy9vM_F_%3DWt09BfQZOj_JDLu63g-rPkFfu1dTg4JHpYTcsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Vikas Kumar
Hi Juan,

Thanks for your help but I don't have these files. May be because I am 
using modules instead of binaries.

Regards,
Vikas

On Monday, 18 August 2014 19:42:25 UTC+10, Juan Sierra Pons wrote:
>
> Hi 
>
> Try removing (make a backup first just in case) 
> /etc/puppet/routes.yaml and /etc/puppet/puppetdb.conf and try again. 
>
> I had a similar problem time ago and starting from scratch fixed it 
>
> Best Regards 
> --
>  
>
> Juan Sierra Pons ju...@elsotanillo.net 
>  
> Linux User Registered: #257202 
> Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo 
> GPG key = 0xA110F4FE 
> Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE 
> --
>  
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d397e2f6-3cd9-4768-8a15-8a8be9723a8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Juan Sierra Pons
Hi

Try removing (make a backup first just in case)
/etc/puppet/routes.yaml and /etc/puppet/puppetdb.conf and try again.

I had a similar problem time ago and starting from scratch fixed it

Best Regards
--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CABS%3Dy9vc7M0rO%3D-D%3DjQQwTD1V3j5cnhFzXY4cM2tAvGCTg4%3D-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Vikas Kumar
Hi Atom,

I tried that but its not working out. 

Below is the output of the command.
root@puppet:~# puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
...
...
Notice: Failed to connect to puppetdb within timeout window of 120 seconds; 
giving up.
Error: Unable to connect to puppetdb server! (puppet.test.com:8081)
Error: /Stage[main]/Puppetdb::Master::Config/Puppetdb_conn_validator[
puppetdb_conn]/ensure: change from absent to present failed: Unable to 
connect to puppetdb server! (puppet.test.com:8081)
Notice: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppet.conf/
master/storeconfigs]: Dependency Puppetdb_conn_validator[puppetdb_conn] has 
failures: true
Warning: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppet.conf
/master/storeconfigs]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppet.conf/
master/storeconfigs_backend]: Dependency Puppetdb_conn_validator[
puppetdb_conn] has failures: true
Warning: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppet.conf
/master/storeconfigs_backend]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppet/routes.yaml]: 
Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Warning: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppet/routes.yaml
]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
puppetdbport]: Dependency Puppetdb_conn_validator[puppetdb_conn] has 
failures: true
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
puppetdbport]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
soft_write_failure]: Dependency Puppetdb_conn_validator[puppetdb_conn] has 
failures: true
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
soft_write_failure]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
puppetdbserver]: Dependency Puppetdb_conn_validator[puppetdb_conn] has 
failures: true
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[
puppetdbserver]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppetdb::Master::Config/Service[puppetmaster]: 
Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Warning: /Stage[main]/Puppetdb::Master::Config/Service[puppetmaster]: 
Skipping because of failed dependencies
Notice: Finished catalog run in 120.27 seconds
root@puppet:~#


Also, I do not have puppetdb binary since I have used puppetdb module.

root@puppet:~# ls -lrth /etc/init.d/puppet*
-rwxr-xr-x 1 root root 1.7K Jun 10 07:07 /etc/init.d/puppetqd
-rwxr-xr-x 1 root root 3.8K Jun 10 07:07 /etc/init.d/puppetmaster
root@puppet:~#

Any other suggestions to tackle this ?

Regards,
Vikas

On Monday, 18 August 2014 15:09:26 UTC+10, Atom Powers wrote:
>
> Don't cancel it. It will eventually timeout or start working.
> You may want to start puppetdb manually if it times-out; 'service puppetdb 
> start'
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/96579854-43be-4c4b-8af6-07aa1076788e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-17 Thread Atom Powers
Don't cancel it. It will eventually timeout or start working.
You may want to start puppetdb manually if it times-out; 'service puppetdb
start'


On Sun, Aug 17, 2014 at 10:05 PM, Vikas Kumar  wrote:

> Hello everyone,
>
> I have a puppetmaster v3.6.2-1 installed on Ubuntu 14.04 x86_64 server. I
> am using passenger (apache2) instead of Webrick.
>
> root@puppet:~# /etc/init.d/puppetmaster status
>  * master is not running
> root@puppet:~#
> root@puppet:~# /etc/init.d/apache2 status
>  * apache2 is running
> root@puppet:~#
>
>
> I am trying to install puppetdb via a module
> , but
> after installing the module I ran 'puppet agent -t' command and encountered
> below errors.
>
> root@puppet:~# puppet agent -t
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> ...
> ...
> Info: Caching catalog for puppet.test.com
> Info: Applying configuration version '1408337383'
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> ^CNotice: Caught INT; calling stop
> root@puppet:~#
>
> I checked that port 8081 is not being used by any daemon.
>
> root@puppet:~# netstat -an | grep 8081
> root@puppet:~# telnet 192.168.1.99 8081
> Trying 192.168.1.99...
> telnet: Unable to connect to remote host: Connection refused
> root@puppet:~#
>
> Please help me out to troubleshoot this.
>
> Regards,
> Vikas
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/0fb35b85-6b24-47d5-a8a3-c632c0869956%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Perfection is just a word I use occasionally with mustard.
--Atom Powers--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF-H%3DOnouwDCxaeJGXo7-9%2BFXYykDtb3vNuDQpkLT9zcK%2B4_jQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.