Package: backupninja
Version: 0.9.4-3
Severity: grave

  Info: >>>> starting action 15.pgsql (because of --now)
  Debug: yes
  Info: Using vserver 'db'.
  Debug: Examining vserver 'db'.
  Debug: chown 0
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  14
  25
  27
  32
  33
  42
  90
  99
  1000 /vservers/db/backup/postgresql
  chown: cannot access `1': No such file or directory
  chown: cannot access `2': No such file or directory
  chown: cannot access `3': No such file or directory
  chown: cannot access `4': No such file or directory
  chown: cannot access `5': No such file or directory
  chown: cannot access `6': No such file or directory
  chown: cannot access `7': No such file or directory
  chown: cannot access `8': No such file or directory
  chown: cannot access `9': No such file or directory
  chown: cannot access `10': No such file or directory
  chown: cannot access `11': No such file or directory
  chown: cannot access `12': No such file or directory
  chown: cannot access `14': No such file or directory
  chown: cannot access `25': No such file or directory
  chown: cannot access `27': No such file or directory
  chown: cannot access `32': No such file or directory
  chown: cannot access `33': No such file or directory
  chown: cannot access `42': No such file or directory
  chown: cannot access `90': No such file or directory
  chown: cannot access `99': No such file or directory
  chown: cannot access `1000': No such file or directory
  Debug: chmod 700 /vservers/db/backup/postgresql
  Debug: /usr/sbin/vserver db exec su - postgres -c "/usr/bin/pg_dumpall |
  /bin/gzip > /backup/postgresql/db.sql.gz"
  Warning: /bin/sh: /backup/postgresql/db.sql.gz: Permission denied

Looking at the code, I found what was giving that behaviour:

  if [ $usevserver = yes ]; then
     pguid=`$VSERVER $vsname exec getent passwd $PGSQLUSER | awk -F: '{print 
$3}'`
  else
     pguid=`getent passwd postgres | awk -F: '{print $3}'`
  fi

So it looks like PGSQLUSER wasnt set in my config and then getent
matched all passwd entries, resulting in a wrong "chown $pguid
$vroot$backupdir".

Then I grep'ed backupninja source and didnt found any mention to
PGSQLUSER other than this line at pgsql handler and the Changelog
entry for 0.9.4 introducing this new variable.

I'm wondering where to set this variable and if theres still a
lot of hardcoded postgres user in this handler.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to fr_FR.UTF-8)

Versions of packages backupninja depends on:
ii  bash                      3.1-5          The GNU Bourne Again SHell
ii  dialog                    1.0-20060221-1 Displays user-friendly dialog boxe
ii  gawk                      1:3.1.5.dfsg-4 GNU awk, a pattern scanning and pr
ii  mawk                      1.3.3-11       a pattern scanning and text proces

backupninja recommends no packages.

-- no debconf information

-- 
  intrigeri <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to