Cups prints only first job on USB printer

Bug #69265 reported by Robert Penz
This bug report is a duplicate of:  Bug #1363670: 8480dn. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi!

I report this bug against the Dapper version of Cups.

I've attached a Brother HL-1050 Printer via USB to my SOHO server running Dapper. The first job which is send to CUPS after the printer is turned on or got connected to the server works without any problem. The next job send to CUPS never gets printed until I switch the printer on/off and or dis-/re-connect it from the usb bus.

Within the Cups-Webadmin interface it keeps writing:

Brother_HL-1050_series_USB_1 (Default Printer) "Printer not connected; will retry in 30 seconds..."

Following processes are running the whole time, even if I restart cupsys these processes get back if such a job is still in the queue.

cupsys 18057 0.0 0.4 4328 1936 ? Ss 11:19 0:00 /usr/sbin/cupsd
cupsys 18060 0.0 1.1 6820 5028 ? S 11:19 0:00 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 10 guest Test Page 1 job-uuid=urn:uuid:6af92a87-12cc-3537-5a2d-ed4616e17b19
cupsys 18061 0.0 0.1 2968 736 ? S 11:19 0:00 usb://Brother/HL-1050%20series 10 guest Test Page 1 job-uuid=urn:uuid:6af92a87-12cc-3537-5a2d-ed4616e17b19
cupsys 18063 0.0 0.8 6820 3920 ? S 11:19 0:00 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 10 guest Test Page 1 job-uuid=urn:uuid:6af92a87-12cc-3537-5a2d-ed4616e17b19
cupsys 18064 0.0 0.8 6820 3660 ? S 11:19 0:00 /usr/bin/perl /usr/lib/cups/filter/foomatic-rip 10 guest Test Page 1 job-uuid=urn:uuid:6af92a87-12cc-3537-5a2d-ed4616e17b19
cupsys 18065 0.0 0.3 3104 1468 ? S 11:19 0:00 sh -c gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=hl1250' '-dEconoMode=1' '-dSourceTray=0' '-dPaperType=0' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
cupsys 18066 0.1 2.1 16908 9712 ? S 11:19 0:01 gs -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -dEconoMode=1 -dSourceTray=0 -dPaperType=0 -sOutputFile=/dev/fd/3 /dev/fd/0

following are the straces to look in which program the problem lies

 strace -p 18060
Process 18060 attached - interrupt to quit
read(4,

strace -p 18061
Process 18061 attached - interrupt to quit
setup(

strace -p 18063
Process 18063 attached - interrupt to quit
waitpid(18065,

strace -p 18064
Process 18064 attached - interrupt to quit
write(1, "\2\5\20C \3\20\3\2# \10\3 A\1\0 \"@\4!@\2\1\20\2\2\1"..., 4042

strace -p 18065
Process 18065 attached - interrupt to quit
waitpid(-1,

strace -p 18066
Process 18066 attached - interrupt to quit
write(5, "!\21 \22\"B\22H\222\v$\1\"\341\211\21\"\"\21\20\210B\340"..., 4096

Following are the last lines in the error.log with loglevel debug.

D [30/Oct/2006:11:19:47 +0100] [Job 10] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250 -dEconoMode=1 -dSourceTray=0 -dPaperType=0 -sOutputFile=- -
D [30/Oct/2006:11:19:48 +0100] [Job 10]
D [30/Oct/2006:11:19:48 +0100] [Job 10] Closing renderer
D [30/Oct/2006:11:19:48 +0100] [Job 10] perl: warning: Setting locale failed.
D [30/Oct/2006:11:19:48 +0100] [Job 10] perl: warning: Please check that your locale settings:
D [30/Oct/2006:11:19:48 +0100] [Job 10] LANGUAGE = (unset),
D [30/Oct/2006:11:19:48 +0100] [Job 10] LC_ALL = (unset),
D [30/Oct/2006:11:19:48 +0100] [Job 10] LANG = "en"
D [30/Oct/2006:11:19:48 +0100] [Job 10] are supported and installed on your system.
D [30/Oct/2006:11:19:48 +0100] [Job 10] perl: warning: Falling back to the standard locale ("C").
D [30/Oct/2006:11:19:48 +0100] [Job 10] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=hl1250' '-dEconoMode=1' '-dSourceTray=0' '-dPaperType=0' '-sOutputFile=/dev/
fd/3' '/dev/fd/0' 3>&1 1>&2
D [30/Oct/2006:11:19:48 +0100] [Job 10] ESP Ghostscript 815.02 (2006-04-19)
D [30/Oct/2006:11:19:48 +0100] [Job 10] Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
D [30/Oct/2006:11:19:48 +0100] [Job 10] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [30/Oct/2006:11:19:48 +0100] [Job 10] Warning: the map file cidfmap was not found.
D [30/Oct/2006:11:19:48 +0100] [Job 10] Loading NimbusSanL-Bold font from /var/lib/defoma/gs.d/dirs/fonts/n019004l.pfb... 2311876 914093 1569400 263070 1 done.
D [30/Oct/2006:11:19:48 +0100] [Job 10] Loading NimbusSanL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n019003l.pfb... 2328540 990719 1569400 263550 1 done.
D [30/Oct/2006:11:19:48 +0100] [Job 10] Loading NimbusRomNo9L-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n021003l.pfb... 2445684 1127480 1569400 264314 1 done.
D [30/Oct/2006:11:19:49 +0100] [Job 10] Loading NimbusSanL-ReguCondItal font from /var/lib/defoma/gs.d/dirs/fonts/n019063l.pfb... 2562828 1229132 1589496 281159 1 done.

And I'm not the only one with this problem, I found some on ubuntuforums with this problems. Here only one link:

http://ubuntuforums.org/showthread.php?t=240549

Revision history for this message
Unhorst (unhorst) wrote :

Brother HL-1430 only prints first job then "is gone" until drivers are cleaned up or printer is switched off/on or dis-/re-connected from/to the usb bus.

Revision history for this message
Unhorst (unhorst) wrote :

Problem seems to be solved. I didn't do anything about it but let ubuntu update whatever it "suggested".
2006-11-28

Martin Pitt (pitti)
Changed in cupsys:
status: Unconfirmed → Fix Released
Revision history for this message
Unhorst (unhorst) wrote : Re: [Bug 69265] Re: Cups prints only first job on USB printer

Hi,

what exactly does this mean concerning my problem? Unlike i was hoping
the printer doesn't print correctly, yet. It still stops printing after
the first job is completed. I have to disconnect it then reconnect it
and reinstall the driver to make it work.

Best regards

Martin Pitt schrieb:
> ** Changed in: cupsys (Ubuntu)
> Status: Unconfirmed => Fix Released
>

Revision history for this message
Bananabob (bananabob) wrote :

I am having this problem with a Brother HL-1430 connected via USB, and using CUPS on Edgy.

Is there a fix for this and if so where is it?

Revision history for this message
Bananabob (bananabob) wrote :

This problem still occurs in Edgy

Changed in cupsys:
status: Fix Released → Needs Info
Revision history for this message
Bananabob (bananabob) wrote :

This could be a duplicate of https://launchpad.net/bugs/57050

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

I'm having the same problem with my Brother MFC-8440.

I remember I used an old old guide for Warty or Breezy on how to network my printer. Then something went wrong, I removed the printer in gnome-cups-manager and added it back. Now this is happening. Maybe the configuration file needs to be refreshed?

I'm going to purge and reinstall cups and see how it goes.

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

Here is my cups configuration file...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cupsys (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
xtsbdu3reyrbrmroezob (xtsbdu3reyrbrmroezob) wrote :

this bug has returned due to a regression.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.