Project

General

Profile

Actions

Bug #3397

closed

psql error when running rudder-init.sh

Added by Michael Gliwinski almost 11 years ago. Updated almost 11 years ago.

Status:
Released
Priority:
3
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Nothing critical, just a bit confusing.

When running rudder-init.sh to setup a server (2.5), and specifically when this script runs cf-agent, errors from psql are visible in the output:

R: @@DistributePolicy@@log_info@@root-DP@@root-distributePolicy@@00@@reports@@None@@2013-04-06 19:30:47+01:00##root@#slapd has been restarted
psql: FATAL:  password authentication failed for user "rudder" 
FATAL:  password authentication failed for user "rudder" 
password retrieved from file "/root/.pgpass" 
R: @@DistributePolicy@@result_repaired@@root-DP@@root-distributePolicy@@00@@reports@@None@@2013-04-06 19:30:47+01:00##root@#The Rudder Webapp configuration files were updated with a new SQL password
R: @@DistributePolicy@@result_repaired@@root-DP@@root-distributePolicy@@00@@reports@@None@@2013-04-06 19:30:47+01:00##root@#The Rudder PostgreSQL user account's password has been changed

This is a bit confusing as it appears there is nothing fatal about this error :) In fact it looks like output from psql command used in distributePolicy/1.0/passwordCheck.cf in bundle root_password_check_psql when defining class psql_cant_connect (I was able to reproduce the same errors when the password in .pgpass file is incorrect).

The command uses --output /dev/null option, but psql prints the error to stderr anyway.

Actions

Also available in: Atom PDF