Re: [Bacula-users] Restore errors: Permission Denied
On Friday 21 October 2005 21:11, 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. Yes, if two daemons are running on the same machine sharing the same working directory they *MUST* have unique names. __Martin --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore errors: Permission Denied
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. __Martin --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore errors: Permission Denied [SOLVED]
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
Re: [Bacula-users] Restore errors: Permission Denied
On Wed, 2005-10-19 at 11:17 +0100, Martin Simmons wrote: 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=Permission 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=Connection 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? helmsdeep is the name of my bacula director, which runs on newman, 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? Perhaps I'm a little unclear on what bootstraps are involved. By default, a bootstrap for the job is placed in /var/lib/bacula/restore.bsr. If I change this elsewhere by modifying the job before it is run, ie, /tmp/restore.bsr, it fails because it can't find the file - there is no /tmp/restore.bsr. But even though it creates the bootstrap successfully to /var/lib/bacula/restore.bsr, it still wants to create /var/lib/bacula/newman.Restore.2005-10-19_11.29.50.bootstrap, at which point if fails with permission denied. What is the output of ls -la /var/lib/bacula ls -la /var/lib ls -la /var on the SD? [newman:~]# ls -la /var/lib/bacula total 528848 drwxrwxr-x 2 bacula backups 4096 2005-10-20 07:21 . drwxr-xr-x 36 root root 4096 2005-09-17 14:03 .. -rw-r- 1 bacula backups 516 2005-10-20 01:18 BackupCatalog.bsr -rw-r- 1 bacula backups 539603968 2005-06-28 09:52 bacula.db.old -rw-r- 1 bacula backups 2032 2005-10-19 11:28 bacula-dir.9101.state -rw-r- 1 root root 2032 2005-10-19 11:28 bacula-fd.9102.state -rw-r- 1 bacula tape 2032 2005-10-19 11:28 bacula-sd.9103.state -rw-r- 1 bacula backups 103 2004-11-28 12:39 CVS.bsr -rw-r- 1 bacula backups 2779 2004-09-19 16:13 Data.bsr -rw--- 1 bacula backups 0 2005-10-19 11:31 helmsdeep.conmsg -rw--- 1 bacula backups 0 2004-09-17 17:45 helmsdeep-dir.conmsg -rw-r- 1 bacula backups 1303 2005-10-20 01:11 Home.bsr -rwxrwx--- 1 bacula backups 1319129 2005-10-20 01:18 log -rw-r- 1 bacula backups 523 2005-10-20 01:12 Mail.bsr -rw-r- 1 bacula backups 430 2004-11-28 12:55 Music.bsr -rw--- 1 bacula backups 0 2004-09-16 08:27 newman-dir.conmsg -rw-r- 1 bacula backups 633 2005-10-20 01:05 NewmanRoot.bsr -rw-r- 1 bacula backups 745 2005-10-20 01:07 PenfoldRoot.bsr -rw-r- 1 bacula backups 107 2005-10-16 03:00 Public.bsr -rw-r- 1 bacula backups 107 2005-10-19 11:29 restore.bsr -rw-r- 1 root root 73 2005-07-08 10:11 root-exclude -rw-r- 1 root root2 2004-11-15 09:20 root-include -rw-r- 1 bacula backups 104 2005-10-16 03:00 Source.bsr [newman:~]# ls -la /var/lib total 144 drwxr-xr-x 36 root root4096 2005-09-17 14:03 . drwxr-xr-x 14 root root4096 2005-07-12 16:57 .. drwxr-xr-x 2 root root4096 2005-05-12 15:35 apache2 drwxr-xr-x 3 root root4096 2005-07-18 13:21 apt drwxr-xr-x 2 root root4096 2004-07-31 17:51 aptitude drwxr-xr-x 2 root root4096 2005-03-04 02:21 apt-proxy drwxrwxr-x 2 bacula backups 4096 2005-10-20 07:21 bacula drwxr-xr-x 2 clamav
Re: [Bacula-users] Restore errors: Permission Denied
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=Permission 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=Connection 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? Does getting the same errors mean that it always says /var/lib/bacula even when the bootstrap should be in /tmp? What is the output of ls -la /var/lib/bacula ls -la /var/lib ls -la /var on the SD? Does touch /var/lib/bacula/touch-test work as the bacula user on the SD? __Martin --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Restore errors: Permission Denied
I'm running bacula 1.36.2 on Debian stable. Whenever I try to run a restore job, it fails with: 19-Oct 11:29 helmsdeep: Start Restore Job Restore.2005-10-19_11.29.50 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=Permission denied 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=Connection reset by peer 19-Oct 11:29 helmsdeep: Restore.2005-10-19_11.29.50 Error: Bacula 1.36.2 (28Feb05): 19-Oct-2005 11:29:53 JobId: 878 Job:Restore.2005-10-19_11.29.50 Client: newman Start time: 19-Oct-2005 11:29:52 End time: 19-Oct-2005 11:29:53 Files Expected: 1 Files Restored: 0 Bytes Restored: 0 Rate: 0.0 KB/s FD Errors: 0 FD termination status: Error SD termination status: Error Termination:*** Restore Error *** This machine runs all bacula daemons. The director and sd run as the bacula user, and the sd runs as root. /var/lib/bacula is writable by the bacula user (and root, obviously :-). I've tried modifying the job and redirecting the bootstrap file elsewhere (eg /tmp), but I keep getting the same errors. I have never run a successful restore using bconsole. I'm forced to use bextract to do all my restores, which works fine. Any ideas? Thanks, Craig -- Craig Holyoak [EMAIL PROTECTED] http://www.helmsdeep.org/ signature.asc Description: Digital signature