2011/2/21 Jari Fredriksson <ja...@iki.fi>: > On 21.2.2011 0:57, ganiuszka wrote: >> Hi, >> >> The "free" command is running before every WRITE. If "free" command >> does not work properly then WRITE will not work. "dvd-handler" script >> uses the "popen2" Python module which in new Python version throws >> warning because this module is deprecated in new Python. That may be >> your issue after the system upgrade to Squeeze. >> >> If your "free" command shows something like below output, that is this >> problem.: >> >> # /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free >> /usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The >> popen2 module is deprecated. Use the subprocess module. >> import popen2 >> 1616412672 >> No Error reported. >> >> When you put "hash" ("#") in python module on that warning then DVD >> backup will be work. Another solution is rewrite "dvd-handler" script >> using "subprocess" Python module instead "popen2". >> > > I know knothing about python. Which module is that "python module" that > I need to comment the warning out?
Hi, This module is in localization /usr/lib/python2.6/popen2.py. There are those two lines: warnings.warn("The popen2 module is deprecated. Use the subprocess module.", DeprecationWarning, stacklevel=2) When you put hash ("#") at the begining those lines, warning should not occur in the "free" command. For example: #warnings.warn("The popen2 module is deprecated. Use the subprocess module.", # DeprecationWarning, stacklevel=2) > For example the following fails with the newer kernels, but not with older.. > > ----------------------- /etc/bacula/blank_dvd ------------------------ > > dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/sr0=/dev/fd/0 Did you try with other discs? Are there any errors in "dmesg" log? What error is reported after running this command? Regards gani ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users