Re: [Bacula-users] Bacula database is getting too long
Il 12/01/2012 21:03, Honia A ha scritto: After seeing your post I did some research and just ran this to change the ownership but didn't help: chown root:bacula /var/lib/bacula/bacula.sql The problem is not the permission bits on bacula.sql file, but rather those of /var/lib/bacula folder. If the process that is trying to create the bacula.sql file is run as user bacula, then /var/lib/bacula should be owned by user bacula, who should have rwx access permission. Or, if user bacula is part of group bacula, /var/lib/bacula could be owned by root:bacula, provided group permission is rwx as well. -- Marcello Romani -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula database is getting too long
Thanks for your reply. I just checked the permissions of the bacula folder and see the following: root@servername:/var/lib# ls -l drwx-- 2 baculabacula 4096 2012-01-13 09:24 bacula Is this sufficient? I've noticed the mysql error no longer shows up but the BackupCatalog job still returns error: 1650 Full 0 0 Error12-Jan-12 21:55 BackupCatalog How can I find out what's causing this error? Thank you in advance Date: Fri, 13 Jan 2012 10:58:39 +0100 From: mrom...@ottotecnica.com To: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Bacula database is getting too long Il 12/01/2012 21:03, Honia A ha scritto: After seeing your post I did some research and just ran this to change the ownership but didn't help: chown root:bacula /var/lib/bacula/bacula.sql The problem is not the permission bits on bacula.sql file, but rather those of /var/lib/bacula folder. If the process that is trying to create the bacula.sql file is run as user bacula, then /var/lib/bacula should be owned by user bacula, who should have rwx access permission. Or, if user bacula is part of group bacula, /var/lib/bacula could be owned by root:bacula, provided group permission is rwx as well. -- Marcello Romani -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula database is getting too long
Il 13/01/2012 15:30, Honia A ha scritto: Thanks for your reply. I just checked the permissions of the bacula folder and see the following: root@servername:/var/lib mailto:root@servername:/var/lib# ls -l drwx-- 2 baculabacula 4096 2012-01-13 09:24 bacula IMHO it should suffice. Is this sufficient? I've noticed the mysql error no longer shows up but the BackupCatalog job still returns error: 1650 Full 0 0 Error12-Jan-12 21:55 BackupCatalog How can I find out what's causing this error? Thank you in advance * ** * Well, I'd start reading the job log... HTH Date: Fri, 13 Jan 2012 10:58:39 +0100 From: mrom...@ottotecnica.com To: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Bacula database is getting too long Il 12/01/2012 21:03, Honia A ha scritto: After seeing your post I did some research and just ran this to change the ownership but didn't help: chown root:bacula /var/lib/bacula/bacula.sql The problem is not the permission bits on bacula.sql file, but rather those of /var/lib/bacula folder. If the process that is trying to create the bacula.sql file is run as user bacula, then /var/lib/bacula should be owned by user bacula, who should have rwx access permission. Or, if user bacula is part of group bacula, /var/lib/bacula could be owned by root:bacula, provided group permission is rwx as well. -- Marcello Romani -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Marcello Romani -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 5.2.x client with 5.0.3 director/storage
Excerpts from Dan Langille's message of Sun Jan 01 23:00:41 -0500 2012: Hi Dan, The general rule for version: Thanks very much for sharing this. I've down-revved the two clients that got a higher version due to the release happening in the middle of a deployment. Thanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] BackupCatalog failes
Hi all, I use Bacula to backup 5 servers. One of the server's called applecrisps is no longer in service but I haven't deleted it from the backup process yet. For the past weeks, I've noticed the BackupCatalog fails and not sure how I can find out what is wrong here. 1650 Full 0 0 Error12-Jan-12 21:55 BackupCatalog The backup runs overnight and backs up three existing machines with no problem, I have set up everything to start at 20:05 and all three will be backed up just fine in less that 5 minutes. Then comes the mail server which takes until 5 AM. Then the backup for that non-existing server will start and since it doesn't exist, it fails. The problem is, in the morning when I get to the office, I notice the mail server is not accessible until 8:15 AM although Bacula record shows it finished at 5 AM. But if I run the command disable in bconsole and type the mail server job number let's say at 7 AM, the mail server will be up in about 15 minutes after that. Can you please help me figure out what is wrong here? I can post any log or config file here. Thanks, h -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] BackupCatalog failes
I use Bacula to backup 5 servers. One of the server's called applecrisps is no longer in service but I haven't deleted it from the backup process yet. For the past weeks, I've noticed the BackupCatalog fails and not sure how I can find out what is wrong here. 1650 Full 0 0 Error 12-Jan-12 21:55 BackupCatalog The backup runs overnight and backs up three existing machines with no problem, I have set up everything to start at 20:05 and all three will be backed up just fine in less that 5 minutes. Then comes the mail server which takes until 5 AM. Then the backup for that non-existing server will start and since it doesn't exist, it fails. The problem is, in the morning when I get to the office, I notice the mail server is not accessible until 8:15 AM although Bacula record shows it finished at 5 AM. But if I run the command disable in bconsole and type the mail server job number let's say at 7 AM, the mail server will be up in about 15 minutes after that. Can you please help me figure out what is wrong here? I can post any log or config file here. In the other thread you created on the same subject it did not appear that there is anything wrong with your configuration. However you first need to solve the permission problem. See what user the bacula-fd on the machine with the catalog on it is running at. Then login or su to that user and run the script directly. John -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] BackupCatalog failes
I am logged in with user honia then su to root. Sorry I didn't understand what you mean, how should I check for that user info? This is the full configuration I found in bacula-dir.conf Job { Name = BackupCatalog JobDefs = DefaultJob Level = Full FileSet=Catalog Schedule = WeeklyCycleAfterBackup # This creates an ASCII copy of the catalog # Arguments to make_catalog_backup.pl are: # make_catalog_backup.pl catalog-name RunBeforeJob = /etc/bacula/scripts/make_catalog_backup.pl MyCatalog # This deletes the copy of the catalog RunAfterJob = /etc/bacula/scripts/delete_catalog_backup Write Bootstrap = /var/lib/bacula/%n.bsr Priority = 11 # run after main backup } Date: Fri, 13 Jan 2012 11:49:47 -0500 Subject: Re: [Bacula-users] BackupCatalog failes From: dresche...@gmail.com To: honia2...@hotmail.com CC: bacula-users@lists.sourceforge.net I use Bacula to backup 5 servers. One of the server's called applecrisps is no longer in service but I haven't deleted it from the backup process yet. For the past weeks, I've noticed the BackupCatalog fails and not sure how I can find out what is wrong here. 1650 Full 0 0 Error12-Jan-12 21:55 BackupCatalog The backup runs overnight and backs up three existing machines with no problem, I have set up everything to start at 20:05 and all three will be backed up just fine in less that 5 minutes. Then comes the mail server which takes until 5 AM. Then the backup for that non-existing server will start and since it doesn't exist, it fails. The problem is, in the morning when I get to the office, I notice the mail server is not accessible until 8:15 AM although Bacula record shows it finished at 5 AM. But if I run the command disable in bconsole and type the mail server job number let's say at 7 AM, the mail server will be up in about 15 minutes after that. Can you please help me figure out what is wrong here? I can post any log or config file here. In the other thread you created on the same subject it did not appear that there is anything wrong with your configuration. However you first need to solve the permission problem. See what user the bacula-fd on the machine with the catalog on it is running at. Then login or su to that user and run the script directly. John -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] BackupCatalog failes
Sorry I forgot to add the error log: 13-Jan 14:51 babar-dir JobId 1651: shell command: run BeforeJob /etc/bacula/scripts/make_catalog_backup.pl MyCatalog 13-Jan 14:51 babar-dir JobId 1651: BeforeJob: sh: cannot create /var/lib/bacula/bacula.sql: Permission denied 13-Jan 14:51 babar-dir JobId 1651: Error: Runscript: BeforeJob returned non-zero status=2. ERR=Child exited with code 2 13-Jan 14:51 babar-dir JobId 1651: Error: Bacula babar-dir 5.0.1 (24Feb10): 13-Jan-2012 14:51:00 Build OS: x86_64-pc-linux-gnu ubuntu 10.04 JobId: 1651 Job:BackupCatalog.2012-01-13_14.50.58_30 Backup Level: Full Client: babar-fd 5.0.1 (24Feb10) x86_64-pc-linux-gnu,ubuntu,10.04 FileSet:Catalog 2011-02-03 01:10:00 Pool: File (From Job resource) Catalog:MyCatalog (From Client resource) Storage:File (From Job resource) Scheduled time: 13-Jan-2012 14:50:56 Start time: 13-Jan-2012 14:51:00 End time: 13-Jan-2012 14:51:00 Elapsed time: 0 secs Priority: 11 FD Files Written: 0 SD Files Written: 0 FD Bytes Written: 0 (0 B) SD Bytes Written: 0 (0 B) Rate: 0.0 KB/s Software Compression: None VSS:no Encryption: no Accurate: no Volume name(s): Volume Session Id: 0 Volume Session Time:0 Last Volume Bytes: 0 (0 B) Non-fatal FD errors:1 SD Errors: 0 FD termination status: SD termination status: Termination:*** Backup Error *** From: honia2...@hotmail.com To: dresche...@gmail.com Date: Fri, 13 Jan 2012 13:12:38 -0500 CC: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] BackupCatalog failes I am logged in with user honia then su to root. Sorry I didn't understand what you mean, how should I check for that user info? This is the full configuration I found in bacula-dir.conf Job { Name = BackupCatalog JobDefs = DefaultJob Level = Full FileSet=Catalog Schedule = WeeklyCycleAfterBackup # This creates an ASCII copy of the catalog # Arguments to make_catalog_backup.pl are: # make_catalog_backup.pl catalog-name RunBeforeJob = /etc/bacula/scripts/make_catalog_backup.pl MyCatalog # This deletes the copy of the catalog RunAfterJob = /etc/bacula/scripts/delete_catalog_backup Write Bootstrap = /var/lib/bacula/%n.bsr Priority = 11 # run after main backup } Date: Fri, 13 Jan 2012 11:49:47 -0500 Subject: Re: [Bacula-users] BackupCatalog failes From: dresche...@gmail.com To: honia2...@hotmail.com CC: bacula-users@lists.sourceforge.net I use Bacula to backup 5 servers. One of the server's called applecrisps is no longer in service but I haven't deleted it from the backup process yet. For the past weeks, I've noticed the BackupCatalog fails and not sure how I can find out what is wrong here. 1650 Full 0 0 Error12-Jan-12 21:55 BackupCatalog The backup runs overnight and backs up three existing machines with no problem, I have set up everything to start at 20:05 and all three will be backed up just fine in less that 5 minutes. Then comes the mail server which takes until 5 AM. Then the backup for that non-existing server will start and since it doesn't exist, it fails. The problem is, in the morning when I get to the office, I notice the mail server is not accessible until 8:15 AM although Bacula record shows it finished at 5 AM. But if I run the command disable in bconsole and type the mail server job number let's say at 7 AM, the mail server will be up in about 15 minutes after that. Can you please help me figure out what is wrong here? I can post any log or config file here. In the other thread you created on the same subject it did not appear that there is anything wrong with your configuration. However you first need to solve the permission problem. See what user the bacula-fd on the machine with the catalog on it is running at. Then login or su to that user and run the script directly. John -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Bacula-users mailing list Bacula-users@lists.sourceforge.net
Re: [Bacula-users] BackupCatalog failes
Excerpts from Honia A's message of Fri Jan 13 14:50:52 -0500 2012: 13-Jan 14:51 babar-dir JobId 1651: shell command: run BeforeJob /etc/bacula/scripts/make_catalog_backup.pl MyCatalog Is this the standard script as shipped with bacula? 13-Jan 14:51 babar-dir JobId 1651: BeforeJob: sh: cannot create /var/lib/bacula/bacula.sql: Permission denied What about the output of: for d in /var /var/lib /var/lib/bacula; do ls -ld $d; done Are any of the parent directories preventing traversal to /var/lib/bacula? Thanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] BackupCatalog failes
On Fri, Jan 13, 2012 at 1:12 PM, Honia A honia2...@hotmail.com wrote: I am logged in with user honia then su to root. Sorry I didn't understand what you mean, how should I check for that user info? I want to to. 1. Figure out what user bacula-fd runs on your system 2. Then login as that user (or su as that user not root) 3. Then execute the following command and see if you get any errors: /etc/bacula/scripts/make_catalog_backup.pl MyCatalog John -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users