Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] Printing from cups stopped working!
  • From: Roberto cruz <rcp@xxxxxxxxxxxxxx>
  • Date: Sun, 06 Mar 2005 12:23:38 +0100
  • Message-id: <422AE83A.8010505@xxxxxxxxxxxxxx>
Carlos,

after the last YAST update Cups become broken in my system too, I need to manualy delete cups and reinstall it from the original 9.2 CDs. I need to delete /etc/cups to recover cups. Again another problem with YAST updates, I have suffering in the last years a lot with the fu*** SUSE, I think it's time to migrate to another distribution. I been buying all the version from 5 up to 9.2, paying more than 85 € per version. I started thinking to migrate from Linux to Windows seriusly.

Regards
Carlos E. R. wrote:

Hi,

Printing does not work any more on my system. This is a PIV with SuSE 9.1,
kernel 2.6.5-7.145-default, cups-1.1.20-108.22. Yesterday night I allowed
YOU to install latest kernel patch 2.6.5-7.147-default. Today I tried to
print a document from OO and nothing happened. The job was queued, but the
printer did not move. I canceled the job, and tried with a simple text
file from console: same result.

Then I noticed that device "/dev/lp0" had disappeared. I used mknod to recreate. Now I have:

crw-rw---- 1 root lp 6, 0 Mar 1 18:46 lp0
crw-rw---- 1 root lp 6, 1 Aug 15 2004 lp1
crw-rw---- 1 root lp 6, 2 Aug 15 2004 lp2

If I try, as root, "cat someasciifile > /dev/lp0", it works: so there is
nothing wrong with the cable or printer, physically. Still, cups refuses
to print:

cer@nimrodel:~> lpq
lp is not ready <========================
Rank Owner Job File(s) Total Size
1st cer 137 hola 1024 bytes

Notice that "not ready" status. Why?

I restarted cups: nothing. I rebooted: same thing.

Last time it did print successfully was "Fri Feb 25 15:35:16 2005", according to cups. Last installed patches (ie, after that date) were:

Fri 25 Feb 2005 01:12:53 AM CET emacs
Fri 25 Feb 2005 01:13:12 AM CET apache2-mod_php4
Fri 25 Feb 2005 01:13:20 AM CET mod_php4-core
Fri 25 Feb 2005 01:13:23 AM CET php4
Fri 25 Feb 2005 01:13:25 AM CET php4-imap
Fri 25 Feb 2005 01:13:26 AM CET php4-mysql
Fri 25 Feb 2005 01:13:26 AM CET php4-recode
Fri 25 Feb 2005 01:13:26 AM CET php4-session
Fri 25 Feb 2005 01:13:27 AM CET php4-wddx
Tue 01 Mar 2005 01:50:11 AM CET kernel-default
Tue 01 Mar 2005 01:51:18 AM CET kernel-docs
Tue 01 Mar 2005 01:52:52 AM CET kernel-source


So, I try to revert the kernel to 2.6.5-7.145-default: same thing, it does not work. There is nothing in /var/log/messages, /var/log/kernel or /var/log/cups/error_log that gives a clue (even setting cups in debug mode).

What is wrong?

Cups, in "http://localhost:631/printers/lp";, says:

Description: default configuration
Location: local
Printer State: stopped, accepting jobs.
"Unable to open parallel port device file "/dev/lp0": Permission denied" <----
Device URI: parallel:/dev/lp0

Permission denied? What? Printer is defined "crw-rw---- root lp", the same as the other ports. Should it be different?


cer@nimrodel:~> lpq
lp is not ready <-----
Rank Owner Job File(s) Total Size
1st cer 138 Test Page 15360 bytes

cer@nimrodel:~> ps uafx|less
...
lp 7495 0.0 0.8 7380 4236 ? Ss 20:35 0:01 /usr/sbin/cupsd -c /etc/cups/cupsd.conf

It is running as user lp...



Logs excerpts:
----------------

First boot after upgrading kernel to:

