Bacula-users

Re: [Bacula-users] Bacula database is getting too long

2012-01-12 15:05:46
Subject: Re: [Bacula-users] Bacula database is getting too long
From: Honia A <honia2002 AT hotmail DOT com>
To: <jarif AT iki DOT fi>, <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 12 Jan 2012 15:03:01 -0500
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 output is: drwx------ 2 bacula    bacula  4096 2012-01-12 14:37 bacula

And

-rw-r--r-- 1 root   bacula 209927918 2012-01-12 13:45 bacula.sql


root@servername:/var/lib/bacula# cd /etc/bacula/scripts
root@servername:/etc/bacula/scripts# ls -l
total 72
-rw-r--r-- 1 root root 296 2010-03-23 16:27 btraceback.gdb
-rwxr-xr-x 1 root root 112 2010-03-23 16:27 delete_catalog_backup
-rwxr-xr-x 1 root root 9012 2010-03-23 16:27 disk-changer
-rwxr-xr-x 1 root root 16948 2010-03-23 16:27 dvd-handler
-rwxr-xr-x 1 root root 2047 2010-03-23 16:27 make_catalog_backup
-rw-r--r-- 1 root root 1646 2010-03-23 16:27 make_catalog_backup_awk
-rwxr-xr-x 1 root root 4106 2010-03-23 16:27 make_catalog_backup.pl
-rwxr-xr-x 1 root root 6899 2010-03-23 16:27 mtx-changer
-rwxr-xr-x 1 root root 1506 2010-03-23 16:27 mtx-changer.conf
-rw-r--r-- 1 root root 90 2010-03-23 16:27 query.sql





 
 

 


Date: Thu, 12 Jan 2012 18:49:08 +0200
From: jarif AT iki DOT fi
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Bacula database is getting too long

12.1.2012 18:10, Honia A kirjoitti:
> Thanks everyone. The permission denied error below started to occur when
> I followed the instruction and cleaned up the bacula.sql file.
>
> 12-Jan 05:39 babar-dir JobId 1639: shell command: run BeforeJob
> "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
> 12-Jan 05:39 babar-dir JobId 1639: BeforeJob: sh: cannot create
> /var/lib/bacula/bacula.sql: Permission denied
> 12-Jan 05:39 babar-dir JobId 1639: Error: Runscript: BeforeJob returned
> non-zero status=2. ERR=Child exited with code 2
> 12-Jan 05:39 babar-dir JobId 1639: Error: Bacula babar-dir 5.0.1
> (24Feb10): 12-Jan-2012 05:39:13
>
> These were the commands I ran to cleanup the database:
>
> mysqldump -f --opt bacula > bacula.sql
> mysql bacula < bacula.sql
> rm -f bacula.sql
>
> How can I test and find out what's wrong here? When I had shut down the
> backup server, everything was fine. Looks like something is holiding up
> the servers until 8 AM or so, just can't tell what that is.
>
> I'd appreciate your help,
> h* *
>

The process running bacula-fd can't create your bacula.sql dump file.

> 12-Jan 05:39 babar-dir JobId 1639: BeforeJob: sh: cannot create
> /var/lib/bacula/bacula.sql: Permission denied

Who owns the folder /var/lib/bacula? What kind of permissions are
allowed there for the process running bacula-dir? Bacula-dir is run by
user bacula normally.

--

You're currently going through a difficult transition period called "Life."


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