Error while logging

Bug #1021173 reported by Pander
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
automysqlbackup (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using automysqlbackup and/or autopostgresql backup, no logging to a file is being done and an error code of 1 is being returned.

No error is being returned when the following lines are being disabled:

automysqlbackup:#exec 6>&1 # Link file descriptor #6 with stdout.
automysqlbackup:#exec > $LOGFILE # stdout replaced with file $LOGFILE.
automysqlbackup:#exec 7>&2 # Link file descriptor #7 with stderr.
automysqlbackup:#exec 2> $LOGERR # stderr replaced with file $LOGERR.

automysqlbackup:#exec 1>&6 6>&- # Restore stdout and close file descriptor #6.
automysqlbackup:#exec 1>&7 7>&- # Restore stdout and close file descriptor #7.

autopostgresqlbackup:#exec 6>&1 # Link file descriptor #6 with stdout.
autopostgresqlbackup:#exec > $LOGFILE # stdout replaced with file $LOGFILE.
autopostgresqlbackup:#exec 7>&2 # Link file descriptor #7 with stderr.
autopostgresqlbackup:#exec 2> $LOGERR # stderr replaced with file $LOGERR.

autopostgresqlbackup:#exec 1>&6 6>&- # Restore stdout and close file descriptor #6.
autopostgresqlbackup:#exec 1>&7 7>&- # Restore stdout and close file descriptor #7.

The user for which the scripts are running is root and root is allowed to create the log files but that doesn't happen and an error is being return.

What could be the source of this problem and how can this be fixed?

Revision history for this message
Pander (pander) wrote :

The backups are done correctly by the way.

Revision history for this message
Pander (pander) wrote :

And, after disabling the lines above, the output that should be logged is emailed from the cron job to root.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in automysqlbackup (Ubuntu):
status: New → Confirmed
Pander (pander)
tags: added: 21.10
tags: added: 12.10
removed: 21.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.