On Fri, 2005-10-21 at 20:11 +0100, Martin Simmons wrote: > >>>>> On Thu, 20 Oct 2005 16:29:17 +1000, Craig Holyoak <[EMAIL PROTECTED]> > >>>>> said: > > Craig> On Wed, 2005-10-19 at 11:17 +0100, Martin Simmons wrote:=20 > >> >>>>> On Wed, 19 Oct 2005 12:08:24 +1000, Craig Holyoak <[EMAIL > PROTECTED] said: > >> > Craig> I'm running bacula 1.36.2 on Debian stable. Whenever I try to run a > restore > Craig> job, it fails with: > >> > Craig> 19-Oct 11:29 helmsdeep: Start Restore Job Restore.2005-10-19_11.29.50 > Craig> 19-Oct 11:29 newman: Restore.2005-10-19_11.29.50 Fatal error: Could > not create bootstrap file > /var/lib/bacula/newman.Restore.2005-10-19_11.29.50.bootstrap: > ERR=3DPermission denied > Craig> 19-Oct 11:29 newman: Restore.2005-10-19_11.29.50 Fatal error: > job.c:1662 Comm error with SD. bad response to Bootstrap. ERR=3DConnection > reset by peer > Craig> 19-Oct 11:29 helmsdeep: Restore.2005-10-19_11.29.50 Error: Bacula > 1.36.2 (28Feb05): 19-Oct-2005 11:29:53 > Craig> JobId: 878 > Craig> Job: Restore.2005-10-19_11.29.50 > Craig> Client: newman > Craig> Start time: 19-Oct-2005 11:29:52 > Craig> End time: 19-Oct-2005 11:29:53 > Craig> Files Expected: 1 > Craig> Files Restored: 0 > Craig> Bytes Restored: 0 > Craig> Rate: 0.0 KB/s > Craig> FD Errors: 0 > Craig> FD termination status: Error > Craig> SD termination status: Error > Craig> Termination: *** Restore Error *** > >> > Craig> This machine runs all bacula daemons. The director and sd run as the > bacula > Craig> user, and the sd runs as root. /var/lib/bacula is writable by the > bacula user > Craig> (and root, obviously :-). > >> > Craig> I've tried modifying the job and redirecting the bootstrap file > elsewhere (eg > Craig> /tmp), but I keep getting the same errors. I have never run a > successful > Craig> restore using bconsole. I'm forced to use bextract to do all my > restores, > Craig> which works fine. > >> > Craig> Any ideas? > >> > >> The error comes from the SD. > >> > >> So "helmsdeep" and "newman" are the same machine? > > Craig> "helmsdeep" is the name of my bacula director, which runs on > "newman", > Craig> so yes, these are the same machine. > > >> Does "getting the same errors" mean that it always says > "/var/lib/bacula" even > >> when the bootstrap should be in /tmp? > > Craig> Perhaps I'm a little unclear on what bootstraps are involved. By > Craig> default, a bootstrap for the job is placed > Craig> in /var/lib/bacula/restore.bsr. If I change this elsewhere by > modifying > Craig> the job before it is run, ie, /tmp/restore.bsr, it fails because it > Craig> can't find the file - there is no /tmp/restore.bsr. But even though > it > Craig> creates the bootstrap successfully to /var/lib/bacula/restore.bsr, it > Craig> still wants to > Craig> create /var/lib/bacula/newman.Restore.2005-10-19_11.29.50.bootstrap, > at > Craig> which point if fails with permission denied. > > Ah, I see. > > >From the output, it looks like your File Daemon and Store Daemon are both > called "newman" (in the conf files)? What happens if you rename one of the > them to something else? > > I'm wondering if there is a filename clash somehere.
Renaming the SD to newman-sd worked perfectly. Thanks! Craig -- Craig Holyoak [EMAIL PROTECTED] http://www.helmsdeep.org/
signature.asc
Description: This is a digitally signed message part