Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Common cups-1.2.x problems and solutions
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Nov 22, 2006 11:52 pm    Post subject: Common cups-1.2.x problems and solutions Reply with quote

CUPS Error Log:

D [22/Nov/2006:22:20:45 -0500] [Job 9] Starting renderer
D [22/Nov/2006:22:20:45 -0500] [Job 9] renderer PID kid4=3407
D [22/Nov/2006:22:20:45 -0500] [Job 9] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP BUSINESS INKJET 1200" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- -
D [22/Nov/2006:22:20:45 -0500] [Job 9] JCL: <job data>
D [22/Nov/2006:22:20:45 -0500] [Job 9]
D [22/Nov/2006:22:20:45 -0500] [Job 9]
D [22/Nov/2006:22:20:45 -0500] [Job 9] Closing renderer
D [22/Nov/2006:22:20:45 -0500] [Job 9] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP BUSINESS INKJET 1200' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [22/Nov/2006:22:20:47 -0500] [Job 9] unable to set device=HP BUSINESS INKJET 1200, err=16
D [22/Nov/2006:22:20:47 -0500] [Job 9] **** Unable to open the initial device, quitting.
D [22/Nov/2006:22:20:47 -0500] [Job 9] unable to read client data err=-2
D [22/Nov/2006:22:20:47 -0500] [Job 9] renderer return value: 1
D [22/Nov/2006:22:20:47 -0500] [Job 9] renderer received signal: 1
D [22/Nov/2006:22:20:47 -0500] [Job 9] tail process done writing data to STDOUT
D [22/Nov/2006:22:20:47 -0500] [Job 9] KID4 finished
D [22/Nov/2006:22:20:47 -0500] [Job 9] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
D [22/Nov/2006:22:20:47 -0500] [Job 9] error: Illegal seek (29)
D [22/Nov/2006:22:20:47 -0500] [Job 9] Possible error on renderer command line or PostScript error. Check options.
D [22/Nov/2006:22:20:47 -0500] [Job 9] KID4 exited with status 0
D [22/Nov/2006:22:20:47 -0500] [Job 9] KID3 exited with status 3
D [22/Nov/2006:22:20:47 -0500] [Job 9] Renderer exit stat: 3
D [22/Nov/2006:22:20:47 -0500] [Job 9] Renderer process finished
D [22/Nov/2006:22:20:47 -0500] [Job 9] Killing process 3406 (KID3)
D [22/Nov/2006:22:20:47 -0500] [Job 9] Process dying with "Error closing renderer", exit stat: 3
D [22/Nov/2006:22:20:47 -0500] [Job 9] error: Bad file descriptor (9)
D [22/Nov/2006:22:20:47 -0500] [Job 9] Error closing renderer
E [22/Nov/2006:22:20:47 -0500] PID 3401 (/usr/libexec/cups/filter/foomatic-rip) stopped with status 3!


I see it has a problem with Ghostcript from the looks of it. I made the log a lot shorter this time. I'll firs try re-emerging foomatic and HPIJS stuff. Does anybody have an idea of what's going on here?
Back to top
View user's profile Send private message
JuddRogers
n00b
n00b


Joined: 23 Jun 2003
Posts: 32
Location: Austin, Texas

PostPosted: Thu Nov 23, 2006 6:55 pm    Post subject: Fixed by modifying the printer config Reply with quote

I used the Web UI to modify the printer. Used all the same choices, saved, now the printer works.

I suspect there was an incompatible change to the printer config file.

There seem to be other problems as well so this might only be a partial solution.

Judd
Back to top
View user's profile Send private message
thagenesis
n00b
n00b


Joined: 18 May 2003
Posts: 36
Location: Germany

PostPosted: Fri Nov 24, 2006 9:59 am    Post subject: Reply with quote

These steps fixed the problem here. But I only needed to do this for my USB printer. The network printer continued to work like charm after the update.

