Hi,

it would be helpful to see the manifest that declares the Exec[validate
postgres connection for /postgres].

For debugging, the easiest approach is pasting the failing commands to a
shell.

Regards,
Felix

On 07/14/2014 08:35 AM, Rajesh Taneja wrote:
> While running puppet agent, I am getting following error. Can someone
> help me understand what might be wrong.
>
> Warning: Exec[validate postgres connection for
> /postgres](provider=posix): Cannot understand environment setting
> "PGPASSWORD="
> Warning: Exec[validate postgres connection for
> /postgres](provider=posix): Cannot understand environment setting
> "PGPASSWORD="
> Notice:
> /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate
> postgres connection for /postgres]/returns: Unable to connect to
> defined database using: /usr/bin/psql --tuples-only --quiet -h  -U  -p
>  --dbname postgres 
> Error: echo 'Unable to connect to defined database using:
> /usr/bin/psql --tuples-only --quiet -h  -U  -p  --dbname postgres ' &&
> false returned 1 instead of one of [0]
> Error:
> /Stage[main]/Postgresql::Server::Service/Postgresql::Validate_db_connection[validate_service_is_running]/Exec[validate
> postgres connection for /postgres]/returns: change from notrun to 0
> failed: echo 'Unable to connect to defined database using:
> /usr/bin/psql --tuples-only --quiet -h  -U  -p  --dbname postgres ' &&
> false returned 1 instead of one of [0]
> -- 
> 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 [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/d4866842-9ae8-4ade-89c9-34aa9e82e074%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d4866842-9ae8-4ade-89c9-34aa9e82e074%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53C591E8.5060003%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to