SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
BackupCatalog failes
Author Message
Post 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 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.

Thanks,
h





[b]
[/b]

Post 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 < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

View user's profile Send private message
Post 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
}


[b]
[/b]




Date: Fri, 13 Jan 2012 11:49:47 -0500
Subject: Re: [Bacula-users] BackupCatalog failes
From: drescherjm < at > gmail.com
To: honia2002 < at > hotmail.com
CC: bacula-users < at > 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 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


Post 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 ***



[b]
[/b]



From: honia2002 < at > hotmail.com
To: drescherjm < at > gmail.com
Date: Fri, 13 Jan 2012 13:12:38 -0500
CC: bacula-users < at > lists.sourceforge.net
Subject: Re: [Bacula-users] BackupCatalog failes

.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Tahoma;} 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
}


[b]
[/b]




Date: Fri, 13 Jan 2012 11:49:47 -0500
Subject: Re: [Bacula-users] BackupCatalog failes
From: drescherjm < at > gmail.com
To: honia2002 < at > hotmail.com
CC: bacula-users < at > 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 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 < at > lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users

Post 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 < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post BackupCatalog failes 
On Fri, Jan 13, 2012 at 1:12 PM, Honia A <honia2002 < at > 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 < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

View user's profile Send private message
Post BackupCatalog failes 
On Fri, 13 Jan 2012 15:27:19 -0500, John Drescher said:

On Fri, Jan 13, 2012 at 1:12 PM, Honia A <honia2002 < at > 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

That should be bacula-dir -- the make_catalog_backup.pl runs on the director,
not the fd.

__Martin


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 < at > 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 < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post BackupCatalog failes 
On Mon, Jan 16, 2012 at 5:35 AM, Martin Simmons <martin < at > lispworks.com> wrote:
On Fri, 13 Jan 2012 15:27:19 -0500, John Drescher said:

On Fri, Jan 13, 2012 at 1:12 PM, Honia A <honia2002 < at > 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

That should be bacula-dir -- the make_catalog_backup.pl runs on the director,
not the fd.


Sorry. I was confused with that because my catalog database at work is
not on the same machine as the director (has never been) and I am
still using the old catalog backup script.

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 < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB