***Spam***Re: [Bug 227410] Re: [SRU] catalog Backup fails because .my.cnf is not read

alidaf darren.faulke at easl-stress.co.uk
Mon Jul 21 11:36:09 BST 2008


Thanks for you reply.

I have fixed it now by applying the patch by hand.

FYI After adding the hardy-proposed to my sources.list and running apt-
get update and apt-get upgrade ubuntu it only upgraded mysql.  I
couldn't connect to the director.  I uninstalled mysql and ubuntu,
removed proposed and re-installed, reconfigured and applied the patch.
Its working again now thanks.

Regards

Darren

----- Original Message -----
From: "Ante Karamatić" <ivoks at grad.hr>
To: "darren faulke" <darren.faulke at easl-stress.co.uk>
Sent: Monday, 21 July, 2008 11:10:47 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Bug 227410] Re: [SRU] catalog Backup fails because .my.cnf is not read

On Mon, 21 Jul 2008 09:51:15 -0000
alidaf <darren.faulke at easl-stress.co.uk> wrote:

> I tried upgrading to hardy-proposed and it killed bacula completely.
> I have gone back to the original version and have it working bar this
> bug. How do I use the diff file to patch?

Killed in what way? If you apply this patch, you'll get exactly the
same bacula as from proposed repository, so it won't help.

-- 
[SRU] catalog Backup fails because .my.cnf is not read
https://bugs.launchpad.net/bugs/227410
You received this bug notification because you are a direct subscriber
of the bug.

Status in “bacula” source package in Ubuntu: In Progress
Status in bacula in Ubuntu Hardy: Fix Committed

Bug description:
Binary package hint: bacula

Actually this is the last point of the original report of bug #207527.
I am opening this as a new bug report, since the other issues of bug #207527 appear to be fixed.

This is on version 2.2.8-5ubuntu7.

When running the BackupCatalog job, I get the following error:

06-Mai 18:27 baculatestsrv-dir JobId 17: BeforeJob: run command "/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v cat1=MyCatalog /etc/bacula/bacula-dir.conf"
06-Mai 18:27 baculatestsrv-dir JobId 17: BeforeJob: mysqldump: Got error: 1045: Access denied for user 'bacula'@'localhost' (using password: NO) when trying to connect

It seems that .my.cnf is not read, since the command is not executed in
a login shell and HOME is not set.

I was able to get the backup running by specifying HOME in the mysqldump
command (see attached patch).

-- 
[SRU] catalog Backup fails because .my.cnf is not read
https://bugs.launchpad.net/bugs/227410
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.



More information about the Ubuntu-server-bugs mailing list