[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
** Changed in: bacula (Ubuntu) Status: Confirmed => In Progress -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
I've added '--defaults-file=/var/lib/bacula/.my.cnf' to the mysqldump: --- /etc/bacula/scripts/make_catalog_backup_awk.dist2008-05-16 09:08:14.0 +0200 +++ /etc/bacula/scripts/make_catalog_backup_awk 2008-05-16 09:04:48.0 +0200 @@ -48,6 +48,6 @@ printf " port=%s\n",dbport >> "/var/lib/bacula/.my.cnf" if (dbsocket != "") printf " socket=%s\n",dbsocket >> "/var/lib/bacula/.my.cnf" - system(sprintf ("mysqldump %s > /var/lib/bacula/bacula.sql",dbname)) + system(sprintf ("mysqldump --defaults-file=/var/lib/bacula/.my.cnf %s > /var/lib/bacula/bacula.sql",dbname)) } } ** Attachment added: "make_catalog_backup.diff" http://launchpadlibrarian.net/14553560/make_catalog_backup.diff -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
I'm testing debdiff (both sqlite and pgsql versions of script have same problems) and if everything goes well, I'll request SRU for it. -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
Urgh... True. Bug confirmed. Thanks! ** Changed in: bacula (Ubuntu) Status: Triaged => Confirmed -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
>From /etc/passwd: bacula:x:105:113:Bacula:/var/lib/bacula:/bin/false But AFAIK running a command in the security context of a user does not automatically set the home directory. BTW: I have a fairly clean install of Hardy, since this is a VM specifically set up for testing bacula before using it for production. -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
Well, that script is running as bacula user. Check your bacula user, it should have /var/lib/bacula as $HOME. ** Changed in: bacula (Ubuntu) Importance: Undecided => Medium Status: New => Triaged -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
This is with version 2.2.8-5ubuntu7 on Hardy. (Forgot to mention this in the previous post) ** Tags added: patch -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 227410] Re: Catalog Backup fails because .my.cnf is not read
** Attachment added: "make_backup_catalog_awk patch fixing CatalogBackup" http://launchpadlibrarian.net/14261300/make_catalog_backup_awk.patch -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs