From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 Description of problem: Have problems with cups system printing multiple copies of jobs submitted via cups-lpd. (we have a W2K server box that prints to cups via lpd). Multiple print out is sporadic. Created a "dummy" test parallel port printer, and can demonstrate problem. Can capture logs. One example printed 20 copies of job. cups/ipp linux printing works fine. Just cups-lpd has issues. Problem started when we moved from a Solaris 9 box to a Dell Poweredge with RHEL 3. Problem occurs on local parallel port printer, or remote HP jetdirect printers. Problem appears to similar to 138123 & 118707. Version-Release number of selected component (if applicable): cups-1.1.17-13.3.24 How reproducible: Sometimes Steps to Reproduce: 1. print job from XP box to W2K server to cups-lpd 2. check queues for multiple jobs 3. wait ; repeat ? Actual Results: Sometime instead of a single job queued, multiple jobs (20) are queued / printed. Lots of wasted paper. Expected Results: System should only print single copy of a queued job. Additional info:
After more testing, it doesn't take many tries to cause the multiple print failure. We are able to capture logs from cupsd. A debug2 log for the following job 130-149 repeat is 849K! What is need to debug this??? [admin@somewhere admin]$ lpq -PDummy Dummy is ready and printing Rank Owner Job File(s) Total Size active linkr 129 Fedora Project, sponsored by Red274432 bytes 1st linkr 130 Fedora Project, sponsored by Red427008 bytes 2nd linkr 131 Fedora Project, sponsored by Red427008 bytes 3rd linkr 132 Fedora Project, sponsored by Red427008 bytes 4th linkr 133 Fedora Project, sponsored by Red427008 bytes 5th linkr 134 Fedora Project, sponsored by Red427008 bytes 6th linkr 135 Fedora Project, sponsored by Red427008 bytes 7th linkr 136 Fedora Project, sponsored by Red427008 bytes 8th linkr 137 Fedora Project, sponsored by Red427008 bytes 9th linkr 138 Fedora Project, sponsored by Red427008 bytes 10th linkr 139 Fedora Project, sponsored by Red427008 bytes 11st linkr 140 Fedora Project, sponsored by Red427008 bytes 12nd linkr 141 Fedora Project, sponsored by Red427008 bytes 13rd linkr 142 Fedora Project, sponsored by Red427008 bytes 14th linkr 143 Fedora Project, sponsored by Red427008 bytes 15th linkr 144 Fedora Project, sponsored by Red427008 bytes 16th linkr 145 Fedora Project, sponsored by Red427008 bytes 17th linkr 146 Fedora Project, sponsored by Red427008 bytes 18th linkr 147 Fedora Project, sponsored by Red427008 bytes 19th linkr 148 Fedora Project, sponsored by Red427008 bytes 20th linkr 149 Fedora Project, sponsored by Red427008 bytes [admin@somewhere admin]$
Please bzip2 the debug2 log and attach it. I expect we'll also need TCP traces, but let's have a look at the log first.
Created attachment 111097 [details] cupsd log level debug2 Sanitized cupsd level debug2 of multiple queue problem. Jobs 130 was repeated 19 extra times (jobs 131-149). Should be able to capture traffic between lpd host & cups machine if needed.
Is it possible to get an ltrace capture of the cups-lpd process during one of these multiple-print episodes? I think you'll have to do this: mv /usr/lib64/cups/daemon/cups-lpd{,.real} cat >/usr/lib64/cups/daemon/cups-lpd <<EOF #!/bin/sh exec ltrace /usr/lib64/cups/daemon/cups-lpd.real 2>/tmp/cups-lpd-log EOF touch /tmp/cups-lpd-log chmod a+w /tmp/cups-lpd-log Make sure to install the ltrace package.
Created attachment 111982 [details] log/info for cups-lpd ltrace
cups-lpd hangs if run with ltrace as suggested. See above log/info (111982). cups-lpd will queue jobs if I remove ltrace setup. Not used to ltrace. Maybe I missed something.
Would you be able to test out an instrumented version of the CUPS package, which logs more debugging information?
We reloaded the system last night with ES4 in hopes of fixing this problem. This is the only ES box we have. Maybe others can debug it. :-( We are still testing the new system before putting cups back in production.
If the problem recurs with Red Hat Enterprise Linux 4, please do re-open this bug report. Thanks.