Project

General

Custom queries

Profile

Actions

Bug #3397

closed

psql error when running rudder-init.sh

Added by Michael Gliwinski about 12 years ago. Updated about 12 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.

#1

Updated by Vincent MEMBRÉ about 12 years ago

  • Category set to System techniques
  • Target version set to 2.4.5
#2

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from New to 8
  • Assignee set to Vincent MEMBRÉ
  • Priority changed from N/A to 3
#3

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from 8 to Pending release
  • % Done changed from 0 to 100
#5

Updated by Jonathan CLARKE about 12 years ago

  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/118
#7

Updated by Nicolas PERRON about 12 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF