Bacula-users

[Bacula-users] strange Access Denied error while backing up catalogs

2013-03-08 09:37:46
Subject: [Bacula-users] strange Access Denied error while backing up catalogs
From: stefano scotti <scottistefano91 AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 8 Mar 2013 15:34:11 +0100
Hi,

I have a catalog for each client.
Sometime when i back up a catalog i receive a fatal error, like for example:

08-mar 08:20 this-dir JobId 73: shell command: run BeforeJob "/etc/bacula/scripts/make_catalog_backup.pl FIRSTCLIENT_catalog"
08-mar 08:20 this-dir JobId 73: BeforeJob: mysqldump: Got error: 1044: Access denied for user 'SECONDCLIENT_fd'@'localhost' to database 'FIRSTCLIENT_catalog' when selecting the database
08-mar 08:20 this-dir JobId 73: Error: Runscript: BeforeJob returned non-zero status=2. ERR=Child exited with code 2


I don't know why bacula randomly mix in a wrong way database names and users credentials.
In this case 'FIRSTCLIENT'@'localhost'  has permissions on FIRSTCLIENT_catalog, and 'SECONDCLIENT_fd'@'localhost'  has permission on SECONDCLIENT_catalog.

If i exec

dbcheck -B -c /etc/bacula/bacula-dir.conf -C FIRSTCLIENT_catalog
or
dbcheck -B -c /etc/bacula/bacula-dir.conf -C SECONDCLIENT_catalog

It gives me the correct credentials.

So why sometime bacula comes with this error? is it a bug?


Thanks.



--
 Please consider the environment before printing this email
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] strange Access Denied error while backing up catalogs, stefano scotti <=