Comments/Questions below.

Richard

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Arno Lehmann
> Sent: 12 September 2006 08:12
> To: bacula-users@lists.sourceforge.net; bacula-devel
> Subject: Re: [Bacula-devel] [Bacula-users] Can't get DVD 
> writing to work
> 
> Hi,
> 
> On 9/12/2006 5:19 AM, Scott Simpson wrote:
> > bacula CVS version 2006-09-11
> > 
> > I still can't get bacula to write to a DVD using the latest 
> software on 
> > Kubuntu. Every time I run it I get
> > 
> > dvd.c:432 Error writing part 1 to the DVD: 
> > ERR=Running /usr/bin/growisofs -use-the-force-luke=notray 
> -quiet -use-the-force-luke=4gms -A 'Bacula 
> > Data' -input-charset=default -iso-level 3 -pad -p 'dvd-handler / 
> > growisofs' -sysid 'BACULADATA' -R -Z /dev/hdc /bacula-spool/DVD6
> > :-( /usr/bin/growisofs is being executed under sudo, aborting!
> >     See NOTES paragraph in growisofs manual page for 
> further details.
> > 
> > Error while writing part 
> > file:  /usr/bin/growisofs -use-the-force-luke=notray -quiet 
> -use-the-force-lukMarking 
> > Volume "DVD6" in Error in Catalog.
> > CatReq Job=*System* UpdateMedia VolName=DVD6 VolJobs=0 
> VolFiles=0 VolBlocks=0 
> > VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=0 MaxVolBytes=0 
> > EndTime=1158030791 VolStatus=Error Slot=0 relabel=0 
> InChanger=0 VolReadTime=0 
> > VolWriteTime=0 VolParts=0
> > 
> > and bconsole hangs (I have to kill it from another window). 
> I read the message 
> > in the growisofs manual page about sudo but I'm not running 
> it under sudo 
> > (but I don't know if bacula is). I'm running bacula-dir as 
> root and growisofs 
> > isn't setuid. Thanks.
> 
> It might be because the SD runs not as root (remember, it's 
> the SD that 
> invokes growisofs, not the DIR!). You should thus check the 
> user the SD 
> runs as first.
> 
> Have you tried running the growisofs command manually (possibly 
> substituting something useful for the part file?
> 

> Also, you can turn on debug logging for the SD to get more detailed 
> information on what is actually happening.
> 
I'm not sure that will help in this case. It is quite clearly the case that
growisofs is upset and thinks that it is running under sudo.

We need to work out where the sudo environment variables came from.

> Then, you can try to invoke the dvd-handler script from the shell and 
> see how that behaves.
> 
Ideally you need to try that from the same environment where you start SD.

A few questions from me. 

1) are you building bacula yourself? Or has someone (kubuntu?) packaged it
for you? If it is the latter then someone may have hidden a sudo somewhere
in one of the scripts etc.

2) Is sd, dir etc. being started at boot time or from a shell later? This
gives us a clue as to where to look for sudo.

3) If you start things from a shell (as root I guess) then you need to check
what environment variables are set (use the "set" command if using bash, sh,
etc). You are looking for any variables beginning "SUDO_" in there. If they
exist then that is the cause of your issues


> And it might help you more to post these questions to -devel, 
> as that is 
> where the people actually working on the dvd writing exchange their 
> ideas. and bug reports. and patches. and success stories. and 
> so on :-) 
> I cc'ed bacula-devel...


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to