Linux version 2.6.5-7.147-default (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 Thu Jan 27 09:19:29 UTC 2005

Mar 1 15:27:00 nimrodel kernel: parport0: PC-style at 0x378, irq 7[PCSPP,TRISTATE,EPP]
Mar 1 15:27:00 nimrodel kernel: lp0: using parport0 (interrupt-driven).
Mar 1 15:27:01 nimrodel kernel: ppa: Version 2.07 (for Linux 2.4.x)

This is the only mention of ppa since Dec 4, ie, as far back that
kernel log goes. Printing does not work, /dev/lp0 has disappeared.
I recreate. "cat hola > /dev/lp0" works. But cups refuses to
print (lp is not ready)

... reboot

Mar 1 19:00:35 nimrodel kernel: BIOS EDD facility v0.13 2004-Mar-09, 2 devices found
Mar 1 19:00:38 nimrodel kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
Mar 1 19:00:38 nimrodel kernel: lp0: using parport0 (interrupt-driven).
Mar 1 19:00:38 nimrodel kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic

Same result, no print from cups.

With the previous kernel, I had (when it printed):

Feb 24 19:58:16 nimrodel kernel: BIOS EDD facility v0.13 2004-Mar-09, 2 devices found
Feb 24 19:58:19 nimrodel kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
Feb 24 19:58:19 nimrodel kernel: lp0: using parport0 (interrupt-driven).
Feb 24 19:58:19 nimrodel kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic

Ie, the same. Now, after reverting kernel upgrade:

Mar 1 20:27:05 nimrodel kernel: BIOS EDD facility v0.13 2004-Mar-09, 2 devices found
Mar 1 20:27:07 nimrodel kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
Mar 1 20:27:07 nimrodel kernel: lp0: using parport0 (interrupt-driven).
Mar 1 20:27:08 nimrodel kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic


Exactly the same.


From /var/log/cups/error_log in debug mode, I take:

I [01/Mar/2005:19:57:04 +0100] Full reload complete.
D [01/Mar/2005:19:57:04 +0100] StartListening: NumListeners=1
D [01/Mar/2005:19:57:04 +0100] StartListening: address=00000000 port=631
D [01/Mar/2005:19:57:04 +0100] ResumeListening: setting input bits...
D [01/Mar/2005:19:57:58 +0100] AcceptClient: 5 from localhost:631.
D [01/Mar/2005:19:57:58 +0100] ReadClient() 5 POST / HTTP/1.1
D [01/Mar/2005:19:57:58 +0100] ProcessIPPRequest: 5 status_code=1
D [01/Mar/2005:19:57:58 +0100] CloseClient() 5
D [01/Mar/2005:19:57:58 +0100] AcceptClient: 5 from localhost:631.
D [01/Mar/2005:19:57:58 +0100] ReadClient() 5 POST / HTTP/1.1
D [01/Mar/2005:19:57:58 +0100] ProcessIPPRequest: 5 status_code=1
D [01/Mar/2005:19:57:58 +0100] CloseClient() 5
D [01/Mar/2005:19:57:58 +0100] AcceptClient: 5 from localhost:631.
D [01/Mar/2005:19:57:58 +0100] ReadClient() 5 POST / HTTP/1.1
D [01/Mar/2005:19:57:58 +0100] ProcessIPPRequest: 5 status_code=0
D [01/Mar/2005:19:57:58 +0100] ReadClient() 5 POST /printers/lp HTTP/1.1
D [01/Mar/2005:19:57:58 +0100] print_job: auto-typing file...
D [01/Mar/2005:19:57:58 +0100] print_job: request file type is text/plain.
D [01/Mar/2005:19:57:58 +0100] check_quotas: requesting-user-name = 'cer'
D [01/Mar/2005:19:57:58 +0100] print_job: requesting-user-name = 'cer'
I [01/Mar/2005:19:57:58 +0100] Adding start banner page "none" to job 136.
I [01/Mar/2005:19:57:58 +0100] Adding end banner page "none" to job 136.
I [01/Mar/2005:19:57:58 +0100] Job 136 queued on 'lp' by 'cer'.
D [01/Mar/2005:19:57:58 +0100] Job 136 hold_until = 0
D [01/Mar/2005:19:57:58 +0100] ProcessIPPRequest: 5 status_code=0
D [01/Mar/2005:19:57:58 +0100] CloseClient() 5
D [01/Mar/2005:19:58:23 +0100] AcceptClient: 5 from localhost:631.
D [01/Mar/2005:19:58:23 +0100] AcceptClient: 6 from localhost:631.
D [01/Mar/2005:19:58:23 +0100] ReadClient() 6 POST / HTTP/1.1
D [01/Mar/2005:19:58:23 +0100] ProcessIPPRequest: 6 status_code=1
D [01/Mar/2005:19:58:23 +0100] CloseClient() 6
D [01/Mar/2005:19:58:23 +0100] AcceptClient: 6 from localhost:631.
D [01/Mar/2005:19:58:23 +0100] ReadClient() 6 POST / HTTP/1.1
D [01/Mar/2005:19:58:23 +0100] ProcessIPPRequest: 6 status_code=1
D [01/Mar/2005:19:58:23 +0100] CloseClient() 6
D [01/Mar/2005:19:58:23 +0100] AcceptClient: 6 from localhost:631.
D [01/Mar/2005:19:58:23 +0100] ReadClient() 6 POST / HTTP/1.1
D [01/Mar/2005:19:58:23 +0100] ProcessIPPRequest: 6 status_code=0
D [01/Mar/2005:19:58:23 +0100] ReadClient() 5 POST / HTTP/1.1
D [01/Mar/2005:19:58:23 +0100] ProcessIPPRequest: 5 status_code=0
D [01/Mar/2005:19:58:23 +0100] ReadClient() 5 POST / HTTP/1.1
D [01/Mar/2005:19:58:23 +0100] ProcessIPPRequest: 5 status_code=0
D [01/Mar/2005:19:58:23 +0100] CloseClient() 5
D [01/Mar/2005:19:58:23 +0100] CloseClient() 6


There is no mention of "lp0" in the whole file.






< Previous Next >
Follow Ups
References