Hello Arno, Now we are very close to finding the problem.
Can you send me the beginning of the log output that shows reserve.c:493 ... ? It should have 3 or four of those lines reserve.c:493 before it goes into the endless loop. That is the part that will tell me what combination of drives and switches is not finding a drive in your case. What is important is that I can see all the output beginning with the first reserve.c:493, continuing up to the point that it starts repeating over and over reserve.c:552 .... reserve.c:571, On Saturday 17 December 2005 21:54, Arno Lehmann wrote: > Hello, > > On 12/17/2005 8:38 PM, Natxo Asenjo wrote: > > hi, > > > > Following the instructions in > > http://bacula.org/rel-manual/Backup_Strategies.html#SECTION00028330000000 > >0000000 > > > > I have a little problem. The script /etc/bacula/end_of_backup.sh when > > run manually works fine, when run at the end of the job I get this > > message: > > > > 17-Dec 20:26 tux-dir: RunAfter: + echo root > > 17-Dec 20:26 tux-dir: RunAfter: root > > 17-Dec 20:26 tux-dir: RunAfter: + /etc/bacula/delete_catalog_backup > > 17-Dec 20:26 tux-dir: RunAfter: + mt rewind > > 17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied > > 17-Dec 20:26 tux-dir: RunAfter: + mt eject > > 17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied > > 17-Dec 20:26 tux-dir: RunAfter: + exit 0 > > Hmm. Are you using a debian linux system? I think I remember something... > > > So obviously the tape is not ejected and I need to eject it manually. > > Obviously. > You might try inserting something like > echo 'umount TAPE' | bconsole > in your script before the mt eject. And perhaps mt rewoffl is also worth > a try. > > > ls -l /etc/bacula/end_of_backup.sh > > -rwsr-sr-- 1 root bacula 97 Dec 17 20:16 /etc/bacula/end_of_backup.sh > > > > I have even (OMG) > > > :-) > : > > tried setting the suid bit on the script to no avail. > > Shouldn't work, as far as I know... > > > In fact, I have a echo statement at the beginnig of the script that > > confirms that it runs as root (echo $USER), so I am not sure what the > > problem is. This is bacula 1.38.2 and for the rest it's great! > > I sure would like to have this daily tape rotation because at our > > company we already have this rotation and one of the workers is used to > > this, so i'd rather not change it. > > Good reason, I think. > > Arno -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users