On Aug 2, 2006, at 7:39 AM, Kern Sibbald wrote:
> The second problem was when Bacula attempted to write the error  
> message to the
> working directory, it did not have write permission and thus it seg  
> faulted.
> It should not seg fault, and there is code to prevent that, so I  
> don't know
> exactly what did happen, but I have taken note of it.

That's all I was looking for.  It was reproducable for several weeks,  
it would likely be reproducable again.

> In any case, the root
> of the problem, IMO, was with the permissions at least in the  
> output that I
> saw in your bug report.

13-Jul 17:54 backup0-dir: Error: message.c:668 fopen /var/db/bacula/ 
backup0-dir.backup0-dir.135133336.mail failed: ERR=Permission denied
Kaboom! bacula-dir, backup0-dir got signal 11.

I was confused as to why everything else works properly, and when the  
network card was fixed the permissions problem disappears.  The  
directory is owned and writable only by bacula.

Investigating show something odd -- some of these files are owned and  
writable only by root.  That's confusing -- how does bacula-dir  
(which is invoked as user 'bacula') write out a file owned by root?

-rw-r-----  1 bacula  bacula    206 Jul  7 18:34 backup0-dir.backup0- 
dir.135128472.mail
-rw-r-----  1 bacula  bacula    206 Jul 13 17:49 backup0-dir.backup0- 
dir.135129240.mail
-rw-r-----  1 root    bacula    138 Jul 13 17:53 backup0-dir.backup0- 
dir.135133336.mail
-rw-r-----  1 root    bacula    138 Jul 13 18:20 backup0-dir.backup0- 
dir.135133464.mail
-rw-r-----  1 root    bacula      0 Jul 13 17:38 backup0-dir.backup0- 
dir.135141272.mail
-rw-r-----  1 bacula  bacula    206 Jul  5 14:59 backup0-dir.backup0- 
dir.135168088.mail

I'm guessing that somehow the file was pre-created by a root owned  
process, and then you tried to append or rewrite it as bacula?

-- 
Jo Rhett
senior geek
Silicon Valley Colocation

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to