Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux General Discussion (http://www.linux-archive.org/archlinux-general-discussion/)
-   -   CUPS working fine through 3/15 now won't print? (http://www.linux-archive.org/archlinux-general-discussion/345109-cups-working-fine-through-3-15-now-wont-print.html)

"David C. Rankin" 03-22-2010 05:15 AM

CUPS working fine through 3/15 now won't print?
 
Guys,

I have a love/hate relationship with cups. For the past eight years at least I
have configured cups to share laserjet printers at both the office and home and
99.9% time, I never have to think about printing again. The other .1% is usually
what seems like an effort in futility trying to get cups to print. I am having
one of those .1% moments now.

I enabled cups printing on my arch server about a month ago and it just printed
without issue until my wife needed to print today. No cups is refusing to print
at all. The strange part is that the cups daemon seems to be freezing or
crashing requiring a kill -9 on cupsd to kill it and restart the process. For
example, I can open the web interface of port 631 and I can change options, look
at the printers and past jobs, etc..., but when I send a job to the server, the
web interface freezes, nothing prints and I have to use 'kill -9 <cupsd pid>' to
stop cups and restart it. For example:

[00:46 nirvana:/var/log/cups] # /etc/rc.d/cups stop
:: Stopping CUPS Daemon
[DONE]
[00:52 nirvana:/var/log/cups] # ps ax | grep cups
4618 pts/1 S+ 0:00 vi cupsd.conf
5052 ? Ss 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
5128 pts/3 S+ 0:00 grep cups
[00:52 nirvana:/var/log/cups] # kill 5052
[00:52 nirvana:/var/log/cups] # ps ax | grep cups
4618 pts/1 S+ 0:00 vi cupsd.conf
5052 ? Ss 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
5131 pts/3 S+ 0:00 grep cups
[00:52 nirvana:/var/log/cups] # kill -9 5052

Huh?

I have debugging enabled and cups seems to be choking on ssl cert generation.
That's strange, I just thought I was using basic authentication:

I [22/Mar/2010:01:05:09 -0500] Full reload complete.
I [22/Mar/2010:01:05:09 -0500] Cleaning out old temporary files in
"/var/spool/cups/tmp"...
I [22/Mar/2010:01:05:09 -0500] Listening to 0.0.0.0:631 on fd 6...
I [22/Mar/2010:01:05:09 -0500] Listening to :::631 on fd 7...
I [22/Mar/2010:01:05:09 -0500] Listening to /var/run/cups/cups.sock on fd 8...
I [22/Mar/2010:01:05:09 -0500] Resuming new connection processing...
D [22/Mar/2010:01:05:09 -0500] cupsdRegisterPrinter(p=0x7fca7bf68f00(LaserJet))
E [22/Mar/2010:01:05:09 -0500] Unable to set ACLs on root certificate
"/var/run/cups/certs/0" - Operation not supported
D [22/Mar/2010:01:05:09 -0500] Discarding unused server-started event...
D [22/Mar/2010:01:05:10 -0500] cupsdNetIFUpdate: "lo" = localhost:631
D [22/Mar/2010:01:05:10 -0500] cupsdNetIFUpdate: "eth0" =
nirvana.3111skyline.com:631
D [22/Mar/2010:01:05:10 -0500] cupsdNetIFUpdate: "lo" = localhost:631
D [22/Mar/2010:01:05:10 -0500] cupsdNetIFUpdate: "eth0" =
fe80::2e0:81ff:fe55:4e1d%eth0:631
D [22/Mar/2010:01:05:10 -0500] Report: clients=0
D [22/Mar/2010:01:05:10 -0500] Report: jobs=15
D [22/Mar/2010:01:05:10 -0500] Report: jobs-active=0
D [22/Mar/2010:01:05:10 -0500] Report: printers=1
D [22/Mar/2010:01:05:10 -0500] Report: printers-implicit=0
D [22/Mar/2010:01:05:10 -0500] Report: stringpool-string-count=285
D [22/Mar/2010:01:05:10 -0500] Report: stringpool-alloc-bytes=6160
D [22/Mar/2010:01:05:10 -0500] Report: stringpool-total-bytes=6192
D [22/Mar/2010:01:05:59 -0500] cupsdAcceptClient: 12 from localhost (Domain)
D [22/Mar/2010:01:05:59 -0500] cupsdReadClient: 12 WAITING Closing on EOF
D [22/Mar/2010:01:05:59 -0500] cupsdCloseClient: 12
D [22/Mar/2010:01:05:59 -0500] cupsdCloseClient: 12
D [22/Mar/2010:01:05:59 -0500] cupsdAcceptClient: 12 from localhost (Domain)
I [22/Mar/2010:01:05:59 -0500] Generating SSL server key...

That where the process dies.... My cupsd.conf is simple, but maybe I have
something that is killing me? It is available here:

http://www.3111skyline.com/dl/bugs/Archlinux/cupsd.conf

(note: I am a member of groups sys, lp and wheel)

If anybody is smart on cups, I would appreciate a bit of help figuring out what
is not working here. The printer itself is an old Laserjet_4 connected to the
servers parallel port and its printer.conf is:

# Printer configuration file for CUPS v1.4.2
# Written by cupsd on 2010-03-21 14:13
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter LaserJet>
Info Home Office Laserjet 4
Location nirvana
MakeModel HP LaserJet Series PCL 4/5
DeviceURI parallel:/dev/lp0
State Idle
StateTime 1267682110
Type 12356
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 50 rastertohp
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

Any help would be greatly appreciated. The current cups package is: cups 1.4.2-3.

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

Geoff 03-22-2010 07:22 AM

CUPS working fine through 3/15 now won't print?
 
On Mon, 22 Mar 2010 01:15:57 -0500
"David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:

<snip>

> I have debugging enabled and cups seems to be
> choking on ssl cert generation. That's strange, I just
> thought I was using basic authentication:

<snip>

Do you have the directory /etc/cups/ssl?

http://bbs.archlinux.org/viewtopic.php?id=93100

Geoff

"David C. Rankin" 03-23-2010 03:12 AM

CUPS working fine through 3/15 now won't print?
 
On 03/22/2010 03:22 AM, Geoff wrote:
> On Mon, 22 Mar 2010 01:15:57 -0500
> "David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:
>
> <snip>
>
>> I have debugging enabled and cups seems to be
>> choking on ssl cert generation. That's strange, I just
>> thought I was using basic authentication:
>
> <snip>
>
> Do you have the directory /etc/cups/ssl?
>
> http://bbs.archlinux.org/viewtopic.php?id=93100
>
> Geoff
>

Thanks Geoff,

That was a lifesaver. Creating /etc/cups/ssl and setting permissions to root:lp
(chown root:lp /etc/cups/ssl) and then restarting cups fixed my remote print
problem.

When samba 3.2.5 and the latest cups were installed, the Arch packages did not
create the /etc/cups/ssl directory. Comparing the /etc/cups directory on Arch to
the /etc/cups dir on suse, it looks like suse has the following directories
included:

[23:09 alchemy:/etc/cups] # l1
interfaces
ppd
ssl
yes

while Arch has:

[23:10 nirvana:/etc/cups] # ls -1
ppd

which now requires adding the 'ssl' directory. I don't know if 'interfaces' or
'yes' makes any difference, but 'ssl' sure does for remote printing.

Thanks again!


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


All times are GMT. The time now is 08:42 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.