Additionally I needed to copy the new cups.conf.default to cups.conf to fix the Webinterface. (Showed me 404, wgen trying to access https://localhost:631)
_________________
Adopt an unanswered post today
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sat Nov 25, 2006 5:55 pm    Post subject: Reply with quote

I don't think those have anything to do with this, as neither options worked <_<

This was never upgraded from cups 1.1, it was a fresh install of cups 1.2, and this is what I get when I try to print to my samba printer. Not very pretty is it?
Back to top
View user's profile Send private message
sogood007
n00b
n00b


Joined: 19 Sep 2004
Posts: 4

PostPosted: Sun Nov 26, 2006 7:03 am    Post subject: usb print with 1.2.6 cups Reply with quote

After upgrade cups, my usb printer didn't work. I finally tried modify the printer and with different URI for the usb print. The URI was something like usb:/dev/usb/lp0. The new one was usb://Canon/S750. Basically, I find the URI through the pulldown menu. It comes up different URI.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sun Nov 26, 2006 10:39 pm    Post subject: Reply with quote

my uri is:

smb://newpc/HPBI1200

I think the issue is that I saw every printer twice in the device list. So I'm uninstalling everything printer related and reinstalling it now.

EDIT: It's working on my laptop.


Last edited by sonicbhoc on Sun Nov 26, 2006 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Sun Nov 26, 2006 10:48 pm    Post subject: Reply with quote

For some reason I cannot see yet, sometimes the symlink
Code:
/usr/libexec/cups/filter/foomatic-rip -> /usr/bin/foomatic-rip

vanishes. Re-emerging foomatic-filters solves this easily. Maybe this caused your problem.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Mon Nov 27, 2006 12:26 am    Post subject: Reply with quote

That did it! I removed /etc/cups and unmerged all printing related packages except for ghostscript, and reinstalled it all. My printer was automatically picked up by both my laptop and desktop, and they both printed the test page without complaints. Finally!
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 625

PostPosted: Mon Nov 27, 2006 8:04 pm    Post subject: Common cups-1.2.x problems and solutions Reply with quote

Hi all,

When I try to add printers through my KDE Control Center (KDE 3.5.5, the problem started happening after cups updated it's self to 1.2.x) I am getting the following error:

Unable to create printer. Error message received from manager: client-error-bad-request

Anyone who knows howto fix this?


EDIT: Changed title from "KDE refuses to add printers after cups upgrade" & made sticky. --pjp
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Mon Nov 27, 2006 8:19 pm    Post subject: Reply with quote

kdeprint in conjunction with cups-1.2.x doesn't like empty /etc/cups/printers.conf files. Do you already have printers configured? If not, use this printers.conf file, add your printer and remove the other one:
Code:
<Printer BrotherHL1030>
Info BROTHER HL-1030
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 625

PostPosted: Mon Nov 27, 2006 8:33 pm    Post subject: Reply with quote

Voltago wrote:
kdeprint in conjunction with cups-1.2.x doesn't like empty /etc/cups/printers.conf files. Do you already have printers configured? If not, use this printers.conf file, add your printer and remove the other one:
Code:
<Printer BrotherHL1030>
Info BROTHER HL-1030
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


Yes I got 3 printers configured. (1 Brother MFC-5840CN, 1 HP Deskjet 845c and 1 HP Laserjet 220dn)

Note: When I press the test printer button it also tells me it is unable to create a temporary printer.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Mon Nov 27, 2006 8:43 pm    Post subject: Reply with quote

I can confirm your problem, it seems to be a known kde bug, some problem in the kdeprint ipp implementation:
http://bugs.kde.org/show_bug.cgi?id=115891
(the empty printers.conf problem is also discussed here).
As a workaround, go to PrintManager->Configure Manager->CUPS Server and set 'Host' to 'localhost' and 'Port' to '631'.

Olger, please change the thread title to 'Common cups-1.2.x problems and solutions' and I will ask the mods to make it sticky.
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Tue Nov 28, 2006 11:07 pm    Post subject: Can't use CUPS after Gentoo upgrade Reply with quote

Hi. I've performed a deep Gentoo upgrade recently and after that, i can't print anymore. The error log shows this:

(Quote of the command tail -10 /var/log/cups/error_log with info level set to debug)

Quote:
D [28/Nov/2006:18:00:36 -0300] Loading job 88 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 89 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 90 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 91 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 92 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 93 from cache...
D [28/Nov/2006:18:00:36 -0300] Loading job 94 from cache...
I [28/Nov/2006:18:00:36 -0300] Full reload complete.
I [28/Nov/2006:18:00:36 -0300] Listening to 127.0.0.1:631 on fd 2...
E [28/Nov/2006:18:00:36 -0300] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.


Also, when i point my web browser to http://localhost:631/ it fails with a "404" error. I don't understand why this happens. I'm using iptables but i've configured it to open port 631. If you have any idea to help me, i'd really appreciate it.

Thanks in advance,

Roblov.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Nov 28, 2006 11:13 pm    Post subject: Reply with quote

Code:
E [28/Nov/2006:18:00:36 -0300] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.

This looks like cupsd wants to bind to a IPv6 address and it isn't supported. Can you show us the 'Listen' entries in your /etc/cups/cupsd.conf? You should delete the IPv6 entry. In fact, if you are using cups-1.2.x as I presume, it would be advisable to start a cups configuration from scratch. Back up your /etc/cups directory, delete it and re-emerge cups:
Code:
emerge --oneshot cups

Copy your backed up printers.conf file to /etc/cups and re-start cupsd.
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Tue Nov 28, 2006 11:27 pm    Post subject: Reply with quote

Voltago wrote:
Code:
E [28/Nov/2006:18:00:36 -0300] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.

This looks like cupsd wants to bind to a IPv6 address and it isn't supported. Can you show us the 'Listen' entries in your /etc/cups/cupsd.conf? You should delete the IPv6 entry. In fact, if you are using cups-1.2.x as I presume, it would be advisable to start a cups configuration from scratch. Back up your /etc/cups directory, delete it and re-emerge cups:
Code:
emerge --oneshot cups

Copy your backed up printers.conf file to /etc/cups and re-start cupsd.


Here it is:

Quote:
########
######## Network Options
########

#
# Ports/addresses that we listen to. The default port 631 is reserved
# for the Internet Printing Protocol (IPP) and is what we use here.
#
# You can have multiple Port/Listen lines to listen to more than one
# port or address, or to restrict access:
#
# Port 80
# Port 631
# Listen hostname
# Listen hostname:80
# Listen hostname:631
# Listen 1.2.3.4
# Listen 1.2.3.4:631
#
# NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades
# for encryption. If you want to support web-based encryption you'll
# probably need to listen on port 443 (the "https" port...)
#
# NOTE 2: In order for the command-line and web interfaces to work, you
# must have at least one Port or Listen line that allows access from the
# local loopback address (localhost).
#

#Port 80
#Port 443
Port localhost:631
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Nov 28, 2006 11:33 pm    Post subject: Reply with quote

The 'Port' option should only have a port specified, not host+port. Change that to
Code:
Listen localhost:631
Back to top
View user's profile Send private message
quag7
Apprentice
Apprentice


Joined: 12 Aug 2002
Posts: 288
Location: Marana, Arizona - USA

PostPosted: Tue Nov 28, 2006 11:47 pm    Post subject: Reply with quote

In my case, I'm now getting a 404 for the web interface. I've re-emerged it, ran the command in the ebuild message to rebuild symlinks or whatever it was...and now, I have no ability to print at all or even access the web console to see why it is failing - other than, it appears, all of the web stuff has gone deepspace.

Code:

D [28/Nov/2006:16:40:05 -0700] cupsdCloseClient: 6
D [28/Nov/2006:16:40:05 -0700] cupsdAcceptClient: 6 from localhost:631 (IPv4)
D [28/Nov/2006:16:40:05 -0700] cupsdReadClient: 6 GET /cups.css HTTP/1.1
D [28/Nov/2006:16:40:05 -0700] cupsdReadClient: 6 Browser asked for language "en-us.utf-8"...
D [28/Nov/2006:16:40:05 -0700] cupsdAuthorize: No authentication data provided.
D [28/Nov/2006:16:40:05 -0700] cupsdSendError: 6 code=404 (Not Found)
D [28/Nov/2006:16:40:05 -0700] cupsdCloseClient: 6
D [28/Nov/2006:16:40:35 -0700] Discarding unused printer-state-changed event...


It was working fine until this last upgrade. And it's my fault. I should have known better. On my machine, with me doing it, CUPS upgrades just destroy printing...consistently.

You know, when I get CUPS working, I'm going to lock it to a version that works and I am NEVER going to upgrade. In the four years or so I have been using CUPS, upgrades have broken it at least 15 times (this is not an exaggeration), and I can never, ever, rely on the ability to print on my machine. It is the only thing on my box that I consistently dread and worry about, and it is almost comical how often my ability to print just dies. This is the third machine I've run CUPS on, by the way.

Is there any alternative to CUPS? What I don't need is a web-accessible print queue, any of the security stuff. All I want to do is be able to print consistently without being filled with dread every time I have to print something.

I am half tempted to take one of my old boxes and put Windows 2000 on it just to use as a print server at this point. Right now I'm up against a rebate deadline and I need to print barcodes and so on or I am going to be out a hundred bucks or so.

I cannot understand why CUPS is so thoroughly miserable and unreliable. I can't be the only one who has had this experience. No other application - including major GCC upgrades, the switch to modular X - nothing - gives me as miserable an experience as CUPS does.
_________________
http://www.dataswamp.net
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Tue Nov 28, 2006 11:53 pm    Post subject: Reply with quote

Voltago wrote:
The 'Port' option should only have a port specified, not host+port. Change that to
Code:
Listen localhost:631


I've put what you suggest, restarted cups and tried to see the configuration web interface and i get the "404" again.
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Tue Nov 28, 2006 11:56 pm    Post subject: Reply with quote

Voltago wrote:
The 'Port' option should only have a port specified, not host+port. Change that to
Code:
Listen localhost:631


When adding this, i get this output at /var/log/cups/error_log:

(Quote from tail -20 /var/log/cups/error_log)

Quote:
D [28/Nov/2006:20:52:10 -0300] Loading job 90 from cache...
D [28/Nov/2006:20:52:10 -0300] Loading job 91 from cache...
D [28/Nov/2006:20:52:10 -0300] Loading job 92 from cache...
D [28/Nov/2006:20:52:10 -0300] Loading job 93 from cache...
D [28/Nov/2006:20:52:10 -0300] Loading job 94 from cache...
I [28/Nov/2006:20:52:10 -0300] Full reload complete.
I [28/Nov/2006:20:52:10 -0300] Listening to 127.0.0.1:631 on fd 2...
E [28/Nov/2006:20:52:10 -0300] Unable to open listen socket for address ::1:631
- Address family not supported by protocol.
D [28/Nov/2006:20:52:17 -0300] cupsdAcceptClient: 6 from localhost:631 (IPv4)
D [28/Nov/2006:20:52:17 -0300] cupsdReadClient: 6 GET / HTTP/1.1
D [28/Nov/2006:20:52:17 -0300] cupsdReadClient: 6 Browser asked for language "es
-es.utf-8"...
D [28/Nov/2006:20:52:17 -0300] cupsdAuthorize: No authentication data provided.
D [28/Nov/2006:20:52:17 -0300] cupsdSendError: 6 code=404 (Not Found)
D [28/Nov/2006:20:52:17 -0300] cupsdCloseClient: 6
D [28/Nov/2006:20:52:17 -0300] cupsdAcceptClient: 6 from localhost:631 (IPv4)
D [28/Nov/2006:20:52:17 -0300] cupsdReadClient: 6 GET /cups.css HTTP/1.1
D [28/Nov/2006:20:52:17 -0300] cupsdReadClient: 6 Browser asked for language "es
-es.utf-8"...
D [28/Nov/2006:20:52:17 -0300] cupsdAuthorize: No authentication data provided.
D [28/Nov/2006:20:52:17 -0300] cupsdSendError: 6 code=404 (Not Found)
D [28/Nov/2006:20:52:17 -0300] cupsdCloseClient: 6
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Nov 28, 2006 11:59 pm    Post subject: Reply with quote

Have you removed
Code:
Port localhost:631

?
Have you the ipv6 USE flag set? Does your kernel support ipv6?
Back to top
View user's profile Send private message
quag7
Apprentice
Apprentice


Joined: 12 Aug 2002
Posts: 288
Location: Marana, Arizona - USA

PostPosted: Wed Nov 29, 2006 12:30 am    Post subject: Reply with quote

Unmerging, deleting /etc/cups, and then emerging cups again fixed the 404 problem for me.

Got the printer PPD recognized in the printer configuration by repeatedly power-cycling my printer. Now the test page prints huge; I get about a third of it on a page...Trying to figure that one out.
_________________
http://www.dataswamp.net
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Wed Nov 29, 2006 1:16 am    Post subject: Reply with quote

I've chosen to downgrade cups to version 1.1.23-r8. I've uninstalled the newest version and installed the previous version doing this:

Quote:
emerge -C cups
emerge -1a =cups-1.1.23-r8


I did this so a deep upgrade wouldn't upgrade cups. I'll stick to this for the moment. I don't feel like battling against cups right now.

Thanks to you all for your time.

Roblov.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20097

PostPosted: Wed Nov 29, 2006 2:27 pm    Post subject: Reply with quote

Thanks Voltago. I did a quick search, and there may be other threads. If you're interested, it may be helpful to see if any can be consolidated into this one (or this one into another if there is a better one).
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Wed Nov 29, 2006 6:13 pm    Post subject: Reply with quote

I'm printing again using cups-1.1.23-r8.
Back to top
View user's profile Send private message
kthagen
n00b
n00b


Joined: 25 Apr 2006
Posts: 6

PostPosted: Wed Nov 29, 2006 9:42 pm    Post subject: For me, the problem turned out to be in foomatic Reply with quote

I had similar problems to others as the result of upgrading cups to 1.2. First, I downgraded to cups 1.1.23-r8. That got things working for others on my local network connecting through samba. But I still couldn't print locally. Setting my LogLevel to debug showed me that jobs were stopping with the following error:

Code:

PID 1894 stopped with status 22!
[Job 1772] /usr/lib64/cups/filter/foomatic-rip: No such file or directory


So we have a broken link. An equery check shows that this is part of foomatic-filters, and sure enough

Code:

#emerge foomatic-filters


got printing working again on the local computer.

Note that before trying this, I also tried revdep-rebuild (it didn't find anything broken), and emerging the foomatic metapackage (which didn't emerge foomatic-filters), both to no avail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum